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
44426475
Commit
44426475
authored
Sep 30, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: fix sdb barebox commands in developer's manual
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
43eb9133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
wrs-developer-manual.in
doc/wrs-developer-manual.in
+7
-6
No files found.
doc/wrs-developer-manual.in
View file @
44426475
...
...
@@ -1648,11 +1648,12 @@ You can access the hardware information from @i{barebox} using the new
@
i
{
sdbinfo
},
@
i
{
sdbread
}
and
@
i
{
sdbset
}
commands
.
The
following
example
shows
an
example
session
,
using
the
file
built
in
@
ref
{
Creating
the
Hwinfo
File
}
and
featuring
a
simplified
@
i
{
barebox
}
prompt
of
``@
t
{
bb
>
}
''
:
prompt
of
``@
t
{
bb
>
}
''
.
Please
note
that
most
of
this
is
already
in
the
boot
scripts
,
as
we
now
extract
the
mac
addresses
from
sdb
.
@
smallexample
bb
>
addpart
/
dev
/
dataflash0
0x840
@@
0x94800
(
hwinfo
)
bb
>
sdb
info
/
dev
/
dataflash0
.
hwinfo
bb
>
sdb
ls
/
dev
/
dataflash0
.
hwinfo
46696
c6544617461
:
2e202020
@
00000000
-
0000083f
.
46696
c6544617461
:
7363625f
@
00000240
-
00000243
scb_version
46696
c6544617461
:
7772302
e
@
00000220
-
00000231
wr0
.
ethaddr
...
...
@@ -1660,16 +1661,16 @@ prompt of ``@t{bb> }'':
46696
c6544617461
:
68775f69
@
00000420
-
0000083f
hw_info
46696
c6544617461
:
65746830
@
00000200
-
00000211
eth0
.
ethaddr
bb
>
sdb
read
/
dev
/
dataflash0
.
hwinfo
manufacturer
bb
>
sdb
cat
/
dev
/
dataflash0
.
hwinfo
manufacturer
Seven
Solutions
bb
>
sdb
read
/
dev
/
dataflash0
.
hwinfo
hw_info
bb
>
sdb
cat
/
dev
/
dataflash0
.
hwinfo
hw_info
fpga
:
LX240T
scb_serial
:
12345
bb
>
sdbset
/
dev
/
dataflash0
.
hwinfo
wraddr
wr0
.
ethaddr
bb
>
sdb
set
/
dev
/
dataflash0
.
hwinfo
wraddr
wr0
.
ethaddr
bb
>
echo
$
wraddr
22
:
33
:
44
:
55
:
66
:
77
bb
>
sdb
read
/
dev
/
dataflash0
.
hwinfo
eth0
.
ethaddr
bb
>
sdb
set
/
dev
/
dataflash0
.
hwinfo
eth0
.
ethaddr
00
:
02
:
04
:
06
:
08
:
0
a
@
end
smallexample
...
...
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