Hi,
We have designed board with ARM (66AK2H14) processor and 512MB NAND FLASH
Built the u-boot using commands,
make clean
make k2hk_evm_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
make u-boot-nand.gph ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
And in bare board, i was able to load the u-boot for first time and it booted up properly,
U-Boot 2015.07-00080-g68db1b0-dirty (Mar 04 2016 - 10:55:28 +0530) CPU: 66AK2Hx SR2.0 I2C: ready DRAM: DDR3 PLL (PLL2) Setup ... DDR3 PLL Setup complete, DDR3A clock now running at 400MHz. DDR3A initialization c U-Boot 2015.07-00080-g68db1b0-dirty (Mar 04 2016 - 10:55:28 +0530) CPU: 66AK2Hx SR2.0 I2C: ready DRAM: DDR3 PLL (PLL2) Setup ... DDR3 PLL Setup complete, DDR3A clock now running at 400MHz. DDR3A initialization complete 2 GiB NAND: *maf_id 2c *dev_id ac512 MiB *** Warning - bad CRC, using default environment Net: link_type_name sgmii0_link_type Mdio clkdiv 188 3a980000 2625a0 @@@ address 15 reg 2 bus->priv feeff010 @@@ address 15 reg 3 bus->priv feeff010 @@@ address 15 reg 0 bus->priv feeff010 address 15 reg 0 bus->priv feeff010 @@@ address 15 reg 0 bus->priv feeff010 @@@ address 15 reg 1 bus->priv feeff010 @@@ address 15 reg 4 bus->priv feeff010 @@@ address 15 reg 0 bus->priv feeff010 @@@ address 15 reg 0 bus->priv feeff010 address 15 reg 0 bus->priv feeff010K2HK_EMAC Warning: K2HK_EMAC using MAC address from net device Hit any key to stop autoboot: 1 0
After customizing the u-boot, i followed up nand erase procedure and flashed u-boot in in NAND,
nand erase.part bootloader; nand write ${addr_uboot} bootloader ${filesize}
When i restarted the board, i could see only old uboot and not the updated uboot.. Verified with the time and date .
To cross check this, i loaded the uboot through CCS and executed,
I could get the updated u-boot prompt,
CPU: 66AK2Hx SR2.0 I2C: ready DRAM: DDR3 PLL (PLL2) Setup ... DDR3 PLL Setup complete, DDR3A clock now running at 400MHz. DDR3A initialization complete 1 GiB NAND: 512 MiB *** Warning - bad CRC, using default environment Net: link_type_name sgmii0_link_typeK2HK_EMAC Warning: K2HK_EMAC using MAC address from net device Hit any key to stop autoboot: 1 0
But when the same uboot when flashed in NAND ,it boots with old uboot image and not with updated uboot.
I suspect, uboot is booting from location which is not erased.
How to check it.
Please guide to solve this issue.