[Q] Splash Image HELP! - G2 and Desire Z Q&A, Help & Troubleshooting

Ok, so I am trying to flash a new splash image onto my G2. The image is on the root of my SD card like this /sdcard/new_splash.img
I open the mobile terminal and get this:
$ su
# cd /sdcard
# flash_image splash1 new_splash.img
failed with error: -1
Any ideas??

Are you sure you have the flash_image script on your phone?
Sent from my HTC Vision

Yes, because I flashed CWM Recovery with flash_image.
Sent from my HTC Vision using XDA App

troby86 said:
Ok, so I am trying to flash a new splash image onto my G2. The image is on the root of my SD card like this /sdcard/new_splash.img
I open the mobile terminal and get this:
$ su
# cd /sdcard
# flash_image splash1 new_splash.img
failed with error: -1
Any ideas??
Click to expand...
Click to collapse
Try
$ su
# flash_image splash1 /sdcard/new_splash.img

This method still fails with error -1
Sent from my G2 using XDA App

Ops Dobbel post ..

Be very careful with this method and check that you typed everything correctly so you do not accidentally brick your phone
Code:
$ Su
# dd if=/mnt/sdcard/splash.img of=/dev/block/mmcblk0p19
(Copy and past it)
(Splash.img = the name of your splash.img )

Worked perfect! Thanks
Sent from my HTC Vision using XDA App

troby86 said:
Worked perfect! Thanks
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
No problem . Happy to help.

Will this work on the backflip?
stian230 said:
Be very careful with this method and check that you typed everything correctly so you do not accidentally brick your phone
Code:
$ Su
# dd if=/mnt/sdcard/splash.img of=/dev/block/mmcblk0p19
(Copy and past it)
(Splash.img = the name of your splash.img )
Click to expand...
Click to collapse
I want to be extra sure your method isn't device independent before I try it; especially since I'm not sure where it's pointing too...
To be a sharin, heres what I've tried and got so far...
I was able to pull the M splash screen and convert it to BMP on my backflip (s-on) with:
adb
su
cat /dev/mtd/mtd6 > /sdcard/splash.img
nbimg -h 480 -w 360 -F splash.nb
but now I can't get the new one back... any suggestions? Tried:
cat /sdcard/splash.img > /dev/mtd/mtd6
...and...
flash_image splash /sdcard/splash.img
to no effect.
can I...:
dd if=/sdcard/splash.img of=/dev/mtd/mtd6
? I'm fairly new to linux, I don't fully understand the mount process...
-----------------------------------------------------------------------------
I've been playing around, I don't have mmcblk0p19, I only have mmcblk0 and mmcblk0p1. My next task is to pull these off and see if I can't figure out what they are.

Related

[GUIDE] Downgrade your Desire-Z from 1.72 to 1.34 (and get root and S-OFF)

