[maemo-developers] Data corruption on N770 in OS2007 HE

From: Frantisek Dufka dufkaf at seznam.cz
Date: Sat Nov 10 21:25:24 EET 2007
Alex DAMIAN wrote:
> Any idea about what I'm doing wrong ?

Hard to guess without any details posted but you might try to make it 
directly on the device if you already got the initfs flashing script 
with mtd-utils.

sudo gainroot
#copy initfs
mkdir -p mnt
mount -t jffs2 -o ro /dev/mtdblock3 mnt
cp -a mnt initfs
umount mnt
rmdir mnt
#make image
cp ../cx3110x-on-stack.ko initfs/lib/modules/current/cx3110x.ko
mkfs.jffs2 -r initfs -o initfs.jffs2 -e 128 -l -n
rm -rf initfs

now copy initfs.jffs2 to PC and flash with Nokia flasher or flash it 
directly from device like this
../initfs_flash initfs.jffs

But maybe the easiest is to modify /etc/init.d/rcS to remove broken 
module and reinsert fixed one like mentioned in previous mail.

As for easy to install (.deb) package I'm still not sure which one to 
make - initfs reflash or rootfs modification, first (initfs 
modification) is a bit more unsafe to install but can be done only once 
when booting multiple systems, second is safe to install and a bit 
easier to make but needs install into each rootfs. Perhaps I should make 
both to make it even more confusing :-)


More information about the maemo-developers mailing list