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
87
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
072667d7
Commit
072667d7
authored
10 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
doc: explain how to make an NFS-Root place from official tarball
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
3a2e2679
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/wrs-build.in
+22
-3
22 additions, 3 deletions
doc/wrs-build.in
with
22 additions
and
3 deletions
doc/wrs-build.in
+
22
−
3
View file @
072667d7
...
...
@@ -1045,9 +1045,28 @@ you can add something like the following line to your @file{wrboot} script:
bootargs="
$
bootargs nfsroot
=/
opt
/
root
/
wrs
-
3
"
@end example
If you use static IP addresses, please note that you should fix
@file
{
/
etc
/
init.d
/
S
40
network
}
in the filesystem for your switch,
so it doesn't run the DHCP client.
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
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
for your local pathnames
)
:
@example
FW
=/
tftpboot
/
wrs
-
firmware.tar
DIR
=/
opt
/
root
/
wrs
-
3
mkdir
-
p
$
DIR
tar xOf
$
FW wrs
-
initramfs.gz | zcat |
\
(
cd
$
DIR
&&
sudo cpio --make-directories --extract)
tar xOf
$
FW wrs
-
usr.tar.gz | sudo tar xzf
-
-
C
$
DIR/usr
@end example
The above commands extract to @i
{
stdout
}
the two parts of the @sc
{
wrs
}
filesystem, to then uncompress them to the proper directories. The
first @i
{
tar
}
pipe is less friendly because the @i
{
initramfs
}
is a
compressed @i
{
cpio
}
archive, and @i
{
cpio
}
as a command lacks automatic
decompression and the @t
{
-C
}
(change directory) option.
@c ##########################################################################
@node The Individual Build Steps
...
...
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