linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
316 stars 333 forks source link

V3S won't boot from SPI #105

Open bamkrs opened 4 years ago

bamkrs commented 4 years ago

Hi

I added a new board and u-boot boots fine from a SDCard. However, when I'm flashing the uboot-with-spl to the SPI, it won't come up and enters FEL-mode.

My config:

CONFIG_CONS_INDEX=3
CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUN8I_V3S=y
CONFIG_DRAM_CLK=360
CONFIG_DRAM_ZQ=14779
CONFIG_DEFAULT_DEVICE_TREE="sun8i-v3s-dolphinpi"
CONFIG_SPL=y
CONFIG_OF_LIBFDT_OVERLAY=y
CONFIG_SPL_SPI_FLASH_SUPPORT=y
CONFIG_SPL_SPI_SUNXI=y
CONFIG_LOGLEVEL=7

The board I'm working on was delivered with an working SPI-boot0 booting to boot1 followed by some ancient u-boot (2011.yy). Again, my spl/u-boot works perfectly fine on a SDCard. I've patched the Kconfig file to allow sunxi-spi-spl.c to be build and liked in.

I've backed up the whole SPL, boot0 and boot1 from the SPI that was shipped with the Board. When I'm running sunxi-bootinfo on it most values are empty. When trying to verify the original SPL with the checksum it fails.

My compiled SPL checksum seems to be correct.