Skip to contentSkip to conversation

Building at91_nand.c for 2.6.15

DISCUSSION Brian Stafford 2 participants 2 messages Mar 12, 2006 – Mar 13, 2006 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.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