With latest Processor SDK 6.0 or 5.3:
#1. When to use MLO-am335x-evm or u-boot-spl.bin-am335x-evm?
#2. What is u-bot-spl-os and what is u-boot-env? where are those files?
#3. I want to use NAND boot, how to set UBOOT bootcmd and bootargs?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
With latest Processor SDK 6.0 or 5.3:
#1. When to use MLO-am335x-evm or u-boot-spl.bin-am335x-evm?
#2. What is u-bot-spl-os and what is u-boot-env? where are those files?
#3. I want to use NAND boot, how to set UBOOT bootcmd and bootargs?
Hello Tony,
Tony Tang said:#1. When to use MLO-am335x-evm or u-boot-spl.bin-am335x-evm?
Tony Tang said:#2. What is u-bot-spl-os and what is u-boot-env? where are those files?
Tony Tang said:#3. I want to use NAND boot, how to set UBOOT bootcmd and bootargs?
I boot from MMC uboot, tftp MLO-am335x-evm, u-boot-am335x-evm.img, zImage-am335x-evm.bin, arago-tiny-image-am335x-evm.ubi and flash to NAND according to mtdparts partitions.
Then set uboot args
=> setenv nandargs 'setenv bootargs console=${console} ${optargs} root=${nandroot} rootfstype=${nandrootfstype}'
=> setenv bootcmd run nandboot
=> saveenv
But can't saveenv, . why save to FAT? seems it try to save to MMC.
Can boot from NAND with flashed uboot, but return same error when saveenv with booting from NAND Uboot.
Hello Tony,
To save the environment in a NAND device, please build a new U-Boot image by selecting these menuconfig options.
$ cd <Processor SDK>/
$ make u-boot_clean && make u-boot
$ cd board-support/u-boot-<version>/
$ ARCH=arm make menuconfig
Disable [ ] Environment is in a FAT filesystem and enable [*] Environment in a NAND device.
Environment ---> [ ] Environment is in a FAT filesystem
Environment ---> [*] Environment in a NAND device
Exit
Exit
Do you wish to save your new configuration?
< Yes >
$ cp .config configs/am335x_evm_defconfig
$ cd ../../
$ make u-boot_clean && make u-boot
Flash the board with the newly generated MLO and u-boot.img.
Best regards,
Kemal