Meego Wiki
Views

Quality/QA-tools/OTS/Manual flashing of n900

From MeeGo wiki
< Quality | QA-tools | OTS
Revision as of 11:20, 25 March 2011 by Asinnela (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Manual Flashing of n900

Warning: You can write over the emmc if mmc is not mounted

Flashing Meego Step-by-step

  • Host: Ubuntu 10.04
  • Device: N900

Carried out with battery in & cover on. n900 direct USB connection to host.

1. Download the flasher

2. Download the ‘bootstrap image & kernel’

Autoinstaller-n900.tar.gz

3. Prepare Host

Edit your /etc/network/interfaces:

auto usb0
iface usb0 inet static
address 192.168.2.14
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
up iptables -A POSTROUTING -t nat -j MASQUERADE
up echo 1 >/proc/sys/net/ipv4/ip_forward
down echo 0 >/proc/sys/net/ipv4/ip_forward
down iptables -t nat -F POSTROUTING

Restart (host will complain but ignore this):

/etc/init.d/networking restart

Install netcat6

4. Download the latest meego image

This is the image to flash to your n900

  • Unpack to /tmp/n900
  • Check ls /tmp/n900//*mmcblk0p

5. Ready the Device

n900 is switched off and unplugged

6. Flash bootstrap

  • Navigate to the flasher directory:
  • Use the ‘bootstrap image & kernel’ for the next step

sudo ./flasher-3.5 -k ./vmlinuz-2.6.35.3-8.3-n900 -n ./initrd.img-rescue-2.6.35.3-8.3-n900 -l -b"rootdelay=1 root=/dev/ram0"

Host output (Yes, the versions do appear to be different):

flasher v2.5.2 (Oct 21 2009)
Suitable USB device not found, waiting.

Now plugin n900 and switch on. Host output:

USB device found found at bus 002, device address 109.
Found device RX-51, hardware revision 2204
NOLO version 1.4.14
Version of 'sw-release': RX-51_2009SE_10.2010.19-1_PR_MR0
Sending kernel image (1947 kB)...
100% (1947 of 1947 kB, avg. 27814 kB/s)
Sending initfs image (1980 kB)...
100% (1980 of 1980 kB, avg. 28695 kB/s)
Using kernel command line: "rootdelay=1 root=/dev/ram0"

7. Connection check

echo 'exit'  | nc 192.168.2.15 500

8. Copy the full blown image across to the device

IMAGE=$(ls /tmp/n900/*/*mmcblk0p*);sleep 5;dd if=${IMAGE} | nc6 192.168.2.15 500 -q 10:10; sleep 10; echo "/sbin/reboot -f" | nc 192.168.2.15 500

n900 output (IIRC):

  • "starting nv listening to write output to mmcblk0"
  • Screen goes black after 5 mins

Host output:

  • Sits there (no progress bars)

9. Run this command on host

KERNEL=$(ls /tmp/n900/*/*vmlinuz*); /usr/bin/flasher-3.5 -b -l -k ${KERNEL}

10. Restart the n900

Personal tools