* Problems compiling MTD
@ 2002-03-11 13:05 Securez
2002-03-11 13:28 ` David Woodhouse
0 siblings, 1 reply; 4+ messages in thread
From: Securez @ 2002-03-11 13:05 UTC (permalink / raw)
To: linux-mtd
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??
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problems compiling MTD
2002-03-11 13:05 Securez
@ 2002-03-11 13:28 ` David Woodhouse
0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2002-03-11 13:28 UTC (permalink / raw)
To: Securez; +Cc: linux-mtd
securez@teleline.es said:
> I redefine this references in include/asm/io.h to solve this, where
> need to go this?? is correct here??
That should work. You can add these in include/linux/mtd/compatmac.h,
dependent on LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0).
securez@teleline.es said:
> 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??
I don't know. Are the address and length printed above correct? Can you
debug it to work out _exactly_ how far it gets before rebooting?
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problems compiling MTD
@ 2002-03-15 8:47 Securez
2002-03-15 9:04 ` David Woodhouse
0 siblings, 1 reply; 4+ messages in thread
From: Securez @ 2002-03-15 8:47 UTC (permalink / raw)
To: linux-mtd
i put some printk functions, and it hags making the ioremap..
Regards.
At 13.28 11/3/02 +0000, you wrote:
>securez@teleline.es said:
> > I redefine this references in include/asm/io.h to solve this, where
> > need to go this?? is correct here??
>
>That should work. You can add these in include/linux/mtd/compatmac.h,
>dependent on LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0).
>
>
>securez@teleline.es said:
> > 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??
>
>I don't know. Are the address and length printed above correct? Can you
>debug it to work out _exactly_ how far it gets before rebooting?
>
>--
>dwmw2
>
>
>
>______________________________________________________
>Linux MTD discussion mailing list
>http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problems compiling MTD
2002-03-15 8:47 Problems compiling MTD Securez
@ 2002-03-15 9:04 ` David Woodhouse
0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2002-03-15 9:04 UTC (permalink / raw)
To: Securez; +Cc: linux-mtd
securez@teleline.es said:
> i put some printk functions, and it hags making the ioremap..
Hmmm. For uClinux you don't really need the ioremap - I'm surprised that it
breaks. Just comment it out and make it use the real address. If that
doesn't work, check with the uClinux people.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-03-15 8:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-15 8:47 Problems compiling MTD Securez
2002-03-15 9:04 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2002-03-11 13:05 Securez
2002-03-11 13:28 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox