yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Original Android Development] nkk71:
you can give this one a try, it's just a debug build (so not official again), but should work for you guys too.
[Nexus 7 (2013) Original Android Development] Startrek852:
That works perfectly, thanks! BTW, thanks for fixing the E: Unknown command [log] error!
[Nexus 7 (2013) Original Android Development] osm0sis:
[MENTION=2605798]nkk71[/MENTION] [MENTION=1162986]Captain_Throwback[/MENTION]

So this was a fairly problematic bug today ;):

Ended up wiping all of /data (except .dotfiles oddly enough) from my device. :eek:

Can you implement some failsafes where the wipe only proceeds if the mount changing commands complete successfully?
[Nexus 7 (2013) Original Android Development] nkk71:
oops :eek:

Yeah, some of the code definitely needs some more fallbacks / failsafes, I just encountered the same issue yesterday (on a new "test stuff build"), when (on a failed partition unmount, after installation), you actually get a false positive about failed boot.img.

I'll take a look, and see how well we can protect the real primary, and isolate it away from potential "disasters"... it's always been something I wanted to add to avoid having some "runaway" script overwrite something sensitive. We'll see
[Nexus 7 (2013) Original Android Development] osm0sis:
Thanks!

I also can confirm UbuntuTouch is broken for real now. :p

Not sure if it's on MultiROM's side or UbuntuTouch's side, but whenever it tries to boot UbuntuTouch it appears to overwrite the real boot partition, and then fails to boot UbuntuTouch, just hangs at the Google logo. Then it of course doesn't show trampoline anymore, just continues to hang at the Google logo on every reboot. Only way to get a working device again is to go to recovery, flash stock boot.img, reroot, re-custom kernel, re-MultiROM inject.
[Nexus 7 (2013) Original Android Development] nkk71:
Done, though the whole "reporting" could use some improvements :o

Can you get me some logs please, both the flashing, and booting part. I have never tried a non Android ROM (don't even think they exist for any of the devices I have M7, M8, M9, and 10), so there's no way for me to test any of those.

And to be perfectly honest, since I dont have UbuntuTouch, I never even looked at that part of the code at all :eek:
[Nexus 7 (2013) Original Android Development] osm0sis:
Here you go! (Sorry I was busy working the last several days so I couldn't get to it sooner.)

The flash appears to proceed normally, as does the early-boot trampoline (the first boot post-install), the issue is definitely once it tries to boot Ubuntu something overwrites the real boot partition and it hangs. :confused:

Edit: [MENTION=2605798]nkk71[/MENTION]

[ Attachment removed ]
[Nexus 7 (2013) Original Android Development] nkk71:
Can you try again, but please try to reboot into ubuntu twice.

The problem is that the last_kmsgs get only "backed up" when multirom binary is running

from the mrom_klog_0_2016-11-22-134841.txt you uploaded:

<6>[ 2.780456] multirom: Dumping multirom status:
<6>[ 2.780517] multirom: is_second_boot=0
...
<6>[ 2.782806] multirom: ROM: utouch_rc-proposed_ubuntu
<6>[ 2.782867] multirom: base_path: /realdata/media/0/multirom/roms/utouch_rc-proposed_ubuntu
<6>[ 2.782989] multirom: icon_path: /realdata/media/0/multirom/icons/romic_ubuntu1.png
<6>[ 2.783081] multirom: type: 4
<6>[ 2.783142] multirom: has_bootimg: 1
...
<6>[ 2.787902] multirom: Backing up last kmsg '/proc/last_kmsg' to '/realdata/media/0/multirom/../multirom-klogs/last_kmsg_0_2016-11-22-134821.txt' res=0
...
<6>[ 10.954833] multirom: NO_KEXEC(4.1): Checking if primary is new; is_new=1
<6>[ 11.322021] multirom: NO_KEXEC(4.1): backing up primary boot.img; res=0
<6>[ 11.324005] multirom: Truncating fake boot.img to 16777216 bytes
<6>[ 11.498565] multirom: Updating trampoline from ver 0 to 27
<6>[ 20.658996] multirom: Writing boot.img updated with trampoline v27
<6>[ 20.826812] multirom: NO_KEXEC(4.1): Injected bootimg
<6>[ 21.328033] multirom: NO_KEXEC(4.1): flashing '/realdata/media/0/multirom/roms/utouch_rc-proposed_ubuntu/boot.img' to boot partition; res=0
<6>[ 21.328155] multirom: NO_KEXEC(4.1): Going to tag the bootimg in primary slot as a secondary
<6>[ 21.536865] multirom: NO_KEXEC(4.1): Writing boot.img updated with secondary flag set

I need a last_kmsg where "is_second_boot=1"

But from the above log (mrom_klog_0_2016-11-22-134841.txt) the following is happening:

You have selected utouch_rc-proposed_ubuntu

It contains a boot.img (has_bootimg: 1)

Since this is the case, it get's flashed to the boot partition

second boot is set and a reboot is initiated

Which looks perfectly normal; except why trampoline is being injected again, usually that happens during rom installation.

After reboot, multirom would/should run in "is_second_boot=1" (so no gui), it would set up the proper mounts and hand over to the rom in question.

Since this is obviously not working properly, I need you to try to reboot twice; but when it hangs, I need you to reboot system, not to bootloader or recovery or any other mode, otherwise we'd loose the last_kmsg needed (which would have a higher date/time stamp than the mrom_klog one).

I obviously know nothing about non Android ROMs, so I don't know the exact boot sequence for those :o
[Nexus 7 (2013) Original Android Development] osm0sis:
That never happens.. there's no way for me to boot back to working system without going to bootloader or recovery because trampoline gets overwritten and the boot hangs at the Google logo from that point on. Am I missing something? :confused:
[Nexus 7 (2013) Original Android Development] nkk71:
Probably not, maybe I'm missing something :o

Strange though, "supposedly":

1) trampoline is getting injected

..... and this should only happen once since it's being done to the boot.img on the data partition before flashing it to the real partition

2) then goes for second_boot

