|
2008-06-16
, 09:18
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#2
|
I can easily extract the contents of both rootfs.jffs2 and initfs.jffs2 on my desktop PC
It would be so cool to just copy whatever version of ITOS to MMC without going through the "flash-copy to MMC-reflash original"-hassle. I'd even consider OS2005 just for the fun of it - I can't remeber what it looked like at all.
if [ `id -u` != 0 ] ; then echo "run this as root" exit fi if [ $# -lt 2 ] ; then echo $0 image.jffs2 directory exit fi LOOPDEV=`losetup -f` losetup $LOOPDEV $1 modprobe block2mtd block2mtd=$LOOPDEV,131072 modprobe jffs2 modprobe mtdblock sleep 1 [ -d $2 ] || mkdir $2 mount -t jffs2 -o ro /dev/mtdblock0 $2
|
2008-06-16
, 09:49
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#3
|
Yes, it should be enough. If not, you are doing something wrong when extracting jffs2.
It is not possible in general. Only rootfs is on SD/MMC card, kernel, initfs not => you cannot boot systems that use different kernel and initfs (like OS2007 vs 8 on N8x0, OS2005 or 6 vs 770).
|
2008-06-16
, 10:18
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#4
|
Logical consequence... so, how about OS2007HE and OS2006, then? IIRC, in recent HE, the kernel is basically the same as in OS2006, but they did apply changes to the initfs? Could this be the reason it doesn't work? Or is it known that OS2007HE can dual-boot from a system that uses a OS2006-initfs?
The Following User Says Thank You to fanoush For This Useful Post: | ||
|
2008-06-16
, 10:36
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#5
|
Mind the 131072 eraseblocks size constant in block2mtd insmod call, it is important. And watch kernel log for any errors about image size when mounting jffs2 and after tar copy. Also mount it in read only mode (-o ro) just to be safe, if you already mounted it once in rw mode, extract it from FIASCO again just to be sure you still have original data.
|
2008-06-16
, 19:59
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#6
|
|
2008-06-17
, 00:12
|
Posts: 8 |
Thanked: 9 times |
Joined on Feb 2007
|
#7
|
|
2008-06-17
, 17:54
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#8
|
flasher-3.0 -u -F SU-18_2007HACKER_4.2007.46-3_PR_F5_MR0_ARM.bin
losetup /dev/loop0 rootfs.jffs2
modprobe block2mtd block2mtd=/dev/loop0,131072
mount -t jffs2 -o ro /dev/mtdblock0 /mnt/jffs2/
tar -cf - -C /mnt/jffs . | tar xvf - -C /media/disk
The Following User Says Thank You to benny1967 For This Useful Post: | ||
|
2009-01-06
, 16:16
|
Posts: 1 |
Thanked: 0 times |
Joined on Jan 2009
|
#9
|
|
2009-01-06
, 16:18
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#10
|
What I want to do is a little different: I want to leave the running OS 2006 on my 770 untouched, use the boot-menu (already have this *g*) and get a working image of OS2007HE on my MMC card. (I have a crad reader on my desktop linux PC, so it's really easy for me to do all the steps there.)
Unfortunately, I don't get very far. I had some more problems in the beginning (thread here) and benson helped me a lot during these ealry steps, but I'm still stuck on how to get a working setup on the MMC-partition:
I can easily extract the contents of both rootfs.jffs2 and initfs.jffs2 on my desktop PC, but how do I combine them to get a running system?
First I thought rootfs.jffs2 would be enough, but it isnt. Then I added the contents of initfs.jffs2 to /mnt/initfs in the root fs, but it still doesnt boot.
Anybody done this before? What am I missing?
And: Is there any place I can go for debugging information? I get the boot menu, select the entry, and after a few seconds I'm at the boot menu again... Not very helpful. Is there a way to read what happened afterwards? Like missing modules, wrong paths etc etc...?
It would be so cool to just copy whatever version of ITOS to MMC without going through the "flash-copy to MMC-reflash original"-hassle. I'd even consider OS2005 just for the fun of it - I can't remeber what it looked like at all.
Last edited by benny1967; 2008-06-16 at 09:53.