Mer/Documentation/Bootmenu

(simple Mer menuitem and instructions for more complex)
(Reworded)
Line 1: Line 1:
 +
When flashing the new bootloader (bootmenu) via the Mer installer it will look for items in /etc/bootmenu.d/ and include those in the bootmenu. This is important when you have an operating system e.g. on your external card.
 +
 +
You could have multiple OSes on your tablet, eg:
 +
* Maemo in internal flash, Mer on SD,
 +
* Mer in internal flash
 +
* Maemo in internal flash, Mer on SD, 2nd Maemo on SD
 +
==Setting up your Bootmenu .item files for Mer==
==Setting up your Bootmenu .item files for Mer==
-
When flashing the new bootloader (bootmenu) via the Mer installer it will look for items in /etc/bootmenu.d/ and include those in the bootmenu. This is important when you have an operating system e.g. on your external card.
+
Assuming that you have booted Maemo (or equivalent) from your internal flash and you are currently running Maemo.
-
This article assumes that you booted Maemo (or equivalent) from your internal flash and you are currently running Maemo.
+
(Note that you will need to look in /mnt/initfs/ for etc/bootmenu.d/ if you are running Mer or Maemo from an SD card).
After downloading and installing the Mer installer (see [[Mer/Documentation/Installation]]) you need to work as root (see [[Root_access]]).
After downloading and installing the Mer installer (see [[Mer/Documentation/Installation]]) you need to work as root (see [[Root_access]]).
-
Go to /etc/bootmenu.d/ (<code>cd /etc/bootmenu.d</code>) and check for files (<code>ls -la</code>). Every file with the ending .item in this folder will result in an entry in the bootmenu. The internal flash is always part of the bootmenu.conf, so you dont need an entry here.
+
Go to /etc/bootmenu.d/ (<code>cd /etc/bootmenu.d</code>) and check for files (<code>ls -la</code>). Every file with the ending .item in this folder will result in an entry in the bootmenu. The internal flash is always part of the bootmenu.conf, so you dont need a .item file for that.
The following example (<code>vi mer.ext.item</code>) will make an option in the bootmenu which allows you to boot Mer from the 3rd partition of the external sd card, formatted with ext3:
The following example (<code>vi mer.ext.item</code>) will make an option in the bootmenu which allows you to boot Mer from the 3rd partition of the external sd card, formatted with ext3:
Line 27: Line 34:
# mounting options
# mounting options
ITEM_FSOPTIONS="noatime,rw"
ITEM_FSOPTIONS="noatime,rw"
-
# Use the Mer linuxrc to continue to Boot
+
# Use the Mer linuxrc to continue to Boot (IMPORTANT for Mer)
ITEM_LINUXRC="linuxrc"
ITEM_LINUXRC="linuxrc"
</nowiki>
</nowiki>
Line 39: Line 46:
You'll need to work as root (see [[Root_access]]).
You'll need to work as root (see [[Root_access]]).
-
'''* How to set Mer to boot as default?'''
+
=== How to set Mer to boot as default?===
First you need to set up your .item files stored in /etc/bootmenu.d/ (see above) ''Please set the ITEM_ID to something small with nothing useless and no spaces.''
First you need to set up your .item files stored in /etc/bootmenu.d/ (see above) ''Please set the ITEM_ID to something small with nothing useless and no spaces.''
Line 52: Line 59:
If the ID you set doesn't exist, it will be boot to Internal Flash as default.
If the ID you set doesn't exist, it will be boot to Internal Flash as default.
-
 
+
=== How to make bootmenu pop up without pressing any key?===
-
 
+
-
'''* How to make bootmenu pop up without pressing any key?'''
+
Bootmenu will pop up automatically if you add "ask:" to the command above.
Bootmenu will pop up automatically if you add "ask:" to the command above.
Line 66: Line 71:
==Setting up your Bootmenu .item files for other operating systems==
==Setting up your Bootmenu .item files for other operating systems==
-
This assumes that you booted Maemo (or equivalent) from your internal flash and are running it.
+
Assuming that you have booted Maemo (or equivalent) from your internal flash and are running it.
-
Go to /etc/bootmenu.d/ (<code>cd /etc/bootmenu.d</code>) and check for files (<code>ls -la</code>). Every file with the ending .item in this folder will result in an entry in the bootmenu. The internal flash is always part of the bootmenu.conf, so you dont need an entry here.
+
The following example (<code>vi mer.ext.item</code>) will make an option in the bootmenu which allows you to boot another operating system (e.g maemo or Deblet) from the 4th partition of the external sd card, formatted with ext3:
-
 
