ReferencePlatforms/Test/WindowsMobile
This document is designed to explain how to create the mozilla reference image for testing on maemo devices using a MiniSD card as the boot device. It will also describe how to image this image to other N810 units for use in the production environment.
Reference Image
This section will explain the steps to go from a used N810 to a reference image. It will stop short of the actual imaging process but will set up the required tools to create the image.
Setting up the wifi
TODO
Adjust device settings
reserved spot for adjusting power, screen, networking and other related settings
Install test-agent
Setup test-agent to run on boot
Daily Reboot
good idea to include this, need to figure out how to do this
Talos
Upload the tp4 pageset to /tools/tp4, then
ln -s /builds/talos/page_load_test /var/www/html/
Maemkit
On a pc get maemkit and put it onto the N810. Modify maemkit.cfg
hg clone http://hg.mozilla.org/qa/maemkit vim maemkit.cfg # run :%s'/media/mmc1/release'/builds/unittest'g scp -r maemkit root@${DEVIP}:/tools/maemkit
Clone Filesystem
Using parted, set up the filesystem on the target card
parted --script /dev/sdb mklabel msdos parted --script /dev/sdb mkpartfs primary ext2 0 3500 parted --script /dev/sdb mkpartfs primary linux-swap 3500 3900 mkfs.ext2 -L maemo-n810-ref /dev/sdb1 mkswap /dev/sdb2
Then insert the MiniSD card into the device. Now image the device
mount -t jffs2 /dev/mtdblock4 /opt mount /dev/mmcblk1p1 /floppy rsync -a /opt/. /floppy/. umount /floppy
On the real computer, mount the flash drive and sync the filesystem to a directory on the drive
mkdir /flashing/tmp /flashing/moz-ref-image-v1 mount /dev/sdb1 /flashing/tmp rsync -a /flashing/tmp/. /flashing/moz-ref-image-v1/. sync umount /flashing/tmp
On the real computer, install the talos pagesets
cd moz-ref-image-v1/tools cp -r /flashing/mmc2/pages . cp -r /flashing/mmc2/tp4 . rm -f /flashing/moz-ref-image-v1/var/www/page_load_test ln -s /tools/talos/page_load_test /var/www/page_load_test ln -s /tools/pages /tools/page_load_test/pages ln -s /tools/pages /tools/talos/page_load_test/tp3 ln -s /tools/tp4 /tools/talos/page_load_test/tp4