Confirmed users
1,377
edits
No edit summary |
No edit summary |
||
| Line 157: | Line 157: | ||
'''MAKE SURE YOU HAVE THE CORRECT DEVICE NODE FILE i.e. /dev/sdb''' | '''MAKE SURE YOU HAVE THE CORRECT DEVICE NODE FILE i.e. /dev/sdb''' | ||
For this you will need to have an SD card that has an ext3 filesystem. | For this you will need to have an SD card that has an ext3 filesystem. On imaging computer with SD card inserted | ||
dd if=/dev/zero of=/dev/sd? bs=512 count=1 | dd if=/dev/zero of=/dev/sd? bs=512 count=1 | ||
sudo parted --script /dev/sd? mktable msdos | sudo parted --script /dev/sd? mktable msdos | ||
| Line 165: | Line 165: | ||
mkfs.ext3 /dev/sd? -L scratch | mkfs.ext3 /dev/sd? -L scratch | ||
You will also need to copy the rsync binary onto your N810 | You will also need to copy the rsync binary onto your N810. This is done on imaging computer | ||
scp $ROOT/usr/local/bin/rsync root@<dev> | scp $ROOT/usr/local/bin/rsync root@<dev> | ||
Now remount your device's root filesystem | Now remount your device's root filesystem. Boot the N810 with the prepared SD card in the slot. | ||
sudo gainroot | sudo gainroot | ||
mount -t jffs2 /dev/mtdblock4 /opt | mount -t jffs2 /dev/mtdblock4 /opt | ||
mount /dev/mmcblk1p1 /floppy | mount /dev/mmcblk1p1 /floppy | ||
rsync -av /opt/. /floppy/. | |||
umount /floppy | |||
Now put the sd card back in the computer. I would suggest making a backup of your image at this point. | |||
I would suggest making a backup of your image at this point. | |||
mkdir ~/base-n810 | mkdir ~/base-n810 | ||
sudo rsync2 -av /media/root-fs/. ~/base-n810/. | sudo rsync2 -av /media/root-fs/. ~/base-n810/. | ||
| Line 184: | Line 184: | ||
boot device and verify that your device is booted from mmc | boot device and verify that your device is booted from mmc | ||
mount | grep "/dev/mmcblk0p1 on /" | mount | grep "/dev/mmcblk0p1 on /" | ||
should print a line | |||
== | ==Install compiled applications== | ||
on the imaging computer with the N810 running from the SD card | |||
sudo rsync2 -av $ROOT/. root@<devip>:/. | sudo rsync2 -av $ROOT/. root@<devip>:/. | ||
| Line 230: | Line 232: | ||
EOF | EOF | ||
==Install mozilla scripts== | |||
On n810 run: | |||
hg clone http://hg.mozilla.org/build/tools | |||
rsync -a tools/buildfarm/mobile/n810-imaging/rootfs/. /. | |||
rm -rf tools | |||
update-rc.d mozilla defaults | update-rc.d mozilla defaults | ||