Cannot compile latest mtd with 2.6.10
Hi,
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for mips malta board. I ran the patchkernel.sh script and then tried to compile my kernel.
I ran into this
CHK include/linux/version.h
make[1]: `arch/mips/kernel/offset.s' is up to date.
CHK include/asm-mips/offset.h CHK include/linux/compile.h CHK usr/initramfs_list CC drivers/mtd/mtdcore.o
drivers/mtd/mtdcore.c:28: warning: type defaults to int' in declaration of DEFINE_MUTEX' drivers/mtd/mtdcore.c:28: warning: parameter names (without types) in function declaration drivers/mtd/mtdcore.c:28: warning: data definition has no type or storage class drivers/mtd/mtdcore.c:31: error: mtd_table_mutex' undeclared here (not in a function) drivers/mtd/mtdcore.c:31: error: initializer element is not constant drivers/mtd/mtdcore.c:31: error: (near initialization for __ksymtab_mtd_table_mutex.value') drivers/mtd/mtdcore.c: In function `add_mtd_device':drivers/mtd/mtdcore.c:50: warning: implicit declaration of function mutex_lock' drivers/mtd/mtdcore.c:68: warning: implicit declaration of function mutex_unlock' drivers/mtd/mtdcore.c: At top level:drivers/mtd/mtdcore.c:31: error: __ksymtab_mtd_table_mutex causes a section type conflict make[2]: *** [drivers/mtd/mtdcore.o] Error 1
make[1]: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2
Looks like some mutex problem, but the 2.6.10 does not have mutexes. How do I get around this problem?
Would appreciate any help
thanks
Mandeep
Quoted 4 lines · On Mon, 02 Jun 2008 17:48:04 -0600 Mandeep Ahuja <[email protected]>…
Hi,
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for mips malta board. I ran thepatchkernel.shscript and then tried to compile my kernel.
Which CVS? The MTD CVS tree has been deprecated for a number of years now.
josh
Hi Josh,
I checked out from here
cvs -d :pserver:[email protected]:/home/cvs login /(password: anoncvs)/ cvs -d :pserver:[email protected]:/home/cvs co mtd
I am still battling with this issue. Can you guide me from where to get the latest mtd. I am having issues mounting a JFFS2 image with whatever mtd came with 2.6.11 kernel for mipsel
regards
Mandeep
Quoted 17 lines · Josh Boyer
Quoted 4 lines · On Mon, 02 Jun 2008 17:48:04 -0600 Mandeep Ahuja <[email protected]>…
Hi,
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for mips malta board. I ran thepatchkernel.shscript and then tried to compile my kernel.Which CVS? The MTD CVS tree has been deprecated for a number of years now.
josh
Quoted 6 lines · Josh Boyer
Quoted 3 lines
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for mips malta board. I ran the
patchkernel.shscript and then tried to compile my kernel.Which CVS? The MTD CVS tree has been deprecated for a number of years now.
So has 2.6.10 :)
Signature · 1 line
dwmw2
Re: SPAM-LOW: Re: Cannot compile latest mtd with 2.6.10
But interestingly the 2.4.17 kernel still able to mount jffs2 without any issues so why cant 2.6.11 do it?
Quoted 15 lines · David Woodhouse
Quoted 7 lines · Josh Boyer
Quoted 3 lines
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for mips malta board. I ran the
patchkernel.shscript and then tried to compile my kernel.Which CVS? The MTD CVS tree has been deprecated for a number of years now.
So has 2.6.10 :)