Commit 3ebcbe77 authored by Adam Wujek's avatar Adam Wujek 💬

patches: rename network interfaces from wrX to wriX+1 in barebox

Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent c17f0722
......@@ -8,7 +8,7 @@ cp /boot/wrs-initramfs.gz /dev/mem.initramfs
#bootargs="verbose console=ttyS0,115200 panic=10"
bootargs="quiet console=ttyS0,115200 panic=10"
bootargs="$bootargs initrd=0x71800000,0x400000"
bootargs="$bootargs wr_nic.macaddr=$wr0_ethaddr"
bootargs="$bootargs wr_nic.macaddr=$wri1_ethaddr"
bootz /dev/mem.kernel
# Sleep 2 seconds so you can see the message and return to menu
......@@ -45,12 +45,16 @@ 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
sdb set /dev/dataflash0.hwinfo wri1_ethaddr wri1.ethaddr
if [ x$wri1_ethaddr = x ]; then
sdb set /dev/dataflash0.hwinfo wri1_ethaddr wr0.ethaddr
echo "Using wr0.ethaddr from sdb (" $wri1_ethaddr ")"
export wri1_ethaddr
### Override default value using /env/config (empty by default)
. /env/config
echo "Starting up barebox [wrs3] (MAC=$eth0.ethaddr WR_MAC=$wr0_ethaddr)"
echo "Starting up barebox [wrs3] (MAC=$eth0.ethaddr WR_MAC=$wri1_ethaddr)"
### Generic setup
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment