Reply
Thread Tools
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#1
I used the following command to mount 2008 flash image under 2007.

mount -t jffs2 /dev/mtdblock4 /fls -o rw,rpsize=1024,rpuid=0,rpuid=30000


I relashed rootfs only so I could backup the 2008OS and clone prior to flashing Kernel and initfs. Save me some time trying to do this in 2008 when I need to find all kinds of tools to do it.

Anyway, the mount listed above works without incident. But when I try to tar up the OS, I am getting read errors.


Fanoush? any Ideas? am I missing something?

cd /fls
/usr/local/bin/tar -cvf /cpy/WORK/FLASH2008.tar .

I am root...

SAMPLE ERRORS.

/usr/local/bin/tar: ./etc/udev/links.conf: Read error at byte 0, reading 688 byt
es: Input/output error
./etc/udev/rules.d/
./etc/udev/rules.d/020_permissions.rules
./etc/udev/rules.d/z50_run.rules
./etc/udev/rules.d/n770.rules
./etc/udev/rules.d/z99_hal.rules
/usr/local/bin/tar: ./etc/udev/rules.d/z99_hal.rules: Read error at byte 0, read
ing 210 bytes: Input/output error
./etc/udev/rules.d/udev.rules
./etc/udev/permissions.rules
/usr/local/bin/tar: ./etc/udev/permissions.rules: Read error at byte 0, reading
1536 bytes: Input/output error
./etc/udev/run.rules
/usr/local/bin/tar: ./etc/udev/run.rules: Read error at byte 0, reading 441 byte
s: Input/output error
./etc/udev/n770.rules
/usr/local/bin/tar: ./etc/udev/n770.rules: Read error at byte 0, reading 801 byt
es: Input/output error




EDIT
This mount produces the same results...
mount -t jffs2 /dev/mtdblock4 /fls

Last edited by penguinbait; 2007-11-14 at 16:03.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#2
Additional info from dmesg


[ 1017.105010] JFFS2 compression type 0x07 not available.
[ 1017.105041] Error: jffs2_decompress returned -5
[ 1017.105224] JFFS2 compression type 0x07 not available.
[ 1017.105255] Error: jffs2_decompress returned -5
[ 1017.128021] JFFS2 compression type 0x07 not available.
[ 1017.128082] Error: jffs2_decompress returned -5
[ 1017.128173] JFFS2 compression type 0x07 not available.
[ 1017.128204] Error: jffs2_decompress returned -5
[ 1017.151245] JFFS2 compression type 0x07 not available.
[ 1017.151275] Error: jffs2_decompress returned -5
[ 1017.151458] JFFS2 compression type 0x07 not available.
[ 1017.151489] Error: jffs2_decompress returned -5
[ 1017.174163] JFFS2 compression type 0x07 not available.
[ 1017.174224] Error: jffs2_decompress returned -5
[ 1017.174316] JFFS2 compression type 0x07 not available.
[ 1017.174346] Error: jffs2_decompress returned -5
[ 1017.197357] JFFS2 compression type 0x07 not available.
[ 1017.197418] Error: jffs2_decompress returned -5
[ 1017.197509] JFFS2 compression type 0x07 not available.
[ 1017.197540] Error: jffs2_decompress returned -5


So is a new jffs2 compression type used, does this mean only the new kernel can read this?
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#3
Hmm sounds like it is worth trying to flash newer kernel with newer jffs2 code (and maybe also initfs). But this is indeed strange, on-disk jffs2 format shouldn't change between kernel version. What dmesg/kernel says while reading, any suspicious errors (like unknown comression method) in kernel log? Also maybe try to flash rootfs again?
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#4
I think we were replying at the same time, look above your post

That would be yes, kernel error present
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#5
Reflashed rootfs with same issue, I guess I need kernel and initfs??


Anything else to try?
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#6
Or recompile older kernel with some more compression methods enabled if this one is in 2.6.18 at all. There are more compression types and any such method can be used for any block. At mkfs.jffs2 or write time more of them can be tried for each block and the best one is used depending on specific data in such block and compression result.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#7
easiest is to give up and flash new initfs and kernel, then reinstall bootmenu (and optionally boot older system if you have more partitions) and clone OS2008 from flash to mmc
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#8
Originally Posted by fanoush View Post
easiest is to give up and flash new initfs and kernel, then reinstall bootmenu (and optionally boot older system if you have more partitions) and clone OS2008 from flash to mmc
So what your saying is, Man up and commit

OK OK, one last question, can you mount the rootfs image and extract directly from it?
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#9
Originally Posted by penguinbait View Post
OK OK, one last question, can you mount the rootfs image and extract directly from it?
Not easily, not on the tablet. On PC you can setup fake mtd device (mtdram), copy image to it an then mount it. But you need RAM for whole rootfs image (really not a problem on PC but on the tablet ...). Google for details if you want to go this way.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#10
Originally Posted by fanoush View Post
Not easily, not on the tablet. On PC you can setup fake mtd device (mtdram), copy image to it an then mount it. But you need RAM for whole rootfs image (really not a problem on PC but on the tablet ...). Google for details if you want to go this way.
Thanks, I committed, its goin to take some getting used to.
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:21.