ReferencePlatforms/Imaging/Nokia N900

From MozillaWiki
Jump to navigation Jump to search

Imaging

If you are working on the linux mobile-imageXX machine, run

cd ~/n900-imaging
sudo ./flash.py

and follow the on screen directions

MacBook Setup

To make this go quicker, you can set up your MacBook (or any mac) to be a flashing computer.

Start by setting up the required Mozilla written tools

cd ~ #or wherever you want to work from
hg clone http://hg.mozilla.org/build/tools
ln -s tools/buildfarm/mobile/n900-imaging

At this point you need to obtain the following files:

  • moz-n900-vNN.ubi - mozilla custom firmware
  • RX-51_2009SE_1.2009.41-1.VANILLA_PR_EMMC_MR0_ARM.bin
  • RX-51_2009SE_2.2009.51-1_PR_COMBINED_MR0_ARM.bin

The easiest way is to run

scp maemo@mobile-image02.build.mozilla.org:n900-imaging/moz-n900-*.ubi .
scp maemo@mobile-image02.build.mozilla.org:n900-imaging/RX-51*.bin .

Finally, you need the Mac OS X version of the flasher-3.5 program. Download 'maemo_flasher-3.5_2.5.2.2_i386.dmg' from here(live link doesn't work). Next you will need to obtain.

Flashing is the same as working on the linux machine,

sudo ./maemo5-flash.sh moz-n900-v1.ubi #change as required

IGNORE BELOW HERE IF YOU AREN'T CREATING A NEW IMAGE

Creating Image

Once the image has been configured run on the imaging machine:

Get the files off the device

sudo ./grab-image.sh n900-ref.build.mozilla.org moz-n900-v1

NOTE: you have to enter your password multiple times. Please don't set up pubkey authentication.

This process takes approximately 30 minutes

Next, generate the root filesystem image

sudo ./generate-rootfs.sh moz-n900-v1 moz-n900-v1

This takes approximately 1 minute

Finally upload /home filesystem

sudo rsync -av moz-n900-v1-home cltbld@10.250.48.242:/nokimg/
ssh root@10.250.48.242 rm /nokimg/home
ssh root@10.250.48.242 ln -s /nokimg/moz-n900-v1-home /nokimg/home