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
3ebcbe77
Commit
3ebcbe77
authored
Feb 24, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches: rename network interfaces from wrX to wriX+1 in barebox
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
c17f0722
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
boot-nand
patches/barebox/v2014.04/env/bin/boot-nand
+1
-1
init
patches/barebox/v2014.04/env/bin/init
+7
-3
No files found.
patches/barebox/v2014.04/env/bin/boot-nand
View file @
3ebcbe77
...
@@ -8,7 +8,7 @@ cp /boot/wrs-initramfs.gz /dev/mem.initramfs
...
@@ -8,7 +8,7 @@ cp /boot/wrs-initramfs.gz /dev/mem.initramfs
#bootargs="verbose console=ttyS0,115200 panic=10"
#bootargs="verbose console=ttyS0,115200 panic=10"
bootargs
=
"quiet console=ttyS0,115200 panic=10"
bootargs
=
"quiet console=ttyS0,115200 panic=10"
bootargs
=
"
$bootargs
initrd=0x71800000,0x400000"
bootargs
=
"
$bootargs
initrd=0x71800000,0x400000"
bootargs
=
"
$bootargs
wr_nic.macaddr=
$wr
0
_ethaddr
"
bootargs
=
"
$bootargs
wr_nic.macaddr=
$wr
i1
_ethaddr
"
bootz /dev/mem.kernel
bootz /dev/mem.kernel
# Sleep 2 seconds so you can see the message and return to menu
# Sleep 2 seconds so you can see the message and return to menu
...
...
patches/barebox/v2014.04/env/bin/init
View file @
3ebcbe77
...
@@ -45,12 +45,16 @@ autoboot_select="1"
...
@@ -45,12 +45,16 @@ autoboot_select="1"
# Ethernet addresses are taken from sdb in hwinfo partition
# Ethernet addresses are taken from sdb in hwinfo partition
addpart /dev/dataflash0 0x840@0x94800
(
hwinfo
)
addpart /dev/dataflash0 0x840@0x94800
(
hwinfo
)
sdb
set
/dev/dataflash0.hwinfo eth0.ethaddr
sdb
set
/dev/dataflash0.hwinfo eth0.ethaddr
sdb
set
/dev/dataflash0.hwinfo wr0_ethaddr wr0.ethaddr
sdb
set
/dev/dataflash0.hwinfo wri1_ethaddr wri1.ethaddr
export
wr0_ethaddr
if
[
x
$wri1_ethaddr
=
x
]
;
then
sdb
set
/dev/dataflash0.hwinfo wri1_ethaddr wr0.ethaddr
echo
"Using wr0.ethaddr from sdb ("
$wri1_ethaddr
")"
fi
export
wri1_ethaddr
### Override default value using /env/config (empty by default)
### Override default value using /env/config (empty by default)
.
/env/config
.
/env/config
echo
"Starting up barebox [wrs3] (MAC=
$eth0
.ethaddr WR_MAC=
$wr
0
_ethaddr
)"
echo
"Starting up barebox [wrs3] (MAC=
$eth0
.ethaddr WR_MAC=
$wr
i1
_ethaddr
)"
### Generic setup
### 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