maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] Maemo5 running 32GB eMMC root FS (scripts) (https://talk.maemo.org/showthread.php?t=59374)

009N 2010-11-25 05:26

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Yes, I also think that M32GBinit.sh should not be the culprit. It's a short script and I couldn't find anything dealing with the kernel or even bootloader, but simply copying the rootfs and restart a few daemons (GPS, etc).

I will try again without overclocking (while still using kernel-power) and with fbcon.so installed.

The reboot loop didn't display any console messages. And yes, KBD was opened.

I wonder if:
- You can update the scripts to PR1.3 because there are more using 1.3 than 1.2, i believe

- The duplicated rootfs picks another location other than /home (say /home/emmcroot to make /home "cleaner" and to avoid confusion?

It doesn't hurt me to reflash as I have everything backed up with BackupMenu. :)

009N 2010-11-25 08:37

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
2 Attachment(s)
(UPDATE 3: Please read #125 below for the working scripts) :D

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 :D )

Want to have more fun!! :D

[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!!

009N 2010-11-26 04:12

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Another update:
I revised the bootmenu entry and tried again.
It should be named xxx.ext3.item because the target root partition is ext3. Also I added the fbcon module from Egoshin.

/etc/bootmenu.d/emmc.ext3.item
Code:

ITEM_NAME="EMMC"
ITEM_ID="emmc"
ITEM_DEVICE="${INT_CARD}p2"
ITEM_MODULES="fbcon 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"


Still no success.
Then after apt-get purge bootmenu-n900 and reinstall it again, I finally saw the bootmenu. But the new rootfs still didn't boot up... :D

009N 2010-11-26 08:54

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
1 Attachment(s)
SUCCESS!!:);):D:cool::p

009N 2010-11-26 15:24

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
2 Attachment(s)
Here is a modified set of scripts that work on my N900. FOR PR1.3 ONLY. I have tested this only with Titan's kernel-power v42. I don't know what will happen with other kernels/firmware. YMMV. :D

PLEASE PLEASE read the whole post before embarking on your adventure.

PLEASE PLEASE correct any errors or mistakes or misunderstanding in this post and the scripts. Thanks in advance!

DISCLAIMER:
DO NOT attempt to use these scripts if:

- you DON'T know what you are doing exactly;
- you consider yourself a NOOB;
- you feel VERY nervous of entering commands in a terminal;
- you have the SLIGHTEST fear of bricking your device;
- you will feel VERY frustrated and lost and confused if you have to reflash your "bricked" device.

I make NO guarantee of the accuracy and validity of the files and information contained in this post, and I take NO responsibilty for any loss or damage as a result of using the information in this post. Using the scripts may produce undesirable consequences on your device and may even void the warranty provided by Nokia. You have been warned.


And, BACK UP whatever is important to you on the device as always

All THANKS to Egoshin for his brilliant ideas, patience and solutions. THANK YOU!! :D

I've done nothing but edit the scripts such that they can now work with PR1.3,together with a couple of small fixes, in particular making bootmenu.sh executable, and correcting the root partition from /dev/mmcblk1p2 to /dev/mmcblk0p2 (this explains the failures in my previous experiments... :p )

My setup: see the image

Simplified steps:
1) Download and uncompress the scripts to some directory on the device, e.g. /home/user/foo
2) cd into this directory
3) Run sh M32GBinit_PR13.sh to make a duplicate the rootfs from the 256MB NAND (root previlege required)
4) Wait for the operation to finish. It may take as long as 30 minutes or maybe even more.
5) Run sh M32GBboot_PR13.sh to set up booting.
6) Exit the terminal. Reboot.
Keyboard closed => rootfs on NAND
Keyboard opened => rootfs on eMMC


Note 1: The size of the root partition depends entirely on how you partition the 32GB of space. The default is the 2GB /home partition (/dev/mcblk0p2, ext3). You may want to increase the size. See, for instance, http://wiki.maemo.org/Repartitioning_the_flash
I chosed Option 1, i.e. /home (now the complete filesystem) = 27GB ext3 ; MyDocs = 2GB vfat.
As Egoshin has emphasized, you have to repartition the eMMC before applying the scripts.

