Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,818 Members 40,833 Now Online
XDA Developers Android and Mobile Development Forum

[2nd-init] Here is a working and tested 2nd-init for the Atrix

Tip us?
 
edgan
Old
(Last edited by edgan; 15th June 2011 at 06:53 AM.)
#1  
Member - OP
Thanks Meter 370
Posts: 97
Join Date: Apr 2011

 
DONATE TO ME
Default [2nd-init] Here is a working and tested 2nd-init for the Atrix

I have just finished porting 2nd-init to the Atrix. It was mostly a clean port from the Defy. I didn't modify the code, just compiled it. The work was in the install/wrapper. There was also a new issue, in that we have SMP, and the code expected non-SMP.

This opens up custom ROMs, like CM7. This does not unlock the bootloader or allow custom kernels.

BETA BETA BETA
It has been tested on AT&T 1.5.7 and 1.8.3. I recommend only developers play with this for now. It is not that useful be itself, but expect to see lots of new things happen based on this.

I welcome feedback. Also feel free to Donate via the "Donate to me" link under my username, top left, on XDA. The goal is to use donations to purchase hardware that will help me get kexec working, or finding a way to unlock the bootloader.

Enjoy!

Update 2
Brandon15811 and I made a 2ndinit apk based installer. It has been tested. I still advise caution when using this. It is based on the DroixXBootstrap code.

It requires SuperUser.apk to already be installed, and working.

Steps for the apk:

1. Get it on the phone however you like
2. Install the apk
3. Open Atrix 2ndinit
4. Click Install
5. Click OK when the dialog comes up
6. Install Android Terminal Emulator from the Market
7. Open Android Terminal Emulator
8. type ls -al /sys/kernel/debug<enter>

Update

I have added a change from NFHimself in version 1.0.1. It lets you disable it by using USB Early Enumeration. You do this by turning off the phone, turning it back on while holding the down arrow, using the down arrow till you see USB Early Enumeration, and then up arrow once to boot. I have tested change.

I am also working on some form of simpler installer. It may become as simple as an apk.

We know it breaks in it's current form with Gingerbread. Though we also know others have gotten it to work before on Gingerbread. I will also be working on 2nd-init for Gingerbread.

Thanks to eval!
Thanks to Brandon15811!
Thanks to xfinrodx!
Thanks to xvilka!
Thanks to PAuly!
Thanks to Skrilax_CZ!
Thanks to BravoMotorola!
Thanks to NFHimself!

DOWNLOAD
2nd-init apk


2nd-init tarball


README:

Info:
This method starts 2nd-init via mount_ext3.sh, which is line 108 of /init.rc.
My init.rc continues at line 109 with a couple tweaks.

Warning! This conflicts with Tenfar's ClockWorkMod(aka CWM) Recovery
If the phone is wall charging, you shut down the phone, and start it, it will boot CWM
To avoid this, open System Recovery and hit Charge Mode.
It may also conflict with other recovery tools, or other things that tweak the normal boot process.

Tweaks:
/sys/kernel/debug mounted
reboot on zygote crash commented out

Install:
Install SSHDroid from Market. It is free.
Make sure wifi is setup and working.
Run SSHDroid
Make sure it says it is running.
Fill in the ip address in the command below. SSHDroid will display it.

Windows:
Use WinSCP to put 2nd-init-1.0.1.tar.bz2 in /data

Linux/OSX, in a terminal window:
scp 2nd-init-1.0.1.tar.bz2 root@ipaddress:/data

Run these two commands on the phone via ssh.

Windows:
Use putty

Linux/OSX, in a terminal window:
ssh root@ipaddress

/bin/mount /system -o remount,rw
tar -C / -jxf /data/2nd-init-1.0.1.tar.bz2



Reboot phone, aka Power button, Turn off, Power button to turn on

Check if it worked by running the command below via ssh.

ls -a /sys/kernel/debug

Good Output:
. battery gpio hid mmc1 tegra_gpio tracing
.. bdi heap-generic-0 mdm_ctrl mmc2 tegra_pinmux usb
apanic cpcap-irq heap-iram mmc0 sched_features tegra_wakeup

Bad Output:
. ..


If the Output is good, then Congradulations you have control over init now!
The Following 69 Users Say Thank You to edgan For This Useful Post: [ Click to Expand ]
 
eval-
Old
#2  
Retired Recognized Developer
Thanks Meter 331
Posts: 227
Join Date: Sep 2008
Great work Edgan! Works perfect here. Nice eye with taskset =)
The Following 2 Users Say Thank You to eval- For This Useful Post: [ Click to Expand ]
 
stvmac11
Old
#3  
Senior Member
Thanks Meter 16
Posts: 114
Join Date: Jan 2011
tenfar re-incarnate?
 
Charsher47
Old
#4  
Charsher47's Avatar
Senior Member
Thanks Meter 46
Posts: 244
Join Date: Feb 2010
Location: Atlanta, GA
Niiice, great work
[Phone] Samsung BlackJack > Samsung BlackJack II > HTC Fuze > HTC Tilt II > Motorola Atrix 4G > Samsung Galaxy SII Skyrocket > Samsung Galaxy S3 > LG G2 > LG G3
[ROM/Kernel] Stock


[Tablet] Asus Transformer Prime > Sony Xperia Tablet Z
[ROM/Kernel] PAC-man 4.4.4 Nightlies
 
kennethpenn
Old
#5  
kennethpenn's Avatar
Retired Forum Moderator / Retired Recognized Developer
Thanks Meter 3793
Posts: 2,702
Join Date: Nov 2006
Location: Washington, D.C.

 
DONATE TO ME
Awesome job. Good work!
 
CaelanT
Old
#6  
CaelanT's Avatar
Senior Member
Thanks Meter 760
Posts: 3,327
Join Date: Mar 2011
Location: Aberdeen

 
DONATE TO ME
Interesting!

Waiting for confirmation that this indeed is full 2nd-init.

Would love to try it, but am dubious at the moment.
 
madquack
Old
#7  
madquack's Avatar
Senior Member
Thanks Meter 420
Posts: 687
Join Date: May 2010
Location: Jacksonville, FL
I jizzed in my pants.
The Following 4 Users Say Thank You to madquack For This Useful Post: [ Click to Expand ]
 
rex-tc
Old
#8  
Member
Thanks Meter 19
Posts: 78
Join Date: Sep 2008
Location: Cape Girardeau
Great with 2.3 coming we will have a proper kernel Cyanogen Mod! Awesome stuff!
 
dLo GSR
Old
#9  
dLo GSR's Avatar
Senior Member
Thanks Meter 225
Posts: 1,309
Join Date: Mar 2011
Location: Los Angeles
wow! good work!
Nexus 5 - CM11 / Android L dual-boot
Nexus 7 - CM11
Samsung Galaxy S III - CM 10.2 Jelly Bean 4.3
Motorola Atrix 4G - CM9 Ice Cream Sandwich 4.0.4
Softbank 705px
 
neer2005
Old
#10  
neer2005's Avatar
Senior Member
Thanks Meter 122
Posts: 734
Join Date: Feb 2011
Location: New Jersey
Quote:
Originally Posted by CaelanT View Post
Interesting!

Waiting for confirmation that this indeed is full 2nd-init.

Would love to try it, but am dubious at the moment.
Once again, THIS IS THE REAL DEAL FOLKS. PEOPLE HAVE TRIED THIS AND IT HAS WORKED, I REPEAT IT DOES WORK.


LG Nexus 4
HTC One X (Sold)
Motorola Atrix (Retired)
iPhone 3GS (Cracked)
Samsung Impression (Stolen)
Nokia N75 (Retired)
Sony Ericsson w570 (Cracked)
Motorola RAZR v3xx (Retired)
Motorola v276 (Retired)

The Following User Says Thank You to neer2005 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes