puppy linux doesnt want to play ball with adb or fastboot - Android Software/Hacking General [Developers Only]

I'm having trouble getting adb or fastboot to work with puppylinux.
I ripped the binaries from the tools directory on my other machine and am using them on thier own as i dont want the sdk or its dependencies on my livecd, this cant be the problem as i tested both adb and fastboot on a ubuntu livecd and they worked fine without the sdk.
When i run the commands they seem to work fine but refuse to see my phone over usb.
adb over wifi works fine, just usb i'm having trouble with.
Maybe I could do "adb connect ath to usb:" or something???im lost???help???
Any help troubleshooting would be great.
I have seen others having this problem on google but no solution was found then

Puppy is wacky and a very modified "distro", if you want to call it that. I try playing with it a while back but after a while I accepted that it is just not straight enough to bother with, imho but you draw your own conclusion. Personally, from what I have been reading on Debian's site, they are focused on being alot more organized in regard to mobile devices & phones, etc. Debian or Ubuntu would be my choice.
peace

well puppy Linux would be great on NC bc of that ability of being small and also you can run it on a usb, and save all your work on 8gb drive which is cool. you change it to run on flash memory so this distro has a lot of option

Related

Today I made my first Mistake (fixed it) but would like some information.

I am old school DOS user, so I don't know linux commands very well.
It is my understanding that the command line is similar in function but with different commands i.e. C\: copy file blah.exe to C:\here\.
Can the Recovery command line be used as such to move around on the sdcard in recovery mode using the same method, and if so, is there a list of linux commands I can familiarize myself with?
I would like to add this to all current/future G1 Hackers.
I learned a valuable mistake today. After doing lots of reading to correct it (thanx to the help of people who know what they are doing). I would like to make this one suggestion:
Get a cheap USB Card reader. Essentially you can do everything you need in windows w/o using a command line.
http://cgi.ebay.com/Cheap-MicroSD-Micro-SD-USB-2.0-Card-Reader---SHIP-$2.50_W0QQitemZ380101445086QQcmdZViewItem
It is a life saver if you makea mistake.
Brutal-Force said:
I am old school DOS user, so I don't know linux commands very well.
It is my understanding that the command line is similar in function but with different commands i.e. C\: copy file blah.exe to C:\here\.
Can the Recovery command line be used as such to move around on the sdcard in recovery mode using the same method, and if so, is there a list of linux commands I can familiarize myself with?
Click to expand...
Click to collapse
yes it can .. however .. the way android is setup i found everything has to be mounted from scratch .. so you wouldn't have /sdcard .. it would be blank until the mmcblk0p1 was mounted .. likewise /system would be blank etc until the mtdblock3 was mounted
So basically...
Yes it can, but not with out a lot of typing. I.e. for every command I would have to do a mount?
The linux commands I found online were difficult, because while they are comparable to the dos ones, they cannot be used verbatim. Also other commands are used while connecting to the device, which do not show up when you do a google search they way I was. I was wondering why when I did a remount from the command line, I could get to the /sdcard but then I tried to use a ls or a l command to list the files and nothing shows. I will (for my own sake) ask more questions and try to push/pull rather than do it simply by windows.
This was the first thing I tried, but it helped very little.
http://www.pixelbeat.org/cmdline.html
Thank you for your input.
I think the usb micro card reader is the best solution. Heres what I do
*8 gig sdhc micro card (everyday card)
*kingston microsd reader with 1 gig micro sd card loaded with the latest JF update.zip
Now I can just pop the 1gb card into my phone and flash the JF if I brick. And since the reader is attached to my keys, I always have the recovery with me even if Im not near a computer.
You really should learn the commands before screwing with things. The linux terminal is infinitely more powerful than dos. The side effect of this is that it is equally more complex. I suggest that you install some linux distro on your desktop computer (or an old junker you have shoved into a corner in the basement), and learn it real well. With just a little experience, you'll surely want to wipe that microshaft turd off of everything you own.
I have had ubuntu installed on my computer before
I can say that ubuntu definitely has is benefits.
A long time ago I was really into computer stuff, constantly tweaking, installing, trying out new stuff. Today I can safely say I use my computer for primarily internet browsing, googleing, information and such. That being said, it really doesn't matter which OS I actually have installed. Ubuntu, my understanding is that it simply uses less resources and of course is open source. Applications are free and there is always someone willing to lend you a hand.
Other than that, I can't see where Ubuntu was really a necessary must for me up until today. Realistically I fall back into the category of "just need it to do one thing". No doubt that Linux has its place, and If I wasn't so out of date and lazy, I would take up the coding myself.
Thanx for the Suggestion Xavier
After I read your post I was like Duhhh. Considering I have the original 1 gig that came with the phone, I did what you suggested. I have pretty much a boot disk/back up for the phone in case everything goes to pot, and I can carry it in my wallet just in case I am doing something while away from a USB port. After all, I shouldnt be tied to a usb port anyways, thats why I bought my G1 .