Note 2: Advantages & Disadvantages?
- No more worries about not enough space for package installations. (otherwise why do this?)
- The original UBIFS rootfs remains untouched. If the rootfs in eMMC is screwed up, you can boot into the original rootfs as a backup system to rescue the data and fix the problems in the rootfs in eMMC. BUT...
- Both rootfs are using the same /opt. Egoshin has already pointed out the inconsistency between them when packages are uninstalled on either side. SO ...
- If the /opt is also screwed up so badly, it's the perfect time to reflash.
- That said, I will definitely trade
speed for space. I personally think there won't be very obvious differences in regular use. :D

Note 3: For further details, see Egoshin's Post #1

009N 2010-11-27 17:07

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
A little bump. I just wonder if those (very) few brave souls find the scripts working or not. If yes, I am interested in knowing which kernel(s) or other special/optimizing setup you have applied.
So far I have done these post-installation stuff:
- SavageD's boost scripts:
http://talk.maemo.org/showthread.php?t=63997
-MohammadAG's faster kinetic scrolling package http://talk.maemo.org/showthread.php?t=60599
(PR1.3 deb here: http://mohammadag.xceleo.org/public/...+0m5_armel.deb Thanks systemcrash :D )
- Black plastic theme. Just the plain vanilla without any fancy decorations
- Overclocking using Titan's Power-kernel and Jakiman's Queen Beecon Overclocking Widgets
http://talk.maemo.org/showthread.php?t=39753 (a must read!)
A more nooby version: http://talk.maemo.org/showthread.php?t=61709

The system is very stable and no crash so far. :D

kashortie 2010-11-29 21:30

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
1 Attachment(s)
009N and egoshin

Thanks for the guide.
009N - your M32GBinit file seemed not to work for me so I modded egoshins v2 file with some tweaks for 1.3 (20.2010.36-2)

The attached modded file M32GBinit worked for me on PR1.3 (20.2010.36-2)

Thanks again - this is awesome !

009N 2010-11-30 03:15

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
I can't find any difference between these your version and mine in diff, except that I split copying rootfs in two jobs, because for some reason copying in one fell swoop crashed on mine. :D Could it be carriage difference (unix vs msdos)?

EDIT re-uploaded to post #125.

kashortie 2010-11-30 09:50

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
009N

Please copy the contents of your .item file in /etc/bootmenu.d that you are presently using to boot into emmc.
I've tried several combinations and cant seem to get it right
Thanks

009N 2010-11-30 10:23

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Quote:

Originally Posted by kashortie (Post 886092)
009N

Please copy the contents of your .item file in /etc/bootmenu.d that you are presently using to boot into emmc.
I've tried several combinations and cant seem to get it right
Thanks

It's in post #123 :D Are you trying multiboot or bootmenu-n900?
[EDIT] wait ... I don't use bootmenu. Just open(UBIFS) & closed(eMMC) kbd.

Quote:

Originally Posted by egoshin;878297BTW, it has sense to [B
tune[/B] system a little, for faster response -

While running UBIFS root file system you can move configuration directories of gconf2 application back to UBIFS root FS. It greatly accelerates startup of some applications and after that it is virtually impossible to detect which root file system is booted now basing on performance difference - M32GB root FS system has the same (or better :) performance than native Nokia UBIFS.

To do this - run root shell commands in UBIFS root file system:
Code:

mv /home/var/lib/gconf /var/lib/gconf.home
ln -s /mnt/initfs/var/lib/gconf.home /home/var/lib/gconf

and then reboot back to "/home" root FS with open KBD.

Yes, just did this and it's SOOOOOO smooth. Plus OC@1GHz ... Yay! :D :D
Be careful when running these commands!
At first I ran them in eMMC rootfs.... nice things happened. desktop settings all gone, can't adjust backlight, terminal screaming for gconf errors...
Fix: DON'T touch or run anything. Boot again with keyboard closed into the UBIFS rootfs. Then undo the operation:
Code:

rm -f /home/var/lib/gconf
mv /var/lib/gconf.home /home/var/lib/gconf

and then do it all over again:
Code:

mv /home/var/lib/gconf /var/lib/gconf.home
ln -s /mnt/initfs/var/lib/gconf.home /home/var/lib/gconf

Finally reboot back to "/home" root FS with open KBD. Everything is fine again. :D

kashortie 2010-11-30 12:44

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
1 Attachment(s)
egoshin, 009

Success - thanks for the guide. ( screenshot attached )
Initially on eMMC, very jerky and slow, with about 47 % RAM usage but loads of space, and I'm sure, as it settles in, it will speed up and smoothen out.
If you see anything wrong on the screenshot - please let me know.
And THANKS again.
FYI, the new scripts in post 125 work as advertised on 1.3 with Kernel-power46.
Also did the " mv /home/var/lib/gconf /var/lib/gconf.home
ln -s /mnt/initfs/var/lib/gconf.home /home/var/lib/gconf " script on UBIFS.

009N 2010-11-30 12:53

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Congrats!
Egoshin's fine-tuning script does make a difference. With OC it feels even smoother than the factory setting.
btw are you using any bootloader or simply use egoshin's open-or-close-keyboard-booting-method? :D

kashortie 2010-11-30 13:42

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Using the open/close method. open = eMMC, closed = UBIFS
Tried with multiboot - no luck, tried with bootmenu-n900 - no luck.
Tried every concieveable .item file configuration.

I will miss multiboot, as I had MER, UBUNTU, Meego, SHR and NITDroid running off SD's with multiboot - and also tried NITDroid on a partitioned eMMC - worked great - v.fast but got very hot !
Yip - the fine tuning script worked great on second reboot, the device is whistling along - faster and smoother than original !

Now to adding back all my applications - Queen Bee Widget and Fcron have revolutionised the way I use my n900, mainly saving 3-4 button presses per function, and automating functions, respectively !

009N 2010-11-30 14:28

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Ya, multiboot and bootmenu-n900 don't work in this scenario. Next I am going to try kexec but first I have to get the right kernel image. AFAIK power-kernel supports kexec. :D
Thanks for mentioning Fcron. Haven't tried that yet but a couple of scripts look interesting... :D

Off topic. Also did some hacks today:
- Matan's modified-hildon-desktop, particularly the new task view (Ctrl-Backspace) which enables cycling windows.
- Remapping Fn-arrow keys and Shift-arrow keys
http://wiki.maemo.org/Remapping_keyboard -- say goodbye to the bulky toolbar in terminal.
- Cool stuff from http://wiki.maemo.org/User:Joerg_rw/tools
- Bash a la colorful terminal: http://talk.maemo.org/showthread.php?t=14613

Ah, forgot to mention something more relevant: installed a whole bunch of compilation tools (GCC, G++, etc.) right in the rootfs. Who cares about space? :D

PS @kashortie: how would you choose these: http://talk.maemo.org/showthread.php?t=66280 ? :D

kashortie 2010-12-01 14:46

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
009N

As well as the rootfs on eMMC and egoshins scripts mv /home/var/lib/gconf /var/lib/gconf.home
ln -s /mnt/initfs/var/lib/gconf.home /home/var/lib/gconf " UBIFS ....- I'm also now using swappolube with swappiness 30 etc...
O/C'd to 950... battery life up incredibly, as is the speed, and transitions - its SOOOO smooth !!! can multitask without the hanging - especially when browsing web, no more white screen hangs.

I'm also using MohammadAG thp/matan hildon-desktop tweaks, and manually modded with some osso/hilden-desktop bool true and int 1,2,3 etc http://my.arava.co.il/~matan/repo/Mo...n_Desktop.html to get CTRL+Backspace to scroll the nav tasks ( like windows/tab ) - NICE !
Scrolling is v.fast

I also using Fcam, and did a mod where the camera can use ext3 space when vfat full ...http://talk.maemo.org/showpost.php?p...1&postcount=66

cd /home/user
umount MyDocs
dd if=/dev/zero of=FAT bs=1M seek=256 count=0 # small 256MB image
losetup /dev/loop0 FAT
mkfs.vfat -F32 /dev/loop0
vi /etc/fstab # replace /dev/mmcblk0p2 with /dev/loop0
mount MyDocs
this works only till the next reboot.
Now we only need to modify the scripts (in ke-recv?) to do this automatically
and we could completey get rid of the VFAT partition

preflex 2010-12-22 12:17

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Scripts worked for me.

I got it to work with multiboot and stock kernel, but wouldn't work with kernel-power.

I used the stock scripts, with all the version checks commented out.
Then I installed bootmenu-n900, and edited /etc/bootmenu.conf just to test it. It worked.

I then installed nitdroid via the nitdroid-installer.

Then i did
Code:

apt-get install kernel-power-bootimg
apt-get install --reinstall multiboot-kernel-power

Then i copied the .item files and edited them (as seen below)

This works: 44-Maemo-2.6.28-omap1.item
Code:


ITEM_NAME="Maemo 2.6.28-omap1 home"
ITEM_KERNEL=2.6.28-omap1
ITEM_MODULES=ext3
ITEM_DEVICE=${INT_CARD}p2
ITEM_FSTYPE=ext3

And this works: 01-Maemo-kernel-power46.item
Code:

# AUTOGENERATED by multiboot-kernel-power
# !!! DON'T EDIT !!!
ITEM_NAME="Maemo kernel-power46"
ITEM_KERNEL="2.6.28.10power46"
ITEM_MODULES=ext3

This does not: 55-Maemo-kernel-power46.item

Code:

ITEM_NAME="Maemo kernel-power46 EMMC"
ITEM_KERNEL="2.6.28.10power46"
ITEM_MODULES=ext3
ITEM_DEVICE=${INT_CARD}p2
ITEM_FSTYPE=ext3

Maemo starts to load, I see the five throbbing dots for a few seconds, and then the device powers off.

I figured it was a watchdog thing, so I tried enabling RD mode, but RD mode appears not to work with multiboot.

Any ideas?

egoshin 2010-12-22 19:41

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
It is strange because at "five-dots" moment the DSME already setup communication with hildon-session and started feeding a watchdog. But I may be wrong (couple of months passed).

Let me look again on this. I have no power-kernel installed. Later I will ask you some questions but for now I like to get your /sbin/preinit, /bootmenu.sh and /etc/bootmenu.conf

preflex 2010-12-25 02:57

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
/sbin/preinit
http://pastebin.com/w2VaFSeU

I'm using multiboot (which works with these scripts when not trying to boot kernel-power), so I doubt the bootmenu files are relevant. In fact, I don't even have a /bootmenu.sh or /etc/bootmenu.conf as the program is no longer installed.

I included the content of my .item files in /etc/multiboot.d/ in my previous post.

I know e-yes said this wouldn't work at all, but it does work when using stock kernel, and it almost works with kernel-power.

pali 2011-01-27 19:25

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Quote:

Originally Posted by pali (Post 831598)
I created configuration for bootmenu-n900 and I moved system to /home/maemo5 So /opt is not same for internal flash system and for system on eMMC.

It needs patches for bootmenu-n900. I testing it now and later I publish my patches.

I tested it a lot and now it works fine without problem. It is good alternative solution to 009N. Scripts are hosted in my bzr branch on launchpad (from can be downloaded):

https://code.launchpad.net/~pali/+junk/maemo_M32GB

It only need lastest version of bootmenu-n900. Maemo5 is installed to /home/maemo5 so /opt is not shared with internal flash. It is now fully dualboot independent system with working bootmenu :)

For booting it use very ugly hack with overmount, pivot_root and chroot... but it works nice:

Code:

$ mount
rootfs on / type rootfs (rw)
ubi0:rootfs on /mnt/initfs type ubifs (rw,bulk_read,no_chk_data_crc)
/dev/mmcblk0p2 on /home/user type ext3 (rw,noatime,nodiratime,errors=continue,commit=1,data=writeback)
/dev/mmcblk0p2 on / type ext3 (rw,noatime,nodiratime,errors=continue,commit=1,data=writeback)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
nodev on /sys/kernel/debug type debugfs (0)
/opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind)
/opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind)
/opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind)
/opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind)
/opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir)

