hello. I am trying to flash a stock ROM on a Motorola phone. but I use Linux and I am having some trouble running the "Linux-fast boot" archive. I've already tried to make it executable with chmod "as in this post: https://forum.xda-developers.com/t/...linux-and-mac-os-x-and-how-to-use-it.2941888/ ". but still, I am having the same issue
[[email protected] platform-tools]$ ./linux-fastboot
bash: ./linux-fastboot: No such file or directory
Well, sometime after I discovered the solution. just install "lib32-libstdc++5" from the AUR or another place
Related
Hey guys
sorry to bother you with this but since I'm not allowed to post in the developer-forum with less than 10 posts I need to ask here:
I'm running Uruk 1.5RC1 on my 101 and want to upgrade to 1.5 stable.
There's a fix I need to apply first and it says:
lease copy this file to /.upgrade/ directory (if it's not there - create it) - and restart your device (during boot you should see for few seconds update message with progress bar)
Click to expand...
Click to collapse
I don't have that directory and if I want to create it it says that it is already there but I don't see it. So I can't access it to paste the file.
Any help?
Thank you very much!
Do you navigate in your folders as Su?(Super User)
Yep, I'm using ES with su-right and I can see the directories.
Except for the one I need I gues...
Do you have a terminal app?
Try something like this:
su
pwd
ls
Then tell me if you see it
I tried terminal and it's not there.
Try to copy the file with terminal
Code:
Su
cd [where you have the file]
Sudo cp [filename] /../.upgrade
This should work
Greets,
Lenn
Thanks. I guess you meant ".update" instead of ".upgrade"?
Anyways, I tried both (without any errors) but there's no update sequence for the fix when I reboot and the update itself still fails.
Try
Code:
su
Cd /../
sudo mkdir .upgrade
With that you create a folder
"Cannpt create directory '.upgrade': File exists"
Why isn't it visible with ES?!
I dont know...
Try it with
Code:
su
cd /../.upgrade
sudo rmdir -r
This should remove the directory, after that try to create a new one like i wrote above
Ok, this is weird now:
"can't cd to /../.upgrade"
When I try .update it says
"rmdir: invalid option --r"
boert said:
Ok, this is weird now:
"can't cd to /../.upgrade"
Click to expand...
Click to collapse
Try it to do first cd /../ and then cd /.upgrade
When I try .update it says
"rmdir: invalid option --r"
Click to expand...
Click to collapse
hm... try it without -r (-r is a value to delete also the folders in the directory)
Thanks for your help so far, I appreciate it!
It says:
"can't cd to /.upgrade"
Trying the same command in ".update", which obviously exists (I can acess it) is "invalid option" (with -r) or missing operand (without -r).
I dont have so much linux-experience like other guys around here, sorry..
I think the mrdir command is old.. try it with rm -r
I made it.
Did it again from the scratch with some help from a Linux beginners guide (worked with rm -rf /../xyz/) and updated to 1.5 stable.
Thanks for the help guys!
I'm in Ubuntu running the terminal in an effort to get access to rlthe android source. This command: curl https://android.got.kernel.org/repo > ~/bin/repo returns an error. bash: /bin/repo: Permission denied. Help??
My name is Revos I'm a recovering flashaholic running Liquid Gingerbread 3.0
You'll either need to run as root (sudo su...*just sudo should give the same error* unless you use sudo bash -c "command") then change perms on the file so you can run it or you could just set your build directory somewhere else like ~/android and change ~/bin/repo to ~/android/bin/repo (and make the same change to any future commands or change the PATH *which may sound stupid*). All depends on how you want to proceed.
Edit:
Hmm, while what I said made sense at the time for the error you were receiving...for some reason I'm wondering if you ran any previous steps as root or local user. Are you sure you typed it exactly?
Kernel.org is down I apparently got a decent copy of repo but now it seems that my repo init command is coming back with multiple errors...
My name is Revos I'm a recovering flashaholic running Liquid Gingerbread 3.0
Hi here,
I got a problem on my Atrix 4G. after I unlock BL and applied a bug fix of autoram.
I fetched the package what mentioned by this thread http://forum.xda-developers.com/showthread.php?t=1240310&highlight=ram+fix
but I used a particular way to apply this patch. In fact, I have really no idea how to apply rom patch. I tried to look into the package and found there was 2 file(cmdline and cmdline.c). I did bellow steps.
Code:
d:\adb>rem extract file cmdline from Ramfix.zip
d:\adb> adb push cmdline /data/tmp
d:\adb> adb shell
$ su
# cd data/tmp
# ln -s cmdline add
# ./add [email protected]
And reboot after that. My atrix4g was frizzing on booting logo.
How do I rescue this damage? can I refresh the unlock sbf file or something?
I just new for android.
I appreciate to any clues help me out of this situation.
liang xiao
Am using Ubuntu 11.10 i got my ADB to work flawlesly, but everytime i invoke ¨fastboot devices¨ i get ¨inssuficient permissions fastboot¨, if i try ¨sudo ./fastboot devices¨ i get ./fastboot unknown commad, then i try ¨sudo fastboot devices¨ get same unknown error, if i go all the way to the folder where i got fastboot(android-sdk/platform-tools/) and invoke ¨sudo ./fastboot devices¨ it works... i got the folders in my bash list, so i can invoke adb/fastboot from anywhere, adb is working flawlesly but fastboot i have to go all the way to the folder and run it using ¨sudo¨.
Any tips on how to tweak the permissions maybe??... or has anyone found a way to make fastboot work from anywhere in the system?? or at least doing ¨sudo fastboot¨ without going all the way to the /usr/loca/android-sdk/platform-tools/(my preffered location) folder????
sairegsx said:
Am using Ubuntu 11.10 i got my ADB to work flawlesly, but everytime i invoke ¨fastboot devices¨ i get ¨inssuficient permissions fastboot¨, if i try ¨sudo ./fastboot devices¨ i get ./fastboot unknown commad, then i try ¨sudo fastboot devices¨ get same unknown error, if i go all the way to the folder where i got fastboot(android-sdk/platform-tools/) and invoke ¨sudo ./fastboot devices¨ it works... i got the folders in my bash list, so i can invoke adb/fastboot from anywhere, adb is working flawlesly but fastboot i have to go all the way to the folder and run it using ¨sudo¨.
Any tips on how to tweak the permissions maybe??... or has anyone found a way to make fastboot work from anywhere in the system?? or at least doing ¨sudo fastboot¨ without going all the way to the /usr/loca/android-sdk/platform-tools/(my preffered location) folder????
Click to expand...
Click to collapse
I had a similar problem on my USB Linux install. My work around was to just move fastboot to /usr/bin
sairegsx said:
Am using Ubuntu 11.10 i got my ADB to work flawlesly, but everytime i invoke ¨fastboot devices¨ i get ¨inssuficient permissions fastboot¨, if i try ¨sudo ./fastboot devices¨ i get ./fastboot unknown commad, then i try ¨sudo fastboot devices¨ get same unknown error, if i go all the way to the folder where i got fastboot(android-sdk/platform-tools/) and invoke ¨sudo ./fastboot devices¨ it works... i got the folders in my bash list, so i can invoke adb/fastboot from anywhere, adb is working flawlesly but fastboot i have to go all the way to the folder and run it using ¨sudo¨.
Any tips on how to tweak the permissions maybe??... or has anyone found a way to make fastboot work from anywhere in the system?? or at least doing ¨sudo fastboot¨ without going all the way to the /usr/loca/android-sdk/platform-tools/(my preffered location) folder????
Click to expand...
Click to collapse
not sure if the issue is still outstanding or not. for anybody who happens across this thread later:
insufficient perms can be related to not setting the binary as an executable. chmod +x fastboot
that should set the binary as an executable. to check, ls -l fastboot and it will
list the permissions/flags on the file.
otherwise the other issue which commnands to mind would be specific uid/gid permissions on the file.
the sudo commad would execute the file from root access and should bypass any uid/gid limitations.
i didn't have to do anything special for fastboot to work on my linux. simply chmod +x fastboot and ./fastboot .
hope that helps!
I ran in to the same annoyance when I was setting up adb. What I did was create an alias, so whenever I type bda the terminal will cd to the adb folder, kill the adb server, start sudo adb server, then cd back to whichever folder I was working it. Aliases are awesome, I recommend checking them out. If you have any questions about setting it up let me know.
Resolved!
joeykrim said:
not sure if the issue is still outstanding or not. for anybody who happens across this thread later:
insufficient perms can be related to not setting the binary as an executable. chmod +x fastboot
that should set the binary as an executable. to check, ls -l fastboot and it will
list the permissions/flags on the file.
otherwise the other issue which commnands to mind would be specific uid/gid permissions on the file.
the sudo commad would execute the file from root access and should bypass any uid/gid limitations.
i didn't have to do anything special for fastboot to work on my linux. simply chmod +x fastboot and ./fastboot .
hope that helps!
Click to expand...
Click to collapse
Thanks everyone for the help, i did what joeykrim said and now it works as is was supposed to!! thanks again joeykrim!!! ^_^
Sir
I am able to install any distro with CLI successfully in my tablet (android.2.3.4) But when I issue any command (sudo apt-get update or sudo apt-get-installabiword etc.) through lx terminal or ssh terminal, the commands are not executed but returned with error 404 : file not found. Can anybody suggest solution overcome this difficulty ?