Post Reply

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

OP edgan

3rd June 2011, 10:13 PM   |  #1  
OP Member
Thanks Meter: 370
 
97 posts
Join Date:Joined: Apr 2011
Donate to Me
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!
Last edited by edgan; 15th June 2011 at 06:53 AM.
The Following 69 Users Say Thank You to edgan For This Useful Post: [ View ]
3rd June 2011, 10:15 PM   |  #2  
Retired Recognized Developer
Thanks Meter: 333
 
227 posts
Join Date:Joined: 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: [ View ]
3rd June 2011, 10:16 PM   |  #3  
Senior Member
Thanks Meter: 16
 
117 posts
Join Date:Joined: Jan 2011
More
tenfar re-incarnate?
3rd June 2011, 10:18 PM   |  #4  
Charsher47's Avatar
Senior Member
Flag Atlanta, GA
Thanks Meter: 48
 
249 posts
Join Date:Joined: Feb 2010
More
Niiice, great work
3rd June 2011, 10:19 PM   |  #5  
kennethpenn's Avatar
Retired Forum Moderator / Retired Recognized Developer
Flag Washington, D.C.
Thanks Meter: 3,796
 
2,701 posts
Join Date:Joined: Nov 2006
Donate to Me
More
Awesome job. Good work!
3rd June 2011, 10:19 PM   |  #6  
CaelanT's Avatar
Senior Member
Flag Aberdeen
Thanks Meter: 760
 
3,336 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Interesting!

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

Would love to try it, but am dubious at the moment.
3rd June 2011, 10:19 PM   |  #7  
madquack's Avatar
Senior Member
Thanks Meter: 434
 
695 posts
Join Date:Joined: May 2010
I jizzed in my pants.
The Following 4 Users Say Thank You to madquack For This Useful Post: [ View ]
3rd June 2011, 10:21 PM   |  #8  
Member
Flag Cape Girardeau
Thanks Meter: 19
 
78 posts
Join Date:Joined: Sep 2008
More
Great with 2.3 coming we will have a proper kernel Cyanogen Mod! Awesome stuff!
3rd June 2011, 10:22 PM   |  #9  
dLo GSR's Avatar
Senior Member
Flag Los Angeles
Thanks Meter: 225
 
1,309 posts
Join Date:Joined: Mar 2011
wow! good work!
3rd June 2011, 10:23 PM   |  #10  
neer2005's Avatar
Senior Member
Flag New Jersey
Thanks Meter: 122
 
734 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by CaelanT

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.

The Following User Says Thank You to neer2005 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Atrix 4G Android Development by ThreadRank