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
83
Issues
83
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
010a6246
Commit
010a6246
authored
Dec 04, 2016
by
Alessandro Rubini
Committed by
Adam Wujek
Dec 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc and binaries use root=/dev/nfs
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ce226579
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
wrboot-dhcp
binaries/wrboot-dhcp
+1
-1
wrboot-static-ip
binaries/wrboot-static-ip
+1
-1
wrs-developer-manual.in
doc/wrs-developer-manual.in
+2
-1
wrs-user-manual.in
doc/wrs-user-manual.in
+13
-2
No files found.
binaries/wrboot-dhcp
View file @
010a6246
...
@@ -22,7 +22,7 @@ bootargs="verbose console=ttyS0,115200 panic=10"
...
@@ -22,7 +22,7 @@ bootargs="verbose console=ttyS0,115200 panic=10"
# Pass IP information to the kernel (or ipinfo="dhcp" to re-request)
# Pass IP information to the kernel (or ipinfo="dhcp" to re-request)
ipinfo
=
"
$eth0
.ipaddr:
$eth0
.serverip:
$eth0
.gateway:
$eth0
.netmask:wrs:eth0"
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
# I you want, specify a non-default root directory
bootargs
=
"
$bootargs
nfsroot=/opt/root/wrs,tcp"
bootargs
=
"
$bootargs
nfsroot=/opt/root/wrs,tcp"
...
...
binaries/wrboot-static-ip
View file @
010a6246
...
@@ -25,7 +25,7 @@ bootargs="verbose console=ttyS0,115200 panic=10"
...
@@ -25,7 +25,7 @@ bootargs="verbose console=ttyS0,115200 panic=10"
# Pass IP information to the kernel
# Pass IP information to the kernel
ipinfo
=
"
$eth0
.ipaddr:
$eth0
.serverip:
$eth0
.gateway:255.255.255.0:wrs:eth0"
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
# I you want, specify a non-default root directory
bootargs
=
"
$bootargs
nfsroot=/opt/root/wrs,tcp"
bootargs
=
"
$bootargs
nfsroot=/opt/root/wrs,tcp"
...
...
doc/wrs-developer-manual.in
View file @
010a6246
...
@@ -914,7 +914,8 @@ the following command in a newly-created empty directory:
...
@@ -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,
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
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
The
archives
include
a
number
of
device
special
files
in
@
i
{
dev
}.
The
pre
-
created
devices
come
from
@
i
{
dev
}.
The
pre
-
created
devices
come
from
...
...
doc/wrs-user-manual.in
View file @
010a6246
...
@@ -1412,6 +1412,9 @@ The individual menu items perform the following actions:
...
@@ -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
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.
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
The complete filesystem after a successful build is called
@t
{
images/wrs-image.tar.gz
}
, and is not included in the release
@t
{
images/wrs-image.tar.gz
}
, and is not included in the release
firmware file, because an installed switch runs an @i
{
initramfs
}
firmware file, because an installed switch runs an @i
{
initramfs
}
...
@@ -1491,10 +1494,18 @@ of known-working wrboot scripts as examples;
...
@@ -1491,10 +1494,18 @@ of known-working wrboot scripts as examples;
@section Creating an NFS-Root Environment for WRS
@section Creating an NFS-Root Environment for WRS
In order to create an NFS root directory, you should uncompress
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
a released @t
{
wrs
-
firmware.tar
}
, however, you'll have no overall
filesystem for the switch, and you should rebuild it from two
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
)
:
for your local pathnames
)
:
@example
@example
...
...
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