View Single Post
Posts: 152 | Thanked: 58 times | Joined on Oct 2010 @ void
#122
(UPDATE 3: Please read #125 below for the working scripts)

Made some progress...

(EDIT: I was using kernel-power v42 without overclocking)

For the rebooting loop issue, I am not sure now what caused it. One thing I discovered today is this happened when BOTH Backupmenu+bootmenu-n900 (dependency) AND kernel-power (v42) were installed,
AND rebooting with charger plugged in.
After uninstalling Backupmenu and bootmenu-n900, booting was OK.

I edited the scripts and now they work on PR1.3
- changed 10.2010.10 to 20.2010.36-2 in all instances
- changed ...PR12 to ...PR13
- changed the NEW HOME to /home/emmcroot/home instead of /home/home

I found a few issues:
1) M32GBinit.sh
(As i changed the home location, I added mkdir /home/emmcroot before the copying parts)
When running M32Binit.sh, the operation stopped after copying
Code:

/bin /boot /cdrom /dev /etc /floppy /initrd /lib /root /sbin /srv /usr 
and then the phone reboot itself. But this time booting is fine and ends up in the original rootfs

(EDIT: oh even copying in this part was not complete! /usr/sbin is missing ... perhaps others too. Go copy again... @_@ )

UPDATE 1: Splitting the copying job into two copied the complete rootfs successfully without sudden rebooting. Strange.

2) Then I had to do these (i.e. the rest of the init script) manually:
Code:
cp -a /var       /home/emmcroot
start pymaemo-optify
mkdir /home/emmcroot/proc
mkdir /home/emmcroot/sys
mkdir /home/emmcroot/syspart
mkdir -p /home/emmcroot/sys/kernel/debug
mkdir -p /home/emmcroot/mnt/initfs
mkdir /home/emmcroot/tmp
mkdir /mnt/new_root

and then the rest of the code untouched, except the new home location was changed to /home/emmcroot/home:
Code:
echo "Edit a vital scripts on new root file system in /home partition..."

rm -f /home/emmcroot/etc/event.d/hildon-startup-progress
sed -i '/send_interface=/a\\        <allow send_type="method_call"/>' /home/emmcroot/etc/dbus-1/system.d/mce.conf

if [ -f /home/emmcroot/usr/sbin/maemo-optify-lib.sh ]; then
    sed -i -e "/test_home_mount\(\)/{n;a\\   return 0" -e "}" /home/emmcroot/usr/sbin/maemo-optify-lib.sh
    sed -i -e "/test_opt_mount\(\)/{n;a\\   return 0" -e "}" /home/emmcroot/usr/sbin/maemo-optify-lib.sh
fi

sed -i "/mount_home \&\& /s///" /home/emmcroot/etc/event.d/rcS-late

sed -i "/__home {/,/}/s/^/#/" /home/emmcroot/usr/lib/genfstab.awk

cat <<EOF >/home/emmcroot/etc/event.d/restart-mce
description "Restart mce to avoid a bug for loosing GPS in M32GB"
author "Leonid Yegoshin"

console output

start on started rcS-late

script
    sleep 20
    stop mce
    sleep 2
    start mce
end script
EOF

if [ -f /home/user/.config/tracker/tracker.cfg ]; then
    if ! grep -q '/mnt/initfs/' /home/user/.config/tracker/tracker.cfg; then
        sed -i '/NoWatchDirectory=/s?=?=/mnt/initfs/;?' /home/user/.config/tracker/tracker.cfg
	chown user:users /home/user/.config/tracker/tracker.cfg
    fi
fi

echo "Done: Maemo5 (20.2010.36-2) has been prepared in /home partition"
No more issues here.

3) M32GBboot.sh
Again I changed the bits referring to the new kernel. Yes, the checksums of the stock kernel and power kernel are the same so just the version number needed to be changed.
The script ran fine.
But the last part, i.e. creating bootmenu.sh in / , has a catch as bootmenu.sh is 644 only so I had to add chmod +x afterwards.
The modified script is in the attachment I don't post the content here.

4) All the kernel modules provided in your fbcon archive are missing in power-kernel so they had to be added. Just attached it here to save time searching and digging in the posts.

5) But rebooting with KBD opened just ends up in the UBIFS rootfs. No penguin, bootmenu - and - no crash (this is important )

Want to have more fun!!

[UPDATE 2: I tried to do without applying the changes in M32GBboot.sh and instead used bootmenu-n900 to see if it was a viable soluton (according to post #1). Attempt failed.
Anyway here is my emmc.ext.item for bootmenu-n900 (in /etc/bootmenu.d/
Code:
ITEM_NAME="Maemo 5 (eMMC)"
ITEM_ID="emmc"
ITEM_DEVICE="${INT_CARD}p2" 
ITEM_MODULES="mmc_block mmc_core omap_hsmmc mbcache jbd ext3"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime,nodiratime,commit=1,data=writeback /dev/mmcblk1p2 /mnt/new_root"


CAUTION: I AM JUST TRYING TO LEARN FROM MISTAKES. THE ATTACHED SCRIPTS ARE NOT WORKING YET! DO NOT USE THEM UNLESS YOU ARE ALSO TRYING TO WORK OUT A SOLUTION FOR 32GB ROOTFS!!
Attached Files
File Type: zip fbcon.zip (250.8 KB, 131 views)
File Type: zip M32GB_mod.zip (3.0 KB, 127 views)

Last edited by 009N; 2010-11-26 at 15:25. Reason: Corrected attachment + Updating the findings
 

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