..... at which time trampoline should be in place and ready for second boot, if something fails, then it should fall back to recovery as per this and this

Note: during second_boot, one of the essential things that no-kexec (4.1) does is restore you real primary boot.img so that any consecutive boot will allow primary ROM to boot properly without having to "restore primary boot.img" as in previous versions of no-kexec

Anyway,

1) if during stuck bootanim you're able to get to recovery, then you could try getting the last kmsg

adb pull /proc/last_kmsg

2) How about you zip up the whole "/data/media/0/multirom/roms/utouch_rc-proposed_ubuntu" folder for me. If system and data are large, I'm not too interested in them to be honest. I'm more interested in

the boot.img

the boot/ folder

and any possible run-on-boot scripts that be there (think those are non Android things), and would probably be in the root folder of the rom
[Nexus 7 (2013) Original Android Development] tiidigital:
Hey... can anyone tell me how to install Nougat roms as secondary roms in Multirom... I can get it running as a primary rom... but it does not even install as secondary!! Thanks :D
[Nexus 7 (2013) Original Android Development] Startrek852:
If it's failing with the E:Unknown command [log] error, you need to flash the latest MultiROM TWRP from here: https://basketbuild.com/devs/Captain_Throwback/Nexus 7 2013/MultiROM (once BasketBuild is back up). If it's something else, post your recovery.log here and I'll try to help you.
[Nexus 7 (2013) Original Android Development] tiidigital:
yep... thats the error!! i'll check it out now.. and i'll get back to you soon... Thanks in advance... ;) also for the quick response.. :D
[Nexus 7 (2013) Original Android Development] Startrek852:
You're welcome. :)
[Nexus 7 (2013) Original Android Development] tiidigital:
that seemed to be the trick...

flashed the image through fastboot: fastboot flash recovery TWRP_3.0.2-0_multirom_flo_20161018-01.img it is done... already tried it out and flashed a nougat rom as secondary, booted up and it is running...

thank you very much for the awesome hint...

keep up the nice work!!! ;)
[Nexus 7 (2013) Original Android Development] osm0sis:
Doesn't make it to bootanim, just Google logo (no trampoline), but I'll try going to bootloader with the key combo and then recovery to retrieve the last_kmsg after a hung boot.
[Nexus 7 (2013) Original Android Development] nkk71:
And if you could zip that whole thing up, could be one of those "scripts" needed for ubuntu touch that's messing everything up
[Nexus 7 (2013) Original Android Development] borxnx:
Shouldn't matter. Latest twrp recovery will flash 4.4 ROMs, so multirom should be fine.
[Nexus 7 (2013) Original Android Development] silvan g:
I got the 4.4 AOSP rom as secondary rom and works fine
[Nexus 7 (2013) Original Android Development] penskyc:
I have a nexus 7 deb, and while everything has worked fine i have had an issue installing the only version of a 4.4 kitkat deb i can find... When going into twrp and trying to add it as a secondary rom, I got an error informing me that this is meant for a deb device and I have a flo device. I figure since this mod is technically made for flo, that there is something somewhere in the recovery that makes my device think it is flo therefore not allowing me to isntall this file.. Oddly this is the onyl time this has happened, i have not had trouble installing any other deb roms.. Any help would be appreciated, thanks!
[Nexus 7 (2013) Original Android Development] pietropizzi:
What I did was:

Open the Zip File (7zip in my case)

Navigate to \META-INF\com\google\android\

edit updater-script and change getprop("ro.product.device") == "deb" to getprop("ro.product.device") == "flo"

Click save and save to zip file

It's just a workaround and you have to be sure to have a DEB package loaded
[Nexus 7 (2013) Original Android Development] penskyc:
Perfect just what I was looking for! Thanks so much
[Nexus 7 (2013) Original Android Development] rtfpessoa:
When i try to boot PA 4.4 it says it doesn't jave kexec support how do i solve this problem? I can i use current kernel?
[Nexus 7 (2013) Original Android Development] borxnx:
No 4.4 kernel will support multirom as the primary kernel.

If you're trying to use 4.4 as a secondary kernel, make sure to not share the primary kernel when you install the ROM.

But it sounds like your primary kernel doesn't have kexec support, as b2g and others boot fine without it.
[Nexus 7 (2013) Original Android Development] oneheart1975:
can i swap primary ROM with the secondary?
[Nexus 7 (2013) Original Android Development] flash5000:
Not in a one-step-procedure, but you can do backups of both ROMs and restore them accordingly. Just keep in mind to flash a kexec kernel to your internal ROM if it's not built-in.

Another way is to change the default booting ROM to your secondary one via MultiROM settings.

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 7 (2013) Original Android Development] Tasssadar:
MultiROM Manager app beta test: http://xdaforums.com/showthread.php?p=47227572#post47227572
[Nexus 7 (2013) Original Android Development] BPM:
is there any flashable zip for a optimized distro like bodhi?
[Nexus 7 (2013) Original Android Development] jova33:
Dope yo

Sent from your mom's smartphone
[Nexus 7 (2013) Original Android Development] GialanG:
Item not found in Google Play :(
[Nexus 7 (2013) Original Android Development] flash5000:
You need to be admitted to the G+ community first, else you get a 404 not found...

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 7 (2013) Original Android Development] GialanG:
Show me how please
[Nexus 7 (2013) Original Android Development] flash5000:
See here:

http://xdaforums.com/showthread.php?p=47227572

Gesendet von meinem Nexus 7 3G mit Tapatalk
[Nexus 7 (2013) Original Android Development] Raverbunny:
Is there any chance of getting a stock 4.4 kernel with kexec patch please?
[Nexus 7 (2013) Original Android Development] GialanG:
Danke. Now waiting for approval...
[Nexus 7 (2013) Original Android Development] Tasssadar:
MultiROM v17, new recovery and the MultiROM Manager app were released. MultiROM now supports exFAT.

The manager app can install or update MultiROM, it's recovery and kernels and display changelogs.

Thanks all beta testers for testing and reporting bugs, it is much appreciated.

