U-Boot image data size mismatch
Closed this issue · 2 comments
Hello,
I have an issue when testing image with sunxi-fel uboot
option. Here is output for both 8 and 16Mb images.
sudo ./sunxi-fel -v uboot orange_pi_zero_miZy-music_box-mpd-net-SPI-beta_test.SPI.8M.bin
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
Reading the MMU translation table from 0x00008000
Disabling I-cache, MMU and branch prediction... done.
=> Executing the SPL... done.
Setting write-combine mapping for DRAM.
Setting cached mapping for BROM.
Writing back the MMU translation table.
Enabling I-cache, MMU and branch prediction... done.
U-Boot image data size mismatch: expected 8355776, got 431447
sudo ./sunxi-fel -v uboot orange_pi_zero_miZy-music_box-mpd-net-SPI-beta_test.SPI.16M.bin
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
MMU is not enabled by BROM
Generating the new MMU translation table at 0x00008000
=> Executing the SPL... done.
Setting write-combine mapping for DRAM.
Setting cached mapping for BROM.
Writing back the MMU translation table.
Enabling I-cache, MMU and branch prediction... done.
U-Boot image data size mismatch: expected 16744384, got 431447
u-boot mainline v2017.09 works with this command.
hi
sunxi-fel -v uboot UBOOT_FILE
require uboot only
but orange_pi_zero_miZy-music_box-mpd-net-SPI-beta_test.SPI.16M.bin its raw spi image its not uboot
u can get uboot there https://github.com/hyphop/miZy-uboot/releases
or try trunkate image by 431447 bytes as writed
PS:
if u need load full system via fel u can write more complex script like this
./tools/sunxi-fel -p -v uboot $uboot
write ${scriptaddr} $script
write ${splash_addr} $splash
write ${ramdisk_addr_r} $initrd
write ${kernel_addr_r} $kernel
write ${fdt_addr_r} $fdt \
Hi, thanks for the tips. I will try those and report back.