[Idea] Android Dev system on USB Stick

As I installed rosie over the weekend I needed to put an ext2 partition on my card so used Gparted from a USB Stick. This got me thinking. I have seen people post in threads so often that they cant do ceratin mods at the moment as they are at work and dont have ADB. So I wondered if it were possible to have a usb booting version on Linux with the SDK installed and ADB setup that people could take anywhere with them and use on any available PC.
I have no idea how this would be implemented, just putting it out there for the more skilled amongst us.
I've been doing this using a "puppy linux live usb". I'm still fairly new to linux but shell and gparted work great. The whole linux is only ~100mb and doesn't modify the pc it's used on at all(tho you must be able to boot from usb). Good for those of us still learning linux. Don't know if this is what you were talking about exactly but hope it helps.
Puppy
Yup, Puppy is a cute and elegant solution - works out of the box!
Great thing. Works out of a usb no problem - just have to have a boot loader on the stick. Can recommend grub (easiest) or syslinux (can install on the usb out of xp)
Baldyman1966 said:
As I installed rosie over the weekend I needed to put an ext2 partition on my card so used Gparted from a USB Stick. This got me thinking. I have seen people post in threads so often that they cant do ceratin mods at the moment as they are at work and dont have ADB. So I wondered if it were possible to have a usb booting version on Linux with the SDK installed and ADB setup that people could take anywhere with them and use on any available PC.
I have no idea how this would be implemented, just putting it out there for the more skilled amongst us.
Click to expand...
Click to collapse
yeah i have a 4gig running linux mint, including recognition for the phone when connected through usb, and full development platform, with working sdk... very handy when at work etc,
i was considering selling them on ebay but didnt think people would be intrested in such a thing
soulassasin101 said:
yeah i have a 4gig running linux mint, including recognition for the phone when connected through usb, and full development platform, with working sdk... very handy when at work etc,
Click to expand...
Click to collapse
Would you be able to provide an image that others could use?
Baldyman1966 said:
Would you be able to provide an image that others could use?
Click to expand...
Click to collapse
dunno mate its got a 3gig casper file so i can save to it and have plenty of room for saving what i need. if its possible to make an image of the whole thing then im sure i can upload it to a torrent site or something
Baldyman1966 said:
As I installed rosie over the weekend I needed to put an ext2 partition on my card so used Gparted from a USB Stick. This got me thinking. I have seen people post in threads so often that they cant do ceratin mods at the moment as they are at work and dont have ADB. So I wondered if it were possible to have a usb booting version on Linux with the SDK installed and ADB setup that people could take anywhere with them and use on any available PC.
I have no idea how this would be implemented, just putting it out there for the more skilled amongst us.
Click to expand...
Click to collapse
This is actually a pretty good idea. Have eclipse, adb, everything and turn it into an .iso that would be sweet. Then Haykuro could work at school haha jk.
Hey why don't you guys use VirtualBox. It's free and it runs in windows. I use it all the time.
soulassasin101 said:
i was considering selling them on ebay but didnt think people would be intrested in such a thing
Click to expand...
Click to collapse
wouldnt that violate terms and conditions of the sdk and whatever distro you use? legally all you would be able to charge for would be the cost of the flash drive, or Google might hunt you down. lol
yeah it is illegal to sell the software... id be selling my time, it did take two hours to set up and it would only be for the udb stick and my time, as i said im happy to contribute and upload if possible for free
Usually linux distros are re-distributable, but check the license.
The Android SDK license, OTOH, specifically prohibits you to "distribute any software or device incorporating a part of the SDK" regardless of whether you charge for it or not. That is, just charging for your time/materials would still go against the SDK license if the SDK was packaged in some sort of distribution.
I'll try to do this either with or without the sdk and if that is the case then add a tutorial on how to add it yourself so we don't break the laws
My first question is what linux distro would you like? I normally would use Ubuntu.
courious about linux.
Rafase282 said:
I'll try to do this either with or without the sdk and if that is the case then add a tutorial on how to add it yourself so we don't break the laws
My first question is what linux distro would you like? I normally would use Ubuntu.
Click to expand...
Click to collapse
I would be interested to learn how considering my noob status........ I figure it would make modding my g1 a whole lot easir. Pm me or jus post to this thread. And I will use witch ever people think is the best because I have never used it.
I started with Ubuntu 9.04 since puppy can be installed on a usb from the live cd and should be faster and a matter of just installing the sdk and eclipse.
I have in mind to install gparted, eclipse, irc, and other programs. Any suggestion or help? let me know.
Okay first attepmt failed. Ubuntu didnt start the X, I may try to do it manually this time instead.
Okay I already have the Ubuntu 9.04 updated and with some softwared installed like banshee, lastfm, currently setting up and installing the sdk. But for this part is where I need help since I didnt use the emulator or anythign but the adb commnds.
you can do it with a 4-8GB USB2.0 and SLAX linux distro http://www.slax.org/
you can add modules, including gparted, then just copy your files to the USB
malaeus said:
you can do it with a 4-8GB USB2.0 and SLAX linux distro http://www.slax.org/
you can add modules, including gparted, then just copy your files to the USB
Click to expand...
Click to collapse
I tried with this one but I can never get on internet wireless, I just dont know how to. For me is easier using gnome but kde I never get used to and for me configuration is just harder on it but i'll try.
ah, i dont normally use the net when i use slax. its mainly for fixing my phone, and ill have all my files needed on the stick. including my past nandroid backups.
also, i gotta find that thread, but i read a rumour of one of the dev's working on a way to reflash your nandroid backups from the recovery screen on the g1, which would be nice. kinda off topic, nice nontheless.

