Building at91_nand.c for 2.6.15
Hi
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?
Thanks
Brian
hi Brian,
Quoted 6 lines
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.cbecause structat91_nand_datais 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