A couple of questions about the BBB EEPROM

691 views
Skip to first unread message

Marcos Scriven

unread,
Aug 17, 2013, 5:31:11 AM8/17/13
to beagl...@googlegroups.com
Just out of curiosity, wondering:

1) How are the EEPROMs for the BBB programmed in production? How are per-device things like serial numbers allocated? Curious also how that's matched up to the sticker with the serial number?

2) If I wanted to mess around with the EEPROM, what's the best way to keep a backup (particularly with respect to things like the serial number)?


Gerald Coley

unread,
Aug 17, 2013, 9:34:40 AM8/17/13
to beagl...@googlegroups.com
1) We use a terminal program that runs a script that does i2C write commands in UBoot.
2) Use a terminal program that runs a script that does i2C reads and displays them to the screen using commands in UBoot. The copy them to a text file for use later in the scripts created for #1.

Gerald


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Marcos Scriven

unread,
Aug 18, 2013, 5:38:44 AM8/18/13
to beagl...@googlegroups.com
Thanks Gerald

I connected up a Bluetooth serial module and played with the i2c commands in uboot.

Sorry if this is a dumb q, but when I try to read all I see is a load of 'ff's:

U-Boot# i2c md 0x50 0x0
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................


So far as I know 0x50 is the right address for the EEPROM, but looking at the BBB SRM I believe it should actually start with: 0xAA, 0x55, 0x33, 0xEE

In Linux land I confirmed this:

beaglebone:/sys/class/i2c-dev/i2c-0/device/0-0050# cat eeprom  | xxd | head
0000000: aa55 33ee 4133 3335 424e 4c54 3041 3543  .U3.A335BNLT0A5C

I rather suspect I'm doing something dumb, so apologies in advance!

Marcos Scriven

unread,
Aug 18, 2013, 6:10:54 AM8/18/13
to beagl...@googlegroups.com
Just to add, while i2c reads don't seem to work in uboot for the EEPROM, it does seem to work for the power control:

-Boot# i2c md 24 0
0000: e2 3e 00 01 b1 80 b2 01 00 00 84 00 7f 0c 18 02    .>..............


Gerald Coley

unread,
Aug 18, 2013, 10:08:44 AM8/18/13
to beagl...@googlegroups.com
As I recall, there is indeed an issue with I2C working on all buses under the UBoot mode.

Gerald



--

Marcos Scriven

unread,
Aug 18, 2013, 11:07:24 AM8/18/13
to beagl...@googlegroups.com


On Sunday, August 18, 2013 3:08:44 PM UTC+1, Gerald wrote:
As I recall, there is indeed an issue with I2C working on all buses under the UBoot mode.


Just wondering then how the terminal script you mentioned you use in production works? Is it just a uboot version issue?

Gerald Coley

unread,
Aug 18, 2013, 11:25:46 AM8/18/13
to beagl...@googlegroups.com
They use the BeagleBone White to program the capes. It uses an older UBoot that works like it is supposed to. 

Gerald



--

Marcos Scriven

unread,
Aug 19, 2013, 4:15:09 AM8/19/13
to beagl...@googlegroups.com
In case anyone comes looking - I found the equivalent question on the TI forums too:


The most recent response at time of writing is:

If you're on 2.1 silicon, why not boot over USB and flash that way. Will be way faster than JTAG and you can run from any platform (mac, pc, linux)

Gerald Coley

unread,
Aug 19, 2013, 8:13:42 AM8/19/13
to beagl...@googlegroups.com
Because the SW for doing this is not yet completed. .Oh, and we are on 2.0 silicon.

Gerald



--

Marcos Scriven

unread,
Aug 19, 2013, 12:39:40 PM8/19/13
to beagl...@googlegroups.com
Hmmm. I realise the 'A' in the chip name XAM3359AZCZ100 means rev 2.0 - however looking at the errata here : http://www.ti.com/lit/er/sprz360e/sprz360e.pdf

Page 24, Advisory 1.0.20: 

The USB boot ROM code is overlapping data in the TXFIFO and RXFIFO which leads to
data corruption. This data corruption causes a data abort and prevents USB boot from
working.