First thanks to everybody who made it possible to root our great devices.
THIS WILL WIPE YOUR DEVICE, BACKUP EVERYTHING BEFORE DOING THIS!
Polish translation by trzype
If you don't know how to use adb/fastboot don't do this. Use the search function and google and learn how to use them. If you know everything about them come back. I made a pretty nice tutorial, many people used it already with success. But I won't add anything like "go to startmenu and type..."
If your INFOCID is NOT one of these you need to make a goldcard to downgrade!
HTC__001
HTC__032
HTC__E11
HTC__203
HTC__Y13
HTC__102
HTC__405
HTC__304
HTC__A07
HTC__N34
HTC__J15
check with:
Code:
adb reboot bootloader
fastboot oem boot
Here is a great guide how to make a goldcard, follow the first part and come back here then.
Get theses 3 files:
https://github.com/tmzt/g2root-kmod/raw/scotty2/scotty2/psneuter/psneuter (right click > save as...)
https://rapidshare.com/files/1884723844/PC10IMG.zip
https://rapidshare.com/files/948281832/root.zip
Since this uses some security holes to gain root privileges on your phone some antivirus programs on your pc might warn you that this contains a virus. Thats not the case!
MikeChannon said:
It might be worth saying in the thread that android/Exploit.ragecage.A is the exploit being used to gain root and Users should not worry about the warning some software will give.
Click to expand...
Click to collapse
Extract misc_version_01.zip (only misc_version is needed)
Get the PC10IMG.zip from here or download the full RUU from here.
If you already downloaded the 1.34 RUU somewhere else you can skip this step.
Code:
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
Check if you have the '#' sign instead of the '$'
If you see the '#' sign you got root!
Code:
/data/local/tmp/misc_version -s 1.33.405.5
exit
If you have downloaded the 1.34.405.5_PC10IMG.zip copy it to you SD-Card and rename it to PC10IMG.zip.
If you downloaded the full RUU or had it already execute the exe file (mine is called RUU_Vision_HTC_WWE_1.34.405.5_Radio_12.28b.60.140e_26.03.02.26_M_release_155556_signed.exe), start explorer and type %temp% in the adress bar.
Look in all the folders starting with a { sign and also in the sub directories if it also starts with a { sign, in one of the subdirectories there should be a rom.zip file with 298.442.206 bytes and the MD5 sum 2ff42897cd27e0db425a2cf36c8bd078.
Copy this rom.zip to your SD-Card on the phone and rename it to PC10IMG.zip
Code:
adb reboot bootloader
(or turn your phone of and on again while holding the trackbad).
Wait till the phone is in bootloader mode (white screen should look like this but with other infos http://www.brutzelstube.de/wp-content/uploads/2010/09/hboot.jpg)
Select bootloader (vol +/- buttons for navigation and power button for select).
Wait for the phone to scan the sdcard, once it's done it will ask you if you want to start the update. Confirm it and wait till it's done. Reboot with powerbutton when asked.
After the reboot check for version informations, it should show this:
Enable USB-Debugging on your phone
Extract root.zip
Code:
adb install AndroidTerm.apk
adb push busybox /data/local/tmp/
adb push gfree /data/local/tmp/
adb push rage /data/local/tmp
adb push root /data/local/tmp/
adb shell chmod 0755 /data/local/tmp/*
adb push su /sdcard/
adb push Superuser.apk /sdcard/
Start the Terminal app on your phone and type:
Code:
/data/local/tmp/rage
Wait until you see the message "Forked #### childs.", reset Terminal (menu > Reset Term). The Terminal app will close, launch it again. It will force close, launch it again.
You should see the magic '#' sign again.
Next type in the terminal
Code:
/data/local/tmp/gfree -f
, this will turn Security off (S-OFF), remove SIM Lock and set CID to 11111111.
Last step in terminal app on your phone is to execute these commands.
Code:
/data/local/tmp/root
sync
This will root your phone. It's possible that you get an error message "mkdir: /system/xbin already exists", don't worry everything should be ok.
After that restart your phone.
Now get ROM Manager and install the recovery image from there. If you are happy with the 1.34 software everything is done here, if not you can flash anything you want now.
Nice work! We allways need more people using the magic of root
Sent from my HTC Vision using XDA App
Thanks a lot for your effort!
Just bought a Desire Z and accidentally upgraded OTA.
Will try it now and report back.
I get the following Error when trying to run misc version
Code:
# /data/local/tmp/misc_version -s 1.33.405.5
/data/local/tmp/misc_version -s 1.33.405.5
--set_version set. VERSION will be changed to: 1.33.405.5
Patching and backing up partition 17...
Error opening backup file.
#
Any ideas mate?
Edit: Sorry, forgot to unmount phone from windows when i copied the img over.
VERY IMPORTANT
The OP made a small mistake in the instructions:
Code:
/data/local/tmp/misc[COLOR="Red"][B]-[/B][/COLOR]version -s 1.33.405.5
exit
the dash (-) should be an underline (_)
Code:
/data/local/tmp/misc[COLOR="Red"][B]_[/B][/COLOR]version -s 1.33.405.5
exit
Please update the first post
Darkyy said:
VERY IMPORTANT
The OP made a small mistake in the instructions:
Code:
/data/local/tmp/misc[COLOR="Red"][B]-[/B][/COLOR]version -s 1.33.405.5
exit
the dash (-) should be an underline (_)
Code:
/data/local/tmp/misc[COLOR="Red"][B]_[/B][/COLOR]version -s 1.33.405.5
exit
Please update the first post
Click to expand...
Click to collapse
Thanks, fixed it.
Question:
Should the psneuter -file be without a suffix?
Or should it be like psneuter.txt?
Gnurf said:
Question:
Should the psneuter -file be without a suffix?
Or should it be like psneuter.txt?
Click to expand...
Click to collapse
Without the extension... .txt is added by your browser presumably so you'll have to rename it
Another error:
When I reboot into the bootloader, the phone scans PC10IMG.ZIP and then says "CID incorrect! Update Fail! Press <POWER> to reboot."
paw3lk said:
Without the extension... .txt is added by your browser presumably so you'll have to rename it
Click to expand...
Click to collapse
Thats what I thought aswell, but seeing there has been a post about it previously... (in the other tread)
Thanks.
worked as described, big thx
waqypaqy said:
Another error:
When I reboot into the bootloader, the phone scans PC10IMG.ZIP and then says "CID incorrect! Update Fail! Press <POWER> to reboot."
Click to expand...
Click to collapse
What phone and software version do you have?
It seems like you use a wrong PC10IMG.zip for your phone. Did you download the zip from here or got it yourself from the full ruu?
Another error:
Step 15: Extract root.zip
and then do the commands:
Code:
adb chmod 0755 /data/local/tmp/*
should be
Code:
adb [B][COLOR="Red"]shell [/COLOR][/B]chmod 0755 /data/local/tmp/*
g4rb4g3 said:
What phone and software version do you have?
It seems like you use a wrong PC10IMG.zip for your phone. Did you download the zip from here or got it yourself from the full ruu?
Click to expand...
Click to collapse
I've got the Desire Z running 1.72. I first tried downloading the PC10IMG.zip from the 1st link in part 3 which didnt work. I then tried the RUU file, found the rom.zip in Temp, renamed it and copied it to SD card, which didnt work either
What am I doing wrong?
Software number: 1.72.161.1
Darkyy said:
Another error:
Step 15: Extract root.zip
and then do the commands:
Code:
adb chmod 0755 /data/local/tmp/*
should be
Code:
adb [B][COLOR="Red"]shell [/COLOR][/B]chmod 0755 /data/local/tmp/*
Click to expand...
Click to collapse
Thanks, fixed it.
Sent from my HTC Vision using XDA App
waqypaqy said:
I've got the Desire Z running 1.72. I first tried downloading the PC10IMG.zip from the 1st link in part 3 which didnt work. I then tried the RUU file, found the rom.zip in Temp, renamed it and copied it to SD card, which didnt work either
What am I doing wrong?
Software number: 1.72.161.1
Click to expand...
Click to collapse
Did you root your phone before the ota update?
Sent from my HTC Vision using XDA App
g4rb4g3 said:
Did you root your phone before the ota update?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Yes I had rooted it with Visionary before I updated it. Please tell me I still have some hope for getting root back
waqypaqy said:
Yes I had rooted it with Visionary before I updated it. Please tell me I still have some hope for getting root back
Click to expand...
Click to collapse
Did you set s-off too while rooting?
Sent from my HTC Vision using XDA App
g4rb4g3 said:
Did you set s-off too while rooting?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Nope Im screwed arent I?
waqypaqy said:
Nope Im screwed arent I?
Click to expand...
Click to collapse
adb reboot bootloader
fastboot oem boot
Post the result of the 2nd command (dont know if it works... but it wont harm anything)
Sent from my HTC Vision using XDA App

How to get S on again ? I've tried all the methods

I rooted using the visionary/gfree method a while back
http://forum.xda-developers.com/showthread.php?t=928160
I didn't download the ota update my phone came with it. I've tried every unroot method and everything goes back to stock except it still says S off. Please help
Thanks in advance.
Sent from my HTC Vision using XDA App
You need to flash a stock froyo rom (1.19 for g2, 1.34 for dz)
then just follow that same guide, (though I'd really recommend not using Visionary at all)
except change the gfree command.
Search your sdcard for a part7backup-xxxxxxxx.bin file, if you have it then do:
Code:
./gfree -r /sdcard/part7backup-xxxxxxxxx.bin
(replace the xxxxxxxx by whatever the number is)
if you don't have it, then you need to run:
Code:
dd if=/dev/block/mmcblk0p17 bs=1 count=8 2>/dev/null; echo
which will give you your orignal cid.
the you need to run:
Code:
./gfree -s on -c XXXXXXXX
(obviously replace the XXXXXXXX with whatever you got from the first command, make sure its 8 characters)
and you're done!
-Nipqer
So I have do do this all in adb shell right ? And damn that's a lot more complicated then I thought it would be lol but thanks a lot I'm going to try it
Sent from my HTC Vision using XDA App
You could probably do it in terminal emulator, using a different temp-root method.
But I'd really recommend using adb shell, as you can then copy/paste commands.
-Nipqer
Yeah that sounds like a better idea thanks I let you know how it works out when I get the chance to try it
Sent from my HTC Vision using XDA App

[Script] Flash recovery from Terminal v1.0 [2012_0513]

I have create a script file that will flash a recovery from the terminal in the Galaxy Nexus.
I got the command from xda but I could not remember it when I wanted to flash a recovery,
so I wrote a script to do it.
AS WITH ANY FLASHING OR MODDING OF "YOUR" PHONE, I AM NOT RESPONSIBLE FOR ANY DAMAGES YOU MAY CAUSE!
I have tested this on my:
Unlocked Galaxy Nexus 4.1.1 takju (flashed from yakju)
Sprint Galaxy Nexus 4.0.4
Thanks to -viperboy- for help.
Code:
Created by Smurph82 2012_0512 (c) v1.0
flashr [-h] [-r] [-m] [-s s] -- Flash a recovery
to the Galaxy Nexus.
where:
-h show this help text
-r will reboot after flashing is complete.
-m image is in the root of the sdcard
-s source of the recovery image (/sdcard/recovery.img).
To use the script:
Download and Flash the script file from your current recovery
Or download the zip file and move the flashr file in the /system/bin folder to /system/bin with RootExplorer
or other root level file manager.
If you manually add the file you must
Code:
chmod 0755 /system/bin/flashr
or change the permissions from RootExplorer
Then open Terminal and type
Code:
su
first, yes you have to be rooted to do this!
Next type
Code:
flashr
or
Code:
flashr -h
to get the help
If you want to flash a recovery you must have the recovery.img
somewhere on your device that you can remember. Like the root of the sdcard.
To flash a recovery type
Code:
flashr -s /sdcard/recovery.img
or if the recovery is in the root of the sdcard type
Code:
flashr -ms recovery.img
If you want to reboot after the flashing is complete next use
Code:
flashr -mrs recovery.img
In the code examples above I used recovery.img as an example.
This should be "what ever you named the recovery".img it does not have to be recovery.
Reserved
Change Log:
v1 - Initial Release
i know you might think that im trolling, but im really not. what id like to know is what makes that better than just flashing the recovery, via the terminal, the old-fashioned way..
su(press enter)
flash_image recovery /sdcard/recovery.img(press enter)
reboot recovery(press enter, if you want to go to the recovery)
providing ithe file is on the main fs in the sd storage.
flash_image does not work with ics, that I have found. So I wrote my own. If there is a new flash_image that works with the galaxy nexus then I could not find it. Maybe it is because I'm still using the stock rom and kernel. I took the flash_image out of cm9 but it didn't work for me.
Sent from my Galaxy Nexus using XDA Premium HD app
Would you be willing to share the sources for this? It would be interesting to know how this works, since it may be useful also for other purposes than flashing recovery images. Or not?
I will post the source later today. It really is not much.
Sent from my Transformer Prime TF201 using XDA Premium HD app
E:V:A said:
Would you be willing to share the sources for this? It would be interesting to know how this works, since it may be useful also for other purposes than flashing recovery images. Or not?
Click to expand...
Click to collapse
Hope that this is helpful to someone.
Code:
#!/system/bin/sh
usage="Created by Smurph82 2012_0512 (c) v1.0
flashr [-h] [-r] [-m] [-s s] -- Flash a recovery
to the Galaxy Nexus.
where:
-h show this help text
-r will reboot after flashing is complete.
-m image is in the root of the sdcard
-s source of the recovery image (/sdcard/recovery.img)."
# Read in the options turn off verbose and require -s to have input
while getopts :hrms: opt; do
case $opt in
h) echo "$usage"
echo
exit;;
m) sdroot="/sdcard/";;
s) sourcedir=$OPTARG;;
r) reboot="t";;
*) echo
echo
echo "Invalid option: -$OPTARG" >&2
echo "$usage"
echo
exit;;
esac
done
shift $(($OPTIND - 1))
# This was for testing
#echo
#echo "Vars: m $sdroot: s $sourcedir: r $reboot: dir $sdroot$sourcedir"
#echo
# Check to make sure somthing was typed if not show help
if [ "$sourcedir" == "" ]; then
echo "$usage"
echo
exit
else
# Check that something is in that location if not dont flash
if [ -s $sdroot$sourcedir ]; then
echo "Flashing image from: $sdroot$sourcedir"
cat $sdroot$sourcedir > /dev/block/platform/omap/omap_hsmmc.0/by-name/recovery
else
echo "File not found at $sdroot$sourcedir"
exit
fi
fi
# Early in the morning I was getting cute
if [ "$reboot" == "t" ]; then
echo "Rebooting in 5.."
sleep 1
echo "Rebooting in 4.."
sleep 1
echo "Rebooting in 3.."
sleep 1
echo "Rebooting in 2.."
sleep 1
echo "Rebooting in 1.."
sleep 1
reboot recovery
fi
thank u very much for this! so easy now!!
It is just as easily done in a terminal by the following (assuming you downloaded the recovery you want to /sdcard and named it recovery.img):
su
dd if=/sdcard/recovery.img of=dev/block/platform/omap/omap_hsmmc.0/by-name/recovery
efrant said:
It is just as easily done in a terminal by the following (assuming you downloaded the recovery you want to /sdcard and named it recovery.img):
su
dd if=/sdcard/recovery.img of=dev/block/platform/omap/omap_hsmmc.0/by-name/recovery
Click to expand...
Click to collapse
Yes I know that but who wants to type all of that out. I just made it shorter more
or else. If you want to type the whole command then by all means have at it. I just
think that "flashr -mrs twrp.img" is a whole lot easier. Just my thoughts.
Hi
Nice enough script.
Although I feel I should warn people that it looks like this script will write anything you tell it. making no effort to verify that the file is a valid or correct for your phone. so be careful not to specify the wrong file.
fastboot flash recovery $file is much safer.
That is true if you are connected to a computer but this script is run on the phone from the terminal. If someone knows a way to check a file from the terminal running on the phone please tell me and I will update the script. I understand that there is currently no verification of the file that is being written so please make sure that you are writing the right file.
Sent from my Galaxy Nexus using XDA Premium HD app

Cannot boot into ubuntu img file not found

@android:/ $ export PATH=/data/local/bin:$PATH
@android:/ $ cd mnt/sdcard/ubuntu
@android:/mnt/sdcard/ubuntu $ su
@android:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
Error: Image file not found!(mnt/sdcard/ubuntu/ubuntu.img)
1|@android:/mnt/sdcard/ubuntu #
this is my error. i've tried many things, any suggestions?
the image file is there, and ive downloaded it again, checked permissions, it is the large image from the complete linux installer app.
now i did some other things, and have gotten the responce:
$ export PATH=/data/local/bin:$PATH
$ cd mnt/sdcard/ubuntu
$ su
Segmentation fault
$ sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
sh: can't open /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
$
i re- rooted my device and am now coming up with the original error message again.
so, i added a \ to before mnt and now it says:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ cd /mnt/sdcard/Ubuntu
[email protected]:/mnt/sdcard/Ubuntu $ su
[email protected]:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /mnt/sdcard/Ubuntu/ubuntu.img
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh: line 74: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/mnt/sdcard/ubuntu #
so im going to download and add the large ubuntu file to the directory
same error: "dirname : not found"
I have the same error, "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found"
freewalk said:
I have the same error, "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found"
Click to expand...
Click to collapse
Use root explorer or es file explorer to check if
the folder exists. Also, running sh script should be written like this: sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
ireakhavok said:
@android:/ $ export PATH=/data/local/bin:$PATH
@android:/ $ cd mnt/sdcard/ubuntu
@android:/mnt/sdcard/ubuntu $ su
@android:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
Error: Image file not found!(mnt/sdcard/ubuntu/ubuntu.img)
1|@android:/mnt/sdcard/ubuntu #
this is my error. i've tried many things, any suggestions?
the image file is there, and ive downloaded it again, checked permissions, it is the large image from the complete linux installer app.
now i did some other things, and have gotten the responce:
$ export PATH=/data/local/bin:$PATH
$ cd mnt/sdcard/ubuntu
$ su
Segmentation fault
$ sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh mnt/sdcard/ubuntu/ubuntu.img
sh: can't open /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
$
i re- rooted my device and am now coming up with the original error message again.
so, i added a \ to before mnt and now it says:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ cd /mnt/sdcard/Ubuntu
[email protected]:/mnt/sdcard/Ubuntu $ su
[email protected]:/mnt/sdcard/ubuntu # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /mnt/sdcard/Ubuntu/ubuntu.img
Validating image checksum... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh: line 74: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied
FAILED!
Error: Checksum failed! The image is corrupted!
1|[email protected]:/mnt/sdcard/ubuntu #
so im going to download and add the large ubuntu file to the directory
Click to expand...
Click to collapse
" $ su
Segmentation fault" This error prevents you from having real superuser. Try to reinstall the ROM without wiping data.
" Error: Image file not found!(mnt/sdcard/ubuntu/ubuntu.img)"
Make sure that the image really is there with root explorer or es file explorer.
" line 74: /data/data/com.zpwebsites.linuxonandroid/files/busybox: Permission denied"
It seems that the script is trying to use its own busybox. That is all I know from this issue.
Sent from my GT-I9100 using xda app-developers app
julle131 said:
Use root explorer or es file explorer to check if
the folder exists. Also, running sh script should be written like this: sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
The folder and the script exist, "…linuxonandroid/files/bootscript.sh". I have installed the app, "Complete Linux Installer", to my Galaxy Tab 10.1 (P7500). I have rooted my Galaxy Tab ("TAB"). The app also confirms that the path contains the target image (i.e. /mnt/sdcard/ubuntu/ubuntu.img).
However, when the app runs the bootscrip, there is an error message "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found". The code line is at below.
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Could you please kindly let me know what goes wrong? Thanks in advance.
freewalk said:
The folder and the script exist, "…linuxonandroid/files/bootscript.sh". I have installed the app, "Complete Linux Installer", to my Galaxy Tab 10.1 (P7500). I have rooted my Galaxy Tab ("TAB"). The app also confirms that the path contains the target image (i.e. /mnt/sdcard/ubuntu/ubuntu.img).
However, when the app runs the bootscrip, there is an error message "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found". The code line is at below.
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Could you please kindly let me know what goes wrong? Thanks in advance.
Click to expand...
Click to collapse
I can't test it in my tablet, because I'm not home. But when I get there I will test the app myself. You could try using the native Ubuntu from development section. Its kernel can dual boot ICS test 4.0.4.
Edit: worked for me. Here is the log
http://snipurl.com/24sad15
Remember that /mnt/sdcard is externalsd and /sdcard/ is internal memory.
Delete everything you downloaded and the app. Then redo everything, following the guide perfectly.
Sent from my GT-I9100 using xda app-developers app
Thanks and How to try native Ubuntu in Galaxy Tab?
julle131 said:
I can't test it in my tablet, because I'm not home. But when I get there I will test the app myself. You could try using the native Ubuntu from development section. Its kernel can dual boot ICS test 4.0.4.
Edit: worked for me. Here is the log
snipurl.com/24sad15
Remember that /mnt/sdcard is externalsd and /sdcard/ is internal memory.
Delete everything you downloaded and the app. Then redo everything, following the guide perfectly.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Thanks a lot. I shall try again.
One more thing. How to try the native Ubuntu?
freewalk said:
Thanks a lot. I shall try again.
One more thing. How to try the native Ubuntu?
Click to expand...
Click to collapse
Its like installing a custom ROM. There is a topic for it in development section. You put archos.ext4 to /data/local (or was it /mnt/storage? Just read from the topic.) Then flash kernel from the same topic. To return just flash stock ROM and reinstall custom ROM. It doesn't affect to sde.
Sent from my GT-I9100 using xda app-developers app
freewalk said:
The folder and the script exist, "…linuxonandroid/files/bootscript.sh". I have installed the app, "Complete Linux Installer", to my Galaxy Tab 10.1 (P7500). I have rooted my Galaxy Tab ("TAB"). The app also confirms that the path contains the target image (i.e. /mnt/sdcard/ubuntu/ubuntu.img).
However, when the app runs the bootscrip, there is an error message "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found". The code line is at below.
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Could you please kindly let me know what goes wrong? Thanks in advance.
Click to expand...
Click to collapse
I have the same issue, indeed that the 'dirname' can not be found.
the $PATH show the following 2 dirs '/system/bin:/system/xbin' and none of them contain 'dirname'.
might it be because I have rooted my galaxy note 2 N8000 with the stock image according method 1 on rootgalaxynote.com ?
rootgalaxynote.com galaxy-note-10-1-root/how-to-root-galaxy-note-10-1/
any help would be appreciated....
freewalk said:
"/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found".
export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument
Click to expand...
Click to collapse
C'mon folks, It's all there for you in the error message!
It breaks down like this ; dirname is a program the tells you the directory name of an executable file location, well in reality it probably just trims the value pass in looking the last / the print everything before that i.e calling
Code:
dirname /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
will give an out put of
Code:
/data/data/com.zpwebsites.linuxonandroid/files
this is normally part of busybox. Is suspect however that whatever busybox binary it's attempting to use does has not been configured to include dirname or at the very least the symlink hasn't been created so it would need to be called with a busybox prefix , i.e
Code:
export imgfile=$([B]busybox dirname[/B] $0)/ubuntu.img
or just save the f*****g about and hardcore imgfile to the path of the image file, for example
Code:
export imgfile=/mnt/sdcard/ubuntu/ubuntu.img
or wherever you're ubuntu.img is located, should be that simple, If you run into further trouble post the full content of the /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh shell script. I suppose someone could tell the dev to add some sanity checking to his scripts if alot of people are running into this problem!
metacm said:
I have the same issue, indeed that the 'dirname' can not be found.
the $PATH show the following 2 dirs '/system/bin:/system/xbin' and none of them contain 'dirname'.
might it be because I have rooted my galaxy note 2 N8000 with the stock image according method 1 on rootgalaxynote.com ?
rootgalaxynote.com galaxy-note-10-1-root/how-to-root-galaxy-note-10-1/
any help would be appreciated....
Click to expand...
Click to collapse
already found the issue, busybox installation went wrong.... 'Busybox Installer' app didn't worked out, but luckly 'BusyBox free' did the work.
which version of busybox is installed
metacm said:
already found the issue, busybox installation went wrong.... 'Busybox Installer' app didn't worked out, but luckly 'BusyBox free' did the work.
Click to expand...
Click to collapse
can you tell which version of busybox is installed
same error
Hi all,
Sorry for my poor language...
I have same all of you dirname issue, bootscript.sh is in the path (tested with root explorer).
Can somebody tell me what is exactly this error "/data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[29]: dirname : not found".
Because we can understand 2 thinks :
1-dirname not found bootscript.
2-Busybox not found dirname.
Thank for your help.

[Q] Cannot flash stock boot.img from fastboot

[EDIT] - adb commands work fine..
I am rooted and bootloader unlocked, trying to flash back to the stock kernel. I can boot into bootloader (fastboot mode), however when I issue the fastboot command from my pc, nothing happens like the usb connection is not recognized.
"fastboot devices" does nothing.
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot flash boot boot.img
< waiting for device >
Is fastboot supposed to work?
Alternatively is there a recovery package somewhere that includes only the current stock kernel?
Thank you for your help.
You can actually use my all in one in the dev section to do it for you.
Sent from my LG-LS970 using xda app-developers app
TheShadow1 said:
You can actually use my all in one in the dev section to do it for you.
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
Shadow, thank you for your work! I jumped into your github to check out the code because I am not sure if the boot.img your app is downloading is the latest zv9 release kernel.
It looks like I can
1) drop boot.img into /sdcard/
2)issue the following from terminal on device (or from adb):
su -c dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/boot
su -c dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot
3) rm /sdcard/boot.img
4) reboot
EDIT: This worked great issuing commands in adb shell (grant su on the phone when it pops up)
THANKS!
Now I need to figure out how to get fastboot communicating

Categories

Resources