Problems compiling MTD
Securez
securez at teleline.es
Mon Mar 11 08:05:31 EST 2002
Hello i'm using uClinux on a MC68VZ328 booting form the flash
http://www.openhardware.net/Dragonix .
I want to get MTD working to use JFFS on it, but i get this errors:
drivers/mtd/mtdlink.o: In function
`physmap_read8':/home/devil/new-kernel/uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c:24:
undefined reference to `__raw_readb'drivers/mtd/mtdlink.o: In function
`physmap_read16':/home/devil/new-kernel/uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c:29:
undefined reference to `__raw_readw'drivers/mtd/mtdlink.o: In function
`physmap_read32':/home/devil/new-kernel/uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c:34:
undefined reference to `__raw_readl'drivers/mtd/mtdlink.o: In function
`physmap_write8':/home/devil/new-kernel/uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c:44:
undefined reference to `__raw_writeb'drivers/mtd/mtdlink.o: In function
`physmap_write16':/home/devil/new-kernel/uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c:50:
undefined reference to `__raw_writew'drivers/mtd/mtdlink.o: In function
`physmap_write32':/home/devil/new-kernel/uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c:56:
undefined reference to `__raw_writel'make[1]: *** [linux] Error 1make[1]:
Leaving directory `/home/devil/new-kernel/uClinux-dist/linux-2.4.x'
I redefine this references in include/asm/io.h to solve this, where need to
go this?? is correct here??
#define __raw_readb readb
#define __raw_readw readw
#define __raw_readl readl
.
..
After this the kernel compiles ok.
I program the flash, and when i reboot, the kernel seems ok, but when a
message appears in the console:
physmap flash device:40000 at 2000000
The system reboots, :(.
What is happend??
More information about the linux-mtd
mailing list