|
2007-07-27
, 22:22
|
|
Posts: 221 |
Thanked: 182 times |
Joined on Jul 2007
@ Central Illinois
|
#192
|
This is strange. It shouldn't be related to the card size at all. If you can mount the card and see the data, it should be same at boot time. Which partition you used for ext2, /dev/mmcblk0p2 or something higher like p4,p5..?
You can edit/create bootmenu.conf (not .sh) and addas a last line and after boot see if there is anything suspicious in kernel log early at boot time. You can also see kernel log after it failed and booted from flash but the beginning is cut off.Code:dmesg >/tmp/dmesg.out
|
2007-07-30
, 00:18
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#193
|
You can edit/create bootmenu.conf (not .sh) and addas a last line and after bootCode:dmesg >/tmp/dmesg.out
dd bs=1M if=/dev/mmcblk0p2 | gzip > /media/mmc1/images/IT2006_2.2_Working.gzTo restore:
gzip -dc /media/mmc1/images/IT2006_2.2_Working.gz | dd of=/dev/mmcblk0p2 obs=1MIt's uh, not super fast with a stock kernel :P
|
2007-08-07
, 18:03
|
Posts: 43 |
Thanked: 4 times |
Joined on May 2007
@ Vancouver, WA
|
#194
|
|
2007-08-09
, 13:53
|
|
Posts: 87 |
Thanked: 1 time |
Joined on Mar 2006
|
#195
|
When I like current stable system in flash (after clean reflashing and tweaking it a bit) I boot from mmc and do a backup
then when I want to restore system in flash I boot from mmc and doCode:mount -t jffs2 /dev/mtdblock4 /opt ./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n umount /opt
Be sure to use correct device name (/dev/mtd4 for rootfs) and never ever use -j option of nandwrite. Also never ever erase or flash /dev/mtd1 or mtd0. By doing this you can seriously screw your device to the point that reflashing will not help you (and won't be posible at all).Code:./flash_eraseall -j /dev/mtd4 ./nandwrite -a -p /dev/mtd4 /media/mmc1/rootfs.jffs2
mount /dev/mmcblk0p2 /opt ./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
./flash_eraseall -j /dev/mmcblk0p2 ./nandwrite -a -p /dev/mmcblk0p2 /media/mmc1/rootfs.jffs2
|
2007-08-09
, 14:29
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#196
|
Whatīs the (short?)device name for the boot partition, /dev/mmcblk0p2 or what?
I also concerned about the different filesystems as I have the ext2 on the card. Having run the
produced what seems to be a compressed image of my card. But can I really mix the system types like this? What happens when I want to restore the jff2 image to my ext2 card again?Code:mount /dev/mmcblk0p2 /opt ./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
mount /dev/mmcblk0p2 /opt cd /opt /path/to/gnu/tar -zcvf /media/mmc1/backup.tar.gz .
mount /dev/mmcblk0p2 /opt cd /opt /path/to/gnu/tar -zxvf /media/mmc1/backup.tar.gz
Can I run something like this from the flash system then even though itīs ext2?
Code:./flash_eraseall -j /dev/mmcblk0p2 ./nandwrite -a -p /dev/mmcblk0p2 /media/mmc1/rootfs.jffs2
|
2007-09-21
, 07:45
|
|
Posts: 51 |
Thanked: 7 times |
Joined on Jul 2007
@ Powell, OH
|
#197
|
|
2007-09-21
, 14:30
|
Posts: 3,401 |
Thanked: 1,255 times |
Joined on Nov 2005
@ London, UK
|
#198
|
|
2007-09-21
, 15:12
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#199
|
|
2007-10-02
, 16:41
|
|
Posts: 469 |
Thanked: 88 times |
Joined on Sep 2007
@ Montana
|
#200
|
You can edit/create bootmenu.conf (not .sh) and add
You may also try to test if it is some limitation/bug of uclibc system in initfs. As root you may run
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.