Hi Champs
There'e still issues regarding boot failure with custom board.
As they followed Uboot and Linux Port Guide, They could boot up to Linux Login prompt with latest SDK 7.3.0.5.
However they found an issue regarding NAND boot. They're not able to boot up without SD card even in NAND boot mode.
They tried to find the same issue on E2E post. and applied TI suggestion related with CONFIG_ENV_IS_IN_NAND.
After they enabled the CONFIG_ENV_IS_IN_NAND flag, The 'env ' is well saved on NAND succesfully, But the NAND booting is not succedded yet.
They believed AM437x ROM bootloader unable to find their NAND device connected.
They would like to know the details about NAND booting along with CPU as well as SPL.
When they tried to enable CONFIG_ENV_IS_IN_NAND definition, the CONFIG_ENV_OFFSET was also defined.
If the provided patch is applied, the redefinition error is occurred.
The following is the NAND partition info. The NAND booting is still problem. But run nandboot command works fine in u-boot with SD card.
0x000000000000-0x000000040000 : "NAND.SPL"
0x000000040000-0x000000080000 : "NAND.SPL.backup1"
0x000000080000-0x0000000c0000 : "NAND.SPL.backup2"
0x0000000c0000-0x000000100000 : "NAND.SPL.backup3"
0x000000100000-0x000000180000 : "NAND.u-boot-spl-os"
0x000000180000-0x000000280000 : "NAND.u-boot"
0x000000280000-0x0000002c0000 : "NAND.u-boot-env"
0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1"
0x000000300000-0x000000a00000 : "NAND.kernel"
0x000000a00000-0x000008000000 : "NAND.file-system"
Caould you please check to figure why NAND booting does not work?
The previoulst referred comments are below.
Kemal R. Shakir over 3 years ago in reply to user5926475
TI__Guru 55345 points
SPL is now trying to load the uboot.env from SD card, that is why it stops at that point. To avoid this you need to define CONFIG_ENV_IS_IN_NAND in U-Boot and load and save the U-Boot environment to NAND or disable the SPL environment loading from menuconfig as shown in this post.
Hello Eddie,
Please, disable these two options in your U-Boot's menuconfig.
SPL / TPL -> [ ] Support an environment
[ ] Support networking
Rebuild, reflash and your board will work properly.
Best regards,
Kemal
Kemal R. Shakir over 3 years ago in reply to user5926475
TI__Guru 55345 points
Yes, you will, as your board doesn't contain an EEPROM to identify itself and has a different NAND chip. Here in this patch I've combined the two patches and the changes you made to keep the U-Boot environments in NAND.
cd <Processor SDK>/board-support/u-boot-<version>/
git apply 0001-AM437x-Custom-board-NAND-and-Board-name-settings.patch
Regards,
Jack