yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] stokehall:
I just tested the boot-rom from the attachment in your previous reply and I got this from script manager in su and exception 2

Error resolving interpreter:/bin/sh does not exist

Using default shell

sdcard0/Boot/boot-rom.sh' 2 <

Motorola Atrix Dual Boot ROM1 emmc or ROM2 SD card

Initial Release (07 Jun 2012)

sendust7 @ xda developers

Rev 1.2 (19 Jul 2012) Automate SD card source dir to make it ROM-independent

Rev 1.3 (28 Jul 2012) Accommodate CM10 /storage path

Usage: sh boot-rom.sh N

where N = blank (reboot to ROM1)

1 (reboot to ROM1)

2 (reboot to ROM2)

3 (reboot to recovery)

/storage/sdcard0/Boot/boot-rom.sh[42]: [: /storage/sdcard0/storage/sdcard0/Boot: unexpected operator/operand

I really can't understand why I cannot boot boot.IMG from this script but can boot to recovery with exception 3. However boot.IMG does work as I

Can boot CM7 to CM10 and CM10 to CM9 with fast boot.

Thank you for all the help you are providing me with
[Atrix 4G Android Development] sendust7:
No problem, I was there once ;)

You are able to boot to recovery since the boot-rom.sh logic under argument "3" does not require a directory path ...

elif [ $1 -eq 3 ]; then
echo Rebooting to recovery. Please wait...
sleep 3
reboot recovery
fi

Also, from the error message:

/storage/sdcard0/Boot/boot-rom.sh[42]: [: /storage/sdcard0/storage/sdcard0/Boot: unexpected operator/operand

it appears that your system is looking too far down for the "Boot" directory. For CM10, the correct path is simply: /storage/sdcard0/Boot.

And there should be only one "Boot" directory, populated with the right configuration files.
[Atrix 4G Android Development] shenoyh:
I had an error something like what you have when I was experimenting with the dual-boot scenario. The reason for my error was because I had a Boot folder both on my internal as well as my external SD card and that was causing the script to fail. You can either delete the Boot folder on the external SD card if you have it too and don't need it or you can change the cwd=`find /mnt -name Boot` line to cwd=`find /mnt -name Boot|head -1` or something that is specific to your setup so that the return value from that is only one Boot folder and not two or more.

You can also try to do a

echo $cwd; return 0

just after the "cwd=`find /mnt -name Boot`" line to see what it actually finds.

I'm not certain that your issue is the same as what I had, but just a pointer on where to look.

To senddust7: when you make the next version you could add a head or tail pipe to the find output so that only the first or last found Boot folder is used just in case there are more than one Boot folders on the device.
[Atrix 4G Android Development] Notorious544d:
I'm trying to test a dual-boot config with Neutrino ROM, where I'll have CM10 as primary and CM7 as secondary. This will be very beneficial for me when testing CM10.

So I modified the .zip and META-INF in order to do this but when I try flashing the .zip, I get an error:

set_perm: some changes failed
E:Error in /emmc/Dual.zip
(Status 7)
Installation aborted.

I basically copied most of the updater script of both CM7 and CM10 and put it carefully in their places while editing the places that needed editing (in order to dual-boot). I can't understand what's causing this.

Could you help me out?

I've posted the .zip over here.

Thanks in advance.

EDIT: Damn, just realised that I haven't modified the CM7 boot.img for SD card...

Is this related?

Regarding this, as I run Windows, will you be able to modify the boot.img for me? (I hope I'm not asking for too much here)...
[Atrix 4G Android Development] sendust7:
Right --- Whatever ROM you host on SD, you must also modify its boot image to redirect the filesystem mounts. A few of my other XDA threads cover this, esp. "Auto-Modify Boot Image" http://xdaforums.com/showthread.php?t=1766939 . Note that the example uses Neutrino V2.8 GT cloned to SD card :D

I would be pleased to modify CM7 boot image. Just send me the one you want to use. [EDIT --- Silly me, I'll just pull it off the zip file]

By the way, that error looks familiar. Which recovery tool (including version #) are you using? And can you tell which line(s) of script code the error applies to? Or can you tell if it's on the CM7 or CM10 side? I ask this because in certain situations, the updater gets more fussy (e.g.) trying to process system files that don't exist...

Cheers :D
[Atrix 4G Android Development] Notorious544d:
The error happens at CM7, just after it starts setting permissions.

I use Romracer's 5.0.2.7-atrix5.
[Atrix 4G Android Development] sendust7:
That sounds very familiar. During the brief time I used ROM Racer 5.0.2.7-atrix5, I discovered that the updater would abort when trying to set permissions on files that don't exist. As I recall, there were only two or three such files, though I forget which build...

I haven't forgotten about CM7 boot image. But right now I must break for dinner.

[EDIT] Here is boot-ROM2.img: http://www.mediafire.com/file/si2aaeu2zai984l/boot-ROM2.img

Place this under /Boot/ROM2 in your zip, rename to boot.img and you should be good to go there.

Next, in updater-script, look where permissions are set and remove all commands pointing to non-existent system files. Another possible option is to flash your zip with CWM 5.0.2.0. It may be more forgiving.

Hope this helps :)
[Atrix 4G Android Development] stokehall:
I've tried

"|head -1"

and it replied the same error

and

"echo $cwd; return 0"

which stalled on

1 (reboot to ROM1)

2 (reboot to ROM2)

3 (reboot to recovery)

I've ensured that /storage/sdcard0 is the only location of any folder called Boot. however I'm unsure as there seam to be two ways to get there
[Atrix 4G Android Development] sendust7:
There may be certain characters (hidden or otherwise) in boot-rom.sh that your Android shell does not like. So...

Remove all "echo" commands from ./Boot/boot-rom.sh until you reach the command: "cwd=`find /mnt -name Boot`". Then boot to CM10 and from the computer to which your phone is attached, enter the following commands exactly...

adb shell
# cd /storage/sdcard0/Boot
# sh boot-rom.sh 2 (to boot CM7)

Post results.
[Atrix 4G Android Development] Notorious544d:
Hmm... interesting. I tried flashing the original .zip on the OP and I got a similar error. This time with the symlinking.

This means that it is a recovery issue.

How can I downgrade to Romracer 5.0.2.0? His deprecated versions have no links.

Or can I just flash the normal clockwork recovery instead?

I'm slightly worried because switching recoveries will lose my nandroid backups so I wanna make sure.

Btw, thanks for the modified boot image. :)
[Atrix 4G Android Development] sendust7:
OK I see... So before switching to CWM 5.0.2.0, go to updater-script and try removing the permissions commands on missing system files. My experience is that there are only a few lines to remove.
[Atrix 4G Android Development] stokehall:
same results as before

1|shell@android:/storage/sdcard0/Boot # sh boot-rom.sh 2
sh boot-rom.sh 2
boot-rom.sh[31]: [: /storage/sdcard0/storage/sdcard0/Boot/ROM2/boot.img: unexpec
ted operator/operand
shell@android:/storage/sdcard0/Boot #
[Atrix 4G Android Development] sendust7:
For some reason, your system is duplicating the path: /storage/sdcard0.

So this time, with CM10 running, zip the entire directory: "/storage/sdcard0/Boot", send to me and I'll have a look :)
[Atrix 4G Android Development] stokehall:
Here is the ZIP of /storage/sdcard0/Boot
[Atrix 4G Android Development] sendust7:
Just now I backed up my current emmc ROM (rooted/unlocked GB 2.3.6 --- ATT 4.5.141). Then I flashed epinter CM10 (epinter-cm10-20120729_1306-UNOFFICIAL-olympus.zip), wiped data/factory reset, rebooted to CM10, set Developer options ON, set Android debugging ON and set Root access (Apps and ADB).

I will provide an update shortly... [EDIT] I could not repeat the error using boot-rom.sh in the attached Boot.zip.

C:\Program Files\Android\android-sdk\platform-tools>adb shell
shell@android:/ $ su
shell@android:/ # cd /storage/sdcard0/Boot
shell@android:/storage/sdcard0/Boot # sh boot-rom.sh 2
Rebooting to ROM2. Please wait...

So...add the following line to your boot-rom.sh, just after "cwd" is set: "echo Boot directory: $cwd". You should get...

shell@android:/storage/sdcard0/Boot # cwd=`find /storage -name Boot`
shell@android:/storage/sdcard0/Boot # echo Boot directory: $cwd

Expected result:
Boot directory: /storage/sdcard0/Boot
[Atrix 4G Android Development] stokehall:
I tried this but I dont think the directory is set correctly

I got

Error resolving interpreter:/bin/sh does not exist
Using default shell
torage/sdcard0/Boot/boot-rom.sh' 2 <
Boot directory:
/storage/sdcard0/Boot/boot-rom.sh[33]: [: /storage/sdcard0/Boot/ROM2/boot.img: unexpected operator/operand
[Atrix 4G Android Development] Starbomba:
Just as always, you have topped yourself sendust. Great guide :D

I purchased a new 32 GB Class 10 SD, and i planned to redo my dual boot config. I'm using Epinter's CM10 and Atrix-MROM CM7.2. I did everything by hand, partition creation, file copy, install second partition, modified boot.img from CM7.2 with this other excellent guide of yours) and the dual booting works when i push the boot.img files via fastboot, so all is OK up to this point.

Now (as usual for me :rolleyes:) i'm having issues with the scripts to do the actual switch. I have never used CM 7.2 (coming from 8 different Blur ROMs), and CM10 isn't exactly standard as well. Could you link to the boot-rom.sh text for the files needed, so i can do the change without fastboot?
[Atrix 4G Android Development] sendust7:
In my "Configuring Dual Boot" thread: http://xdaforums.com/showthread.php?t=1645344 , there is a link to a zip file: http://xdaforums.com/showthread.php?t=1645344 . You can follow the configuration instructions in the thread, or simply extract the boot switcher script: /Boot/boot-rom.sh.

Please let me know if you have any problems running this script.

Thanks!
[Atrix 4G Android Development] Starbomba:
Well, i also have that script, since i used that zip file to get SManager. It is running as Root as well. Boot.img files are on place, on my SD Card (where the zip file created the Boot folder).

So far i've had no success with any option other than no attribute and recovery. If i insert arguments 1 or 2 it will just stay at the following commands and do anything, even tried rebooting manually after inserting argument 2 to manually reboot into other partition (i had to do that on my old GB ROM for it to work).

Error resolving interpreter:/bin/sh does not exist
Using default shell
exec sh '/storage/sdcard1/Boot/boot-rom23.sh' 2
ard1/Boot/boot-rom23.sh' 2 <
Motorola Atrix Dual Boot ROM1 emmc or ROM2 SD card
Initial Release (07 Jun 2012)
sendust7 @ xda developers
Rev 1.2 (19 Jul 2012) Automate SD card source dir to make it ROM-independent

Usage: sh boot-rom.sh N
where N = blank (reboot to ROM1)
1 (reboot to ROM1)
2 (reboot to ROM2)
3 (reboot to recovery)
[Atrix 4G Android Development] sendust7:
I think CM10 came out just after I released boot-rom.sh Rev 1.2, which is not compatible with CM10. Try running V1.3: http://www.mediafire.com/file/3dfsx7rl89l0nxv/boot-rom-1.3.rar
[Atrix 4G Android Development] Starbomba:
Now this one worked, thanks a lot!
[Atrix 4G Android Development] ashupulse:
guys plz help ,

1. partitioned emmc(external sdcard ) as per video link

2. i fastboot erased everything

3. installed the dual boot zip

4, i m into cm10 but canot find /sdcard/Boot

now wat i should do , do i make any mistake.. ??
[Atrix 4G Android Development] loktite:
In cm10 should be in /storage/sdcard1. (or sdcard0 depending on you config).
[Atrix 4G Android Development] ashupulse:
yeah i checkd in both sd0 and sd1 , no boot directory is there ...
[Atrix 4G Android Development] loktite:
See if you can't find said Boot directory in the zip and extract it manually.
[Atrix 4G Android Development] ashupulse:
thank you , very much bro for helping me out there ....

it booted successfully..

running v smooth !

one more ques . if i could flash cm10 latest build after setting up this whole dual boot ??

:confused:
[Atrix 4G Android Development] sendust7:
Yes. Just remember to extract the boot.img file from CM10 flashable zip and place it under /{path-to-SD-card}/Boot/ROM1. That way you can quickly boot to CM10 (on EMMC) from the other ROM (on SD card). If that doesn't work, you can always fastboot flash the CM10 boot image.
[Samsung Epic 4G Touch] poweroutlet:
Hi all, I've been reading a lot of threads around here about safely flashing our phone. I'd like to verify somethings before I go around flashing things.

It is my understanding that its ok to go from any rom to any rom using sfhubs odin oneclick methods. Is this correct?

It is also my understanding that I can flash any rom (unless otherwise stated) from CWM recovery safely if I am back to EL26+CWM using ODIN.

I have some confusion about this. Currently I am on a stock EL29 unrooted build, if I want to flash an ICS rom would I flash the EL26+CWM tar via ODIN and then use CWM to wipe and flash ICS? Is it also required that I flash an applicable kernel along with the rom?

Also I have never used odin before. Do I need to install this program from somewhere first before I can flash things?

Do I need to root my existing EL29 setup before I can flash the EL26+CWM tar?

Sorry for the huge number of noob questions, I just don't want to take chances with my phone. I'm an HTC guy and things seem to be done very very differently there. I'm very interested in trying the upcoming date to the Blend ICS "The Goodness" rom.
[Samsung Epic 4G Touch] dante32278:
1. Yes as long ad you get into download mode

2. Yes

3. Yes but usually roms come with a kernel that works already, check OP for each

4. Yes get either mobile Odin from the market or get it on ur PC (best to have both)

5. Yes you have to be rooted to flash anything
[Samsung Epic 4G Touch] JsVerbal:
The best advice I can give you is to look up qbking77 on youtube. He has step by step how to videos on rooting and flashing your E4GT.

Start here. http://www.youtube.com/watch?v=v7pWjmKCsoc&feature=plcp

He has a link in the description on how to add CWM
[Samsung Epic 4G Touch] rbtrucking:
Ill tell ya right now I would not recommend flashing an ICS rom it is soo buggy I hate it! I just installed the tablet one I forget what it is called but nothing but force closes even when ya aint doing anything it will just force close on ya. Stick with gingerbread untill there is a final release for ics trust me. Way to buggy right now!
[Samsung Epic 4G Touch] tdunham:
I must agree with RB!

I would not mess with ICS if you are new to this phone (and even some that are not :p). If you really like your phone, I would recommend trying out the many Gingerbread roms for a while. It is a much safer and far more stabile learning platform than ICS.
[Samsung Epic 4G Touch] Binary Droids:
As far as flashing ICS I would check out one of the official leaked builds before trying out a custom ROM. I've noticed that some people seem to have different problems even though we all have the same phone. The changes from GB to ICS were enough to drive me nuts sometimes, but I've been using the leaked builds with minimal problems for the last few weeks. The newest one is FE10 and is here: http://xdaforums.com/showthread.php?t=1648045
[Samsung Epic 4G Touch] rbtrucking:
I have to say I take back what I said I was getting all those force closes but then I did another factory data reset and now it is running smooth and I am LOVING ICS!!! You should check out the Hydra Rom by team Venum it is soo sick! It makes your phone like a tablet!!!
[Samsung Epic 4G Touch] Mastershake725:
True you can use either Odin or Mobile Odin (and it is best to have both). But I find Mobile Odin much more convenient. I always keep an the EL26+CWM tar and an ICS Tar (Kernals) on my phone at all times. It is much safer to do anything on the EL26 kernal such as wiping, flashing, nanding, and etc. Even if you are on an ICS rom you can Mobile Odin to the EL26 kernal flash whatever you want, and lastly flash back to an ICS kernal and reboot. That is about as safe as you can be. Like the other posters said though try out some GB roms first there are many great developers, and these roms generally have far less risk associated with them. I am currently running Epic Venum Rom and it is great. Happy flashing! :)
[Samsung Epic 4G Touch] playya:
Yea ya see sometimes when people ask for opinions on here I say try it yourself because its different for everyone. My battery life compared to yours and my user experience compared to yours. I am on Codename and have 0 issues and honestly dont even need an upgrade. I could rock this ICS till my next phone.

Hey OP do yourself a favor read yo ass off up in here and please please please follow directions to the "t" and just try out a few roms
[Samsung Epic 4G Touch] tdunham:
LMAO RB. You're really gonna confuse the guy now.
[Samsung Epic 4G Touch] poweroutlet:
Thanks for all the informative responses all. I think I mostly have this down now.

I rooted my stock build with sfhub's odin OC, then used sfhub's autorooting utility to flash EL26+CWM. Got into CWM and wiped everything a few times and then flashed Blu Kuban ICS.

Now that I tried this, if I want to try a different rom should I just Odin OC back to my rooted EL29 build and repeat the process or would it suffice to just use the autorooting utility, flash EL26+CWM and then flash my new rom?

Can anyone recommend me an ICS rom that is fairly similar to a stock ICS experience? It doesn't have to be CM9 or AOKP. I'm just tired of Samsung's cartoony icons and themes. "The goodness" seemed interesting.

Also what is the best Gingerbread rom around here in case I decide to stick to that? Any that are themed like ICS?

Also if I wanted to, I could go from my blu kuban ICS rom straight to FE10 using the Odin OC safely right?
[Samsung Epic 4G Touch] tdunham:
Do the whole one click process over again, it's safer that way.

Here is Calk's ICS:

http://xdaforums.com/showthread.php?t=1527041

He also has a Gingerbread ROM:

http://xdaforums.com/showthread.php?t=1332837
[Samsung Epic 4G Touch] poweroutlet:
Thanks for the help all. I settled on tFE10_v0.1.0, a tweaked version of the FE10 leak. It's also skinned to look like stock ICS and I'm using it with the ICS launcher instead of TW.

Smooth, stable and good battery life so far. I'm quite happy with it.
[Samsung Epic 4G Touch] CyberpodS2:
+1 for that ROM... Awesome in every way!
[Samsung Epic 4G Touch] cp320703:
"Now that I tried this, if I want to try a different rom should I just Odin OC back to my rooted EL29 build and repeat the process or would it suffice to just use the autorooting utility, flash EL26+CWM and then flash my new rom?"

Odin OC back to EL29. It is HIGHLY recommended that you not flash GB kernels on ICS roms, so flashing EL26 from ICS is not ideal. Insofar as rom i was on goodness until just recently, which is great, but recently switched to AOKP build 35, which is AMAZING
[Samsung Epic 4G Touch] killaphatboy:
I would just flash el26+cwm from mobile odin/odin and boot into recovery. Once there just wipe and flash like you did for Blu Kuban. You don't have to go back to GB ROM, just need el26+cwm. As stated above it is unsafe to flash to el26+cwm using ICS recovery, but is safe to Odin/Mobile Odin to it. I always have stockel26cwm.tar, an AOSP kernel, a stock ICS kernel, and whatever ROMs I'm currently using. I also always have Mobile Odin and Root Explorer installed.

Sent on HyDrA using Tapatalk 2
[Samsung Epic 4G Touch] rbtrucking:
I would definitely look into the HyDrA rom this rom is soo sick I cant even explain it! You need to actually use it to appreciate it. I knew as soon as I saw the review video by qbking I had to have it. Ill post a link for the review.

http://www.youtube.com/watch?v=lxP0V-CowTs

---------- Post added at 05:26 PM ---------- Previous post was at 05:25 PM ----------

Wow you just saved me a whole lot of time. This whole time I was under the impression you had to odin back to Gingerbread rooted, reinstall CWM before flashing another ICS rom. I never knew you just needed the el26 kernal! Thank you! Quick question though what slot do you put the kernal in the PDA?
[Samsung Epic 4G Touch] killaphatboy:
Here's a direct link to the stock el26+cwm: http://db.tt/0QJkleJR

I believe you use PDA slot. I use Mobile Odin as I'm always at work and never near a computer. I do believe there is a free lite version on these forums somewhere or its $4.99 on Play Store, but it is a huge time saver as I flash a new ROM several times a week at least(currently addicted to HyDrA).

Sent on HyDrA using Tapatalk 2
[Samsung Epic 4G Touch] cp320703:
thanks kill, i was odin OC back to EL29 before each flash, i will adopt your method going forward, i should have realized this a long time ago...
[Samsung Epic 4G Touch] killaphatboy:
No problem. Just trying to save you some time/effort. One more thing though since I don't think it was ever mentioned. You should always verify the md5 checksum before flashing anything. There are free apps on the Play store to check with and most developers post a checksum by there downloads.

Sent on HyDrA using Tapatalk 2
[Samsung Epic 4G Touch] heroisnotdead:
ICS Recovery?

One thing I'm not clear on is the warning of flashing el26+cwm from an ICS recovery. I guess I'm not clear on what is exactly meant by an ICS recovery and is exactly "safe" when moving between the ICS builds nand back up of a GB build.

I'm starting over again by flashing the OCel29 and have the el26+cwm on my SD, just purchased mobile odin as well but I have been using PC odin. I'm going to get this GB rom the way I want it, use the autorooter to install CWM and do a nandbu. From there I will do my usual titanium backups and then move to an ICS build like AOKP or something.
[Samsung Epic 4G Touch] killaphatboy:
That just means not to boot into an ICS rogue repack to flash to el26+cwm. You can flash things like themes/mods/modems in an ICS recovery, just don't flash kernels or ROMs in any recovery other than el26+cwm for now. When Samsung finally releases source code for there kernels we should get a official cwm on at least one ICS kernel. As of now all we have is rogue repacks on ICS and they have been known to corrupt the data partition when flashing kernels/roms through them. It mostly happens when going back to GB from ICS using a ICS repack, but even going ICS to ICS runs a risk of brick. El26+cwm is the safest way to flash anything ICS. I use Mobile Odin to flash el26+cwm and flash whats needed and flash a AOSP/stock ICS kernel when done(flashing modems/themes/mods). ROMs already have kernels in them.

Sent on HyDrA using Tapatalk 2
[Samsung Epic 4G Touch] heroisnotdead:
So I can use mobile ODIN/PC odin from any an ICS or GB rom to flash el26+cwm then flash whatever I need, as you said. I've never used mobile odin and it looks like I can do whatever I want except flash roms, which has to be done via the rooted OC builds or via recovery.

Say, I'm on a GB or ICS rom and I want to use a different modem or kernel; flash el26+cwm, flash the modem and/or kernel and I'm cool? When I need to switch roms, I can flash el26+cwm, image the phone from recovery and then flash the new rom?

Man, this is nuts compared to the cake walk that is nexus phone development and modding. Damned samsung hiding source.
[Samsung Epic 4G Touch] killaphatboy:
Yes, but if your on ICS or an AOKP rom then you would have to wipe cache/dalvick agin and flash a ICS kernel stock or AOSP depending on rom. ICS ROMs need an ICS kernel to boot. Also AOSP/AOKP ROMs must have a AOSP kernel to boot. Hit me up on gtalk its my username followed by @gmail.com and I can answer your questions quicker and easier that way.

Sent on HyDrA using Tapatalk 2