Code:

Filesystem            Size  Used Avail Use% Mounted on
rootfs                6.0G  3.5G  2.2G  62% /
ubi0:rootfs          228M  134M  90M  60% /mnt/initfs
/dev/mmcblk0p2        6.0G  3.5G  2.2G  62% /home/user
/dev/mmcblk0p2        6.0G  3.5G  2.2G  62% /
tmpfs                1.0M  88K  936K  9% /tmp
tmpfs                256K  108K  148K  43% /var/run
none                  10M  72K  10M  1% /dev
tmpfs                  64M  4.0K  64M  1% /dev/shm
/opt/pymaemo/usr/lib/python2.5
                      6.0G  3.5G  2.2G  62% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
                      6.0G  3.5G  2.2G  62% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
                      6.0G  3.5G  2.2G  62% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
                      6.0G  3.5G  2.2G  62% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
                      6.0G  3.5G  2.2G  62% /usr/lib/python-support
/dev/mmcblk0p1        24G  15G  8.1G  66% /home/user/MyDocs

* Note I have modified size of eMMC partitions

kureta 2011-01-31 08:54

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Can anyone help me to modify this script to copy rootfs to SD Card instead of eMMC?

kureta 2011-02-03 13:53

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
@pali I have tried your scripts but bootmenu freezes at "Starting boot.sh ..."