That was the only thing I could see mentioning anything to do with issues booting from USB, but the document states that only affects rev 1.0. Is that not correct?

Gerald Coley

unread,
Aug 19, 2013, 1:47:48 PM8/19/13
to beagl...@googlegroups.com
I know that the SW that supports the USB boot is still being worked on. We are hoping to be able to boot over USB and then flash the eMMC at some point. But that is a ways down the road.


Gerald


Marcos Scriven

unread,
Aug 20, 2013, 5:38:15 AM8/20/13
to beagl...@googlegroups.com
Initially, I assumed when you said 'SW that supports USB boot' you must have meant 'software' on the AM335x itself - so I went looking for the source for the Sitara bootloader ROM (which as I understand it is the very 1st bootloader stage, to load the U-Boot MLO into memory). But then I read that actually the ROM is just masked out (i.e. implemented in discrete logic, not a writeable ROM of some sort).

So I was confused until I finally realised (I think) that USB boot in this case doesn't mean booting from a USB drive (as it does on a PC) - it means booting with a virtual ethernet  connection created with an RNDIS over a physical USB connection. Is that correct?

This means (again pls correct me if I'm wrong, I'm just learning here!) that to 'USB boot' actually you're just plugging the BBB into a computer with an RNDIS driver, and running a BOOTP server on that same computer? And thus I presume the software you're talking about is just a turn-key solution for people to use that sets this up?

Gerald Coley

unread,
Aug 20, 2013, 9:33:15 AM8/20/13
to beagl...@googlegroups.com
I meant the application on a PC that supports this feature.

Gerald



ulis...@ruiztech.com

unread,
Oct 8, 2014, 8:43:48 PM10/8/14
to beagl...@googlegroups.com
i have 5 bbb with new eeprom... can you help me with script???
thanks...

Gerald Coley

unread,
Oct 9, 2014, 12:21:46 PM10/9/14
to beagl...@googlegroups.com
And where did you get these boards without the EEPROM programmed?

Gerald


For more options, visit https://groups.google.com/d/optout.

Ulisse Ruiz

unread,
Oct 9, 2014, 1:19:27 PM10/9/14
to beagl...@googlegroups.com
I mounted this in led illumination project but i make a error with program eeprom and this result blank.
the problem is the boot.... not load null  because read eeprom and not view the original value.

Can you help me with file boot...
i buy less 40 board but this is urgently and important for my work.

Help me please.


You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/G6KU1KQ3n5M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Gerald Coley

unread,
Oct 9, 2014, 1:22:00 PM10/9/14
to beagl...@googlegroups.com
Can I assume these are Embest boards?

Gerald


For more options, visit https://groups.google.com/d/optout.

Robert Nelson

unread,
Oct 9, 2014, 1:26:39 PM10/9/14
to Beagle Board
On Thu, Oct 9, 2014 at 11:47 AM, Ulisse Ruiz <ulis...@ruiztech.com> wrote:
> I mounted this in led illumination project but i make a error with program
> eeprom and this result blank.
> the problem is the boot.... not load null because read eeprom and not view
> the original value.
>
> Can you help me with file boot...
> i buy less 40 board but this is urgently and important for my work.
>

If they are 100% clones, aka ddr3 + 1Ghz cpu:

GND TP4 and flash via this image:

https://rcn-ee.net/deb/testing/2014-10-08/lxde-4gb/BBB-blank-eMMC-flasher-debian-7.6-lxde-4gb-armhf-2014-10-08-4gb.img.xz

Regards,


--
Robert Nelson
http://www.rcn-ee.com/

Ulisse Ruiz

unread,
Oct 9, 2014, 1:28:39 PM10/9/14
to beagl...@googlegroups.com
fifty fifty
are bbb rev c 
and personal maker.

i need file for boot.
thanks

Gerald Coley

unread,
Oct 9, 2014, 1:30:46 PM10/9/14
to beagl...@googlegroups.com
Interesting.

Use Roberts instructions and do like he says..

Gerald

Ulisse Ruiz

unread,
Oct 9, 2014, 3:31:52 PM10/9/14
to beagl...@googlegroups.com
i testing this 
thanks very very very much.

Reply all
Reply to author
Forward
0 new messages