Tool/software: Linux
Hello,
We are using AM3352 custom board and need to boot form the NAND.
I am able to write in the NAND and boot the board form NAND, but I need to set boot env every time to take images from TFTP and NFS,
I want to save boot env in to the NAND, But I am getting "*** Error - No Valid Environment Area found" while boot
/-------------------------------- Boot Log -----------------------------------------/
# CCCCCCCC
U-Boot SPL 2016.05-00312-g409aa68-dirty (May 06 2017 - 16:25:50)
Trying to boot from NAND
The Expected Linux image was not found. Please check your NAND configuration.
Trying to start u-boot now...
U-Boot 2016.05-00312-g409aa68-dirty (May 06 2017 - 16:25:50 +0530)
CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
Watchdog enabled
DRAM: 256 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
CHECK# setenv netboot 'echo Booting from network ...; setenv autoload no; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}';
CHECK# setenv netargs 'setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=10.99.8.101:${rootpath},${nfsopts} rw ip=dhcp';
CHECK# setenv bootfile zImage; setenv fdtfile am335x-prcheck.dtb;
CHECK# setenv serverip 10.99.8.101;
CHECK# setenv rootpath /opt/nfs/AM335x_BIG;
CHECK# saveenv
Saving Environment to NAND...
Erasing redundant NAND...
Attempt to erase non block-aligned data
Erasing NAND...
Attempt to erase non block-aligned data
CHECK#
/----------------------------------------------------------------------------------------------/
Please do the needful.
Regards,
-- Roank