Reply
Thread Tools
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#151
Originally Posted by Radicalz38 View Post
@pali
your script copies boot.sh on /home/maemo5/boot.sh(if checked on NAND) and not in /home/boot.sh
Boot script must be on root of eMMC partition. I had a bug in install script M32GBboot.sh. Now it is fixed in my bzr branch.
 
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#152
Thanks pali for the update! I hope it would work now... And regarding my problem with INT_CARD being mmcblk1p2 shown on bootmenu is it normal? Is it just some bug or I am having irregular issues?
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#153
Problem with INT_CARD is not normal (it is internal eMMC card). But value in bootmenu is taken from sysfs - kernel (not udev). Try use default stock nokia kernel if this happen too.

And for my install scripts. I did not tested it yet, so maybe there will be other problem. Please write if now works.
 
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#154
Hi pali! Still the same I still get stuck at starting boot.sh and when i checked /mnt/new_root I can't find anything inside where if I check boot.sh once it is executed it should create a folder named maemo5/home/user right? So I'm guessing it is still not executed.
 
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#155
And btw I use stock kernel since I tried reformatting and retrying again. So meaning I'm currently testing it with a fresh system. Nothing installed except bootmenu-n900 to boot the script. Also I tried changing INT_CARD to EXT_CARD on item file and see if it works but both failed.

Last edited by Radicalz38; 2011-04-16 at 01:58.
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#156
Use this "verbose" boot.sh script (copy it to /home/boot.sh) and post what it writing on screen.
Code:
#!/bin/sh
/usr/bin/text2screen -s 2 -H center -y 20 -T 0 -t "Starting boot.sh"
cd /
exec /bin/sh -c "`tail -n +4 $0`"
/usr/bin/text2screen -s 2 -H center -y 40 -T 0 -t "Tail boot.sh"
cd /mnt/new_root
mkdir -p maemo5/home/user
mount -t none -o bind user maemo5/home/user
mount -t none -o bind maemo5 .
cd .
/usr/bin/text2screen -s 2 -H center -y 60 -T 0 -t "Mount done"
umount /dev/pts
umount /sys
umount /tmp
umount /proc
rm -f /proc/mounts
/usr/bin/text2screen -s 2 -H center -y 80 -T 0 -t "Umount done"
mkdir -p mnt/initfs
pivot_root . mnt/initfs
/usr/bin/text2screen -s 2 -H center -y 100 -T 0 -t "Pivot_root done"
mount -t none -o move /mnt/initfs/mnt/new_root/maemo5/home/user /home/user
#umount /mnt/initfs/mnt/new_root
/sbin/fiasco-do-update
/usr/bin/text2screen -s 2 -H center -y 100 -T 0 -t "Fiasco-do-update done"
exec /usr/sbin/chroot . /sbin/init $def_runlevel <dev/console >dev/console 2>&1
/usr/bin/text2screen -s 2 -H center -y 120 -T 0 -t "Chroot failed"
sleep 10
 

The Following User Says Thank You to pali For This Useful Post:
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#157
Thanks! will give feedback in a few minutes
 
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#158
Ok so now I know boot.sh is never executed by bootmenu. It never showed any messages at all. It still only shows "starting boot.sh from immc2 (mmcblk0p2 ext3)" even by using the verbose one or the original one.(and yes I did chmod it)
Tried both INT_CARD and EXT_CARD just to make sure but both failed. Tried also specifying boot.sh on item file to absolute path like /home/boot.sh or /boot.sh but still failed
 
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#159
Update bootmenu package to version 1.10.1 and try again.
 

The Following User Says Thank You to pali For This Useful Post:
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#160
Ok will do and give feedback again in a few minutes. looks like I'm giving pali much more trouble
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:45.