4.4 kernel sources are not released yet.
[Nexus 7 (2013) Original Android Development] GialanG:
Can I install and run the app from secondary roms?
[Nexus 7 (2013) Original Android Development] osm0sis:
/data/media/0/multirom/roms/utouch_rc-proposed_ubuntu/

.:
-rw------- root root 59 2016-12-01 13:23 .icon_data
-rw-r--r-- root root 13279232 2016-12-01 13:33 boot.img
drwx------ root root 2016-12-01 13:31 cache
drwx------ root root 2016-12-01 13:31 data
-rw-rw-rw- root root 4421995 2016-12-01 13:31 initrd.img
-rw------- root root 2104 2016-12-01 13:23 rom_info.txt
drwx------ root root 2016-12-01 13:23 system
-rw-rw-rw- root root 7161008 2016-12-01 13:31 zImage

./cache:
drwx------ root root 2016-12-01 13:31 recovery

./cache/recovery:

./data:
-rw------- root root 32 2016-12-01 13:28 .base_url
-rw-rw-rw- root root 0 2016-12-01 13:31 .last_update
-rw------- root root 33554432 2016-12-01 13:31 SWAP.img
drwxrwxrwx root root 2016-12-01 13:28 android-data
-rw------- root root 2097152000 2016-12-01 13:31 system.img
-rw------- root root 2097152000 2016-12-01 13:31 ubuntu.img

./data/android-data:
drwx------ root root 2016-12-01 13:28 property

./data/android-data/property:
-rw------- root root 3 2016-12-01 13:28 persist.sys.usb.config

./system:

Then there's ubuntu-init, ubuntu-touch-init and ubuntu-touch-sysimage-init from /data/media/0/multirom/, so I threw those in too.

[ Attachments removed. ]
[Nexus 7 (2013) Original Android Development] benpage:
I use my Nexus 7 to test my app on multiple versions of Android. It requires Bluetooth Low Energy, so I can't test in the emulator.

Anyway, I recently upgrade the internal ROM to 6.0.1 from 5.1.1. So now I have stock 4.3, 4.4.4, and 5.0.2, and 5.1.1 installed as secondary ROMs. They work perfectly, except 5.0.2. The System UI is completely missing (no status bar and no nav bar). And the Play Store will download, but wont install updates.

I deleted the 5.0.2 ROM in recovery and did a clean install from the flashable zip provided by Tasssadar. The problem is still there. After setting up my account, there's still no System UI. Does anyone have any suggestions?
[Nexus 7 (2013) Original Android Development] nkk71:
Sorry haven't had much time to loot at your output (been kinda busy with my spare time looking at something else :crying:)

but yeah, you're last_kmsg is very helpful, and not nice :eek:

[ 3.256896] trampoline: Running trampoline v27
[ 3.257141] trampoline: Initializing devices...
[ 3.258300] trampoline: Linking partition 'boot' as 'boot'
[ 3.258697] trampoline: Linking partition 'userdata' as 'userdata'
[ 3.262664] trampoline: Linking partition 'system' as 'system'
[ 3.263000] trampoline: Linking partition 'cache' as 'cache'
[ 3.264312] trampoline: Linking partition 'metadata' as 'metadata'
[ 3.264892] trampoline: Done initializing
[B][COLOR="Red"][ 3.265106] trampoline: Failed to find fstab![/COLOR][/B]
[ 3.436370] trampoline: Running main_init
[ 3.436492] trampoline: Fixing up symlink '/sbin/ueventd' -> '../main_init' to '/sbin/ueventd' -> '../init')
[ 3.436706] trampoline: Fixing up symlink '/sbin/watchdogd' -> '../main_init' to '/sbin/watchdogd' -> '../init')

