Building at91_nand.c for 2.6.15

Andrew Victor andrew at sanpeople.com
Mon Mar 13 02:33:07 EST 2006


hi Brian,

> I'm trying to build a 2.6.15.3 kernel for the AT91RM9200 patched with 
> current mtd from CVS and 2.6.15-at91.patch.gz (in that order), however 
> compilation fails on at91_nand.c because struct at91_nand_data is not 
> defined.  I would have expected the declaration of this struct to be in 
> one of the at91 header files but I cannot find it mentioned in any other 
> source files.  Any idea where I should be looking?

It's defined in the 2.6.16-rc3-at91 patch.
  http://maxim.org.za/AT91RM9200/2.6/2.6.16-rc3-at91.patch.gz

If you want to use it with 2.6.15, back-port the NAND stuff from the
following files:
   include/asm-arm/arch-at91rm9200/board.h
   arch/arm/mach-at91rm9200/devices.c 

Then in you board-specific file, you need to initialize a "struct
at91_nand_data" structure, and call at91_add_device_nand() from your 
board init code.  [Have a look at the board-dk.c code as an example]


Regards,
  Andrew Victor






More information about the linux-mtd mailing list