[KERNEL] [KEXEC] Kernel EXECution for locked devices [N900V] [WIP]

ryanbg

Inactive Recognized Developer
Jan 3, 2008
855
1,734
0
movr0.com
Is there some special method to do this? I thought the boot loader version differed between MJ7 and MJE and the flash would be rejected. If I Odin mj7 tar on top of nc2 I would be on MJ7?
MJ7, MJE, and NC2 have the same 'rollback counter' number, which is 2. Yes, a full MJ7 tar over NC2 will result in MJ7 without issue.
 

hsbadr

Inactive Recognized Developer
May 18, 2014
3,930
22,397
0
Happy Labor Day

Update [09/01/2014]:

kexec module has been successfully patched & loaded. Now, I'm working on compiling/loading a guest kernel & fixing possible problems/bugs.

Update [08/31/2014]:

Two versions of HLTEVZW KK kernel have been compiled from source: one uses the default configurations & the 2nd adds custom capabilities & kexec boot options. Moreover, kexec-tools & module have been cross-compiled. Now, I'm working on patches for kexec module & guest kernel (the hardest part).


Status

Working kexec-tools
Loaded kexec module
WIP guest kernel
 

kvnhmmd

Senior Member
Jun 15, 2013
131
35
0
Update [09/01/2014]:

kexec module has been successfully patched & loaded. Now, I'm working on compiling/loading a guest kernel & fixing possible problems/bugs.

Update [08/31/2014]:

Two versions of HLTEVZW KK kernel have been compiled from source: one uses the default configurations & the 2nd adds custom capabilities & kexec boot options. Moreover, kexec-tools & module have been cross-compiled. Now, I'm working on patches for kexec module & guest kernel (the hardest part).


Status

Working kexec-tools
Loaded kexec module
WIP guest kernel
Awesome news! Made my night! Glad to see this hasn't been abandoned.
 
  • Like
Reactions: 117micc

jal3223

Senior Member
Mar 14, 2009
1,448
370
103
So what exactly does all this mean? The possibility of using aosp roms on this device with custom kernels? Doesnt the Jasmine rom currently use a modded kernel? Thanks for the awesome work man!
Basically this allows us to use any kernel. It's almost the equivalent of having an unlocked bootloader. The only difference is the bootup will take a little longer (who cares right!).

Great job @hsbadr!
 

hsbadr

Inactive Recognized Developer
May 18, 2014
3,930
22,397
0
If you upgraded to NC4, does this mean anything?
No problem! Both NC2 & NC4 kernels are currently supported (kexec module has been successfully patched/loaded for both kernels & kexec tools work on any arm architecture). Moreover, you can swap stock kernels/modems if needed.

The hardest part is to successfully patch & load a custom kexec/guest kernel, which is WIP.


Status
Supported NC2 & NC4 kernels
Working kexec-tools
Loaded kexec module
WIP guest kernel
 

Sheradrax

Senior Member
Aug 9, 2010
549
142
63
No problem! Both NC2 & NC4 kernels are currently supported (kexec module has been successfully patched/loaded for both kernels & kexec tools work on any arm architecture). Moreover, you can swap stock kernels/modems if needed.

The hardest part is to successfully patch & load a custom kexec/guest kernel, which is WIP.


Status
Supported NC2 & NC4 kernels
Working kexec-tools
Loaded kexec module
WIP guest kernel
I believe I accidentally upgraded my bootloader. That's why I am curious about NC4. I know the kernels are fine but bootloader screws you out of kexec though doesn't it?
 

hsbadr

Inactive Recognized Developer
May 18, 2014
3,930
22,397
0
I believe I accidentally upgraded my bootloader. That's why I am curious about NC4. I know the kernels are fine but bootloader screws you out of kexec though doesn't it?
No, it just prevents downgrading to JB.

I'M ON FULL NC4 FIRMWARE/BOOTLOADER & I DON'T CARE ABOUT JB!
 
  • Like
Reactions: Sheradrax

Sheradrax

Senior Member
Aug 9, 2010
549
142
63
No, it just prevents downgrading to JB.

I'M ON FULL NC4 FIRMWARE/BOOTLOADER & I DON'T CARE ABOUT JB!
All I can say is....YAY!!!! You're the man. I have had no money to donate but I'm waiting for my paychecks to start. I'll have something for you as soon as I have something to give. Thanks for your dedication @hsbadr.
 

hsbadr

Inactive Recognized Developer
May 18, 2014
3,930
22,397
0
All I can say is....YAY!!!! You're the man. I have had no money to donate but I'm waiting for my paychecks to start. I'll have something for you as soon as I have something to give. Thanks for your dedication @hsbadr.
:) in lieu of not being able to donate I'll drink six beers for you today :) [emoji482] [emoji481]

No one is obligated to donate... Donations are always appreciated, never required :)