[Q] Unpacking otter2 CyanogenMod initramfs

Search This thread

spudowiar

Senior Member
Dec 7, 2013
132
143
spudowiar.me
The progress

Upload rootfs-20140411.tar.gz to /sdcard

Code:
adb shell
su
busybox mount -o remount,suid,dev /data
busybox rm -rf /data/rootfs
mkdir /data/rootfs
cd /data/rootfs
busybox tar zxvpf /data/media/rootfs-20140411.tar.gz
stop
cd /data/media
busybox nohup cat /proc/kmsg &
cd /data/rootfs
busybox nohup busybox chroot /data/rootfs /init &

adb will disconnect but on the screen it should say

Code:
A N D R O I D _

Then it will power off (it tries to reboot into recovery). Power it on.

Code:
adb shell
su
chmod 777 /data/media/nohup.out
exit
exit

Then run:

Code:
adb pull /sdcard/nohup.out log.txt

log.txt is the dmesg.
 

Attachments

  • log.txt
    30.8 KB · Views: 11
Last edited:

stunts513

Senior Member
Feb 8, 2013
2,238
635
New Braunfels, TX
Upload rootfs-20140411.tar.gz to /sdcard

Code:
adb shell
su
busybox mount -o remount,suid,dev /data
busybox rm -rf /data/rootfs
mkdir /data/rootfs
cd /data/rootfs
busybox tar zxvpf /data/media/rootfs-20140411.tar.gz
stop
cd /data/media
busybox nohup cat /proc/kmsg &
cd /data/rootfs
busybox nohup busybox chroot /data/rootfs /init &

adb will disconnect but on the screen it should say

Code:
A N D R O I D _

Then it will power off (it tries to reboot into recovery). Power it on.

Code:
adb shell
su
chmod 777 /data/media/nohup.out
exit
exit

Then run:

Code:
adb pull /sdcard/nohup.out log.txt

log.txt is the dmesg.

oh thats wonderful, 2 imports failed, couldn't access a selinux directory, and the system process (zygote) is committing suicide, lovely...
 
Last edited:

spudowiar

Senior Member
Dec 7, 2013
132
143
spudowiar.me
oh thats wonderful, 2 imports failed, couldn't access a selinux directory, and the system process (zygote) is committing suicide, lovely...

The imports and selinux don't actually matter but the suicide... I think we need DCI Hashcode!

EDIT: I think I've got it: it looks for init.omap4blazeboard.rc, we've got init.omap4430.rc!
 
Last edited:

spudowiar

Senior Member
Dec 7, 2013
132
143
spudowiar.me
The imports and selinux don't actually matter but the suicide... I think we need DCI Hashcode!

EDIT: I think I've got it: it looks for init.omap4blazeboard.rc, we've got init.omap4430.rc!

Looking at the log after

Code:
mv init.omap4430.rc init.omap4blazeboard.rc

a chroot is gonna need a lot of work! :(

EDIT: You remember what I said about modules? Lots of errors!!!
 

Attachments

  • log.txt
    42.6 KB · Views: 3
Last edited: