Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
98
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
3ebcbe77
Commit
3ebcbe77
authored
9 years ago
by
Adam Wujek
Browse files
Options
Downloads
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
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/barebox/v2014.04/env/bin/boot-nand
+1
-1
1 addition, 1 deletion
patches/barebox/v2014.04/env/bin/boot-nand
patches/barebox/v2014.04/env/bin/init
+7
-3
7 additions, 3 deletions
patches/barebox/v2014.04/env/bin/init
with
8 additions
and
4 deletions
patches/barebox/v2014.04/env/bin/boot-nand
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
patches/barebox/v2014.04/env/bin/init
+
7
−
3
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment