Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,943 Members 52,426 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] 2nd-init Compiled and Running

Tip us?
 
Loglud
Old
(Last edited by Loglud; 24th November 2011 at 08:51 PM.)
#1  
Senior Member - OP
Thanks Meter 442
Posts: 199
Join Date: Jul 2011

 
DONATE TO ME
Default [DEV] 2nd-init Compiled and Running

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:
Select 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, 144 views)
The Following 5 Users Say Thank You to Loglud For This Useful Post: [ Click to Expand ]
 
Indirect
Old
#2  
Recognized Contributor
Thanks Meter 2952
Posts: 2,321
Join Date: Mar 2011
Location: Florida

 
DONATE TO ME
Quote:
Originally Posted by Loglud View Post
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:
Select 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.



My Google Plus account
My Twitter
Shiftless evo shift developer
Nook Tablet developer-found root (here)

Quote:
Without developers this place would not be called XDA-Developers but something else, e.g Mobile Phone User Support Services For Ungrateful Nerds.
Developed on the following devices: Evo View, Nook Tablet, Evo Shift, Nexus S 4G (private), Evo 4G (private), Mytouch 4g Slide, Evo LTE, HTC One (In Progress), Moto X
 
DagobahSamurai
Old
#3  
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Jun 2010
Quote:
Originally Posted by Loglud View Post
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:
Select 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.
 
zanderman112
Old
#4  
zanderman112's Avatar
Recognized Themer
Thanks Meter 1839
Posts: 7,913
Join Date: Oct 2010
Location: SouthEast USA

 
DONATE TO ME
Nice. 10char.

^^^^^^^^^^^^^^^^^^^^^^^^^^Click banner for my Twitter^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<---- I now have a PayPal donate link right over there <----
If you don't wan't to straight up donate via PayPal, these Amazon.com virtual giftcards are always appreciated

My Devices:
 
Sprint Galaxy S3 on Stock Deodexed MB1+Multi-View mod
OUYA 1st Gen on Stock Rooted JZ054L-Ouya
HP Touchpad on patched up webOS 3.0.5 & CyanogenMod 10.1
Samsung Epic 4G on CyanogenMod 10.1 Nightlies
 
AdamOutler
Old
#5  
AdamOutler's Avatar
Recognized Developer
Thanks Meter 9555
Posts: 5,176
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
So, did development stop on this? how is it installed?
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
 
diamond_lover
Old
#6  
diamond_lover's Avatar
Senior Member
Thanks Meter 107
Posts: 1,496
Join Date: Apr 2009
Location: Top Secret
Quote:
Originally Posted by AdamOutler View Post
So, did development stop on this? how is it installed?
I want know it too... >.<
 
Loglud
Old
#7  
Senior Member - OP
Thanks Meter 442
Posts: 199
Join Date: Jul 2011

 
DONATE TO ME
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: [ Click to Expand ]
 
diamond_lover
Old
#8  
diamond_lover's Avatar
Senior Member
Thanks Meter 107
Posts: 1,496
Join Date: Apr 2009
Location: Top Secret
Quote:
Originally Posted by Loglud View Post
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...
 
AdamOutler
Old
#9  
AdamOutler's Avatar
Recognized Developer
Thanks Meter 9555
Posts: 5,176
Join Date: Feb 2011
Location: Louisiana

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

http://nookdevs.com/Dump_NookTablet_Partitions
Flash with Odin on Windows, Linux and Mac. Use JOdin3, Available in a web browser or offline
Check out my developer pages. Add me to your circles on Google Plus.
Wanna see the longest Linux BASH script ever made? click here.
 
Loglud
Old
#10  
Senior Member - OP
Thanks Meter 442
Posts: 199
Join Date: Jul 2011

 
DONATE TO ME
Quote:
Originally Posted by AdamOutler View Post
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more

Control Your Toast Notifications with SlicedToasts

Toasts are delicious, even in their Android flavor. In Android, toast doesn’t lead … more

Rotation Lets You Take Full Control of Your Device’s Orientation Settings

To be brutally honest, the native options for screen … more