![]() |
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. :) |
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:
(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/emmcrootand 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..."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)"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!! |
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"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 |
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
1 Attachment(s)
SUCCESS!!:);):D:cool::p
|
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 |
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 |
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 ! |
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. |
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 |
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
Quote:
[EDIT] wait ... I don't use bootmenu. Just open(UBIFS) & closed(eMMC) kbd. Quote:
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/gconfCode:
mv /home/var/lib/gconf /var/lib/gconf.home |
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. |
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 |
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 ! |
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 |
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 |
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-bootimgThis works: 44-Maemo-2.6.28-omap1.item Code:
Code:
# AUTOGENERATED by multiboot-kernel-powerCode:
ITEM_NAME="Maemo kernel-power46 EMMC"I figured it was a watchdog thing, so I tried enabling RD mode, but RD mode appears not to work with multiboot. Any ideas? |
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 |
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. |
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
Quote:
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:
$ mountCode:
Filesystem Size Used Avail Use% Mounted on |
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?
|
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? |
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.
|
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.
|
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) |
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.
|
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)
|
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
can this be done with different opt folders? A completely different maemo installation?
________ Web shows |
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. |
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.
|
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? |
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
Quote:
|
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?
|
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. |
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. :(
|
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.
|
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 |
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
Thanks! will give feedback in a few minutes
|
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 :( |
Re: [Announce] Maemo5 running 32GB eMMC root FS (scripts)
Update bootmenu package to version 1.10.1 and try again.
|
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