Announcements

ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.

Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

[MOD] [SCRIPT] Multiboot via loop file [19/12]

395 posts in this topic

I believe I found the problem. For some reason option 2 in the script doesn't work correctly (despite saying "Everything worked" at the end) and skips creating system image from the ROM. I've done it 5 times, going carefully through option 1, then 2 with Swedish Snow and Micro7.

Here is the code from Terminal Emulator:

=================================================
Loop ROM converter by Snap.IT (www.modaco.com)
=================================================
> Startup Menu:
1 - Make system, data or both loop files
2 - Make a loop ROM
3 - Make a loop package (such as gapps)
4 - Make (or update) NAND boot ima
Do you want to make an image file to hold the system for this ROM? (not neccessary if it's an upgrade from a previous ROM) Y for yes N for no.
y
What do you want to call your system image? (give it a name you'll remember, like cm-7-system for a cm-7 loop install)
ss-s
What size do you want your system image to be (in MB's)? (WARNING: if you make it too small your ROM +other packages like gapps might not fit, make it 250)
150
153600+0 records in
153600+0 records out
157286400 bytes transferred in 59.706 secs (2634348 bytes/sec)
Do you want to make an image file to hold the data for this ROM? (not neccessary if it's an upgrade from a previous ROM or you want to share a data image with another ROM) Y for yes N for no.
y
What do you want to call your data image? (give it a name you'll remember like cm-7-data for a cm-7 loopinstall)
ss-d
What size do you want your data image to be (in MB's)? (This file will h=================================================
Loop ROM converter by Snap.IT (www.modaco.com)
=================================================
> Startup Menu:
1 - Make system, data or both loop files
2 - Make a loop ROM
3 - Make a loop package (such as gapps)
4 - Make (or update) NAND boot ima30000+0 records in
30000+0 records out
30720000 bytes transferred in 7.688 secs (3995837 bytes/sec)
Available ROMs:
(1) micro7.zip
(2) MY-Swedish-Snow-RLS7.zip
Enter selection number (default=1, cancel=0, r=refresh): 2
unzipping your ROM
Saving base and cmdline of boot.img from current ROM (MY-Swedish-Snow-RLS7) for future use
Extracting the boot.img of current ROM (MY-Swedish-Snow-RLS7)
Page size: 2048 (0x00000800)
Kernel size: 3036980 (0x002e5734)
Ramdisk size: 194039 (0x0002f5f7)
Second size: 0 (0x00000000)
Board name:
Command line: androidboot.hardware=blade console=ttyMSM2,115200 g_android.product_id=0x1354
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
626 blocks
You previously created the system loop file ss-s, do you want to use it for this ROM? (y/n)
You previously created the data loop file ss-d, do you want to use it for this ROM? (y/n)
y
Creating ramdisk cpio archive ...
Find compiled boot.img inside output folder as MY-Swedish-Snow-RLS7boot.img
Now fixing your updater-script so you can install this ROM into your loop image
format("MTD", "system");
Do you want this installation to format the data image used with this ROM?
Answer Y for yes if it's a new installation and N for no if you are upgrading
and want to keep the data on the data image. (Say yes if you would run wipe
data/factory reset in recovery if this was a normal install)
y
The data image used with this ROM will be formatted during installation
All done, time to pack your ROM up again, it will be called MY-Swedish-Snow-RLS7-loopinstall.zip and will be in /sdcard/multiboot/loop-roms/ss-s
The ss-s system loop file doesn't exist, without creating it before installation this ROM will fail to install
The ss-d data loop file doesn't exist, without creating it before installation this ROM will not boot
Everything worked, MY-Swedish-Snow-RLS7 is ready for loop installation.
Happy multibooting :)
Snap.IT aka Jinxxed
Press Enter to continue

Edited 18 Dec 2012 by elrond_bs

0

Share this post

Link to post

Share on other sites

I believe I found the problem. For some reason option 2 in the script doesn't work correctly (despite saying "Everything worked" at the end) and skips creating system image from the ROM. I've done it 5 times, going carefully through option 1, then 2.

Here is all code from Terminal Emulator:

=================================================
Loop ROM converter by Snap.IT (www.modaco.com)
=================================================
> Startup Menu:
1 - Make system, data or both loop files
2 - Make a loop ROM
3 - Make a loop package (such as gapps)
4 - Make (or update) NAND boot ima
Do you want to make an image file to hold the system for this ROM? (not neccessary if it's an upgrade from a previous ROM) Y for yes N for no.
y
What do you want to call your system image? (give it a name you'll remember, like cm-7-system for a cm-7 loop install)
ss-s
What size do you want your system image to be (in MB's)? (WARNING: if you make it too small your ROM +other packages like gapps might not fit, make it 250)
150
153600+0 records in
153600+0 records out
157286400 bytes transferred in 59.706 secs (2634348 bytes/sec)
Do you want to make an image file to hold the data for this ROM? (not neccessary if it's an upgrade from a previous ROM or you want to share a data image with another ROM) Y for yes N for no.
y
What do you want to call your data image? (give it a name you'll remember like cm-7-data for a cm-7 loopinstall)
ss-d
What size do you want your data image to be (in MB's)? (This file will h=================================================
Loop ROM converter by Snap.IT (www.modaco.com)
=================================================
> Startup Menu:
1 - Make system, data or both loop files
2 - Make a loop ROM
3 - Make a loop package (such as gapps)
4 - Make (or update) NAND boot ima30000+0 records in
30000+0 records out
30720000 bytes transferred in 7.688 secs (3995837 bytes/sec)
Available ROMs:
(1) micro7.zip
(2) MY-Swedish-Snow-RLS7.zip
Enter selection number (default=1, cancel=0, r=refresh): 2
unzipping your ROM
Saving base and cmdline of boot.img from current ROM (MY-Swedish-Snow-RLS7) for future use
Extracting the boot.img of current ROM (MY-Swedish-Snow-RLS7)
Page size: 2048 (0x00000800)
Kernel size: 3036980 (0x002e5734)
Ramdisk size: 194039 (0x0002f5f7)
Second size: 0 (0x00000000)
Board name:
Command line: androidboot.hardware=blade console=ttyMSM2,115200 g_android.product_id=0x1354
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
626 blocks
You previously created the system loop file ss-s, do you want to use it for this ROM? (y/n)
You previously created the data loop file ss-d, do you want to use it for this ROM? (y/n)
y
Creating ramdisk cpio archive ...
Find compiled boot.img inside output folder as MY-Swedish-Snow-RLS7boot.img
Now fixing your updater-script so you can install this ROM into your loop image
format("MTD", "system");
Do you want this installation to format the data image used with this ROM?
Answer Y for yes if it's a new installation and N for no if you are upgrading
and want to keep the data on the data image. (Say yes if you would run wipe
data/factory reset in recovery if this was a normal install)
y
The data image used with this ROM will be formatted during installation
All done, time to pack your ROM up again, it will be called MY-Swedish-Snow-RLS7-loopinstall.zip and will be in /sdcard/multiboot/loop-roms/ss-s
The ss-s system loop file doesn't exist, without creating it before installation this ROM will fail to install
The ss-d data loop file doesn't exist, without creating it before installation this ROM will not boot
Everything worked, MY-Swedish-Snow-RLS7 is ready for loop installation.
Happy multibooting :)
Snap.IT aka Jinxxed
Press Enter to continue

There is indeed an error in the script but the error isn't that it doesn't create the proper files, the error is that you get the faulty error message.

If you look under /sdcard/multiboot/system-loop-files you'll note that it's right there and if you mount it you'll note that the ROM is indeed installed into that file.

I'm using this exact version of the script and it works.

Looking at what you just posted the script worked just fine and should be ready for install.

If you open the loop file.zip and go to /META-INF/com/google/android/updater-script, what does the mount lines of that file say? Are you getting any errors when installing the .zip? (you can check the log in /tmp/recovery after installation in CWM using adb).

The last script is an exact copy of the script i tarred right off of my sdcard and i just made and installed SS-RLS7 without any problems.

As i've said before, since you do get to the point where it boots fine but doesn't show the "ANDROID" text (actually the boot animation if there is none installed and there isn't for SS-RLS7) then the error is either in mounting the loop files or in the content of the loop files.

Could you try to zip those files and post them, just to check if i can use your exact installation on my phone?

0

Share this post

Link to post

Share on other sites

EDIT: Wait, it seems the ROM will finally boot! :blink: WOW, I can't believe it! I installed the exact same zip, didn't even touch my phone since last time (only restored boot and loaded NAND ROM). And now it boots to the loop ROM. :D Seems like it was an error in CWM, but it didn't show any! And last time I waited 7-8 minutes on the greed droid, now it boots in 2.

It seems CWM (v5.5.0.4) doesn't like the script (and you may have to install it more than once until it works), also v11 seems to had caused trouble in the boot.img.

But now it's OK. :)

Thank you very much for your work and time. :)

Previous contents of the post:

Here are the updater-script contents from the "<ROM name>loopinstall.zip":

Share this post

Link to post

Share on other sites

Snap.It one suggestion, you should post a script to wipe the Dalvik-Cache on the Loop Rom's Data IMG, im triyng to install a áudio mod that requires wipe of the dalvik-Cache, but i can't because i don't have access to it :P

0

Share this post

Link to post

Share on other sites

Snap.It one suggestion, you should post a script to wipe the Dalvik-Cache on the Loop Rom's Data IMG, im triyng to install a áudio mod that requires wipe of the dalvik-Cache, but i can't because i don't have access to it :P

Should be easy enough. :)

0

Share this post

Link to post

Share on other sites

Snap.It one suggestion, you should post a script to wipe the Dalvik-Cache on the Loop Rom's Data IMG, im triyng to install a áudio mod that requires wipe of the dalvik-Cache, but i can't because i don't have access to it :P

To resolve the problem of loop errors i think you should add following lines to check the loop files.If they are not make one by

if [ -b /dev/block/loop250 ]; then

echo “Loop device exists”

else

busybox mknod /dev/block/loop250 b 7 250

This creates new loop block and won't reproduce the problem we are facing..

New startup script with addition of a loop device and option to clear Dalvik Cache added and new version posted.

1

Share this post

Link to post

Share on other sites

I just tested v13 and it is working OK, but I still had to install the "<ROMname>-loopinstall.zip" twice in CWM to get it working (it didn't boot the first time, removed battery and installed it again).

Anyway, it not a big deal at all and I really don't care as long as it's working after that. :) Just if anyone else has the same problem - install loop ROM again.

Edited 20 Dec 2012 by elrond_bs

0

Share this post

Link to post

Share on other sites

I just tested v13 and it is working OK, but I still had to install the "<ROMname>-loopinstall.zip" twice in CWM to get it working (it didn't boot the first time, removed battery and installed it again).

Anyway, it not a big deal at all and I really don't care, because it is working great after that. :) Just if anyone else has the same problem - install loop ROM again.

I don't know why that is. I can't run KonstaT's CWM either, they don't work at all on my gen3 phone.

In my CWM touch it works like installing any other ROM.

Thanks for the heads up. :)

0

Share this post

Link to post

Share on other sites

Hey buddy i think you are using perl scripts to unpack and repack the boot.img.Because of it and other stuff which is needed to run those scripts,your package weighs slight heavy.Just a suggestion,you can use the attached binary i have compiled for arm to do the operations.It will decrease the size and bring more simplicity to your package!!!!

Share this post

Link to post

Share on other sites

Hey buddy i think you are using perl scripts to unpack and repack the boot.img.Because of it and other stuff which is needed to run those scripts,your package weighs slight heavy.Just a suggestion,you can use the attached binary i have compiled for arm to do the operations.It will decrease the size and bring more simplicity to your package!!!!

I'll check it out.

I am working on an install script in perl that will be used to install the loop ROM and packages into the made loop files so i might need perl anyway.

EDIT: I'll probably incorporate it with credit to you, i forgot how much i hate perl, i'm going to write the installer in C.

Did you write the code and compile it or is there someone else to thank for it?

Share this post

Link to post

Share on other sites

One question Snap.IT off-topic, wich is the best OS for compiling? Ubuntu, Debian or Fedora? And 64-bits or 32-bits?

I use Arch Linux, doesn't really matter what you use since you'll download the cross compiler for compiling with the code or choose some other compiler that is still not included in most repos.

It depends on your preferences, i use Slackware and Arch because that's what i like, others use Debian or Ubuntu because that is what they like, some people like Fedora but those people are just weird. :D

All in all, all have the proper packages so it really depends on which you prefer, if you're not used to Unix then don't go with an easy distro that will confuse the hell out of you when something doesn't work, as far as i'm concerned there are only two current distros that are worth the time, Debian and Arch.

Share this post

Link to post

Share on other sites

I use Arch Linux, doesn't really matter what you use since you'll download the cross compiler for compiling with the code or choose some other compiler that is still not included in most repos.

It depends on your preferences, i use Slackware and Arch because that's what i like, others use Debian or Ubuntu because that is what they like, some people like Fedora but those people are just weird. :D

All in all, all have the proper packages so it really depends on which you prefer, if you're not used to Unix then don't go with an easy distro that will confuse the hell out of you when something doesn't work, as far as i'm concerned there are only two current distros that are worth the time, Debian and Arch.

Cool i think im going to try Arch Linux

I'm not convinced that you ever need to clear the Dalvik Cache since it will rebuild all on it's own when new code is detected but i'm not all-knowing either. :D

I think it's something from the 2.0 days to be honest, it's not really necessary for anything after that as far as i know.

Apart from odexing, if you don't wipe after doing that then you'll have two .dexs and that may cause something, i really don't know.

Yes, i thought so but i wiping it won't make any problem so i wipe it even if it doesn't do anything.

Share this post

Link to post

Share on other sites

- Can't flash nandboot.zip (error code below, tried many times) with CWM 5.5.0.4, (I notice that late, 'cos been using Advanced Restore). I made my own zip with the original nand ROM boot.img and it's fine.

Rest of the problems are not directly related to the script, but the loop ROM itself (SS-RLS7). If anyone has such problems, read below.

- Loop ROM (SS-RLS7) interferes with ext partition (because of A2SD build-in support). This is strange, because when I first installed the loop ROM, it was OK. Then I: 1. installed few apps, which I have on Nand ROM too. 2. Deleted the loop ROM (multiboot folder) 3. Created another loop ROM. 4. When booted, it showed the apps I installed in previous loop ROM, but not all ext apps. 5. Repeated - same result. I had to format ext. Anyway, I solved the problem by removing A2SD support from the ROM and it's fine.

- The already made loop ROM tends to cause problems with no apparent reason. I had to remake it many times from the beginning and still has some small bugs.

- The most common problem is apps force closing or not starting, even on clean install - both system and data apps.

- Titanium Backup is problematic (I do not restore system apps or data, only apps that I 100% know work on this ROM) - apps sometimes work, sometimes not. And sometimes work until restart and then all apps begin to force close (even those not restored or changed in any way!). It's really strange and when happens, the whole ROM is unusable. My SD card (class 10) is also not the cause, I scanned it for bad blocks, just in case.

To summarize - the loop ROM is easily becoming bugged or unstable. Some apps just refuse to work and the same apps might be OK in a new, clean installation of the loop ROM, but other to be bugged (happened to me with QuickPic, YouTube - system app, PlayerPro and others). Sometimes work, sometimes not. :D

Edited 21 Dec 2012 by elrond_bs

0

Share this post

Link to post

Share on other sites

- Can't flash nandboot.zip (error code below, tried many times) with CWM 5.5.0.4, (I notice that late, 'cos been using Advanced Restore). I made my own zip with the original nand ROM boot.img and it's fine.

Rest of the problems are not directly related to the script, but the loop ROM itself (SS-RLS7). If anyone has such problems, read below.

- Loop ROM (SS-RLS7) interferes with ext partition (because of A2SD build-in support). This is strange, because when I first installed the loop ROM, it was OK. Then I: 1. installed few apps, which I have on Nand ROM too. 2. Deleted the loop ROM (multiboot folder) 3. Created another loop ROM. 4. When booted, it showed the apps I installed in previous loop ROM, but not all ext apps. 5. Repeated - same result. I had to format ext. Anyway, I solved the problem by removing A2SD support from the ROM and it's fine.

- The already made loop ROM tends to cause problems with no apparent reason. I had to remake it many times from the beginning and still has some small bugs.

- The most common problem is apps force closing or not starting, even on clean install - both system and data apps.

- Titanium Backup is problematic (I do not restore system apps or data, only apps that I 100% know work on this ROM) - apps sometimes work, sometimes not. And sometimes work until restart and then all apps begin to force close (even those not restored or changed in any way!). It's really strange and when happens, the whole ROM is unusable. My SD card (class 10) is also not the cause, I scanned it for bad blocks, just in case.

To summarize - the loop ROM is easily becoming bugged or unstable. Some apps just refuse to work and the same apps might be OK in a new, clean installation of the loop ROM, but other to be bugged (happened to me with QuickPic, YouTube - system app, PlayerPro and others). Sometimes work, sometimes not. :D

I've spent the last day running this specific ROM to see if it's different than any others i'm running on a loop install, it's not.

It's as stable as if i had it on the nand with no bugs except when i try to install or use anything that needs secure access to the sdcard, for obvious reasons it cannot have that.

IF there is enough people who want it i'll release a version that installs into mmcblk0p[your choice] in loop files in that location, this will probably fix every single one of your problem and definetly the problem about unmounting /dev/mmcblk0p1 for sharing with the computer.

Regarding the multiple installs you make, i support installs using the last known stable touch that i provide, don't want it, don't use it but please mention that you are NOT following my recommendations when you report problems.

Apps force closing or not starting may be because you have enabled A2SD.

Titanium backup is an app i'd recommend that no one use, ever, for any purpose and that has nothing to do with the specifics of running a rom in a separately mounted loop file on the sdcard partition on your sdcard which it is trying to access exclusively (i'm sure you figured out why it won't work by now).

I've been running four different roms as differential dailies all run off of my sdcard for MONTHS without any problems, if you have a problem then it may just be because you're trying to do something unsupported.

Like running the system from mmcblk0p1 while trying to run other apps that require exclusive access to that partition.

Six roms installed now, all running just fine, several other people have been running it for months without a hitch.

But please, at the very least provide a recovery log and preferably a logcat right after the problems you get.