|
|
2010-08-01
, 20:33
|
|
Posts: 42 |
Thanked: 9 times |
Joined on Feb 2010
|
#31
|
|
|
2010-08-01
, 21:55
|
|
Posts: 34 |
Thanked: 50 times |
Joined on Jun 2010
|
#32
|
# bootmenu customisation file
#
# included from bootmenu.sh after default menu is defined
# you can change some items or redefine menu completely
# timeout for automatic selection when no key is pressed
# set to -1 for no timeout (not recommended, can drain battery when device reboots unatteded)
MENU_TIMEOUT=30
# IP address for USB networking
USB_IP=192.168.2.15
# dim screen when in menu
#/usr/sbin/dsmetest -l 1 #for OS2006/7
#/usr/sbin/dsmetest -l 3 #for OS2008, 1 turns screen completely off
if [ -e /etc/bootmenu.d ]; then
# OK, rebuild menu from dynamic items
MENU_MIN=1 # first item index
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_count=3
STR=`/usr/bin/find /etc/bootmenu.d/ -name \*.item`
if [ ! -z "$STR" ]; then
for bootmenu_item in /etc/bootmenu.d/*.item
do
ITEM_NAME=""
ITEM_ID=""
ITEM_DEVICE=""
ITEM_MODULES=""
ITEM_FSTYPE=""
ITEM_FSOPTIONS=""
ITEM_LINUXRC=""
ITEM_FBMODE=""
. $bootmenu_item
let "menu_count += 1"
eval MENU_${menu_count}_NAME=\$ITEM_NAME
eval MENU_${menu_count}_ID=\$ITEM_ID
eval MENU_${menu_count}_DEVICE=\$ITEM_DEVICE
eval MENU_${menu_count}_MODULES=\$ITEM_MODULES
eval MENU_${menu_count}_FSTYPE=\$ITEM_FSTYPE
eval MENU_${menu_count}_FSOPTIONS=\$ITEM_FSOPTIONS
eval MENU_${menu_count}_LINUXRC=\$ITEM_LINUXRC
eval MENU_${menu_count}_FBMODE=\$ITEM_FBMODE
done
fi
let "menu_count += 1"
ITEM_NAME="Power off (when not on charger)"
ITEM_ID="off"
ITEM_DEVICE=""
ITEM_MODULES=""
ITEM_FSTYPE=""
ITEM_FSOPTIONS=""
ITEM_LINUXRC=""
ITEM_FBMODE=""
eval MENU_${menu_count}_NAME=\$ITEM_NAME
eval MENU_${menu_count}_ID=\$ITEM_ID
eval MENU_${menu_count}_DEVICE=\$ITEM_DEVICE
eval MENU_${menu_count}_MODULES=\$ITEM_MODULES
eval MENU_${menu_count}_FSTYPE=\$ITEM_FSTYPE
eval MENU_${menu_count}_FSOPTIONS=\$ITEM_FSOPTIONS
eval MENU_${menu_count}_LINUXRC=\$ITEM_LINUXRC
eval MENU_${menu_count}_FBMODE=\$ITEM_FBMODE
MENU_MAX=${menu_count}
fi
| The Following User Says Thank You to thingonaspring For This Useful Post: | ||
|
|
2010-08-01
, 22:37
|
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#33
|
@coffee - I ran my OS from SD in my 800 and 810, I run another embedded device's OS from a card. For my needs/wants it suits me well; I'd rather burn through some SD cards than the NAND. I know it's a myth blah blah write cycles write cycles etc....I just like it that way
Anyone have this working with multiboot yet? Can you share your .item substance I've not had a lot of time to muck with it and have failed getting it to boot a few times. Thanks!
|
|
2010-08-01
, 23:10
|
|
Posts: 116 |
Thanked: 40 times |
Joined on Mar 2010
|
#34
|
|
|
2010-08-01
, 23:25
|
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#35
|
|
|
2010-08-01
, 23:36
|
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#36
|
|
|
2010-08-02
, 01:08
|
|
Posts: 116 |
Thanked: 40 times |
Joined on Mar 2010
|
#37
|
|
|
2010-08-02
, 01:11
|
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#38
|
No mate, looking into it now.
After seeing the thread above for Bootmenu, our I expect will be very similar, so expecting something like (mix of the bootmenus & multiboots for stock kernel:
ITEM_NAME="Maemo 5 Internal Flash"
ITEM_KERNEL=2.6.28-omap1
ITEM_MODULES=mbcache ext2
ITEM_DEVICE=${INT_CARD}p2
ITEM_FSTYPE=ext2
ITEM_FSOPTIONS="noatime" [ -d "/sys/block/${INT_CARD}/${MENU_2_DEVICE}" ] ||
I did notice the bootmenu list FSTYPE as ext2 whilst the multiboot as ext3, not sure myself if correct.
|
|
2010-08-02
, 01:33
|
|
Posts: 116 |
Thanked: 40 times |
Joined on Mar 2010
|
#39
|
|
|
2010-08-02
, 01:38
|
|
Posts: 222 |
Thanked: 22 times |
Joined on Jul 2010
@ Sydney Australia
|
#40
|