Description of problem: mtdram, block2mtd are disabled on all architectures, jffs2 modules are enabled only on armv archs. available docs for unpacking/modifying roms for embedded systems includes mtdram/block2mtd modules. which means on non-arm archs run slow qemu guest to modify. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. modprobe jffs2 2. modprobe mtdram 3. modprobe block2mtd Actual results: modules not found Expected results: user should follow documentation for modifying roms using mtdram/block2mtd and jffs2 Additional info:
CONFIG_MTD_MTDRAM=m CONFIG_MTD_BLOCK2MTD=m CONFIG_JFFS2_FS=m CONFIG_JFFS2_ZLIB=y CONFIG_JFFS2_LZO=y and other, which are already enabled for arm
Can you give an example of the type of documentation you are trying to follow?
https://wiki.maemo.org/Modifying_the_root_image http://wiki.emacinc.com/wiki/Mounting_JFFS2_Images_on_a_Linux_PC
fedora has in mtd-utils jffs2reader, which should be able to list/dump content of file but not working on images with lzma compression
I'm okay turning on JFFS2 but CONFIG_MTD_MTDRAM is listed as a test driver. I understand it's uses are limited but I'm not really excited about enabling it for all of Fedora.
Created attachment 1305892 [details] this is what i tested
(In reply to Laura Abbott from comment #5) > I'm okay turning on JFFS2 but CONFIG_MTD_MTDRAM is listed as a test driver. > I understand it's uses are limited but I'm not really excited about enabling > it for all of Fedora. there are three modules usable for simulating flash devices: nandsim for nand and block2mtd and mtdram for nor as most of toolchains for embedded platforms are for x86, i'm fine with enabling it only for x86, not all architectures like i did in patch
what i tested so far is nandsim. block2mtd and mtdram i would like to test after vacation even i managed to use jffs2reader after endianess convertion using jffs2dump -e, it is tricky to dump dontent. with nandsim and jffs2 i was able to mount image and chroot to it just using qemu-mips-static within few seconds
anything i can do to get enabled those modules?
If the following set of options is sufficnet we can turn them on. CONFIG_MTD_BLOCK2MTD=m CONFIG_JFFS2_FS=m CONFIG_JFFS2_ZLIB=y CONFIG_JFFS2_LZO=y
(In reply to Laura Abbott from comment #10) > If the following set of options is sufficnet we can turn them on. > > CONFIG_MTD_BLOCK2MTD=m > CONFIG_JFFS2_FS=m > CONFIG_JFFS2_ZLIB=y > CONFIG_JFFS2_LZO=y and CONFIG_JFFS2_COMPRESSION_OPTIONS it should be sufficient
Sorry, I think this got lost with all the fall conferences. These are now on in rawhide.