so it just skips multirom completely (although it's "technically") there, trampoline isnt even trying to mount data due to the above failure

I'll need to look at the code again, and if this is (yet another, "unlikely but not impossible" thingy, Ockham's razor reversed, I'll address it if I can).

Hope your primary wasnt affected; as I'm not even sure if / how that's currently being addressed, but a reboot, or the redundancy in twrp fallback would / should fix that... i think :o
[Nexus 7 (2013) Original Android Development] osm0sis:
Yes, you're right! I hadn't realized it at first so was flashing my boot image over again, but TWRP was restoring the working primary image once I booted back to it. :good:

Thanks for looking into this, your work on keeping MultiROM alive and kicking is so very much appreciated! :)
[Nexus 7 (2013) Original Android Development] CapraNorvegese:
Hi, where is located the updater script? I'm trying to find that to install the cm 14.1 as secondary rom on an etc one m8 but i can't find the script.
[Nexus 7 (2013) Original Android Development] borxnx:
In the zip file, look in the Meta-Inf folder and keep digging down through the directories and you'll find it. It's like 4 or 5 layers down. You can't miss it.

Sent from my thingyding straight to your eyeholes using Crapatalk.
[Nexus 7 (2013) Original Android Development] Startrek852:
It's in the META-INF/com/google/android folder inside the zip.
[Nexus 7 (2013) Original Android Development] CapraNorvegese:
Hi, I've a backup of the stock sense and I want to restore It as a secondary rom, to do this I go in add rom and then i click in backup but I can't see nothing in my USB pendrive.

Where is the problem?
[Nexus 7 (2013) Original Android Development] montvid:
Hi guys. I have the same problem, can't boot ubuntu touch but I found out why. See bugs :

canonical-devices-system-image/+bug/1496756

canonical-devices-system-image/+bug/1499636

And the solution:

ddagunts/UTCWM_N7_patch

Is there a way to implement this in multirom? I wrote to ubuntu touch developers in irc and they don't seem to be interested in a fix. It seems you need a 4.4.2 kernel with kernel 5.0 emmc card support to run ubuntu touch on a new nexus 7 2013 wifi - I might be wrong. I bought my nexus 7 2013 wifi in 2016.
[Nexus 7 (2013) Original Android Development] osm0sis:
[MENTION=2605798]nkk71[/MENTION] ?
[Nexus 7 (2013) Original Android Development] montvid:
Hi, is there a way to inject custom boot.img and recovery.img into ubuntu touch install created by multirom? Maybe this would fix it not loading on my nexus 7 2013 wifi.
[Nexus 7 (2013) Original Android Development] nkk71:
Not ignoring you guys, I'll try and check when I can, but it's pretty low priority at the moment, especially that I have no way to test any of this.

I do realize, the non-Android code is slightly different, but that's about it. Why the failed fstab, etc. I don't know. Sorry but for the time being I can't say what the issue is, also osm0sis, I don't know/think those other bug reports are anything particularly to do with multirom.
[Nexus 7 (2013) Original Android Development] rulk:
I am stuck and have spent last two hours trying to get my nexus back...

I was running Kit Kat and wanted to get Marshmallow working on this so I used the factory rom image from first couple messages in this thread. Was able to write as a secondary rom and ran fine. I tried to swap the secondary (Marshmallow) with the primary (KitKat) and kept getting errors not letting me do it.

I have since did the Wipe command from the main TWRP menu and tried to flash mmb29q_flo.zip but it errors out with error 7. I also have the kernel_kexec_flo_601.zip file and tried to write that first and it seems to load fine but the mmb29q_flo.zip file still fails. I originally installed MultiRom onto this device back in 2013 and trying to bring the android up to the most recent version. I would like to maintain the MultiRom on this device but not sure how to proceed from here. I have (had?) multirom v33 installed on this device and running TWRP 3.0.0-0 on it. I can seem to get into TWRP just fine but cant seem to proceed further. I would like to first install Marshmallow as my primary rom. At the moment I have NO roms running and am frustrated.

---------- Post added at 11:19 PM ---------- Previous post was at 10:59 PM ----------

Ok so a little more information... Here is what I Just tried...

I am able to copy files over to the tablet while in recovery..

Anyhow I used the Multirom uninstaller first.. Finished successfully.

Then Used the MultiRom-20160207-v33-flo on my tablet. Finished successfully

Installed kernel_kexec_flo_601.zip . Finished successfully

Attempted to install mmb29q_flo.zip

And looks like this:

Extracting Scripts...

Extracting archive to tmp...

Extracting data to /system partition...

