A problem with u-boot on smdk2410 used nand flash(smart media card)
Hi all,
I have a problem with u-boot on smdk2410, i used a nand flash(smart media card). I had make an "u-boot.bin " image, and download with jtag to the nand flash. But, that was no any out put signal on the screen.
I just used the "make smdk2410_config", but I didn't change any file.
After that method failed. Then i thought, how can I enable the nand flash? So I added some things in "smdk2410.h", which are
CONFIG_COMMANDS \
(CONFIG_CMD_DFL | \
CFG_CMD_CACHE | \
CFG_CMD_NAND | \
CFG_CMD_REGINFO | \
CFG_CMD_DATE | \
CFG_CMD_ELF)Is that a correct direction to boot on nand flash?
I assume that is a correct direction, but that is some error with compiling. Such constants or marcos are not defined:
#define SECTORSIZE 512
#define ADDR_COLUMN 1
#define ADDR_PAGE 2
#define ADDR_COLUMN_PAGE 3
#define NAND_ChipID_UNKNOWN 0x00
#define NAND_MAX_FLOORS 1
#define NAND_MAX_CHIPS 1
#define NAND_WAIT_READY(nand)
#define WRITE_NAND_COMMAND(d, adr)
#define READ_NAND(adr)
..............................etc....
Where can I find the header file for smdk2410 with nand flash? or How can i find make such definition for nand flash? and where should i add such definition?
Thanks!!
Quoted 4 lines · In message <[email protected]> you wrote:
I have a problem with u-boot on smdk2410, i used a nand flash(smart media card). I had make an "u-boot.bin " image, and download with jtag to the nand flash. But, that was no any out put signal on the screen.
What makes you think that this should work?
Quoted 1 line
Where can I find the header file for smdk2410 with nand flash?
Create one.
Quoted 2 lines
or How can i find make such definition for nand flash? and where should i add such definition?
Have a look at what other boards with NAND support are doing, try to understand this, and then copy and adapt these settings.
For a start, I recommend to RTFM (see doc/README.nand).
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is necessary to have purpose. -- Alice #1, "I, Mudd", stardate 4513.3
Thanks for you suggestion.
I created a new header file for some definitions of nand flash. That might work, but there is a compile error that i don't know how to solve it. When compiled(make) to the last "u-boot" binary file, then that can not find `__readwrite_bug'.
The error message is :
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3 -lgcc --end-group \
-Map u-boot.map -o u-boot
common/libcommon.a(cmd_nand.o): In function `nand_write_page':/home/music/u-boot/u-boot-1.1.1/common/cmd_nand.c:1066: undefined reference to __readwrite_bug' /home/music/u-boot/u-boot-1.1.1/common/cmd_nand.c:1080: undefined reference to __readwrite_bug'
make: *** [u-boot] Error 1
I think that problem comes from /asm-arm/io.h
And I can not find any function about "__readwrite_bug()". so I can't slove it. My u-boot version is 1.1.1.
What can I do for this error?
Thanks!!
Quoted 30 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:
I have a problem with u-boot on smdk2410, i used a nand flash(smart media card). I had make an "u-boot.bin " image, and download with jtag to the nand flash. But, that was no any out put signal on the screen.
What makes you think that this should work?
Quoted 1 line
Where can I find the header file for smdk2410 with nand flash?
Create one.
Quoted 2 lines
or How can i find make such definition for nand flash? and where should i add such definition?
Have a look at what other boards with NAND support are doing, try to understand this, and then copy and adapt these settings.
For a start, I recommend to RTFM (see doc/README.nand).
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is necessary to have purpose.-- Alice #1, "I, Mudd", stardate 4513.3