Hello there
Has there been any progress on the utility for booting from SPI memory? This was asked about on the forum around the middle of last year (1009) but I haven't seen anything since then.
As an alternative, I have been trying to understand what Constantin's SD flash utility suite does - reading in conjunction with the description of boot modes in the DM365 SoC datasheet. I'm new to this system do forgive me if my understanding is incorrect.
As a result of running the SD flash program, I have an SD card which has two partitions - a FAT32 partition and a linux partition. There is a proper filesystem on the FAT32 partition, with a single file 'DM3xx.dat'. I think there is no filesystem on the Linux partition.
This SDcard successfully boots to u-boot etc. What I don't understand is how exactly it gets there.
- The DM365 starts off in a boot mode and determines which memory 'subsystem' to look for the UBL describer
- it starts at memory 0 within this subsystem and searches for the UBL describer
- if the UBL describer is found, its contents are used to load the UBL ad jump to the starting address...
- etc.
What puzzles me is the early stage of this process. I would expect the UBL describer to be at or near address 0 of the D card, ie. the Master Boot Record (MBR). But If I look there (with dd) I only see bytes with value 0x00, followed by by the partition table.
I actually only see the UBL at offset 0x1000, which corresponds to the 'seek=8' parameter used by dd in part of the process. Is it the case that the RBL looks for (and fails to find) the UBL describer from 0x0000 to 0x0ffff, skipping over the partition table (and rest of the first 'cylinder'???), until it finds it at 0x1000? Why not put it in the MBR?
Also, what is contained in DM3XX.dat? Is it the totality of the UBL (itself), u-boot, and the kernel. This seems to be what dm3xx_sd.config says.
I am wondering what needs to be done in order to boot from SPI. It seems to me the issues are:
- u-boot as supplied by Ti does not have SPI support - ait will have to be re-built with this
- I might have to use part of the SD flash utilities to create an image similar to dm3xx.dat
- I would then have to create a UBL describer with the correct information, and burn this, together with 'my' DM3xx.dat', to the SPI memory. Note that I don't (yet) need a filesystem on my SPI memory.
Thanks for any comments or pointers
Jon N