maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   a question about bootmenu.conf (https://talk.maemo.org/showthread.php?t=22566)

douwen 2008-08-05 03:45

a question about bootmenu.conf
 
hi, i am sorry to post a repeat post here , i have post a question in here, but that thread list is too long to make my question noticeable, so i create a new thead here.

here i have a question about bootmenu.conf,
i want to boot from internel MM Card, so i set my bootmeu.conf as following, after initfs_flash, it did boot from as i wish( from internel MM Card ,i mean , the MENU_2) , however, i found i lost the entry to boot into internel flash,
does i miss something? how can i set the bootmenu.conf, so as to make the default device is mmc card and also make me could choose to boot to internal flash? thanks!
--------------------------------------------
.........
# menu items
MENU_MIN=2 # first item index

#no need to redefine
#MENU_1_NAME="Internal flash"
#MENU_1_ID="flash"

MENU_2_NAME="Internal MMC card, partition 2, ext2"
MENU_2_ID="mmc2"
MENU_2_DEVICE="${INT_CARD}p2"
MENU_2_MODULES="mbcache ext2"
MENU_2_FSTYPE="ext2"
MENU_2_FSOPTIONS="noatime"
[ -d "/sys/block/${INT_CARD}/${MENU_2_DEVICE}" ] || MENU_2_NAME="(${MENU_2_NAME}) N/A"

MENU_3_NAME="External MMC card, partition 2, ext2"
MENU_3_ID="mmc12"
MENU_3_DEVICE="${EXT_CARD}p2"
MENU_3_MODULES="mbcache ext2"
MENU_3_FSTYPE="ext2"
MENU_3_FSOPTIONS="noatime"
[ -d "/sys/block/${EXT_CARD}/${MENU_3_DEVICE}" ] || MENU_3_NAME="(${MENU_3_NAME}) N/A"

MENU_4_NAME="Power off (when not on charger)"
MENU_4_ID="off"
....
-------------------------------------------------

terrencegf 2008-08-05 04:42

Re: a question about bootmenu.conf
 
Quote:

Originally Posted by douwen (Post 210271)
# menu items
MENU_MIN=2 # first item index

This should be MENU_MIN=1. When you set it to "2", you bypassed the "Internal flash" menu item.

douwen 2008-08-05 06:47

Re: a question about bootmenu.conf
 
Quote:

Originally Posted by terrencegf (Post 210279)
This should be MENU_MIN=1. When you set it to "2", you bypassed the "Internal flash" menu item.

thanks your reply,
the reason i set MENU_MIN to 2 is that i want the default boot device is my internel MMC card instead of internel Flash.
then, if i set MENU_MIN to 1, how could i make my internel MMC card be the default boot device, and make the internel Flash being the second choice?

fanoush 2008-08-05 07:03

Re: a question about bootmenu.conf
 
as root run
chroot /mnt/initfs cal-tool -R ask:mmc2

BTW, there is README inside initfs_flasher directory.


All times are GMT. The time now is 08:32.

vBulletin® Version 3.8.8