+
-
The following example (<code>vi mer.ext.item</code>) will make an option in the bootmenu which allows you to boot an operating system (e.g mer) from the 3rd partition of the external sd card, formatted with ext3:
+
<pre>
<pre>
<nowiki>
<nowiki>
# will be shown in the bootmenu
# will be shown in the bootmenu
-
ITEM_NAME="Mer on external card, p3"
+
ITEM_NAME="Maemo on external card, p4"
# needs to be an unique string to identify this item
# needs to be an unique string to identify this item
-
ITEM_ID="mer"
+
ITEM_ID="maemo2"
# which hardware device and partition should be booted.  
# which hardware device and partition should be booted.  
# use ${EXT_CARD} for the external card (slot) or ${INT_CARD} for the internal mmc
# use ${EXT_CARD} for the external card (slot) or ${INT_CARD} for the internal mmc
-
# followed by p3 for partition three
+
# followed by p4 for partition four
-
ITEM_DEVICE="${EXT_CARD}p3"
+
ITEM_DEVICE="${EXT_CARD}p4"
# which modules to load at boottime
# which modules to load at boottime
ITEM_MODULES="mbcache jbd ext3"
ITEM_MODULES="mbcache jbd ext3"
Line 90: Line 93:
</nowiki>
</nowiki>
</pre>
</pre>
-
Once finished entering the above 'code' type <code>:w</code>, press return. Then type <code>:q</code> and press return again. You'll then be back at /etc/bootmenu.d/
 
-
 
[[Category:Mer|Bootmenu]]
[[Category:Mer|Bootmenu]]

Revision as of 18:59, 25 May 2009

When flashing the new bootloader (bootmenu) via the Mer installer it will look for items in /etc/bootmenu.d/ and include those in the bootmenu. This is important when you have an operating system e.g. on your external card.

You could have multiple OSes on your tablet, eg:

  • Maemo in internal flash, Mer on SD,
  • Mer in internal flash
  • Maemo in internal flash, Mer on SD, 2nd Maemo on SD

Contents

Setting up your Bootmenu .item files for Mer

Assuming that you have booted Maemo (or equivalent) from your internal flash and you are currently running Maemo.

(Note that you will need to look in /mnt/initfs/ for etc/bootmenu.d/ if you are running Mer or Maemo from an SD card).

After downloading and installing the Mer installer (see Mer/Documentation/Installation) you need to work as root (see Root_access).

Go to /etc/bootmenu.d/ (cd /etc/bootmenu.d) and check for files (ls -la). Every file with the ending .item in this folder will result in an entry in the bootmenu. The internal flash is always part of the bootmenu.conf, so you dont need a .item file for that.

The following example (vi mer.ext.item) will make an option in the bootmenu which allows you to boot Mer from the 3rd partition of the external sd card, formatted with ext3:


# will be shown in the bootmenu
ITEM_NAME="Mer on external card, p3"
# needs to be an unique string to identify this item
ITEM_ID="mer"
# which hardware device and partition should be booted. 
# use ${EXT_CARD} for the external card (slot) or ${INT_CARD} for the internal mmc
# followed by p3 for partition three
ITEM_DEVICE="${EXT_CARD}p3"
# which modules to load at boottime
ITEM_MODULES="mbcache jbd ext3"
# filesystem used on that partition
ITEM_FSTYPE="ext3"
# mounting options
ITEM_FSOPTIONS="noatime,rw"
# Use the Mer linuxrc to continue to Boot (IMPORTANT for Mer)
ITEM_LINUXRC="linuxrc"

Once finished entering the above 'code' type :w, press return. Then type :q and press return again. You'll then be back at /etc/bootmenu.d/

Setting the Default bootmenu item

With cal-tool found in initfs, it is possible to set which item to boot as default or/and set bootmenu to show up without pressing any key.

You'll need to work as root (see Root_access).

How to set Mer to boot as default?

First you need to set up your .item files stored in /etc/bootmenu.d/ (see above) Please set the ITEM_ID to something small with nothing useless and no spaces.

The basic command to set ID "mer" to default is :


chroot /mnt/initfs cal-tool --set-root-device mer

If the ID you set doesn't exist, it will be boot to Internal Flash as default.

How to make bootmenu pop up without pressing any key?

Bootmenu will pop up automatically if you add "ask:" to the command above. For example, this will make bootmenu show up automaticlly, and ITEM_ID "mer" will be preselected:


chroot /mnt/initfs cal-tool --set-root-device ask:mer

Setting up your Bootmenu .item files for other operating systems

Assuming that you have booted Maemo (or equivalent) from your internal flash and are running it.

The following example (vi mer.ext.item) will make an option in the bootmenu which allows you to boot another operating system (e.g maemo or Deblet) from the 4th partition of the external sd card, formatted with ext3:


# will be shown in the bootmenu
ITEM_NAME="Maemo on external card, p4"
# needs to be an unique string to identify this item
ITEM_ID="maemo2"
# which hardware device and partition should be booted. 
# use ${EXT_CARD} for the external card (slot) or ${INT_CARD} for the internal mmc
# followed by p4 for partition four
ITEM_DEVICE="${EXT_CARD}p4"
# which modules to load at boottime
ITEM_MODULES="mbcache jbd ext3"
# filesystem used on that partition
ITEM_FSTYPE="ext3"
# mounting options
ITEM_FSOPTIONS="noatime,rw"