u-boot on nadflash for at91sam9260ek
I am using the same value for the SMC registers as stated in my linux kernel board-at91sam9260ek.c. In linux I can perform nandflash read/erase/write ok. (flash_eraseall / nandwrite commands).
May I have to define the JFFS2 partitions in u-boot configuration my_board.h as I have in Linux?
Commands: *CONFIG_JFFS2_NAND_OFF*, CONFIG_JFFS2_NAND_SIZE ...?
Regards,
V?ctor
Victor,
you should check registers settings and timing into yourboard.h configuration file
Ciao
Victor Librado ha scritto:
Quoted 19 lines
Quoted 19 lines
Hello all,
I'm working with u-boot for booting in nandflash with the evaluation board atmel at91sam9260ek. Nandflash reads ok, but performing and erase doesn`t work.I get these messages trying to erase a block of the nand and writing the environment variables to nandflash.
Any help? I'm missing a configuration parameter in config or what may happens?
U-Boot> saveenv
Saving Environment to NAND...
Erasing redundant Nand...Timeout!U-Boot>
U-Boot>
Quoted 8 lines
Quoted 7 lines
U-Boot> nand erase
0x600000x20000NAND erase: device 0 offset
0x60000, size0x20000
Timeout!
SAM NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5OK
Victor Librado Sancho
Departamento I+D
------------------------------------------------------------------------
------------------------------------------------------------------------
Quoted 6 lines · Victor Librado
I am using the same value for the SMC registers as stated in my linux kernel
board-at91sam9260ek.c. In linux I can perform nandflash read/erase/write ok. (flash_eraseall/ nandwrite commands).May I have to define the JFFS2 partitions in u-boot configuration
my_board.has I have in Linux?
No, this sounds like a driver problem. Do you use the old legancy NAND interface (CFG_NAND_LEGACY) with the old access macros (NAND_DISABLE_CE...), or do you use the new interface?
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================