MTD/mtdblock.c uclinux 2.0.38?
1.
Anybody know if instruction exist for installing MTD and nftl into an uclinux 2.0.38 tree?
2.
I'm interested in getting the SmartMedia slot of this arm7 board working for both read and write -- and I'd like the SmartMedia card to be readable/writable by a Windows machine too. Am I correct that this interoperability constraint will prevent me from using JFFS? I'm assuming that a vfat fs with MTD/nftl will do the trick for me. Yes, no?
3.
I've been glancing at MTD code and didn't think I saw any logic to deal with the bad (unusable) blocks of a NAND flash device. Did I just miss it?
Thanks,
Steve Kranz
[email protected]
Quoted 2 lines · [email protected] said:
1. Anybody know if instruction exist for installing MTD and nftl into an uclinux 2.0.38 tree?
Should work. Probably doesn't. Give me individual instances of places I broke the 2.0 compile, preferably with patches, and we'll deal with it.
Quoted 6 lines
2. I'm interested in getting the SmartMedia slot of this arm7 board working for both read and write -- and I'd like the SmartMedia card to be readable/writable by a Windows machine too. Am I correct that this interoperability constraint will prevent me from using JFFS? I'm assuming that a vfat fs with MTD/nftl will do the trick for me. Yes, no?
You need to implement the SmartMedia translation layer format. It looks like there's enough information on the Samsung web site to do that.
Quoted 3 lines
3. I've been glancing at MTD code and didn't think I saw any logic to deal with the bad (unusable) blocks of a NAND flash device. Did I just miss it?
Done in the SmartMedia translation layer, not in the underlying device driver.
--
dwmw2
Quoted 4 lines
uclinux 2.0.38 & MTD?
Should work. Probably doesn't. Give me individual instances of places I broke the 2.0 compile, preferably with patches, and we'll deal with it.
Shown below are the problems I encountered when attempting to build the latest MTD tree for uclinux 2.0.38. For the moment I have suspended efforts to get this working under 2.0.38 and would be very interested if someone could provide a MTD version or patch that will work with that kernel. If so, please let me know. Thank you! :-)
Steve Kranz
[email protected]
---------------------------
My choosen config settings:
---------------------------CONFIG_MTD=yCONFIG_MTD_DEBUG=yCONFIG_MTD_DEBUG_VERBOSE=3CONFIG_MTD_CHAR=yCONFIG_NFTL=yCONFIG_NFTL_RW=yCONFIG_MTD_NAND=y
----------------
Missing Headers:
----------------
MTD depends on these headers which don't exist
within the uclinux tree.linux/slab.hlinux/spinlock.hlinux/kmod.h
---------------
Other Problems:
---------------include/linux/mtd/map.h line 65, generates error:
"field `list' has incomplete type"
Attempts to compile the MTD
statements __MOD_INC_USE_COUNT() and __MOD_DEC_USE_COUNT() found in various locations with the MTD tree generate these compile errors:
"structure has no member named `uc'"
"structure has no member named `flags'"
--------------
Version Notes:
--------------
I downloaded via cvs.infradead.org on
July 9, 2001. I placed it into my 2.0.38
uclinux tree and then applied the MTD
supplied patch mtd-uClinux-2.0.38.1pre7.patch.
-----------
Quoted 30 lines · David Woodhouse
Quoted 2 lines · [email protected] said:
1. Anybody know if instruction exist for installing MTD and nftl into an uclinux 2.0.38 tree?
Should work. Probably doesn't. Give me individual instances of places I broke the 2.0 compile, preferably with patches, and we'll deal with it.
Quoted 6 lines
2. I'm interested in getting the SmartMedia slot of this arm7 board working for both read and write -- and I'd like the SmartMedia card to be readable/writable by a Windows machine too. Am I correct that this interoperability constraint will prevent me from using JFFS? I'm assuming that a vfat fs with MTD/nftl will do the trick for me. Yes, no?
You need to implement the SmartMedia translation layer format. It looks like there's enough information on the Samsung web site to do that.
Quoted 3 lines
3. I've been glancing at MTD code and didn't think I saw any logic to deal with the bad (unusable) blocks of a NAND flash device. Did I just miss it?
Done in the SmartMedia translation layer, not in the underlying device driver.
--
dwmw2______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Hmm, I found the same problems, so I bought a copy of Intel's VFM for $99 to use instead. It took 3 weeks to get the source code from Intel, but I now finally have it. It is only for use with Intel chips, though it is royalty free.
----- Original Message -----
From: Steve Kranz <[email protected]>
To: David Woodhouse <[email protected]>
Cc: <[email protected]>; <[email protected]>
Sent: Wednesday, July 11, 2001 1:30 PM
Subject: Re: MTD/mtdblock.c uclinux 2.0.38?
Quoted 58 lines
Quoted 4 lines
uclinux 2.0.38 & MTD?
Should work. Probably doesn't. Give me individual instances of places I broke the 2.0 compile, preferably with patches, and we'll deal with it.Shown below are the problems I encountered when attempting to build the latest MTD tree for uclinux 2.0.38. For the moment I have suspended efforts to get this working under 2.0.38 and would be very interested if someone could provide a MTD version or patch that will work with that kernel. If so, please let me know. Thank you! :-)
Steve Kranz
[email protected]---------------------------
My choosen config settings:
---------------------------CONFIG_MTD=yCONFIG_MTD_DEBUG=yCONFIG_MTD_DEBUG_VERBOSE=3CONFIG_MTD_CHAR=yCONFIG_NFTL=yCONFIG_NFTL_RW=yCONFIG_MTD_NAND=y----------------
Missing Headers:
----------------
MTD depends on these headers which don't exist
within the uclinux tree.linux/slab.hlinux/spinlock.hlinux/kmod.h---------------
Other Problems:
---------------include/linux/mtd/map.hline 65, generates error:
"field `list' has incomplete type"Attempts to compile the MTD
statements__MOD_INC_USE_COUNT()and__MOD_DEC_USE_COUNT()found in various locations with the MTD tree generate these compile errors:
"structure has no member named `uc'"
"structure has no member named `flags'"--------------
Version Notes:
--------------
I downloaded via cvs.infradead.org on
July 9, 2001. I placed it into my 2.0.38
uclinux tree and then applied the MTD
supplied patch mtd-uClinux-2.0.38.1pre7.patch.
Quoted 19 lines
-----------
Quoted 15 lines · David Woodhouse
Quoted 2 lines · [email protected] said:
1. Anybody know if instruction exist for installing MTD and nftl into an uclinux 2.0.38 tree?
Should work. Probably doesn't. Give me individual instances of places I broke the 2.0 compile, preferably with patches, and we'll deal with it.
Quoted 6 lines
2. I'm interested in getting the SmartMedia slot of this arm7 board working for both read and write -- and I'd like the SmartMedia card to be readable/writable by a Windows machine too. Am I correct that this interoperability constraint will prevent me from using JFFS? I'm assuming that a vfat fs with MTD/nftl will do the trick for me. Yes, no?
You need to implement the SmartMedia translation layer format. It looks
like
Quoted 20 lines
Quoted 9 lines
there's enough information on the Samsung web site to do that.
Quoted 3 lines
3. I've been glancing at MTD code and didn't think I saw any logic to deal with the bad (unusable) blocks of a NAND flash device. Did I just miss it?
Done in the SmartMedia translation layer, not in the underlying device driver.
Quoted 6 lines
--
dwmw2______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 2 lines · [email protected] said:
MTD depends on these headers which don't exist within the uclinux tree.
Touch them. We can sort out the missing stuff later. You might want slab.h to include malloc.h instead of just being empty.
Quoted 2 lines
include/linux/mtd/map.hline 65, generates error: "field `list' has incomplete type"
Copy include/linux/list.h from a later kernel.
Quoted 4 lines · [email protected] said:
statements
__MOD_INC_USE_COUNT()and__MOD_DEC_USE_COUNT()found in various locations with the MTD tree generate these compile errors:
"structure has no member nameduc'" "structure has no member namedflags'"
Fix the definitions in include/linux/mtd/compatmac.h to match the kernel you're using.
--
dwmw2