Originally Posted by garyd9
when you boot normally, does "/data/media/.secondrom" exist as a directory? Does "/data/media/.secondrom/system.img" exist as a file? What is the output of "ls -l /data/media/.secondrom/"?
I still don't know what that "/sbin/choose_rom" file is, what it does, etc. Is that a script or a binary? If it's a script, what is it doing? (If it's missing, based on the script in the OP, booting to a second firmware will fail.)
I manually created the /data/media/secondrom folder, and I also manually created the system image in it, as I don't have the custom dual boot recovery which normally crates them yet. So they are always there.
The choose Rom you can view here I think
Although I think it's just a binary. And yes the binary is in my kernel.
The output of that command is
u0_a142@android:/ $ export PATH=/data/local/bin:$PATH
u0_a142@android:/ $ su
u0_a142@android:/ # ls -l /data/media/.secondrom/
drwxrwx--x system system 2012-12-28 09:24 data
-rw-rw-r-- root sdcard_rw 2147483648 2012-12-28 10:36 system.img
Do u have any idea what it could be?, could the second system img I created not be getting mounted or anything?.
Here is a message I sent gokhan moral explaining the problem
Hi, i have cloned the /system and /data to the secondrom folder, and put a file in /.secondrom/media/.nextboot with the value of 2. But when I restart the phone, it still starts in to the default Rom. Could the problem be, that in the /sbin/init I changed the partitions names mmcblk0p13 and mmcblk0p13 to extra13, and extra16, so that they didn't clash with the partitions already on the note 2. Do u know if the was anything in the source binary or something that needed those partitions with the original name?.
I also changed the minors and majors so that they matched the note 2.
But when I don't put the nextboot file in ".secondrom" the folder /.secondrom in the root of the phone is empty, but when I put the nextboot file with the value of 2, and reboot the phone, the folder /.secondrom has the phone data in it. So it seems like the data is booting right ect, it's just the system that's not booting with the second Rom system.img
So could it be the system.img I put in the sd card isn't functioning correcting "
If I can get the dual boot working, it would only take about 2 min to get it working on the other n2 variants as well, as I think they all have the same partition layout.
Sent from my GT-N7100
If I helped you, please hit Thanks..