Hi, all,
[1] I am working with AM335x. It boots from sd card properly and runs Linux OS fine.
[2] As a next step I want to burn VxWorks bootrom into NAND flash (as it is described in [ti_am335x_evm/target.ref] of Wind River Systems, Inc) which will run then automatically. I try to perform following set of U-Boot instructions: tftp 0x87C00000 bootrom.bin nand erase 0x0 $(ROM_SIZE) nandecc hw 2 nand write.i 0x87C00000 0x0 $(ROM_SIZE)
[3] However, "nand erase" command says:
>>> U-Boot# nand erase 0x0 0x60000>>> no devices available
Also I see that at the "U-Boot SPL " starting there is a message:<<No NAND device found!!!>> (see Appendix 1)
[4]The switches(SW3 ,SW8) are as on Appendix 2. NAND related env vars are in Appendix 3.
[5]Whether anybody knows what can be a reason why the NAND is not found?
Thanks,Yan
=======================================================Appendix 1:
CCCCCCCCU-Boot SPL 2011.09 (Apr 08 2012 - 18:29:14)Texas Instruments Revision detection unimplementedOMAP SD/MMC: 0reading u-boot.imgreading u-boot.img
U-Boot 2011.09 (Apr 08 2012 - 18:25:03)
I2C: readyDRAM: 256 MiBWARNING: Caches not enabledFound a daughter card connectedNAND: HW ECC Hamming Code selectedNo NAND device found!!!0 MiBMMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1*** Warning - readenv() failed, using default environment
Net: cpswHit any key to stop autoboot: 0
=======================================================Appendix 2:
Switch SW3 Function (SYSBOOT[0,7], Boot mode select) (on - 1, off - 0)----------------------------------------------------------------------- BOOT MODE | Setting [1 2 3 4 5 6 7------------------- -|------ ---|----------------------------------------nand Flash boot | | 0 1 0 0 1 0 0
-----------------------------------------------------------------------Switch SW8 Function (profile selection)(on - 1, off - 0, don't care - x)-------------------------------------------- profile selection | Setting [1 2 3 4]--------------------|--------- ------------- profile 0 | 0 0 0 0--------------------------------------------
=======================================================Appendix 3:
nand_args=run bootargs_defaults;setenv bootargs ${bootargs} root=${nand_root} noinitrd rootfstype=${nand_root_fs_type} ip=${ip_method}nand_boot=echo Booting from nand ...; run nand_args; nandecc hw 2; nand read.i ${kloadaddr} ${nand_src_addr} ${nand_img_siz}; bootm ${kloadaddr}nand_img_siz=0x500000nand_root=ubi0:rootfs rw ubi.mtd=7,2048nand_root_fs_type=ubifs rootwait=1nand_src_addr=0x280000
Hi,
have you tried with other boot settings ?
when booting from SD card : what is the SPL/U-boot printout ?
can you please try with below dip switch settings (please note the ON/OFF meaning here : http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User's_Guide#Boot_Switch_Settings)
Switch SW3 Function (SYSBOOT[0,7], Boot mode select) (on - 1, off - 0) ----------------------------------------------------------------------- BOOT MODE | Setting [1 2 3 4 5 6 7 8 ------------------- -|------ ---|---------------------------------------- mmc Flash boot | | 0 0 0 1 1 0 0 0
or
-----------------------------------------------------------------------BOOT MODE | Setting [1 2 3 4 5 6 7 8------------------- -|------ ---|----------------------------------------mmc Flash boot | | 1 1 1 0 1 0 0 0
- are you using default SPL/U-boot binaries or have you recompiled them ?
- as long as u-boot doesn't find the NAND , whatever the arguments in use then will be useless
Best Regards
Nicolas
Hi, Nicolas,
Thank you your responce.
- I think, I tried all the 2^8 (=128) combinations :-); the only working is: SW 3 = [1 0 0 0 0 0 0 0], SW4 = [ 0 0 0 0 0 0 1 0] (for boot from SD)
- I used default SPL binaries
- I also think that there is a hardware problem with the NAND or somewhere around it.
Thank you again,
Yan