[Q] Linux packages

Maybe I'm missing something (probably am, but my searches have turned up nothing), but I can't seem to find any Linux packages for dealing with the Captivate. Odin, etc, and everything I've found, are Windows apps. I don't have, and certainly don't want, any Windows OS on my computers, nor do I want to deal with wine. I'm running Debian Sid, FWIW. Anyone have any pointers to Linux PC tools for the Captivate?
Heimdall is a start. Basically a replacement for ODIN.
Other than that, most everything you need should be able to be done on Linux.
What specifically are you trying to do, but can't?
sgosnell said:
Maybe I'm missing something (probably am, but my searches have turned up nothing), but I can't seem to find any Linux packages for dealing with the Captivate. Odin, etc, and everything I've found, are Windows apps. I don't have, and certainly don't want, any Windows OS on my computers, nor do I want to deal with wine. I'm running Debian Sid, FWIW. Anyone have any pointers to Linux PC tools for the Captivate?
Click to expand...
Click to collapse
multiple references are abound to Heimdall .... used as an alternative to ODIN for osx and linux
Yeah dude, all you really need is heimdall and the android sdk. With those two, you should be able to do all the same stuff windows users are able to, unless you're looking for linux versions of all those one-click-root-whatnot programs. If you really insist on using those, you're better off just installing windows in a virtual machine or something.
OK, thanks, I'll give Heimdall a look. I don't have to have 'one-click does it all'. I really can't do anything yet, since my phone hasn't arrived yet, I'm just trying to get prepared. I don't want to be limited to the AT&T lockdowns, and I want to be able to load any apps I want, not just what is available from the Market and approved by AT&T. I want to be able to look at the software and get somewhat comfortable with it before I start trying to do anything.
Heimdall will work great on your set up. There is also a linux version of the"super oneclick" tool. It didn't work great for me but there were some awesome step by step instructions in the thread to root via the command line.
Awesome instructions that didn't work, huh? I'm comfortable with a Linux command line, so I'll probably go with Heimdall. Some people seem to be having problems with it, but the main reason is probably inexperience with the Linux/OSX command line and with technology in general.
Thanks to all for the pointers. Obviously I wasn't putting exactly the right terms into Google, since I never saw a reference to Heimdall. Once I get a phone, I think I can figure it out as I go. Fedex is slow, as usual. We have a priority package sitting in the office at work that has been waiting on a pickup for over a month. The ground guy comes by almost every day, but he can't pick it up, only the air guy can, and he never shows up. Why, oh why, did we ever leave UPS for Fedex? My second-day delivery is going to take a week or so, but I'll survive somehow.
sgosnell said:
Awesome instructions that didn't work, huh? I'm comfortable with a Linux command line, so I'll probably go with Heimdall.
Click to expand...
Click to collapse
The program hung but the CLI instructions worked like a charm. Here is the CLI post if the app fails you also. http://forum.xda-developers.com/showpost.php?p=11661579&postcount=2806 (there is a typo in step 6; hint chmod...)
Also, here is a thread with some shell scripts you might find useful.
http://forum.xda-developers.com/showthread.php?t=760500
I use linux with my Captivate.
I use Vmware within Linux to bring Win XP up and frim there I can use
Odin just fine!
Sent from my SAMSUNG-SGH-I897 using XDA Premium App
I don't have the space for a VM. My netbook only has 32GB, divided between / and /home, and I don't have a Windows license in any case. Nor would I install VMWare just for this, even if I had the space. It's Linux or nothing, and I think I have enough available now to get by when the phone shows up.
i use nlite to strip down windows xp and run it in a vm in virtual box, i only have a 40gig ssd since my other hard drive crashed but find it to be plenty for applications. i keep media on my network drive. the bigger issue than space is ram. if you dont have 2gigs+ on that thing ten virtual machines will bog you down considerably
i see your point though. i think the reason this forum doesnt have too much as far as instructins for linux is that we have odin and most linux users dont mind having windows for some stuff. im pretty sure that if somebody can write heimdal on there own that it is posible to flash without a special application.
also nearly everything you need to do can be done without a computer if you are starting with 2.1, you can root 2.1 with a file downloaded from this site then once rooted you can flash 2.2 roms that are pre rooted and have cwm built into the kernel. once you have root and busybox, terminal emulator and root explorer can do what ever adb can do. you can even use a bluetooth keyboard and tv out if you hate the touch interface for doing things with the file system.

