Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
3e7e9239
Commit
3e7e9239
authored
Oct 23, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
startup-mb: get base MAC address from kernel cmdline and apply to wr_nic
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
f6c21be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
startup-mb.sh
userspace/rootfs_override/wr/sbin/startup-mb.sh
+11
-2
No files found.
userspace/rootfs_override/wr/sbin/startup-mb.sh
View file @
3e7e9239
...
...
@@ -3,10 +3,19 @@
echo
"Starting up WR Switch (18-ports MiniBackplane version)..."
export
WR_HOME
=
"/wr"
# Get parameter from kernel commandline
for
arg
in
$(
cat
/proc/cmdline
)
;
do
echo
$arg
|
grep
-q
"wr_nic.macaddr"
;
if
[
$?
==
0
]
;
then
val
=
$(
echo
$arg
|
cut
-d
=
-f2
)
;
fi
;
done
$WR_HOME
/bin/load-virtex
$WR_HOME
/lib/firmware/18ports_mb.bin
$WR_HOME
/bin/load-lm32
$WR_HOME
/lib/firmware/rt_cpu.bin
insmod
$WR_HOME
/lib/modules/at91_softpwm.ko
insmod
$WR_HOME
/lib/modules/wr_vic.ko
insmod
$WR_HOME
/lib/modules/wr-nic.ko
insmod
$WR_HOME
/lib/modules/wr-nic.ko
macaddr
=
$val
insmod
$WR_HOME
/lib/modules/wr_rtu.ko
$WR_HOME
/sbin/start-daemons.sh
\ No newline at end of file
$WR_HOME
/sbin/start-daemons.sh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment