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
85
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
010a6246
Commit
010a6246
authored
8 years ago
by
Alessandro Rubini
Committed by
Adam Wujek
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
doc and binaries use root=/dev/nfs
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ce226579
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
binaries/wrboot-dhcp
+1
-1
1 addition, 1 deletion
binaries/wrboot-dhcp
binaries/wrboot-static-ip
+1
-1
1 addition, 1 deletion
binaries/wrboot-static-ip
doc/wrs-developer-manual.in
+2
-1
2 additions, 1 deletion
doc/wrs-developer-manual.in
doc/wrs-user-manual.in
+13
-2
13 additions, 2 deletions
doc/wrs-user-manual.in
with
17 additions
and
5 deletions
binaries/wrboot-dhcp
+
1
−
1
View file @
010a6246
...
...
@@ -22,7 +22,7 @@ bootargs="verbose console=ttyS0,115200 panic=10"
# Pass IP information to the kernel (or ipinfo="dhcp" to re-request)
ipinfo
=
"
$eth0
.ipaddr:
$eth0
.serverip:
$eth0
.gateway:
$eth0
.netmask:wrs:eth0"
bootargs
=
"
$bootargs
root=nfs rw ip=
$ipinfo
"
bootargs
=
"
$bootargs
root=
/dev/
nfs rw ip=
$ipinfo
"
# I you want, specify a non-default root directory
bootargs
=
"
$bootargs
nfsroot=/opt/root/wrs,tcp"
...
...
This diff is collapsed.
Click to expand it.
binaries/wrboot-static-ip
+
1
−
1
View file @
010a6246
...
...
@@ -25,7 +25,7 @@ bootargs="verbose console=ttyS0,115200 panic=10"
# Pass IP information to the kernel
ipinfo
=
"
$eth0
.ipaddr:
$eth0
.serverip:
$eth0
.gateway:255.255.255.0:wrs:eth0"
bootargs
=
"
$bootargs
root=nfs rw ip=
$ipinfo
"
bootargs
=
"
$bootargs
root=
/dev/
nfs rw ip=
$ipinfo
"
# I you want, specify a non-default root directory
bootargs
=
"
$bootargs
nfsroot=/opt/root/wrs,tcp"
...
...
This diff is collapsed.
Click to expand it.
doc/wrs-developer-manual.in
+
2
−
1
View file @
010a6246
...
...
@@ -914,7 +914,8 @@ the following command in a newly-created empty directory:
To boot with NFS-root you should use a custom boot script,
as described in the section @i
{
Using wrboot
}
, in the @i
{
@sc
{
wrs
}
User's
Manual
}
.
Manual
}
. Please note that the kernel now needs @t
{
root=/dev/nfs
}
,
as the old convention @t
{
root=nfs
}
is not supported any more.
The archives include a number of device special files in
@i
{
dev
}
. The pre-created devices come from
...
...
This diff is collapsed.
Click to expand it.
doc/wrs-user-manual.in
+
13
−
2
View file @
010a6246
...
...
@@ -1412,6 +1412,9 @@ The individual menu items perform the following actions:
If you use the @i
{
wrboot
}
script option, you can for example run
an NFS-Root system or do whatever customization and testing you want.
@b
{
Note
}
: with 2.6.39 we suggested use of @t
{
root=nfs
}
, but this
convention is no more supported in Linux, please use @t
{
root=/dev/nfs
}
.
The complete filesystem after a successful build is called
@t
{
images/wrs-image.tar.gz
}
, and is not included in the release
firmware file, because an installed switch runs an @i
{
initramfs
}
...
...
@@ -1491,10 +1494,18 @@ of known-working wrboot scripts as examples;
@section Creating an NFS-Root Environment for WRS
In order to create an NFS root directory, you should uncompress
@t
{
wrs-image.tar.gz
}
that is created at build time. If you use
@t
{
wrs-image.tar.gz
}
that is created at build time in a newly-created
empty directory:
@example
tar xzf
$
WRS
_
OUTPUT
_
DIR
/
images
/
wrs
-
image.tar.gz
@end example
If you use
a released @t
{
wrs
-
firmware.tar
}
, however, you'll have no overall
filesystem for the switch, and you should rebuild it from two
parts. This is how to create your NFS filesystem (please adapt
parts. This is how to create your NFS filesystem from a
released @t
{
wrs
-
firmware
}
file
(
please adapt
for your local pathnames
)
:
@example
...
...
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