From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] board_nand_init
Date: Sun, 5 Nov 2006 07:02:43 +0100 (MET) [thread overview]
Message-ID: <200611050704.17017.sr@denx.de> (raw)
In-Reply-To: <1162695916.2815.18.camel@TP.ThinkPad>
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
prev parent reply other threads:[~2006-11-05 6:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-05 3:05 [U-Boot-Users] board_nand_init Bill Tang
2006-11-05 6:02 ` Stefan Roese [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200611050704.17017.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox