ReferencePlatforms/Test/Maemo: Difference between revisions

Jump to navigation Jump to search
no edit summary
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


'''N810's don't like when you use rsync > 2 for this part. use rsync 2.6.9!'''
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 /" #should print a line
  mount | grep "/dev/mmcblk0p1 on /"
should print a line


==Populate Filesystem==
==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 reboot-user
==Install mozilla scripts==
cd /bin
On n810 run:
  wget http://hg.mozilla.org/build/tools/raw-file/1078c5659590/buildfarm/mobile/n900-imaging/rootfs/root-skel/bin/reboot-user
  hg clone http://hg.mozilla.org/build/tools
  chmod +x reboot-user
rsync -a tools/buildfarm/mobile/n810-imaging/rootfs/. /.
 
  rm -rf tools
==Buildbot startup==
There will be an /etc/init.d/mozilla and /etc/mozconf script checked into build/tools repository.  Copy those files to the right place and run
  update-rc.d mozilla defaults
  update-rc.d mozilla defaults


Confirmed users
1,377

edits

Navigation menu