[U-Boot] DA850evm SPI Flash Partitions between Linux and U-boot are Inconsistent

Adam Ford aford173 at gmail.com
Sun Aug 27 15:01:12 UTC 2017


I was trying to enable MTD Partitions to make loading the Kernel and
FS easier from within U-Boot

The da850evm spi-flash partitions in Linux show

"U-Boot-SPL" @ offset 0, size 64K
"U-Boot"; @ offset 0x00010000, size 512K
"U-Boot-Env"; @ offset 0x00090000

However U-Boot shows the following:

CONFIG_SYS_SPI_U_BOOT_OFFS 0x8000 which would make the SPL partition 32K.
CONFIG_SYS_SPI_U_BOOT_SIZE      0x40000 and the size of U-boot 256K
instead of 512k.

CONFIG_ENV_SIZE                 (64 << 10)
CONFIG_ENV_OFFSET           (512 << 10) which is 0x80000 instead of
Linux's 0x90000

It seems to me like the U-Boot and Linux should try and synchronize
their partitions tables.

For people who want to burn Linux into the SPI flash it seems there
there should be some consistency.  I tried making the U-boot settings
match the Linux ones, but it seems to hang between SPL and U-Boot, so
I think the U-Boot offset in Linux might need to match U-Boot.  Can
you guys make some recomendations as to which is correct?

adam


More information about the U-Boot mailing list