Contents |
Warning: You can write over the emmc if mmc is not mounted
Flashing Meego Step-by-step
Carried out with battery in & cover on. n900 direct USB connection to 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
This is the image to flash to your n900
n900 is switched off and unplugged
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):
Host output:
9. Run this command on host
KERNEL=$(ls /tmp/n900/*/*vmlinuz*); /usr/bin/flasher-3.5 -b -l -k ${KERNEL}
10. Restart the n900