View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#196
Originally Posted by tolou View Post
Whatīs the (short?)device name for the boot partition, /dev/mmcblk0p2 or what?
Yes if you boot from second partition.

Originally Posted by tolou View Post
I also concerned about the different filesystems as I have the ext2 on the card. Having run the
Code:
mount /dev/mmcblk0p2 /opt
./mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
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?
mkfs.jffs2 is for creating flashable image suited for internal flash, you can do it like above but you can't restore the result to mmc card, only to internal flash (provided the result it is not too large to fit).

If you want to make backup suitable for extracting to mmc card later you can use GNU tar i.e. to make backup to FAT partition on mmc card run something like this
Code:
mount /dev/mmcblk0p2 /opt
cd /opt
/path/to/gnu/tar -zcvf /media/mmc1/backup.tar.gz .
then you can later restore it by formating mmc partition (mke2fs), mounting it and extracting via tar again
Code:
mount /dev/mmcblk0p2 /opt
cd /opt
/path/to/gnu/tar -zxvf /media/mmc1/backup.tar.gz

Originally Posted by tolou View Post
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
No.
__________________
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.