• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      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.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      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.

[idea] two ROMs on one device (aka dualboot)

76 posts in this topic

Posted

Is the code looking for a specific button or any button triggers the alternate boot? What about changing it to look for a specific keycode, for example the home or the back button?

Button trigger was all set and you have to press home button for booting into the second rom.But it needs the dual boot integrated recovery which flashes the secondary rom on /sdcard or /sd-ext.But the recovery is broken.

1

Share this post


Link to post
Share on other sites

Posted (edited)

Button trigger was all set and you have to press home button for booting into the second rom.But it needs the dual boot integrated recovery which flashes the secondary rom on /sdcard or /sd-ext.But the recovery is broken.

Probably because the recovery is inside the initrd too... Okay, a dual-boot recovery would needed some more mods anyway, but were you able to boot any second rom? I mean you obviously can't just flash, but modifying the paths in the updater-script (in case of re-installed normal recovery) or copying files manually should be enough...

Edited by Sulthekk
1

Share this post


Link to post
Share on other sites

Posted

Probably because the recovery is inside the initrd too... Okay, a dual-boot recovery would needed some more mods anyway, but were you able to boot any second rom? I mean you obviously can't just flash, but modifying the paths in the updater-script (in case of re-installed normal recovery) or copying files manually should be enough...

No but i will try by changing the paths in the updater script.

1

Share this post


Link to post
Share on other sites

Posted

If everything fails,then we can run the second rom as chrooted that means top on the original rom.

1

Share this post


Link to post
Share on other sites

Posted

If everything fails,then we can run the second rom as chrooted that means top on the original rom.

0

Share this post


Link to post
Share on other sites

Posted

If everything fails,then we can run the second rom as chrooted that means top on the original rom.

But if they are totally different ( like ICS or JB compared to any GB ) they need different kernels! That's something that can't be done with simply chrooting...

If that fails there's still kexec. After some reading it looks like something that may actually work if a lot of time is spent in it...

1

Share this post


Link to post
Share on other sites

Posted

But if they are totally different ( like ICS or JB compared to any GB ) they need different kernels! That's something that can't be done with simply chrooting...

If that fails there's still kexec. After some reading it looks like something that may actually work if a lot of time is spent in it...

Ok so we will have to work on kexec now.This project is going more exciting now.

1

Share this post


Link to post
Share on other sites

Posted

Ok so we will have to work on kexec now.This project is going more exciting now.

Just for curiosity: what patches have you tried to implement?

1

Share this post


Link to post
Share on other sites

Posted

Just for curiosity: what patches have you tried to implement?

I patch the /init folder in the source from a dual boot kernel that is i patched initramfs.c in the source it compiled successfully.But recovery included in it was configured for another phone so it was broken.
1

Share this post


Link to post
Share on other sites

Posted (edited)

I patch the /init folder in the source from a dual boot kernel that is i patched initramfs.c in the source it compiled successfully.But recovery included in it was configured for another phone so it was broken.

Wait... Recovery in the source of an experimental dual boot kernel? Is it a samsung device?

Edited by Sulthekk
1

Share this post


Link to post
Share on other sites

Posted

Dualboot?

1

Share this post


Link to post
Share on other sites

Posted

Wait... Recovery in the source of an experimental dual boot kernel? Is it a samsung device?

Yes

1

Share this post


Link to post
Share on other sites

Posted (edited)

Yes

Galaxy S and some other samsung devices have their recovery integrated into the kernel instead of having it on a separate partition, unlike most of other phones, including Blade... Could you link the patches for me to see how they actually work?

Edited by Sulthekk
1

Share this post


Link to post
Share on other sites

Posted

That's why I was thinking on kexec... You can just place a kernel and an initrd directly in the root of the partition, and from now on you would only need to tell the loader program where the partition is, then it would find the necessary things by itself, since the paths would be the same for everytime. But I'm still doing a research on it as I'm not experienced with it, so what I say maybe isn't working... Handle it that way.

Aye, my thoughts exactly, this would also mean that just copying the files into the correct directories would work for installing any rom.

Using grub legacy code for ARM i can get it to boot grub2 but there isn't much i can do with that yet, the mappings just doesn't work at all.

1

Share this post


Link to post
Share on other sites

Posted

Tried to make it boot first device but i'm so tired i forgot that i don't have a zImage on first device.

I'm going to bed.

0

Share this post


Link to post
Share on other sites

Posted

Aye, my thoughts exactly, this would also mean that just copying the files into the correct directories would work for installing any rom.

Using grub legacy code for ARM i can get it to boot grub2 but there isn't much i can do with that yet, the mappings just doesn't work at all.

Great :)

I didn't know that GRUB ever had ARM support...

0

Share this post


Link to post
Share on other sites

Posted

I have cloned successfully NAND rom into sdcard by doing some fun with dev/block/mmcblk.Just needed some modifications in init.blade.rc and a script for alternating the boot.

0

Share this post


Link to post
Share on other sites

Posted

@sulthekk Any progress?

0

Share this post


Link to post
Share on other sites

Posted

@sulthekk Any progress?

Still had no time at PC, and I'm limited to android... :(

Until I don't resolve that problem I can't compile. Or more precisely, I don't want to compile on the Blade because it's damn long.

0

Share this post


Link to post
Share on other sites

Posted

Still had no time at PC, and I'm limited to android... :(

Until I don't resolve that problem I can't compile. Or more precisely, I don't want to compile on the Blade because it's damn long.

Still no progress?

0

Share this post


Link to post
Share on other sites

Posted (edited)

Aww... I totally forgot about this during the vacation. :(

Before leaving I also forgot to mention that I found some really interesting things at https://wiki.ubuntu.com/Specs/ARMSoftbootLoader

Some of that looks promising.

For example, kboot is written in shellscript, all it needs is a kexec-able kernel (and probably kexec-tools too) with minor modifications to load the kernel from a specified path, and to attach the 'root=' parameter to he kernel cmdline.

Edited by Sulthekk
0

Share this post


Link to post
Share on other sites

Posted

@sulthekk I need you help.Could you tell me which block is used for mounting system,data and cache in /dev/block/?

0

Share this post


Link to post
Share on other sites

Posted (edited)

The mount command shows that. I post it there anyway:

dev: size erasesize name

mtd0: 00500000 00020000 "recovery"

mtd1: 00500000 00020000 "boot"

mtd2: 00180000 00020000 "splash"

mtd3: 00080000 00020000 "misc"

mtd4: 00200000 00020000 "cache"

mtd5: 0a000000 00020000 "system"

mtd6: 115e0000 00020000 "userdata"

mtd7: 00020000 00020000 "oem"

mtd8: 00180000 00020000 "persist"

———————————————

Today I have compiled burstlam's Turies GB kernel with CONFIG_KEXEC enabled, it boots and works fine for standard use. Haven't tested kexec'ing because I fail to compile kexec-tools, which we need to use that feature. I guess something is bad around my toolchain as it compiled nicely on x86, but fails on arm. I am not at the PC at the moment, but I remember a warning about implicit declaration of if_nameindex and and muliple error's saying something like 'converting integer to pointer without a cast' or 'incomplete type' from multiple lines between 45-60. I will check on that later.

Edit: /proc/mtd seems a better way to go than mount as it shows only the partitions on the NAND.

Edited by Sulthekk
1

Share this post


Link to post
Share on other sites

Posted

Finally got success but partial.I have successfully booted ics from sdcard and it is fast as NAND .Soon will create thread.

1

Share this post


Link to post
Share on other sites

Posted

look forward to....

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.