U-Boot: AM335x Booting with environment in NAND: ECC cause failures...
Trying to boot from NAND on an AM335x-EVM with environment in NAND
Have cloned "git://arago-project.org/git/projects/u-boot-am33x.git" and done some minor changes (see below)
All documentation I've read tell me to use "nandecc hw 2" before programming the NAND.
If I program the kernel and rootfs into the nand by
nandecc hw 2
nand.write ...
and then save the environment, it looks like the environment is saved with the same ECC algorithm.
This is no good, since U-Boot will always read the environment at boot, using the incompatible Hamming Mode, so the next reboot will fail.
This looks like a bug to me.
Methinks there should be a configuration item telling which ECC algorithm to use for the environment, and this is used when reading the environment at boot,
and when using "saveenv".
Any other read/writes should use the user defined algorithm
Right now, you need to remember to set the ECC to Hamming before every saveenv
BR
Ulf Samuelsson
-----------------------------------------------------------------
boards.cfg +0 -0
@@ -168,10 +168,11 @@ omap3_pandora arm armv7
pandora -
igep0020 arm armv7 igep0020
isee omap3
igep0030 arm armv7 igep0030
isee omap3
am335x_evm arm armv7 am335x
ti ti81xx
-am335x_evm_restore_flash arm armv7 am335x
ti ti81xx am335x_evm:RESTORE_FLASH
-am335x_evm_spiboot arm armv7 am335x
ti ti81xx am335x_evm:SPI_BOOT
-am335x_evm_uart_usbspl arm armv7 am335x
ti ti81xx am335x_evm:UART_THEN_USB_SPL
-am335x_evm_restore_flash_usbspl arm armv7 am335x
ti ti81xx am335x_evm:RESTORE_FLASH,UART_THEN_USB_SPL
+am335x_evm_nandflash arm armv7 am335x
ti ti81xx am335x_evm:NAND_BOOT
+am335x_evm_restore_flash arm armv7 am335x
ti ti81xx am335x_evm:RESTORE_FLASH
+am335x_evm_spiboot arm armv7 am335x
ti ti81xx am335x_evm:SPI_BOOT
+am335x_evm_uart_usbspl arm armv7 am335x
ti ti81xx am335x_evm:UART_THEN_USB_SPL
+am335x_evm_restore_flash_usbspl arm armv7 am335x
ti ti81xx am335x_evm:RESTORE_FLASH,UART_THEN_USB_SPL
am3517_crane arm armv7 am3517crane
ti omap3
am3517_evm arm armv7 am3517evm
logicpd omap3
am3517_evm_norflash arm armv7 am3517evm
logicpd omap3 am3517_evm:SYS_HAS_NORFLASH
include/configs/am335x_evm.h +45 -20
106 lines not on this page · raw message
Quoted 4 lines · Ulf Samuelsson
Trying to boot from NAND on an AM335x-EVM with environment in NAND
Have cloned "
git://arago-project.org/git/projects/u-boot-am33x.git" and done some minor changes (see below)
This is not the right list for that tree.
[snip]
Quoted 1 line
This looks like a bug to me.
Yes. The series that adds NAND support for this SoC to mainline fixes the problem as well (a faulty nand read in the SPL case).
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121102/efd61851/attachment.pgp>