stays there for a while and shuts down the phone. Do you know if there is a "verbose" mode of bootmenu so that I can see where the script stops?

kureta 2011-02-03 13:55

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
I just checked my /home/maemo5 directory. the boot.sh script was supposed to create a /home/maemo5/home/user directory but it didn't. before that line there is just a cd command so I am guessing that bootmenu does not even launch the script. any help is appreciated.

pali 2011-02-03 13:57

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
There is no verbose mode. You can use framebuffer kernel ( http://maemo.org/packages/view/kerne...uffer-flasher/ ). It show all required info where is problem.

pali 2011-02-03 14:00

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
bootmenu will mount eMMC part. 2 to /mnt/new_root and exec boot.sh

boot.sh will create /mnt/new_root/maemo5/home/user (not /home/maemo5/home/user)

kureta 2011-02-03 15:50

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
where should boot.sh reside? it is currently in /home/maemo5 but there is nothing pointing to that location in yout .item file. so I guess it is looking for it in the root of eMMC (/home) or NAND (/)... I would really like to make it work because i wish to compile flex sdk, openjdk, etc. on my n900.

pali 2011-02-03 21:14

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
boot.sh must be in root of eMMC part. 2 (if you boot normaly from nand it must be /home/boot.sh)

qwazix 2011-04-14 21:52

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
can this be done with different opt folders? A completely different maemo installation?
________
Web shows

Radicalz38 2011-04-15 16:44

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
@pali
your script copies boot.sh on /home/maemo5/boot.sh(if checked on NAND) and not in /home/boot.sh

And same for me... I can't seem to get your script working. It just stuck at starting boot.sh on bootmenu until it shuts down.

@all
tried all scripts located here but seems like I can't get anything working at all. egoshin or even 009N's script just won't work the M32GBinit copies the needed files successfully on /home directory but whenever I restart it's still at the original maemo5 NAND and not on EMMC.

Radicalz38 2011-04-15 16:45

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
tried also downloading this http://maemo.org/packages/view/kerne...uffer-flasher/ but it's already a dead link so I cant debug.

Radicalz38 2011-04-15 17:12

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Ok I don't know if it's just me or what... But after assigning INT_CARD on bootmenu item whenever I boot into that it shows the other way around!

Example when I set

ITEM_DEVICE="${INT_CARD}p2"
it boots mmcblk1p2 instead of mmcblk0p2

and

ITEM_DEVICE="${EXT_CARD}p2"
it boots mmcblk0p2 instead of mmcblk1p2

anybody can confirm this? Is this a bug on bootmenu, kernel or what?

pali 2011-04-15 17:27

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Quote:

Originally Posted by Radicalz38 (Post 989201)
@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.

Radicalz38 2011-04-15 18:04

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
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?

pali 2011-04-15 19:22

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
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.

Radicalz38 2011-04-16 01:43

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
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. :(

Radicalz38 2011-04-16 01:54

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
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.

pali 2011-04-16 02:02

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
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


Radicalz38 2011-04-16 02:05

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Thanks! will give feedback in a few minutes

Radicalz38 2011-04-16 02:19

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
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 :(

pali 2011-04-16 03:28

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Update bootmenu package to version 1.10.1 and try again.

Radicalz38 2011-04-16 03:34

Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
 
Ok will do and give feedback again in a few minutes. :( looks like I'm giving pali much more trouble


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

vBulletin® Version 3.8.8