View Single Post
Posts: 34 | Thanked: 50 times | Joined on Jun 2010
#32
Hiya.

For those having problems installing due to the 'preinit' error :-
1 - install bootmenu
2 - run M32gbinit.sh
3 - replace contents of /etc/bootmenu.conf with this

Code:
# 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
4 - Then reboot and you'll be able to choose booting from "Internal MMC card, partition 2".

One warning - don't try removing the original PR12 system - I've not tried it but I'm pretty sure the system will be unbootable and you'll need to reflash.

EDIT - to quickly check that you're really running on the eMMC - run conky and verify that root filesystem is same size as home (1.97Gb).

EDIT2 - Fixed a small bug in the script - booting from internal flash is now also presented as an option on boot.

Last edited by thingonaspring; 2010-08-02 at 15:11.
 

The Following User Says Thank You to thingonaspring For This Useful Post: