Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEV] 2nd-init Compiled and Running

OP Loglud

24th November 2011, 11:17 AM   |  #1  
OP Senior Member
Thanks Meter: 443
 
203 posts
Join Date:Joined: Jul 2011
Donate to Me
More
So I have been working on this for a while trying to get things to cross compile, and i got this to compile it is the Source and the program runs on the nook. Next we will have to write our new init.rc to mount our own os. Someone will have to help me with some research, but I just thought you should know.

Here are the files:
2nd-init.tar

To recomile with the NDK use the following command:
Code:
/home/<user>/Downloads/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/<user>/Downloads/android-ndk-r7/platforms/android-14/arch-arm/ 2nd-init.c
(Thanks to Indirect)

GOOD LUCK
Attached Files
File Type: tar 2nd-init.tar - [Click for QR Code] (20.0 KB, 146 views)
Last edited by Loglud; 24th November 2011 at 09:51 PM.
The Following 5 Users Say Thank You to Loglud For This Useful Post: [ View ]
24th November 2011, 11:45 AM   |  #2  
Recognized Contributor
Flag Florida
Thanks Meter: 2,960
 
2,323 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by Loglud

So I have been working on this for a while trying to get things to cross compile, and i got this to compile it is the Source and the program runs on the nook. Next we will have to write our new init.rc to mount our own os. Someone will have to help me with some research, but I just thought you should know.

Here are the files:
2nd-init.tar

To recomile with the NDK use the following command:

Code:
/home/<user>/Downloads/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/<user>/Downloads/android-ndk-r7/platforms/android-14/arch-arm/ 2nd-init.c
GOOD LUCK


Hmm, if only another developer told you how to cross compile. Oh wait! Haha, congrats Loglud.
25th November 2011, 02:44 AM   |  #3  
Junior Member
Thanks Meter: 1
 
23 posts
Join Date:Joined: Jun 2010
Quote:
Originally Posted by Loglud

So I have been working on this for a while trying to get things to cross compile, and i got this to compile it is the Source and the program runs on the nook. Next we will have to write our new init.rc to mount our own os. Someone will have to help me with some research, but I just thought you should know.

Here are the files:
2nd-init.tar

To recomile with the NDK use the following command:

Code:
/home/<user>/Downloads/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/<user>/Downloads/android-ndk-r7/platforms/android-14/arch-arm/ 2nd-init.c
(Thanks to Indirect)

GOOD LUCK

Awesome! Great job Log. Big Step in the right direction.
27th November 2011, 06:28 AM   |  #4  
zanderman112's Avatar
Recognized Themer
Flag SouthEast USA
Thanks Meter: 1,839
 
7,913 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Nice. 10char.
13th December 2011, 08:34 PM   |  #6  
diamond_lover's Avatar
Senior Member
Top Secret
Thanks Meter: 113
 
1,524 posts
Join Date:Joined: Apr 2009
Quote:
Originally Posted by AdamOutler

So, did development stop on this? how is it installed?

I want know it too... >.<
13th December 2011, 08:44 PM   |  #7  
OP Senior Member
Thanks Meter: 443
 
203 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Jeeze idk, i completely forgot about this thread until you guys posted on it. I never did to much testing. This was mostly done in concurrence with the Kexec-Mod since i had the toolchain up and running. If i remember correctly it did generate the second init file, don't know if it ever loaded it, but i can work on it some more if people want. I was hoping some one would point me in the direction they needed me to go with this.
The Following User Says Thank You to Loglud For This Useful Post: [ View ]
13th December 2011, 11:03 PM   |  #8  
diamond_lover's Avatar
Senior Member
Top Secret
Thanks Meter: 113
 
1,524 posts
Join Date:Joined: Apr 2009
Quote:
Originally Posted by Loglud

Jeeze idk, i completely forgot about this thread until you guys posted on it. I never did to much testing. This was mostly done in concurrence with the Kexec-Mod since i had the toolchain up and running. If i remember correctly it did generate the second init file, don't know if it ever loaded it, but i can work on it some more if people want. I was hoping some one would point me in the direction they needed me to go with this.

I prefer first a compatible Custom Recovery
I compiled, but I don't know how adapt the hijack...
14th December 2011, 12:05 AM   |  #10  
OP Senior Member
Thanks Meter: 443
 
203 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Quote:
Originally Posted by AdamOutler

what is 2nd-init? Is it a bootloader? kernel? recovery? where does it come in the boot sequence?

http://nookdevs.com/Dump_NookTablet_Partitions

http://and-developers.com/2ndinit

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes