* [U-Boot-Users] board_nand_init
@ 2006-11-05 3:05 Bill Tang
2006-11-05 6:02 ` Stefan Roese
0 siblings, 1 reply; 2+ messages in thread
From: Bill Tang @ 2006-11-05 3:05 UTC (permalink / raw)
To: u-boot
Hi,all
I am trying to run u-boot-1.1.5 on my s3c2410_board,which has 32M SDRAM
and 64M NAND flash.i have enabled the CFG_CMD_NAND flag.when i make the
src the compiler report this
"drivers/nand/libnand.a(nand.o): In function `nand_init':
/home/code/arm/u-boot-1.1.5/drivers/nand/nand.c:50: undefined reference
to `board_nand_init'
"
my problem is if i should init all functions and variables in the
nand_chip struct? if not what's my job in the board_nand_init?
This message has been scanned for viruses and spam by CVICSE_mail_gate!
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] board_nand_init
2006-11-05 3:05 [U-Boot-Users] board_nand_init Bill Tang
@ 2006-11-05 6:02 ` Stefan Roese
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2006-11-05 6:02 UTC (permalink / raw)
To: u-boot
On Sunday 05 November 2006 04:05, Bill Tang wrote:
> I am trying to run u-boot-1.1.5 on my s3c2410_board,which has 32M SDRAM
> and 64M NAND flash.i have enabled the CFG_CMD_NAND flag.when i make the
> src the compiler report this
> "drivers/nand/libnand.a(nand.o): In function `nand_init':
> /home/code/arm/u-boot-1.1.5/drivers/nand/nand.c:50: undefined reference
> to `board_nand_init'
> "
> my problem is if i should init all functions and variables in the
> nand_chip struct? if not what's my job in the board_nand_init?
You need to implement a board (or cpu) specific init function
called "board_nand_init()" to init all functions and variables in the
nand_chip struct. Take a look at cpu/ppc4xx/ndfc.c or
board/prodrive/pdnb3/nand.c how this can be done.
Best regards,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-05 6:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-05 3:05 [U-Boot-Users] board_nand_init Bill Tang
2006-11-05 6:02 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox