Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 (edited) Hi there, My dual-boot system is kind of ready. It's not real dual boot, as suggested by malez and my lazyness. So, the package is made for FRF91 on NAND, and LCR 1.8.0.1 on the sd card. I explain further how to change one of those. So, first: How to install dual boot - Download http://www.poolp.org/~phh/Dualboot2.7z - Extract it to the root of your sdcard. Your sdcard should have a LCR folder, a boot.nand.img and a Boot-LCR-SD.zip file in the root of the sdcard (There is a useless archive.7z file in the archive, sorry about that, but I can't really reupload, just delete it) and - Download http://www.poolp.org/~phh/Boot-LCR-SD.zip and overwrite the one on the sdcard with this one. How to boot to LCR - Reboot into recovery - Flash Boot-LCR-SD.zip (it takes few seconds) - Reboot And there is LCR ! Ok, now reboot. You get back to Froyo ! So, everytime you want to boot LCR, flash this file. And reboot to get from LCR to Froyo. Add a dual_unsafe file in the root of your sdcard to prevent this behaviour. With it, you'll always boot on LCR, until you flash Froyo91-fix2.zip (or whichever newer version), or delete this dual_unsafe file. Like my work ? Please donate ! The rest of the post is only for modders or highly experienced peoples. But I don't want Froyo on NAND! Yes, you do, you just don't know it. Still ! Ok, ok. Get your ROM's boot.img (it's in the update.zip most of the time) and put it as boot.nand.img in the root of your sdcard. And that's all. But I don't want a blank LCR1.8.0.1 on SD ! The boot.img needs some hacks: add the dualboot.sh script, edit init.rc, delete all mtd references, add the loopback mount of system/data and enable the launch of dualboot/sh. See LCR's boot (in Boot-LCR-SD.zip) as reference, you're allowed to ask if you have any doubt. Now you must create data.img and system.img. Both files are ext2 loopback files. Assuming your nandroid backup creates files called data.yaffs and system.yaffs, here is how to create data.img and system.img (on a linux, as root and you must have unyaffs with uid support installed ( http://husson.hd.free.fr/unyaffs )): mkdir d dd if=/dev/zero of=system.img bs=1024 count=128k # Change the 128 value to the size you want for system in MB. dd if=/dev/zero of=data.img bs=1024 count=256k # Change the 256 value to the size you want for data in MB. mkfs.ext2 system.img mkfs.ext2 data.img mount -o loop system.img d cd d unyaffs ../system.yaffs cd .. umount d # The next commands are only if you want to port your own data.img mount -o loop data.img d cd d unyaffs ../data.yaffs cd .. umount d Then copy data.img and system.img to the sdcard in the folder you've chosen when creating the boot.img. For the included LCR, well this folder is LCR. Ok, so that's not real dual booting. I could do real dual booting, it just involves little modification in the NAND's boot.img. Now the thing is that everytime you boot to the SD card, you'll flash the boot.img again. Or if you implement it a bit better, it will flash it every time you change ROM. Any way, it sounds too dangerous for the NAND, so I prefer making the ROM change a bit more annoying to do, so that people don't overuse it. Edited August 14, 2010 by phhusson
Guest uapo7 Posted August 13, 2010 Report Posted August 13, 2010 Awesome work! But can you focus on froyo,please? Full working froyo is more important for me than this. :D
Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 Awesome work! But can you focus on froyo,please? Full working froyo is more important for me than this. :D Pffffffff, this took less than a day to get to work, and it's there to workaround froyo's missing stuff :D'
Guest liquid_it Posted August 13, 2010 Report Posted August 13, 2010 Have I ever told you that you are THE man??? :-) Your work & your hacks are pure goodness!!!
Guest nameless' Posted August 13, 2010 Report Posted August 13, 2010 ........So skilled... Won't use it, but just THANKS and RESPECT !!
Guest simoneser Posted August 13, 2010 Report Posted August 13, 2010 Pierre, delete a "w": link doesn't work with "wwww." :D
Guest simoneser Posted August 13, 2010 Report Posted August 13, 2010 (edited) Sorry for the double post. I have a question for you: I have a LCR 1.8.0.1 nandroid backup If I replace data & system img files of LCR folder of your pack with the ones of the nandroid backup, will I get a working rom? Edited August 13, 2010 by simoneser
Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 Sorry for the double post. I have an answer for you: I have a LCR 1.8.0.1 nandroid backup If I replace data & system img files of LCR folder of your pack with the ones of the nandroid backup, will I get a working rom? No, you must convert them from yaffs2 to ext2, as explained in the post :D
Guest simoneser Posted August 13, 2010 Report Posted August 13, 2010 I read ".yaffs" and i thought was something different :D Then i remembered the unyaffs tool... I have to install a virtual machine with Ubuntu :D
Guest simoneser Posted August 13, 2010 Report Posted August 13, 2010 (edited) I put your pack as is (no modify by me) but i get bootloop after rebooting after flashing the bootLCR zip pack from recovery. It shows the bootanimation but after a bit of seconds, it reboots and reshows the bootanimation What can I do? Edited August 13, 2010 by simoneser
Guest xaueious Posted August 13, 2010 Report Posted August 13, 2010 Useful for Ubuntu porting later, but not for me. :D
Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 (edited) Useful for Ubuntu porting later, but not for me. :D How did you know ? XD (well the plan is on more realistic distribs for a phone.) I put your pack as is (no modify by me) but i get bootloop after rebooting after flashing the bootLCR zip pack from recovery. It shows the bootanimation but after a bit of seconds, it reboots and reshows the bootanimation What can I do? And at every try it's on LCR's bootanimation ? Edited August 13, 2010 by phhusson
Guest simoneser Posted August 13, 2010 Report Posted August 13, 2010 Yes, every try LCR bootanimation. If i remove battery, FRF91 starts :D
Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 (edited) Yes, every try LCR bootanimation. If i remove battery, FRF91 starts :D Ah ! So the kernel doesn't reboot ! You made your own data.img ? Edit: Err you said you did no modify... Edit2: Ok, try to remove data.img, and take back the one from the archive. Edited August 13, 2010 by phhusson
Guest simoneser Posted August 13, 2010 Report Posted August 13, 2010 It takes 5 min before reboots now (probably it rebuilds the dalvik cache or something like this), but it bootloops the same...
Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 It takes 5 min before reboots now (probably it rebuilds the dalvik cache or something like this), but it bootloops the same... Ok, I really can't see what could be happening, can you do an adb logcat ?
Guest phhusson Posted August 13, 2010 Report Posted August 13, 2010 Here you are Sounds like my beloved usual permission problems ... I'll take yet another look tomorrow, thanks for the report.
Guest phhusson Posted August 14, 2010 Report Posted August 14, 2010 Okay, problem found, unyaffs2 doesn't know how to keep proper uids, I'll have to fix it by myself. Also I'll ask malez for something to automate the conversion from nand to SD in recovery.
Guest simoneser Posted August 14, 2010 Report Posted August 14, 2010 Working now! Thanks! I hope that rom cookers will make separate version of their rom to work with this method
Guest uio88 Posted August 14, 2010 Report Posted August 14, 2010 Sd don't function correctly,when i go to camera i receive Sd preparing and loop...why??
Guest simoneser Posted August 14, 2010 Report Posted August 14, 2010 Yes, same for me. It says that there isn't an SD, but I can browse it with ES File Explorer
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now