[U-Boot] boot.bin on SD Card for SAMA5D3 Xplained

Daniel Evans photonthunder at gmail.com
Wed Dec 5 18:08:38 UTC 2018


Thanks,

That put me on the right path.  For some reason the nandheader is being added to the top of the boot.bin for the mmc/SD build.

$ ls -l boot.bin
-rw-r--r-- 1 nelson nelson 62686 Dec  5 12:25 boot.bin
$ hexdump boot.bin | head
0000000 2405 c090 2405 c090 2405 c090 2405 c090
*
00000d0 000f ea00 f014 e59f f014 e59f f014 e59f
00000e0 f014 e59f f40e 0000 f014 e59f f014 e59f
00000f0 0040 0030 0040 0030 0040 0030 0040 0030
0000100 0040 0030 0040 0030 0040 0030 beef dead
0000110 fffe eaff 002a ea00 0000 e10f 101f e200
0000120 001a e331 001f 13c0 0013 1380 00c0 e380
0000130 f000 e129 0f10 ee11 0a02 e3c0 0f10 ee01
0000140 0078 e59f 0f10 ee0c 0006 eb00 001a eb00

So I just removed it and then you can see the size is correct once removed (0x0000F40E):

$ dd bs=208 skip=1 if=boot.bin of=bootShort.bin
$ hexdump bootShort.bin | head
0000000 000f ea00 f014 e59f f014 e59f f014 e59f
0000010 f014 e59f f40e 0000 f014 e59f f014 e59f
0000020 0040 0030 0040 0030 0040 0030 0040 0030
0000030 0040 0030 0040 0030 0040 0030 beef dead
0000040 fffe eaff 002a ea00 0000 e10f 101f e200
0000050 001a e331 001f 13c0 0013 1380 00c0 e380
0000060 f000 e129 0f10 ee11 0a02 e3c0 0f10 ee01
0000070 0078 e59f 0f10 ee0c 0006 eb00 001a eb00
0000080 01b6 eb00 0f15 ee07 0f9a ee07 0f95 ee07
0000090 ff1e e12f ffeb eaff 0000 e3a0 0f17 ee08
$ ls -l bootShort.bin
-rw-r--r-- 1 nelson nelson 62478 Dec  5 12:54 bootShort.bin

Any insight into why that is being added at the beginning?  Is there a configuration that needs tweaking or to be removed?

Dan

> On Dec 5, 2018, at 7:36 AM, <Eugen.Hristev at microchip.com> <Eugen.Hristev at microchip.com> wrote:
> 
> 
> 
> On 05.12.2018 02:15, Daniel Evans wrote:
>> Trying to get uboot SPL boot.bin to run on an SD card for the sama5d3 xplained board.  All I get is RomBOOT and no other messages.  I have tried throwing in a couple test pins to toggle in board_early_init_f but still not getting any debug.  I can get at91bootstrap to produce a boot.bin that works on the sama5d3 xplained so I am assuming I don’t have a bad board.  My boot partition is FAT16.  To compile I just run the following on Debian Buster :
>> 
>> make mrproper
>> make sama5d3_xplained_mmc_defconfig
>> make
>> 
>> Cross Compiler is gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf
>> 
>> When finished compiling I just copy the boot.bin to my BOOT partition.
>> 
>> Has to be something obvious that I am missing.  Any insight is appreciated…
> 
> Hello,
> 
> Check the datasheet for sama5d3 SoC section 11.4.3. - Valid code 
> detection (my datasheet is dated 2 Feb 2016 if it helps)
> 
> Basically the vector 6 needs to have hardcoded the binary size. Are you 
> doing that ? Otherwise the RomBOOT code will consider your binary as faulty.
> 
> PS. make sure endianess is right, use a good hexeditor...
> 
> Hope this helps,
> Eugen
> 
>> 
>> Dan
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> https://lists.denx.de/listinfo/u-boot
>> 



More information about the U-Boot mailing list