yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G3] Eliminater74:
Kernels

I received permission from [MENTION=3771760]aclegg2011[/MENTION] to use his Custom Tootsie Kernel for patching and release for MultiRom.

I also just now, received Email with permission from [MENTION=4794976]777jon[/MENTION] to use his 777 kernel.

So expect a Custom OC HardBoot Kecec Patched Kernels to be listed soon for Download.

(As long as my Builds work)

I know open source means I can use whatever I want. But with respect to the dev's I always ask permission before use. And as always, I give Credit to the devs for the use.

I was raised to always Respect others, To get respect, You show it. I will never claim or steal someone else code.

So keep on a look out for a few new patched kernels loaded with options..

Update: I built the 777 kernel with patch.. But no OC features seem to be listed.. not even special govs.. I might have used the wrong branch.. But ill work

on it.. in the meantime I will post the build.. its still a very good kernel regardless........
[T-Mobile LG G3] graphreak:
:good: Excellent news!

Been waiting to test out V32(or update) on the current LP5.0.x ROMs.

Thank you.
[T-Mobile LG G3] marcdw:
Okay, got no responses to my query so had to try anyway. It is still the case where stock-based ROMs cannot be used as secondary, correct? Had a go at it using SkyDragon with no luck of course. Tried all the stock-based kernels.

On other side things are working fine. AICP set up as primary, CM11 as secondary. MultiROM is good to go.

Alas, I need a stock-based ROM in action so...

I'll figure something out.

[sort of off-topic: All/most LP ROMs flashed beginning in March suffer media library/storage issues resulting in non-working Music app and probs reading images. Hence the reason why stock-based needs to be in play as a stable fallback. XDA thread for CM's music app covers this a bit. Workaround being to clear Media Storage data. Temporary fix.]
[T-Mobile LG G3] Eliminater74:
I forgot to ask [MENTION=452513]tassadar[/MENTION] about sock based roms as secondary..

But if you read some post back. someone is patching a stock rom. (at least I think they are trying)

I never had luck with stock roms as primary. No matter what MultiRom version I used.

I think its because stock roms use a tad more different partition updates. Which I dont think MultiRom handles yet. I will try and remember to ask [MENTION=452513]tassadar[/MENTION] about it.
[T-Mobile LG G3] Eliminater74:
2 new Patched Kernels have been added,

Tootsipop By [MENTION=3771760]aclegg2011[/MENTION] OC functions work

777Kernel By [MENTION=4794976]777jon[/MENTION]

Update:Sorry, I made a little mistake in the update-script Forgot a ";" at the end of one of the lines..

Give me a few, ill re-send the fix.
[T-Mobile LG G3] arifqur:
Great news man that you got the custom kernels working
[T-Mobile LG G3] Eliminater74:
Possible Mistake in BoardConfig.mk

I think I found a mistake in the BoardConfig.mk on MR_KEXEC_MEM_MIN := 0x20000000

Now its:

MR_KEXEC_MEM_MIN := 0x20000000

When maybe it should be:

MR_KEXEC_MEM_MIN := 0x02000000

So in other words, it should prob be 02 and not 20

G3 has very strange address locations. I will recompile and test this out.. If it works

ill repost update.
[T-Mobile LG G3] SonjaMichelle:
HA!

Kronk Smash!!!! :silly:

This dumd-assed Soldier/Firefighter finally did it.

I successfully patched and booted the stock T-Mobile 10r Kernel to run Multi-ROM v32. Took me most of the week and a lot of lost sleep but I done damn did it!

Give me some time to polish it up, test it a bit and get upload access on AFH and I'll share.
[T-Mobile LG G3] Eliminater74:
Congratulations dude.. Just send me the link and ill post it on the OP.

Im working on some MultiRom builds, testing some diffrent mem_min locations..

we have 5 system ram locations, Im trying to find the best location for the kexec-mem-min settings.

needs to be able to store there and stay there durning reboot and cant overlap anything,

so im testing alot of locations out. trying to figure out best one....
[T-Mobile LG G3] Eliminater74:
MultiRom Update should allow OEM Stock Roms.

MultiRom Update: Ok here is the scoop, People have asked me over and over about installing stock roms as secondary..

The main reason why you couldnt: OEM roms use an incomplete fstab. Which causes MultiRom to abort.

But MultiRom can handle Stock OEM roms, by supplying a mr_hooks.c file in the device folder.

Then editing the BoardConfig.mk with the following:

MR_DEVICE_HOOKS := device/lge/d851/mr_hooks.c
MR_DEVICE_HOOKS_VER := 4

That is supposed to allow you to install Stock OEM roms as secondary.. This fix was supplied by [MENTION=3418703]Tasssadar[/MENTION],

Who once again told me what I need to do to allow stock OEM roms on Secondary.

I still have one more fix that im working on now, Its address location to store secondary Kernel and holding it there while rebooting.

Once I have that figured and tweaked, I will upload new MultiRom Update with fixes as I said above.

So just keep an eye out for the update. Maybe today, Maybe tomorrow........ But its coming........

-=[ MultiRom Now Supports OEM Stock Based/Roms as Secondary ]=-​

Update: MultiRom Now Supports Full OEM Stock roms as secondary... After working my butt off to make it work, I finely Got it working..

I installed Candy & SkyDragon and a few others, All worked.. I even have Wifi Calling..

I set out to do something, And I did it. Like I said to everyone, Have a little patience, I dont Quit and I dont give up.

( I am sure there might be a few things that wont work like it should. But As I say, Give me time. )

Report: Report all Issues to me. But please test new update before making judgement..
[T-Mobile LG G3] SonjaMichelle:
Damn, I don't have it. It booted up once but each subsequent boot after the initial flash ended up booting into fastboot. Not sure what the hell is going on. :eek:
[T-Mobile LG G3] Eliminater74:
What are you referring to? Your Stock Patched Kernel or my MultiRom ??
[T-Mobile LG G3] SonjaMichelle:
My stock patch.

Your stuff is working fine so far. Just got around to installing and playing with it. Taking a break from my patch-a-thon before I toss the PC out a window.
[T-Mobile LG G3] arifqur:
So by Stock Roms you mean Stock Lollipop also?

Anyways gonna give it a try and will report back

EDIT: Cannot get Skydragon to boot as secondary. At boot logo the logo fades away in a weird way and then after a little while the Stock style green/blue led starts flashing and after some time it boots back into recovery

Also tried DarkKnight Stock Lollipop based rom and it behaves in the same way except that it does not boot into recovery but keeps getting stuck at the green/blue flashing led where the screen is blank and the reboots after a while and repeats it.

However, a new feature of the updated Multirom is that it now boots the CM12 nightlies as secondary rom without the need for flashing a custom kernel like 777jon's

EDIT: Euphoria also boots fine as secondary with its own kernel with the latest Multirom
[T-Mobile LG G3] joshuajones:
^ same thing happened to me
[T-Mobile LG G3] Eliminater74:
I have installed SkyDragon, Cloudy, RR, and some others that I cant remember, I just started downloading whatever I could find to test.. And everything booted just fine for me.

It could be a number of reasons why you are having problems. But for me to be sure,

send me a copy of the file iomem, do this command:

cat /proc/iomem > /storage/sdcard1/iomem.txt

or something like it.

I need to check your memory locations. I figure they are all the same. and should be all the same.

I know on mine, I have 5 System Ram locations. I used the 3rd on down from the top.

it seemed to have the most memory space avail without overlapping. I know a 3gig version of this phone was made along with the original 2gig version.

I am going to make a youtube video of mine loading up each rom that I have listed. That way people can see it.

But for me to track down, why it doesnt work for you, send me that iomem file located in /proc/iomem

I also need /proc/last_kmsg

last_kmsg was the last bootup.. So try the roms that dont work then reboot into a working rom. then get me that file. because it will reset on next boot after.

I need to know the errors thats causing it to abort.

PS: my setup is 128 sdcard, with 10 gig ext4 partition, Thats where I installed skydragon and 2 others..

Do to stock reasons, Im not sure stock based roms are good to install on anything other then ext partition.

It wouldnt work on ntfss,fat32,exfat.. Only worked on ext4 so far......
[T-Mobile LG G3] arifqur:
I have the 3 gig Ram 32 gig Rom version.

I get errors while getting the file via adb

Edit: Finally got the iomem file
[T-Mobile LG G3] Eliminater74:
That could be the problem. First off, I dont even know how to tell what version I have. 2gig or 3gig. I do know its 32gig internal..

But you have 4 system ram locations.. I have 5.. and the one you dont show that I have is

dd900000 - dd9fffff System Ram

Now when I compiled MultiRom, I used a kexec memory location that would be used for 2g versions.

Location:

/* #define KEXEC_HB_PAGE_ADDR UL(0x7D800000) this is good for the 2Gb version*/
+/*#define KEXEC_HB_PAGE_ADDR UL(0xDD800000) this is good for the 3Gb version*/

I used the

KEXEC_HB_PAGE_ADDR UL(0x7D800000)

but that should have no bearing on your device what-so-ever.. But im going to change

kexec_mem_min location again. im going to try 0x0200000 and see if that will work for you..

Please if you could send me the last_kmsg log.

but to do that you need to first try booting into that rom that doesnt work.

then after you try to boot into that rom, then boot a working rom

then drop to terminal , The file I need is in /proc/last_kmsg

The file shows all errors from the last boot..

Update: If worst comes to worst, Ill compile 2 version, one for 2gig and one for 3gig versions.....
[T-Mobile LG G3] Eliminater74:
Reporting Bugs:

LINK: How to Post a Bug:​

Please, refer to link above on how to post bug, I want to fix this so that everyone can use it for what its made for.

It defeats the per pus if only cretin people can use it, So please follow the instructions on reporting bugs, so I can find the problem and fix it..

Thank you all..
[T-Mobile LG G3] marcdw:
[MENTION=5687366]Eliminater74[/MENTION] you are da man!

Flashed the latest offerings and went about adding SkyDragon (from backup) as secondary to the ext4 partition on external card. It worked. Boots and runs just fine. Since it was from backup it's using [MENTION=2174433]Skin1980[/MENTION]'s kernel. I'll test later with SkyDragon, Furnace, and Rin KK kernels to see what happens.

Given the total size of installation I won't be able to install any other ROMs to the external.

[I've essentially given up on Lollipop anyway. As I've mentioned here and elsewhere media storage issues cause the music app to crash as well as image file reading problems. Why? Have no idea. ]

But anyway, having SkyDragon work from the external location leaves me with a lot more internal space even with AICP LP and CM11 installed.

Great job. Perseverance indeed.

????
[T-Mobile LG G3] arifqur:
If you have 32gb internal memory then most probabaly you have 3gb Ram.

As the two variants of G3 were:

2gb ram 16gb Internal

3gb ram 32gb Internal
[T-Mobile LG G3] Eliminater74:
Thank you for clarifying that up for me, I really had no idea on that part. and I felt to stupid to ask..

Makes since. that could also be the reasons I have 5 System Ram locations as to others only have 4 or less.
[T-Mobile LG G3] Eliminater74:
Update: I uploaded another MultiRom update, Nothing diffrent other then I changed the [MR_KEXEC_MEM_MIN := 0x02000000] ..

The users that said the other didnt work as expected, try this one. Post your finding to me. Thank you.

PS: Uploads are under Testing Area Sign.
[T-Mobile LG G3] joshuajones:
Just to be clear, what kernel should I be using for a stock LP ROM as secondary? I have euphoria w/ 777 kernel as primary. I tried the LP stock patched kernel in OP and it freezes in twrp.
[T-Mobile LG G3] arifqur:
The test Multirom does not boot any secondary rom installed on the internal or external storage and stays on a blank screen while flashing Red and Blue led
[T-Mobile LG G3] Eliminater74:
You dont need any special kernel on secondary. only on primary.... you can use whatever kernel came with the rom on secondary..

Please send me that /proc/last_kmsg file so I can see whats happening. I cant fix anything blinded.. I can guess for the rest of my life and without that file. I still wont be able to help you.
[T-Mobile LG G3] Eliminater74:
[MENTION=264977]arifqur[/MENTION],

Your /proc/iomem file reads as this:

00000000 - 059fffff :System Ram
00008000 - 00df21fb :Kernel Code
00f0e000 - 0130a87b :Kernel Data
0d700000 - 0f9fffff :System Ram
0ff00000 - 5fffffff :System Ram
80000000 - dd9fffff :System Ram

My /proc/iomem File reads this:

00000000 - 059fffff :System Ram
00008000 - 00df21fb :Kernel Code
00f0e000 - 0130a87b :Kernel Data
0d700000 - 0f9fffff :System Ram
0ff00000 - 5fffffff :System Ram
80000000 - dd7fffff :System Ram
dd900000 - dd9fffff :System Ram

This Location right here:

MR_KEXEC_MEM_MIN := 0x0d700000

is what the main Multirom that I used runs at.

Which you can see from above why I picked that location.

The location used can be anywhere as long as its within the System Ram and not overlapping anything..

[MENTION=3418703]Tasssadar[/MENTION] posted this:

Back to MultiROM's configuration in the BoardConfig.mk. This is the value where kernel and initrd are loaded before reboot. It has to be in the first 256MB of System RAM, and it must not be rewrote during the reboot. Again, look at /proc/iomem and select something reasonable, for example flo System RAM's first bank spans from 0x80200000 to 0x88dfffff and the mem-min value I've selected is 0x85000000.

Now you get an idea why MultiRom might work 100% for some people and 50% for others. It seems to be a guessing game.. but

without that last_kmsg file after an unsuccessful attempt, I got nothing to go on.

But its very clear that your iomem and mine are different to a degree. I might just have to compile 2 versions dealing with 2gig and 3 gig phones.

PS: I am going to compile some at different address locations that I need you personally to test, If you dont mind..

Thank you.. I will post up to you when I get the address recompiled..
[T-Mobile LG G3] arifqur:
Thanks for your passion for getting to the bottom of this problem.

Always willing to test stuff
[T-Mobile LG G3] Eliminater74:
Please Download the next Test MultiRom in the Testing Area.. the 0x0ff00000 one............

Let me know.
[T-Mobile LG G3] Eliminater74:
Post: I figured I would send up some screen shots of my setup of roms installed on my device using MultiRom.

So I added some attachments ..

I will also upload them to the screen shot area.

PS: Every single rom on my list below, Boots and Runs fine.

I have a 128gig Sdcard Partitioned with 10gig ext4 holding 3 of them roms.

Then I have a 32gig USB formated with ext4. holding the rest.

My Internal only has the primary and thats all.

My Point in showing the screen shots off my list, is to show That MultiRom does work. It might need some adjustments for your Device settings.. But It does work.

As I said, Every Single ROM on my list below Boots and works. Even the 100% Stock Rom..
[T-Mobile LG G3] arifqur:
Currently testing and would report back soon.

Thanks
[T-Mobile LG G3] Eliminater74:
I have done so many locations, that I cant even remember the one I used for my phone.

Anyhow, the problem your having is this, Reason you cant boot certain roms is because its aborting kernel and booting primary kernels on your secondary roms. So if that rom doesnt support the primary kernel

then it freezes or reboots or something bad. What im trying to find for you is the correct location that your device would have enough room to store the kernel during a reboot..

if im a little to far forward, then it wouldnt have the room it needs and will abort the secondary Rom kernel and use primary.. its all a error safe method.
[T-Mobile LG G3] Nitefire77:
I tried installing multi-rom and dark knight as my 2nd ROM. It installed alright, and when I rebooted and tried booting into it it hung on a black screen for several minutes with the notification led blinking then restarted. I trued twice before booting into my primary ROM. (Ressurection Remix) and when it booted my screen is flickering. I then uninstalled multirom, reflashed my old twrp, wiped everything and reinstalled my nandroid from right before I tried multirom and its still flickering its bugging me bad :(
[T-Mobile LG G3] arifqur:
Tried the Test Multirom #2 and installed Autoprime's Stock Lollipop and at the boot screen it changed into Vertical lines in the middle of the screen on top of the LG Logo and after pulling the battery and going again into TWRP, I still had these vertical lines at the top 20% of the screen and when I rebooted into the Primary CM12 rom I still had these lines and all the while in TWRP and in the CM12 rom, I also had the screen flickering.

The vertical lines have almost gone now but a little bit of flickering still remains.

I won't lie it scared the s*** out of me.
[T-Mobile LG G3] Nitefire77:
Edit: saw some posts I missed about 2ndary ROMs being stock having issues. Hope I'll be able to get it working sometime soon

Glad I'm not the only one that had the problem. The flickering is gone now and everything seems OK. I'm wondering if maybe the screen and lines problem cane from the screen overheating? When I was installing dark knight ROM ithe screen was at 100% brightness in aroma, and hung on flashing kernel for like 5-7 minutes before the installation completed. I rebooted into the new install right away and the splash screen showed then faded away leaving the screen on but showing just black. Rebooted itself after almost 5 minutes, and I tried again another 5 goes by and I boot to primary and the flickering is there. That was a lot of screen on time, the back of my phone got pretty warm which I'm sure the processor was working on trying to load the ROM or something. Overheating is my best guess anyways. I am disappointed it didn't work for me though. I want to keep my aosp ROM but the blacked out theme on a stock base ROM looked awesome and I had my hopes up for using it and having the lg camera available
[T-Mobile LG G3] Eliminater74:
his stock LP dont work with Multirom.. if your talking about the stock stock. Because I even tried it.. it messed everything up.. good thing for backups.

and the vert lines are from that stock LP.. there are many people talking about issues with it/. Thats not from the MultiRom..

I needed you to test it on something a bit more friendler.
[T-Mobile LG G3] Eliminater74:
From this point on, I give up. I am no longer going to keep this upgraded.. I will only for my self.. Tomany people complaining and blaming me for there problems..

So this is it. Im not going to rack my brain over this. My version works for me. and thats good enough for me. Nobody listens and nobody reads.

Im not directing this to no single person. But I give up..Thats all im going to say..
[T-Mobile LG G3] arifqur:
Man I was just telling you of the experience that I had.

I was not complaining but sharing my experiences as a tester for the Test builds.

You are the leader of this group and you are the one who should guide us when in trouble.

Don;t take everything so personal.
[T-Mobile LG G3] Eliminater74:
It wasnt directed towards you. Its everyone in a whole.

I ask for logs, I dont get them. I cant play guessing game. I know what the problem is, but without logs its hard to be sure.

and second, you cant install a stock LP rom that everyone has issues even as a normal flash more enough a multirom flash.

when I said Stock, try a stock that you know works 100% even if you flashed it as a normal flash..

Everyone is quick to tell me whats wrong, but Nobody sends me logs, Some post up I even posted a link that tells you how to send them...

I must have a special phone, because my MultiRom version works 100%.. and I mean that.. I took screen shots of all

12 roms that I have installed that fully work.. some stock some not.............

LG made to versions of the G3, one 2gig and one 3gig..

I must have the 3gig. since my phone is 32gig.

And since some peoples phones who have the 2gig.. Have a slight diffrent system ram area that can be used..

Thats why I need testers. I cant test on a phone I dont have.. I have what I have and it works.

So people that have that other type, I need to test with roms that are known to work regardless of the flash..

Dont try and flash a rom that has issues and then report back that MultiRom doesnt work. Thats no test......

I really want this to work for everyone. I really dont want to be the only person that uses this.

Because im going to port Ubuntu-Touch over.. Thats a full Linux OS.. MultiRom would allow you to dual boot Android or Linux............. Thats the sole per pus of MuliRom when
[MENTION=3418703]Tasssadar[/MENTION] created it.........

Now if you want to continue testing for me, let me know.. and this time. Please take the version 0x0ff00000 again and try with something that doesnt have issues.

then send me a log if it doesnt boot.. Thats the only way I can find out why its not working.............

And as I said, What I said wasnt directed towards you. But if people would read the post in the stock LP thread, you would see others complaining about the line you mentioned.

Yes I read them.. and yes I tried even to flash it on secondary.. just to see.. and Yes, it flashed over my primary info. and messed everything up.

and Yes, Lucky for me. I keep backups................ And to answer the question your thinking right now,

I booted into TWRP clicked Advanced,Multirom/addrom/ Added System.zip of the LP stock.. then click home then advanced/multirom/list roms/chose my USB storage section/ Then

clicked on the system.img of the stock LP.. then flashed boot to it.. and then when I went to reboot. I realized everything flashed to primary and not to secondary.

So you cant flash that rom as secondary....... But always keep a nadroid backup.. Always..
[T-Mobile LG G3] Eliminater74:
UpDate: I am working on some project test, Im still waiting on someone that has a 2gig ram version. to test different mem_min memory locations.

I just need testers so i can get that part to work.. Till then, ill just be testing other things my self.. I even consider working on my T800 Port..
[T-Mobile LG G3] Nitefire77:
D851 there is no 2gb version. I believe just the d855 has a 2gb version
[T-Mobile LG G3] Eliminater74:
Well something is different, I have 5 system ram locations which my copy of MultiRom works 100% and others who have the same 5 system ram locations replied that it works for them also.

but your friend above who only has 4 system ram locationsm MultiRom doesnt work ok.. So you tell me?

Since you were another one that said it didnt work, show me your /proc/iomem and /proc/last_kmsg ...

I can almost bet you have the same System ram locations as the guy above..

On another note: Update: I just rebuild MultiRom with new env build.. and used SaborMod 4.9 to compile. And the funny thing. All the stuff that didnt seem to work

on my other twrp Now seems to work.. The screen now finely blinks out which you can turn off if you would like. The speed of installing and booting multirom seems faster.

Installing roms seem a bit faster...

Have I uploaded it, ?? No I havent. I figured it would be a waste of time. If anyone wants me to upload it. I will.. But unless someone wants to try it, Im not going to upload it.