** failed to extract archive!

called abort()

Updater process ended with error: 7

Error installing zip file '/sdcard/mmb29q_flo.zip'

Updating partition details...

...done

Please help me recover from this issue.

I should state that if Nougat is possible to load as primary I would rather use that one.. Right now my tablet is useless. It is a 32gig Wifi version (Flo)
[Nexus 7 (2013) Original Android Development] Startrek852:
Yeah, never use the Swap ROMs feature, it's completely broken. Download the latest factory image from here: https://dl.google.com/dl/android/aosp/razor-mob30x-factory-52684dff.zip then use the flashing instructions from here: https://developers.google.com/android/images#instructions.
[Nexus 7 (2013) Original Android Development] rulk:
This will disable multirom won't it?

In process of downloading now...

Thanks

Rodney
[Nexus 7 (2013) Original Android Development] Startrek852:
Yes, it will wipe out everything, so you'll have to reflash TWRP, MultiROM, and the kexec kernel.
[Nexus 7 (2013) Original Android Development] rulk:
Edit... Tablet is working now thanks!

Going to try and reload multiROM back on it now.
[Nexus 7 (2013) Original Android Development] rulk:
Ok back up and running! Thanks a lot.. MultiRom v33 and the twrp 3.0.2 are now running.. Does the v33b have some fixes that I should use? I have it on my computer just didn't use it.

Rodney
[Nexus 7 (2013) Original Android Development] Startrek852:
v33b is a lot more updated than v33, so you should use it.
[Nexus 7 (2013) Original Android Development] rhendytay:
Hi all, can I install multirom v33b on nexus 7 2013 deb ?
[Nexus 7 (2013) Original Android Development] boom1982:
View attachment multirom_deb.zip

you need to unzip

!but on the second rom does not work Developer settings!
[Nexus 7 (2013) Original Android Development] rhendytay:
So can I install the nougat ROM on the secondary using this version multirom?
[Nexus 7 (2013) Original Android Development] boom1982:
yes)

Here twrp 3.0.2_for_multirom, and multirom v33b.

Flash twrp, flash multirom - add android 7.x.x
[Nexus 7 (2013) Original Android Development] rhendytay:
Thanks.
[Nexus 7 (2013) Original Android Development] tashik19:
Multirom v33b download link for flo? Please help..
[Nexus 7 (2013) Original Android Development] boom1982:
unzip

!!but on the second rom does not work Developer settings!
[Nexus 7 (2013) Original Android Development] Startrek852:
You can download the latest MultiROM zip and MultiROM TWRP from here: https://basketbuild.com/devs/Captain_Throwback/Nexus 7 2013/MultiROM
[Nexus 7 (2013) Original Android Development] rhendytay:
Hi all,

Anyone can share me the link b2g rom?

Thanks.
[Nexus 7 (2013) Original Android Development] fortis91:
I tried these new version but I seem to be missing MultiROM button in TWRP - advamced, any suggestions?
[Nexus 7 (2013) Original Android Development] pargas:
You should find it up in right corner under the menu (three lines).
[Nexus 7 (2013) Original Android Development] fortis91:
Got it, thanks.
[Nexus 7 (2013) Original Android Development] J_E_F_F:
Will there be an update for this based on the available 3.1 TWRP branch?

https://dl.twrp.me/flo/
[Nexus 7 (2013) Original Android Development] sub77:
no never, they started backporting down to 2.8.2.0 or lower.
[Nexus 7 (2013) Original Android Development] Captain_Throwback:
I already did that... (though I have no idea if they work)
[Nexus 7 (2013) Original Android Development] boom1982:
Hello)

On v33b Settings for developers crashed (at the second rom)

Is there still this problem?
[Nexus 7 (2013) Original Android Development] Captain_Throwback:
Did you try the version I just posted?
[Nexus 7 (2013) Original Android Development] boom1982:
No, but the version was v33b, And taken from this forum
[Nexus 7 (2013) Original Android Development] Captain_Throwback:
Then try the version I just posted.
[Nexus 7 (2013) Original Android Development] boom1982:
Do not you have such a problem?