Error compiling Linux kernel to iMX51 with NAND Support

Error:

drivers/mtd/nand/mxc_nd2.c: In function 'mxcnd_probe':
drivers/mtd/nand/mxc_nd2.c:1233: error: 'NFC_BASE_ADDR_AXI' undeclared (first use in this function)
drivers/mtd/nand/mxc_nd2.c:1233: error: (Each undeclared identifier is reported only once
drivers/mtd/nand/mxc_nd2.c:1233: error: for each function it appears in.)

Solution:
Edit drivers/mtd/nand/mxc_nd2.h and rename NFC_BASE_ADDR_AXI to MX51_NFC_BASE_ADDR_AXI

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s