ReferencePlatforms/Imaging/Nokia N900: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 3: Line 3:
  cd ~/n900-imaging
  cd ~/n900-imaging
  sudo ./maemo5-flash.sh moz-n900-v1.ubi #change this file as needed
  sudo ./maemo5-flash.sh moz-n900-v1.ubi #change this file as needed
After each device is flashed, reseat the battery and press the power button.  If the home screen is just a black square with dollar sign on a background of water splashes something has gone wrong and the device needs to be reflashed.  If there are a lot of things including 'getting started' and 'ovi' on the desktop, tap the black square with $ and run
sudo i NNN #NNN is the numeric portion of the hostname
Wait for the screen to say as the last line
<TIMESTAMPE> INFO:Initialized
then run
sudo reboot


==MacBook Setup==
==MacBook Setup==

Revision as of 00:42, 21 May 2010

Imaging

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

cd ~/n900-imaging
sudo ./maemo5-flash.sh moz-n900-v1.ubi #change this file as needed

After each device is flashed, reseat the battery and press the power button. If the home screen is just a black square with dollar sign on a background of water splashes something has gone wrong and the device needs to be reflashed. If there are a lot of things including 'getting started' and 'ovi' on the desktop, tap the black square with $ and run

sudo i NNN #NNN is the numeric portion of the hostname

Wait for the screen to say as the last line

<TIMESTAMPE> INFO:Initialized

then run

sudo reboot

MacBook Setup

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

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