Et la V3 ?
Après avoir dumpé la flash, je ne parviens pas à
1. monter l'image
`mount -o loop -t cramfs whole_flash.bin /mnt/loop
`
mount: wrong fs type, bad option, bad superblock on /dev/loop/0 [...]
un ` dmesg | tail` me donne
cramfs:wrong magic
2. extraire le contenu de l'image
`cramfsck -x rom whole_flash.bin`
cramfsck: superblock magic not found
3. J'ai pensé à un swap (Big Endian -> Little Endian)
`cramfsswap whole_flash.bin whole_flash.img`
cramfs magic not detected
Quelqu'un a une idée ?
Dans Documentation/filesystems/cramfs.txt (Doc kernel Linux)
[...]
Currently, cramfs must be written and read with architectures of the
same endianness, and can be read only by kernels with PAGE_CACHE_SIZE
== 4096. At least the latter of these is a bug, but it hasn't been
decided what the best fix is. For the moment if you have larger pages
you can just change the #define in mkcramfs.c, so long as you don't
mind the filesystem becoming unreadable to future kernels.
[...]
peut être faut-il adapter le PAGE_CACHE_SIZE ? (mais comment ?)