Skip to contentSkip to conversation

undefined reference to `tx4925_read_nfmc'

DISCUSSION Jason Chen 2 participants 4 messages Jun 11, 2004 Memory technology devices (MTD)

lore
Share & tools
lore

Jason Chen

author
#0 lore raw

Hello sir/madam;

I'am working on Toshiba TX4925 board with Linux 2.4.22 and I want to use jffs2 on NAND flash. I have run the mtd patch on my kernel, but now my kernel doesn't compile anymore, the error message is:

drivers/mtd/mtdlink.o: In function `tx4925ndfmc_readecc':
drivers/mtd/mtdlink.o(.text+0x13ab4): undefined reference to `tx4925_read_nfmc'
drivers/mtd/mtdlink.o: In function `tx4925ndfmc_nand_read_byte':
drivers/mtd/mtdlink.o(.text+0x13b4c): undefined reference to `tx4925_read_nfmc'
drivers/mtd/mtdlink.o: In function `tx4925ndfmc_nand_write_byte':
drivers/mtd/mtdlink.o(.text+0x13b78): undefined reference to `tx4925_write_nfmc'
drivers/mtd/mtdlink.o: In function `tx4925ndfmc_nand_write_buf':
drivers/mtd/mtdlink.o(.text+0x13bc4): undefined reference to `tx4925_write_nfmc'
drivers/mtd/mtdlink.o: In function `tx4925ndfmc_nand_read_buf':
drivers/mtd/mtdlink.o(.text+0x13c2c): undefined reference to `tx4925_read_nfmc'
drivers/mtd/mtdlink.o: In function `tx4925ndfmc_nand_verify_buf':
drivers/mtd/mtdlink.o(.text+0x13c98): undefined reference to `tx4925_read_nfmc'
make: *** [vmlinux] Error 1

Please help,

Thanks in advance.

Jason Chen

#1 lore raw
Quoted 9 lines · Jason Chen

Hello sir/madam;

I'am working on Toshiba TX4925 board with Linux 2.4.22 and I want to use jffs2 on NAND flash. I have run the mtd patch on my kernel, but now my kernel doesn't compile anymore, the error message is:

drivers/mtd/mtdlink.o: In function `tx4925ndfmc_readecc':
drivers/mtd/mtdlink.o(.text+0x13ab4): undefined reference to `tx4925_read_nfmc'

This function is a macro / inline and not part of the mtd subsystem.

#include <asm/tx4925/tx4925_nand.h>

should contain this.

Signature · 11 lines
Thomas
_____________________________________________________________________
From slash dot org
"When customers are visiting, engineers are not allowed to wear ties. 
That way the customer can tell who is the engineer and who is the 
salesman (and therefore whom to believe.). Ties cut off blood flow 
to the brain, making it easier for the salesmen to do their jobs." 
_____________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]
author
#2 lore raw

There are no "tx4925_nand.h" in my kernel source. I use "tx4925.h" instead of it, but it seems to lack something. Please kindly tell me where can I find it?

Thanks in advance.

Jason Chen

Thomas Gleixner ??:

Quoted 23 lines · Jason Chen
Quoted 4 lines

Hello sir/madam;

Quoted 9 lines

I'am working on Toshiba TX4925 board with Linux 2.4.22 and I want to use jffs2 on NAND flash. I have run the mtd patch on my kernel, but now my kernel doesn't compile anymore, the error message is:

drivers/mtd/mtdlink.o: In function `tx4925ndfmc_readecc':
drivers/mtd/mtdlink.o(.text+0x13ab4): undefined reference to `tx4925_read_nfmc'

This function is a macro / inline and not part of the mtd subsystem.

#include <asm/tx4925/tx4925_nand.h>

should contain this.

#3 lore raw
Quoted 3 lines · Jason Chen

There are no "tx4925_nand.h" in my kernel source. I use "tx4925.h" instead of it, but it seems to lack something. Please kindly tell me where can I find it?

This file is not part of the mtd subsystem.

Ask mvista / toshiba or contact the driver author. Alice will have it around

Signature · 11 lines
Thomas
_____________________________________________________________________
From slash dot org
"When customers are visiting, engineers are not allowed to wear ties. 
That way the customer can tell who is the engineer and who is the 
salesman (and therefore whom to believe.). Ties cut off blood flow 
to the brain, making it easier for the salesmen to do their jobs." 
_____________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]