2010-01-29 06:59:42     U-Boot API to NAND-Flash backend driver

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-01-29 06:59:42     U-Boot API to NAND-Flash backend driver

Gerhard Petrowitsch (GERMANY)

Message: 85323   

 

Hi all,

 

I'm new to U-Boot.

 

I'm planning to use U-Boot for booting from a NAND-flash device on our own custom made board with a Blackfin BF548M. We won't have Linux, but just our own 'bare metal' application, but that shouldn't matter for my question. We would prefer to boot from a file system, built in this NAND-flash.

 

If I get the documentation right, U-Boot relies on me to provide a backend driver for accessing the NAND flash and handling the bad blocks and error correction. However, I haven't been able to find the API U-Boot expects from my driver? I mean, what functions and what data types etc. does it expect to be present?

 

Can someone please point me to the right docu? Or is such a backend driver already available for the BF548?

 

Regards,

 

Gerhard

QuoteReplyEditDelete

 

 

2010-01-29 10:07:34     Re: U-Boot API to NAND-Flash backend driver

Robin Getz (UNITED STATES)

Message: 85329   

 

Gerhard:

 

Driver is already done/complete/tested for 54x.

 

https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:nand-flash

 

-Robin

QuoteReplyEditDelete

 

 

2010-01-29 10:18:27     Re: U-Boot API to NAND-Flash backend driver

Gerhard Petrowitsch (GERMANY)

Message: 85334   

 

Robin:

 

Thanks for your reply. I know the page you pointed me to.

 

Do you mean the file "board/bf548-ezkit/nand.c" mentioned there?

 

Unfortunately I can't find this file in the current u-boot distribution. Has it been forgotten?

 

This is the contents of my "board/bf548-ezkit" directory:

 

total 30

drwxr-xr-x 1 pg Kein    0 Jan 28 17:16 .

drwxr-xr-x 1 pg Kein    0 Jan 28 17:16 ..

-rw-r--r-- 1 pg Kein   12 Oct 19  2008 .gitignore

-rw-r--r-- 1 pg Kein 1709 Nov 27  2008 Makefile

-rw-r--r-- 1 pg Kein 2160 Oct 19  2008 bf548-ezkit.c

-rw-r--r-- 1 pg Kein 1359 Oct 25  2008 config.mk

-rw-r--r-- 1 pg Kein   69 Oct 19  2008 spi_flash.c

-rw-r--r-- 1 pg Kein 2693 Oct 25  2008 u-boot.lds.S

-rw-r--r-- 1 pg Kein 8624 Aug  7 04:48 video.c

 

Regards,

 

Gerhard

QuoteReplyEditDelete

 

 

2010-01-29 10:24:57     Re: U-Boot API to NAND-Flash backend driver

Robin Getz (UNITED STATES)

Message: 85335   

 

Gerhard:

 

That page is out of date (I'll fix it) - look at ./drivers/mtd/nand/bfin_nand.c

 

-Robin

Attachments

    Outcomes