Commit 7c9f0d35 authored by Alessandro Rubini's avatar Alessandro Rubini

sdb hardware information: the data

The directory hwinfo-sdb/ includes the "source", trivially written by
hand. The "hwinfo" file is just a bunch of 0xff bytes. The final
file will be a tagged format.

binaries/sdb-for-dataflash is the one that is going to be edited
at build/install time -- in theory only by the manufacturer.
I generated it running the command

   sdbfs/userspace/gensdbfs hwinfo-sdb binaries/sdb-for-dataflash

from within a checkout of fpga-config-space (another ohwr project, the
SDB home).

The default mac addresses match what we used so far: 02:34:56:78:9A:BC
and 02:34:56:78:9A:00 for the WR ports.  The file names ("eth0.ethaddr")
are there so to use a generic setting approach in barebox.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 5e85e73f
# We have 5 files only: eth0.ethaddr, wr0.ethaddr, manufacturer, scb_version
# and hw_info.
# They are at static addresses so to be able to change them from a script
# without re-running "gensdbfs", even if currently we change in-place with
# sed by forcing the size of the file to remain unchanged.
# The directory, at offset 0, takes 64 * (5 + 1) = 0x140: reserve
# 0x200 to be safe
position = 0
position = 0x200
position = 0x220
position = 0x240
position = 0x260
# this is a tagged text file, using a whole dataflash page, at a page offset
# the offset and size amount to one page of the old device, 4 pages of the new.
# in the end, we reserve 0x840 bytes for this hwinfo.
position = 0x420
maxsize = 0x420
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment