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
86
Issues
86
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
b1a3edd4
Commit
b1a3edd4
authored
Aug 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: changed layering, most chapter are now sections
parent
5dce0a44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
32 deletions
+43
-32
wrs-build.in
doc/wrs-build.in
+43
-32
No files found.
doc/wrs-build.in
View file @
b1a3edd4
...
@@ -75,17 +75,7 @@ granted write access).
...
@@ -75,17 +75,7 @@ granted write access).
* Building::
* Building::
* Flashing of WRS-3::
* Flashing of WRS-3::
* Booting with Barebox::
* Booting with Barebox::
* The Compiler::
* The Individual Build Steps::
* Buildroot::
* The IPL::
* The Boot Loader::
* The Linux Kernel::
* Kernel Modules::
* Initial tools for the FPGA::
* PTPd::
* User Space Applications::
* VHDL Binaries::
* The Complete Filesystem::
* Code layout in a production switch::
* Code layout in a production switch::
* Schematics are Available::
* Schematics are Available::
* Older Hardware Releases::
* Older Hardware Releases::
...
@@ -857,8 +847,29 @@ it use the arrow keys (it is not like @i{vi}, for your pleasure but
...
@@ -857,8 +847,29 @@ it use the arrow keys (it is not like @i{vi}, for your pleasure but
not for mine). To save and exit use @i{ctrl-D}.
not for mine). To save and exit use @i{ctrl-D}.
@c ##########################################################################
@c ##########################################################################
@node The Individual Build Steps
@chapter The Individual Build Steps
This chapter details the individual build steps, for the users that want
to customize their switch in any way.
@menu
* The Compiler::
* Buildroot::
* The IPL::
* The Boot Loader::
* The Linux Kernel::
* Kernel Modules::
* Initial tools for the FPGA::
* PTPd::
* User Space Applications::
* VHDL Binaries::
* The Complete Filesystem::
@end menu
@c ==========================================================================
@node The Compiler
@node The Compiler
@
chapter
The Compiler
@
section
The Compiler
The predefined compiler used here is the one built by @i{buildroot}.
The predefined compiler used here is the one built by @i{buildroot}.
The default configuration selects this choice. If you pre-set a
The default configuration selects this choice. If you pre-set a
...
@@ -872,9 +883,9 @@ In practice, you may want to set @code{CROSS_COMPILE} when you compile
...
@@ -872,9 +883,9 @@ In practice, you may want to set @code{CROSS_COMPILE} when you compile
the boot loader and kernel by themselves, and avoid it when compiling
the boot loader and kernel by themselves, and avoid it when compiling
the complete package.
the complete package.
@c
##########################################################################
@c
==========================================================================
@node Buildroot
@node Buildroot
@
chapter
Buildroot
@
section
Buildroot
The distribution being used here is @i{buildroot}. It is the first
The distribution being used here is @i{buildroot}. It is the first
step being built, because it creates the cross-compiler it will use. This
step being built, because it creates the cross-compiler it will use. This
...
@@ -901,9 +912,9 @@ your configuration file of choice. The file must be a copy of the
...
@@ -901,9 +912,9 @@ your configuration file of choice. The file must be a copy of the
Note that if the variable is not pointing to a regular file it is
Note that if the variable is not pointing to a regular file it is
ignored with a simple warning -- rather than stopping the build procedure.
ignored with a simple warning -- rather than stopping the build procedure.
@c
##########################################################################
@c
==========================================================================
@node The IPL
@node The IPL
@
chapter
The IPL
@
section
The IPL
The version of @i{at91bootstrap} being used in the switch as
The version of @i{at91bootstrap} being used in the switch as
@i{Initial Program Loader} is version 3.3, download from @code{timesys.com/}
@i{Initial Program Loader} is version 3.3, download from @code{timesys.com/}
...
@@ -939,9 +950,9 @@ the configuration program which has no actual effects and can be ignored.
...
@@ -939,9 +950,9 @@ the configuration program which has no actual effects and can be ignored.
Maybe we will switch to another version in the future that doesn'
t
show
Maybe we will switch to another version in the future that doesn'
t
show
the
bug
,
or
to
the
newer
@
i
{
barebox
}
that
obsoletes
@
i
{
at91boot
}.
the
bug
,
or
to
the
newer
@
i
{
barebox
}
that
obsoletes
@
i
{
at91boot
}.
@
c
##########################################################################
@
c
==========================================================================
@
node
The
Boot
Loader
@
node
The
Boot
Loader
@
chapter
The
Boot
Loader
@
section
The
Boot
Loader
The
switch
uses
@
i
{
barebox
}
as
a
boot
loader
.
We
are
running
version
The
switch
uses
@
i
{
barebox
}
as
a
boot
loader
.
We
are
running
version
2012
-
05
,
with
a
few
local
patches
and
the
chosen
configuration
2012
-
05
,
with
a
few
local
patches
and
the
chosen
configuration
...
@@ -992,9 +1003,9 @@ The ELF version is copied to @i{images} as well, as
...
@@ -992,9 +1003,9 @@ The ELF version is copied to @i{images} as well, as
@
code
{
images
/
barebox
};
this
file
includes
the
symbol
table
and
may
(
or
may
not
)
be
@
code
{
images
/
barebox
};
this
file
includes
the
symbol
table
and
may
(
or
may
not
)
be
useful
.
useful
.
@
c
##########################################################################
@
c
==========================================================================
@
node
The
Linux
Kernel
@
node
The
Linux
Kernel
@
chapter
The
Linux
Kernel
@
section
The
Linux
Kernel
The
kernel
is
currently
version
2.6.39
,
compiled
from
an
uncompressed
The
kernel
is
currently
version
2.6.39
,
compiled
from
an
uncompressed
tar
file
(
so
not
within
a
@
i
{
git
}
repository
).
The
upstream
tar
file
(
so
not
within
a
@
i
{
git
}
repository
).
The
upstream
...
@@ -1030,9 +1041,9 @@ The build scripts copy both @i{zImage} and all compiled kernel
...
@@ -1030,9 +1041,9 @@ The build scripts copy both @i{zImage} and all compiled kernel
modules
to
the
@
i
{
images
/}
directory
of
the
build
place
.
This
currently
modules
to
the
@
i
{
images
/}
directory
of
the
build
place
.
This
currently
includes
modules
includes
modules
@
c
##########################################################################
@
c
==========================================================================
@
node
Kernel
Modules
@
node
Kernel
Modules
@
chapter
Kernel
Modules
@
section
Kernel
Modules
In
the
next
step
the
scripts
compile
modules
that
are
part
of
this
In
the
next
step
the
scripts
compile
modules
that
are
part
of
this
package
.
The
step
depends
on
the
kernel
being
available
in
the
package
.
The
step
depends
on
the
kernel
being
available
in
the
...
@@ -1053,9 +1064,9 @@ has it been tested.
...
@@ -1053,9 +1064,9 @@ has it been tested.
@
b
{
Warning
}:
I
plan
to
soon
rename
all
modules
to
have
a
hyphen
@
b
{
Warning
}:
I
plan
to
soon
rename
all
modules
to
have
a
hyphen
instead
of
an
underscore
in
the
name
.
instead
of
an
underscore
in
the
name
.
@
c
##########################################################################
@
c
==========================================================================
@
node
Initial
tools
for
the
FPGA
@
node
Initial
tools
for
the
FPGA
@
chapter
Initial
tools
for
the
FPGA
@
section
Initial
tools
for
the
FPGA
In
order
to
make
some
tests
with
your
board
and
be
able
to
develop
In
order
to
make
some
tests
with
your
board
and
be
able
to
develop
further
,
the
directory
@
i
{
tools
}
includes
the
following
programs
:
further
,
the
directory
@
i
{
tools
}
includes
the
following
programs
:
...
@@ -1096,9 +1107,9 @@ directory (@code{LINUX=}) and the cross-compiler to use
...
@@ -1096,9 +1107,9 @@ directory (@code{LINUX=}) and the cross-compiler to use
integrated
in
the
build
scripts
.
integrated
in
the
build
scripts
.
@
c
FIXME
:
tools
@
c
FIXME
:
tools
@
c
##########################################################################
@
c
==========================================================================
@
node
PTPd
@
node
PTPd
@
chapter
PTPd
@
section
PTPd
@
c
FIXME
:
the
new
PTP
@
c
FIXME
:
the
new
PTP
@
b
{
Warning
}:
This
part
of
the
document
,
about
PTP
,
needs
to
be
updated
,
what
@
b
{
Warning
}:
This
part
of
the
document
,
about
PTP
,
needs
to
be
updated
,
what
...
@@ -1130,9 +1141,9 @@ confident newer versions will be at least as good as the current one
...
@@ -1130,9 +1141,9 @@ confident newer versions will be at least as good as the current one
(
for
example
,
the
current
version
as
I
write
this
has
some
concerning
(
for
example
,
the
current
version
as
I
write
this
has
some
concerning
warning
messages
).
warning
messages
).
@
c
##########################################################################
@
c
==========================================================================
@
node
User
Space
Applications
@
node
User
Space
Applications
@
chapter
User
Space
Applications
@
section
User
Space
Applications
@
c
FIXME
:
user
space
apps
@
c
FIXME
:
user
space
apps
@
b
{
Warning
}:
This
part
of
the
document
,
about
user
space
,
needs
to
be
@
b
{
Warning
}:
This
part
of
the
document
,
about
user
space
,
needs
to
be
...
@@ -1156,9 +1167,9 @@ The build of user space is concerned about the following steps:
...
@@ -1156,9 +1167,9 @@ The build of user space is concerned about the following steps:
@
end
table
@
end
table
@
c
##########################################################################
@
c
==========================================================================
@
node
VHDL
Binaries
@
node
VHDL
Binaries
@
chapter
VHDL
and
LM32
Binaries
@
section
VHDL
and
LM32
Binaries
The
binaries
are
currently
missing
from
the
filesystem
-
making
procedures
.
The
binaries
are
currently
missing
from
the
filesystem
-
making
procedures
.
You
will
need
to
get
the
most
recent
binaries
and
copy
them
in
the
filesystem
You
will
need
to
get
the
most
recent
binaries
and
copy
them
in
the
filesystem
...
@@ -1168,9 +1179,9 @@ switches are distributed for production.
...
@@ -1168,9 +1179,9 @@ switches are distributed for production.
@
c
FIXME
:
the
binaries
.
@
c
FIXME
:
the
binaries
.
@
c
##########################################################################
@
c
==========================================================================
@
node
The
Complete
Filesystem
@
node
The
Complete
Filesystem
@
chapter
The
Complete
Filesystem
@
section
The
Complete
Filesystem
The
final
step
in
compiling
the
filesystem
is
making
the
CPIO
archive
The
final
step
in
compiling
the
filesystem
is
making
the
CPIO
archive
with
the
overall
filesystem
contents
.
This
archive
can
be
used
as
an
with
the
overall
filesystem
contents
.
This
archive
can
be
used
as
an
...
...
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