ReferencePlatforms/Imaging/Nokia N900: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with '=Imaging= sudo ./maemo5-flash.sh moz-n900-v1.ubi #change this file as needed =Creating Image= Once the image has been configured run on the imaging machine: ==Get the image …')
 
 
(34 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Imaging=
=Imaging Steps=
  sudo ./maemo5-flash.sh moz-n900-v1.ubi #change this file as needed
Launch the OS X Terminal then do the following
*On the imaging computer, run:
cd ~/n900-imaging
  sudo ./flash.py
*'''Follow the steps in the script started above (flash.py)'''
*wait for the script to say 'Done! Unplug device'
*unplug the device.  The screen will stay black with dots in the center. 
*Remove and replace the battery and replace the back plate. 
*Ensure that the camera shutter is closed. 
*The device will start up on battery insertion.
*Once you see a prompt that says "Your Nokia N900 has the following settings" press the "save" button. 
**The screen will change to dots in the center of a black screen while the device finishes setup. 
*Once the background of the device changes to a picture of a water stream pressing the 2x3 grid of squares in the top left corner of the screen to go to application chooser interface. 
*Scroll down to "X Terminal" and tap that icon to launch. 
*In the X Terminal run (substituting $num for the zero-padded host number, n900-001 becomes 001)
sudo initialize $num
*Once this command has completed, plug it into the charger in its final location and run the command:
sudo reboot
*leave the keyboard slider open


At this point, the device is set up and will go into staging automatically.


==Sample Output of initialize==
<pre>
INFO: timezone set to America/Los_Angeles
INFO: Initialised n900-011
</pre>


==Machine Setup==
'''THIS SECTION IS FOR SETTING UP A NEW IMAGING MACHINE'''
The rest of the document is not applicable for flashing.


=Creating Image=
To make this go quicker, you can set up your MacBook (or any mac) to be a flashing computer.
Once the image has been configured run on the imaging machine:
==Get the image on your local machine
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
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


==Generate Root Filesystem==
The easiest way is to run
  sudo ./generate-rootfs.sh moz-n900-v1 moz-n900-v1
  scp maemo@mobile-image02.build.mozilla.org:n900-imaging/moz-n900-*.ubi .
This takes approximately 1 minute
scp maemo@mobile-image02.build.mozilla.org:n900-imaging/RX-51*.bin .


==Upload /home Filesystem==
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 [http://tablets-dev.nokia.com/maemo-dev-env-downloads.php here](live link doesn't work).  Next you will need to obtain.
  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

Latest revision as of 22:01, 28 October 2010

Imaging Steps

Launch the OS X Terminal then do the following

  • On the imaging computer, run:
cd ~/n900-imaging
sudo ./flash.py
  • Follow the steps in the script started above (flash.py)
  • wait for the script to say 'Done! Unplug device'
  • unplug the device. The screen will stay black with dots in the center.
  • Remove and replace the battery and replace the back plate.
  • Ensure that the camera shutter is closed.
  • The device will start up on battery insertion.
  • Once you see a prompt that says "Your Nokia N900 has the following settings" press the "save" button.
    • The screen will change to dots in the center of a black screen while the device finishes setup.
  • Once the background of the device changes to a picture of a water stream pressing the 2x3 grid of squares in the top left corner of the screen to go to application chooser interface.
  • Scroll down to "X Terminal" and tap that icon to launch.
  • In the X Terminal run (substituting $num for the zero-padded host number, n900-001 becomes 001)
sudo initialize $num
  • Once this command has completed, plug it into the charger in its final location and run the command:
sudo reboot
  • leave the keyboard slider open

At this point, the device is set up and will go into staging automatically.

Sample Output of initialize

INFO: timezone set to America/Los_Angeles
INFO: Initialised n900-011

Machine Setup

THIS SECTION IS FOR SETTING UP A NEW IMAGING MACHINE The rest of the document is not applicable for flashing.

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.