* using MTD with 2.2.14
@ 2000-06-29 22:21 Juan Gonzo
2000-06-30 7:47 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Juan Gonzo @ 2000-06-29 22:21 UTC (permalink / raw)
To: MTD Mailing List
Our group has a target board consisting of an ARM
processor and Intel Strataflash with an embedded Linux
OS running kernel 2.2.14.
Following David's advice from before, I would like to
use JFFS instead of ext2-on-FTL. But I have noticed
in the mailing list that people are warned against
using 2.2.14 and should switch to 2.2.16.
Currently this ins't possible for our project, so will
MTD (JFFS) work properly for me with 2.2.14?
For my compile, I start with the 2.2.14 kernel, copy
in compatmac.h from 2.2.16. Now I am confused. In
a previous email, David advised me to select the
following options from 'make oldconfig':
Memory Technology Device (MTD) support
Common Flash Interface (CFI) support
CFI support for Intel/Sharp Extended Command Set
chips
CFI chips on memory bus support
Direct blockdevice access to MTD devices
Journalling Flash filesystem (JFFS) support
If I apply 'mtd-patch-2.2.16', I can enable these
with 'make oldconfig', but am I not supposed to use
this patch since it is for 2.2.16?
Also, I use this patch, and then when I compile I get
the following errors (I include only one section for
brevity, but all the errors relate to
"get_module_symbol" and "put_module_symbol"):
drivers/mtd/mtdlink.o: In function `cfi_probe':
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:54:
undefined reference to `put_module_symbol'
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:54:
relocation truncated to fit: R_ARM_PC24
put_module_symbol
drivers/mtd/mtdlink.o: In function `check_cmd_set':
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:466:
undefined reference to `get_module_symbol'
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:466:
relocation truncated to fit: R_ARM_PC24
get_module_symbol
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:470:
undefined reference to `get_module_symbol'
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:470:
relocation truncated to fit: R_ARM_PC24
get_module_symbol
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:475:
undefined reference to `put_module_symbol'
/home/kelly/armbuild/linux/drivers/mtd/cfi_probe.c:475:
relocation truncated to fit: R_ARM_PC24
put_module_symbol
But these functions are in the 2.2.16 patch, aren't
they? What am I doing wrong?
Thanks for any help,
-- kelly
_______________________________________________________
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: using MTD with 2.2.14
2000-06-29 22:21 using MTD with 2.2.14 Juan Gonzo
@ 2000-06-30 7:47 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2000-06-30 7:47 UTC (permalink / raw)
To: Juan Gonzo; +Cc: MTD Mailing List
kayemmess@yahoo.ca said:
> Our group has a target board consisting of an ARM processor and Intel
> Strataflash with an embedded Linux OS running kernel 2.2.14.
I also have a target board consisting of an ARM processor and Intel
Strataflash with an embedded Linux OS running kernel 2.2.14.
> ...should switch to 2.2.16. Currently this ins't possible for our
> project, so will MTD (JFFS) work properly for me with 2.2.14?
I'd be surprised if it doesn't - my current code isn't being tested on
anything _but_ 2.2.14/StrongARM.
> If I apply 'mtd-patch-2.2.16', I can enable these with 'make
> oldconfig', but am I not supposed to use this patch since it is for
> 2.2.16?
That's fine - you can use that and it _should_ apply cleanly.
> undefined reference to `put_module_symbol'
> But these functions are in the 2.2.16 patch, aren't
> they? What am I doing wrong?
They're definitely in the patch. Did it fail to apply them for some reason?
The {get,put}_module_symbol() patch is also available separately as
mtd/patches/put_module_symbol-2.2.1x.patch. Try applying that and see what
happens.
It's easy enough to do it by hand. Add __MOD_INC_USE_COUNT(mp) in the right
place in the existing get_module_symbol() routine, and add the new
put_module_symbol() routine from the patch. Then add the prototype to
module.h and an export entry to ksyms.c
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-30 7:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-29 22:21 using MTD with 2.2.14 Juan Gonzo
2000-06-30 7:47 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox