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
1d22d8b2
Commit
1d22d8b2
authored
Sep 30, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barebox: read mac addresses from sdb
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
fcbe2087
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
boot-nand
patches/barebox/v2014.04/env/bin/boot-nand
+1
-1
init
patches/barebox/v2014.04/env/bin/init
+7
-1
No files found.
patches/barebox/v2014.04/env/bin/boot-nand
View file @
1d22d8b2
...
...
@@ -8,7 +8,7 @@ cp /boot/wrs-initramfs.gz /dev/mem.initramfs
#bootargs="verbose console=ttyS0,115200 panic=10 mem=64M"
bootargs
=
"quiet console=ttyS0,115200 panic=10 mem=64M"
bootargs
=
"
$bootargs
initrd=0x71800000,0x400000"
bootargs
=
"
$bootargs
wr_nic.macaddr=
$
mac
addr
"
bootargs
=
"
$bootargs
wr_nic.macaddr=
$
wr0_eth
addr
"
bootz /dev/mem.kernel
# Sleep 2 seconds so you can see the message and return to menu
...
...
patches/barebox/v2014.04/env/bin/init
View file @
1d22d8b2
...
...
@@ -42,9 +42,15 @@ preboot_timeout="0"
autoboot_timeout
=
"5"
autoboot_select
=
"1"
# Ethernet addresses are taken from sdb in hwinfo partition
addpart /dev/dataflash0 0x840@0x94800
(
hwinfo
)
sdb
set
/dev/dataflash0.hwinfo eth0.ethaddr
sdb
set
/dev/dataflash0.hwinfo wr0_ethaddr wr0.ethaddr
export
wr0_ethaddr
### Override default value using /env/config (empty by default)
.
/env/config
echo
"Starting up barebox [wrs3] (MAC=
$eth0
.ethaddr)"
echo
"Starting up barebox [wrs3] (MAC=
$eth0
.ethaddr
WR_MAC=
$wr0_ethaddr
)"
### Generic setup
...
...
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