[Q] Virtual machine?

Hi, I was wondering if there was a virtual machine app out so I could say run xp on a tablet and use rsd lite off my tablet to flash my phone. I've been searching all over but I'm not really finding anything
Alright, I haven't done this, this is just what a bit of google magic turned up.
Assuming its an Android Tablet, you may be able to get Ubuntu Linux to run on it.
(some quick searching and it seems you execute the commands through ADB, meaning you need to at least have access to a PC to install and get that stage up and running)
Then, I'm not even sure how functional it is, support for usb and all, may be more work than you are prepared/capable of.
If you manage to get Ubuntu up and running, use sbf_flash.
I'm kinda just spit balling ideas here, if you are uncomfortable with this, might be best to just borrow a friends PC to flash; this response was more proof of concept.
I have no access to a pc.... That's the whole reason why I'm looking into this

HTC One S/IMac

Looking for some advice on using this IMac
http://www.everymac.com/systems/app...20-inch-aluminum-early-2008-penryn-specs.html
with the One S/S4
I know nothing about Apple stuff, but my laptop is about shot and my son may give me his old IMac above. May be temporary or permanent, not sure. I have hboot below .13, so don't need to do much other than copy my sdcard files back and forth. Haven't used adb/fastboot for awhile. Know I need to get drivers reinstalled and believe I can use adb/fastboot with it. I assume same SDK I have (R15 I believe), which I could copy from an Acronis BackUp to IMac--maybe? Just need to use different linux commands. He is Apple thru and thru--and a Software Engineer, so learning to use adb/fastboot with IMac may not be a big deal.
I have seen Apple users here and on my old N1 forums post for help on command lines, so assume this may be only issue--??
Just curious on any tips/pros/cons on doing this, as he is in opposite end of state and no need to bring it all that way when they come down for Christmas, if the IMacs are more difficult to work with on this phone.
Thanks for any advice--
Ken
it doesnt really matter whether you're using mac or windows, if you're trying to run adb.
i used mac and adb, and its great. =)
What about dual-booting Windows on it?
Sent from my HTC One S using Tapatalk 2
You can write/build android apps on the mac, but building kernels and especially android itself, I would use ubuntu in a virtual box.
If it is not maxed out on RAM (8G probably?) I would do that. It's not expensive and will help a lot when running a VM.
(I live in a macbook pro.)
usaff22 said:
What about dual-booting Windows on it?
Click to expand...
Click to collapse
The only reason to run windows would be to run a RUU.
You can download adb and fastboot for mac, and you will never have 'wrong drivers'.
Appreciate all responses--been reading and found the imac adb/fastboot files and sdk if i want it.
Did see commands for basic stuff not really different.
Thought about dual booting, not sure if i have a windows copy of my current OS--Vista. Could restore my whole acronis backup to it on that partition i make. Got the latest Acronis that says it can restore to any hard drive--maybe will test that--
I am interested to try the imac as my phone is not connecting well thru usb and would like to see if it is the laptop--
rugmankc said:
Could restore my whole acronis backup to it on that partition i make. Got the latest Acronis that says it can restore to any hard drive--maybe will test that
Click to expand...
Click to collapse
Don't think that would be a good idea best off doing a fresh install.
probably right--would like to try it with just the imac anyway
rugmankc said:
probably right--would like to try it with just the imac anyway
Click to expand...
Click to collapse
Good luck. Windows 7 not being too bad with change I think it have a better chance of working if the PC its from was Intel too. I have gone from Core Duo setup to a i5 setup without a format.
Like everyone been saying, you be fine. I have a macbook pro.. and use vmware fusion to do all my windows base apps.. but I've used virtualbox as well.. both do the job.. it is a little different but I think you will be fine.. Just make sure you have lots of ram on the iMac if your going to do a lot of windows apps.. since I use vmware fusion I use unity mode.. makes it look like i'm running windows apps on native osx.. its just windows os is "minimized" .. Have fun..
OK guys thanks--I will have my son bring it down for Christmas and give it a go. IMac for free=no brainer anyway--
[Cruzer] it has 2gb ram, what I have now--
I am not totally computer illiterate and son is pretty good--so i think this will work out fine for now. My space is limited so really need a laptop, but will see how this goes for now. Just had a 3800.00 transmission rebuild bill. So funds limited for a new laptop. Especially for one that I really want.
Appreciate all the inputs--will post how it goes--
Ken
i strongly suggest not to make it a dualboot.
mac runs on darwin which kinda a unix like based operating system.
if your goal is only using adb, you can just download the android-sdk.
they include an adb.
then use terminal to run adb.
terminal application is in your utilities applications.
its going to be a purely in command-line.
for example:
i downloaded android-sdk to my workspace in Documents folder.
adb is in platform-tools folder in the android-sdk.
run the adb command, it will shows the helps you need.
### copy paste from my terminal ###
ditto:~ ahartowo$ Documents/workspace/android-sdk/platform-tools/adb
Android Debug Bridge version 1.0.29
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
appreciate the input, probably won't dual boot--would like to try just the Imac OS, and go from there--
rugmankc said:
OK guys thanks--I will have my son bring it down for Christmas and give it a go. IMac for free=no brainer anyway--
[Cruzer] it has 2gb ram, what I have now--
I am not totally computer illiterate and son is pretty good--so i think this will work out fine for now. My space is limited so really need a laptop, but will see how this goes for now. Just had a 3800.00 transmission rebuild bill. So funds limited for a new laptop. Especially for one that I really want.
Appreciate all the inputs--will post how it goes--
Ken
Click to expand...
Click to collapse
Well the max stated by the page you linked states 4GB.. ram is cheap these days.
you can actually put 8GB in it. my imac is running 8GB. some says wants to upgrade to 16GB.
ahartowo said:
you can actually put 8GB in it. my imac is running 8GB. some says wants to upgrade to 16GB.
Click to expand...
Click to collapse
hit my thanks limit but--thanks
with my 3800.00 transmission bill will hold off on any extra spending, kinda why my son is giving me the imac for now--with laptop near end
if i keep it long term, i will increase ram
ok so i got sdk setup and put virtuous rom back on phone for htc options
downloaded htc sync, which i thought would have drivers
imac connects but says it can't access storage
usb debug is checked, fastboot unchecked
did some googling for just the drivers, no luck
did i miss something simple
windows just comes up and starts to look for drivers when phone plugged in--
i don't care to actually sync anything just access sdcard
rugmankc said:
ok so i got sdk setup and put virtuous rom back on phone for htc options
downloaded htc sync, which i thought would have drivers
imac connects but says it can't access storage
usb debug is checked, fastboot unchecked
did some googling for just the drivers, no luck
did i miss something simple
windows just comes up and starts to look for drivers when phone plugged in--
i don't care to actually sync anything just access sdcard
Click to expand...
Click to collapse
Can't think of the name of it but the SD is done a different way in that rom so it not mass storage any more so maybe that way don't work on mac.
had no luck on aosp
yeah it has some networking choices, not the original htc sync choice
seems like i just don't have drivers that i thought sync manager would install
not sure
guess i will wait till tomorrow and let my son look at it--he knows the macs, i don't
but like i said the sync mgr does connect to phone just no storage access
rugmankc said:
had no luck on aosp
yeah it has some networking choices, not the original htc sync choice
seems like i just don't have drivers that i thought sync manager would install
not sure
guess i will wait till tomorrow and let my son look at it--he knows the macs, i don't
but like i said the sync mgr does connect to phone just no storage access
Click to expand...
Click to collapse
Hmm that sounds odd but ya can't really help on the mac side of things.
ok guys, i am up and running on the imac--problem mainly imac inexperience--son got me set up with some training--
he was out late with buddies last nite, so on my own till he got up today
phone mounts fine
transfering stuff from phone and laptop to imac while sons and daughter-in-law went to see Hobbit
thanks for all the inputs and where appropriate--happy holidays
I actually have 4gb ram

Categories

Resources