Meego Wiki
Views

ARM/N900/Install/Dual Boot

From MeeGo wiki
< ARM | N900 | Install(Difference between revisions)
Jump to: navigation, search
(Dual booting using flasher)
(Dual booting Maemo 5 (Fremantle) PR1.3 and MeeGo Developer Edition)
 
(32 intermediate revisions not shown)
Line 1: Line 1:
-
'''Warning: By following these instructions, you might cause damage to your N900 device. Make sure that you create a backup of your device before continuing. We do not take any responsibility for the damage that might be caused to your device.'''
+
== Dual booting Maemo 5 (Fremantle) PR1.3 and MeeGo Developer Edition ==
-
= Dual booting using flasher =
+
<strong>WARNING: This guide is experimental and everything you do with this guide is at your own responsibility and risk.</strong>
-
If you have put MeeGo on N900 image on your microSD, using the [[ARM/N900/tools/flasher|flasher]], you can then dual-boot using this command line:
+
<strong>WARNING: DO NOT RELY ON WALL CHARGER, ONLY USB CHARGING FOR 1.1 IMAGES, see [http://bugs.meego.com/show_bug.cgi?id=2260 meego bug #2260].</strong> (no longer applies to images from april 2011 - wall charger is better.)
-
flasher-3.5 -k vmlinuz-file -l -b
+
<strong>WARNING: If you are unable to boot anything, do NOT let the device stay in u-boot. IMMEDIATELY reflash back to Maemo. Your battery may drain otherwise. You can solve a drain situation by reflashing back to Maemo using another, charged, battery. Or charge your battery in another Nokia device using the same battery type, such as the 5800, using a wall charger. There is a [[ARM/N900/Recover From Drained Battery|guide to battery drainage solving]].</strong>
-
You can download a MeeGo for N900 vmlinuz/kernel from one of the [[ARM/N900#Releases|releases]].  
+
This is a simplified guide for dual-booting with u-boot on Nokia N900.
-
Turn off your N900, plug the USB cable into your PC, and the flasher will make the N900 load the kernel over USB and boot into MeeGo, provided the microSD is put into your N900 and the back cover closed. This operation is a one time thing and does not alter your kernel on the device.
+
'''You must be using the PR1.3 kernel and nothing else'''. If you aren't, you will likely end up in a reboot loop. To check this, in Settings -> About product. Make sure you see:
-
= Dual Boot Fremantle and MeeGo on N900 =
+
<pre>Version: 20.2010.36-2</pre>
-
'''Under construction. This feature is not working in MeeGo due to kexec problems'''
+
You will need a 4 GB microSD card or bigger. You may also see "MMC", which is basically the same thing as the microSD card.
-
== Prerequisites ==
+
# Enable the maemo.org extras-devel repository, see http://wiki.maemo.org/Extras-devel (<strong>The software hosted in extras-devel is not ready for normal users! PLEASE PLEASE PLEASE don't play with it, unless you really know what you are doing.</strong> It is recommended to disable the extras-devel repository after you have installed the package below, and do not install any updated packages that you might be notified of while extras-devel is enabled. Be ready to file proper bug reports instead of posting complaints.)
-
# Fremantle installed on N900
+
# Install the 'uboot-pr13' package from 'System' section
-
# Kernel with kexec support
+
# Verify it's installed by restarting your N900. A penguin should show up at startup and U-boot will be mentioned, let it time out and boot into Maemo.
-
# kexec-tools
+
# Download the image from [http://repository.maemo.org/meego/n900-de/ http://repository.maemo.org/meego/n900-de/] (you need the raw.bz2 file for the daily acceptance image)
-
# Bootmenu (Optional)
+
# Follow the [[ARM/N900/Install/MMC#Installing Rootfs on external MMC card|instructions for installing a rootfs on an external MMC card]] to write the raw image to your microSD
-
# 2G+ micro SD card
+
# Insert the microSD, put back phone back cover (otherwise, microSD card won't be properly detected at startup by MeeGo) and turn on the N900, let U-boot menu time out and MeeGo will boot.
 +
# Enjoy!
-
=== Required Fremantle packages ===
+
To boot back in to Maemo, turn off your phone, then either remove the microSD and then turn on your phone, or turn it on and interrupt the boot during the countdown, by pressing a button and then typing "run noloboot".
-
Some additional packages are required to be installed to your Fremantle installation to get the dual boot working. This includes kexec-tools, kernel with kexec support and bootmenu.  
+
-
==== kexec-tools ====
+
If you want to remove U-boot, you can as root in Maemo run: apt-get install --reinstall kernel kernel-flasher
-
kexec-tools can be installed from Fremantle Extras-devel repository ([http://repository.maemo.org/extras-devel/pool/fremantle Browse],[http://repository.maemo.org/extras/install/extras-devel-fremantle.install Install]). After installing the repository, you can install the package:
+
<strong>If you are unable to get back into Maemo, please follow http://wiki.maemo.org/Updating_the_tablet_firmware in order to reflash your device. This will destroy your current Maemo setup, but return your device to a working state.</strong>
-
apt-get install kexec-tools
+
-
==== Kernel with kexec support ====
+
<strong>For the technically minded, you can flasher '-F <firmware image> -u' and 'flasher -f zImage -R' to get your original kernel back and hopefully get back to your current Maemo setup. If you have used other kernels than the required PR1.3 kernel, this will not work.</strong>
-
To boot MeeGo from your Fremantle installation, you need to install a kernel that supports kexec, that can be found from HERE.
+
=== Tricky way to install u-boot using flasher ===
-
==== Bootmenu (optional) ====
+
<strong>This is riskier, so please use the previous way instead.</strong>
-
If you wish to have a boot menu to select either Fremantle or MeeGo during boot, you need to install bootmenu to your device (located also in the Extras-devel repository):
+
<strong>Note all warnings in the previous section.</strong>
-
apt-get install bootmenu-n900
+
'''You must be using the PR1.3 kernel and nothing else'''. If you aren't, you will likely end up in a reboot loop. You need dpkg tool to use this.
-
After installing the bootmenu, go to the application menu and click the "Install Bootmenu" icon. If you really want to install the bootmenu, type ''yes'' to the question.
+
# Download 'uboot-pr13_*_armel.deb' from http://repository.maemo.org/extras-devel/pool/fremantle-1.3/free/u/uboot-pr13/
 +
# unpack deb: <strong>"dpkg -X uboot-pr13_1.0.2_armel.deb uboot-pr13"</strong>
 +
# flash to device: <strong>"sudo flasher-3.5 -f -F temp/boot/uboot-and-zImage-2.6.28-20103103+0m5.fiasco"</strong>
-
Now you should have a functional bootmenu on your device. You can try it out by rebooting the device and keeping the keypad slide out during the boot.
+
[[Category:N900]]
-
 
+
-
Next, we need to add a new item to the bootmenu for the MeeGo. Add the following lines to '''/etc/bootmenu.d/meego.ext.item'''
+
-
ITEM_NAME="MeeGo (external SD, partition 1)"
+
-
ITEM_ID="meego"
+
-
ITEM_DEVICE="${EXT_CARD}p1"
+
-
ITEM_MODULES="mbcache jbd ext3"
+
-
ITEM_FSTYPE="ext3"
+
-
ITEM_FSOPTIONS="noatime,rw"
+
-
 
+
-
== Install MeeGo ==
+
-
Next, we install MeeGo to an external micro SD card (size >= 2G). '''NOTE: The content of the card will be deleted, so copy all essential data to a safe location before continuing.'''
+
-
 
+
-
=== Linux ===
+
-
The image can be written with ...
+
-
 
+
-
== Booting to MeeGo ==
+
-
You can boot to MeeGo with bootmenu (if installed) or with kexec command.
+

Latest revision as of 21:23, 21 June 2011

Dual booting Maemo 5 (Fremantle) PR1.3 and MeeGo Developer Edition

WARNING: This guide is experimental and everything you do with this guide is at your own responsibility and risk.

WARNING: DO NOT RELY ON WALL CHARGER, ONLY USB CHARGING FOR 1.1 IMAGES, see meego bug #2260. (no longer applies to images from april 2011 - wall charger is better.)

WARNING: If you are unable to boot anything, do NOT let the device stay in u-boot. IMMEDIATELY reflash back to Maemo. Your battery may drain otherwise. You can solve a drain situation by reflashing back to Maemo using another, charged, battery. Or charge your battery in another Nokia device using the same battery type, such as the 5800, using a wall charger. There is a guide to battery drainage solving.

This is a simplified guide for dual-booting with u-boot on Nokia N900.

You must be using the PR1.3 kernel and nothing else. If you aren't, you will likely end up in a reboot loop. To check this, in Settings -> About product. Make sure you see:

Version: 20.2010.36-2

You will need a 4 GB microSD card or bigger. You may also see "MMC", which is basically the same thing as the microSD card.

  1. Enable the maemo.org extras-devel repository, see http://wiki.maemo.org/Extras-devel (The software hosted in extras-devel is not ready for normal users! PLEASE PLEASE PLEASE don't play with it, unless you really know what you are doing. It is recommended to disable the extras-devel repository after you have installed the package below, and do not install any updated packages that you might be notified of while extras-devel is enabled. Be ready to file proper bug reports instead of posting complaints.)
  2. Install the 'uboot-pr13' package from 'System' section
  3. Verify it's installed by restarting your N900. A penguin should show up at startup and U-boot will be mentioned, let it time out and boot into Maemo.
  4. Download the image from http://repository.maemo.org/meego/n900-de/ (you need the raw.bz2 file for the daily acceptance image)
  5. Follow the instructions for installing a rootfs on an external MMC card to write the raw image to your microSD
  6. Insert the microSD, put back phone back cover (otherwise, microSD card won't be properly detected at startup by MeeGo) and turn on the N900, let U-boot menu time out and MeeGo will boot.
  7. Enjoy!

To boot back in to Maemo, turn off your phone, then either remove the microSD and then turn on your phone, or turn it on and interrupt the boot during the countdown, by pressing a button and then typing "run noloboot".

If you want to remove U-boot, you can as root in Maemo run: apt-get install --reinstall kernel kernel-flasher

If you are unable to get back into Maemo, please follow http://wiki.maemo.org/Updating_the_tablet_firmware in order to reflash your device. This will destroy your current Maemo setup, but return your device to a working state.

For the technically minded, you can flasher '-F <firmware image> -u' and 'flasher -f zImage -R' to get your original kernel back and hopefully get back to your current Maemo setup. If you have used other kernels than the required PR1.3 kernel, this will not work.

Tricky way to install u-boot using flasher

This is riskier, so please use the previous way instead.

Note all warnings in the previous section.

You must be using the PR1.3 kernel and nothing else. If you aren't, you will likely end up in a reboot loop. You need dpkg tool to use this.

  1. Download 'uboot-pr13_*_armel.deb' from http://repository.maemo.org/extras-devel/pool/fremantle-1.3/free/u/uboot-pr13/
  2. unpack deb: "dpkg -X uboot-pr13_1.0.2_armel.deb uboot-pr13"
  3. flash to device: "sudo flasher-3.5 -f -F temp/boot/uboot-and-zImage-2.6.28-20103103+0m5.fiasco"
Personal tools