Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: adb not working on AT91SAM9M10G45-EK
PostPosted: Fri Oct 01, 2010 11:41 pm 
Offline

Joined: Sat Jan 31, 2009 11:49 pm
Posts: 5
Hello,

I have an AT91SAM9M10G45-EK running Android. The image version is Android-2.0.1_r1-at91sam9m10g45ek-ver1-jffs2.

After following the instructions at PlayingWithAndroid, everything works except for the last step: adb.

http://www.at91.com/android4sam/bin/vie ... ithAndroid

adb sees no devices. Also, Windows does not detect a USB insertion or removal when the the EK board is plugged or unplugged.

The USB was used to load the image via SAM-BA so the hardware is good.

Any suggestions?

Thanks,

Mark


Top
 Profile  
 
 Post subject: Re: adb not working on AT91SAM9M10G45-EK
PostPosted: Tue Oct 05, 2010 9:10 am 
Offline

Joined: Wed Sep 01, 2010 3:58 pm
Posts: 3
I tested with a linux (ubuntu) pc .
You might try the below sequences:
1. adb kill-server
2. sudo adb start-server
3. adb devices

You should see your device now.
If not, then check the usb cable connection

Alternatively, you could use tcp (connect your device to local LAN) for your debug session:
At console of your device:
1. setprop service.adb.tcp.port 5555
2. stop adbd
3. start adbd

At your linux pc:
1. adb kill-server
2. sudo adb start-server
3. adb connect <ip_address of your device>:5555
4. adb devices

Both of above method worked with my eval. kit.
Good luck!


Top
 Profile  
 
 Post subject: Re: adb not working on AT91SAM9M10G45-EK
PostPosted: Tue Oct 05, 2010 10:06 pm 
Offline

Joined: Sat Jan 31, 2009 11:49 pm
Posts: 5
Success! Changes were needed both on the AT91SAM9M10-G45-EK target and Windows XP.

Android

On the AT91SAM9M10-G45-EK, the “USB debugging” property must be checked:

Settings -> Applications -> Development -> USB debugging

The USB cable must be unplugged and plugged in again or the board can be rebooted for this to take effect.

This results in Windows XP detecting plug in and unplug but the drivers would not load. “Android” was present in the USB Devices list with an exclamation point.

Windows

There are multiple Google hits discussing a Unix/Windows compatibility problem in the INF file. Applying these fixes did not help. Also the USB PID has changed recently from 0D02 to 0002.

After changing all instances of PID_0D02 in the INF file to PID_0002, the driver loaded. Running ‘adb devices’ results in a device being detected. The shell also works. An application compiled on Windows was installed on Android and it runs perfectly.


Changing the INF file by hand makes me uncomfortable but it should be ok for initial development.


Top
 Profile  
 
 Post subject: Re: adb not working on AT91SAM9M10G45-EK
PostPosted: Fri Oct 22, 2010 12:26 pm 
Offline

Joined: Wed Jun 16, 2010 10:49 am
Posts: 20
Hello.

Sorry for stealing your thread, but i have the same problem with USB debugging on AT91SAM9M10-EKES board.

I had to change VID and PID in driver.inf revision 3 from google. In "Device Manager" i now see "Android Phone" and under that "Android Composite ADB interface".
Now i want to debug/run my application on my board and this is where it stops for me.
If i type "adb devices" i dont see any devices attached to PC even though i have on USB (If i do the same with emulator, its shown).
Eclipse present me with "Device Chooser" window with no devices listed and under DDMS there arent any devices listed either(only emulator as before).

Can anybody please help me?

Thanks for reply.


Top
 Profile  
 
 Post subject: Re: adb not working on AT91SAM9M10G45-EK
PostPosted: Sun May 29, 2011 7:36 am 
Offline

Joined: Fri Feb 18, 2011 1:39 pm
Posts: 4
I have got the same issue, I have installed the usb driver but when I try to "adb devices" on the console it does not list my device. I am working on AT91SAM9M10-G45-EK. Any suggestions?


Top
 Profile  
 
 Post subject: Re: adb not working on AT91SAM9M10G45-EK
PostPosted: Tue May 31, 2011 9:55 am 
Offline

Joined: Tue Jun 08, 2004 3:29 am
Posts: 42
Location: Shenzhen, China
You can try to use adb commands by following http://www.at91.com/android4sam/bin/vie ... M/UsingAdb
,if the problem still exists,try to exec
adb kill-server
adb start-server
On Ubuntu or other Linux systems try to exec with sudo.


Top
 Profile  
 
 Post subject: Re: adb not working on AT91SAM9M10G45-EK
PostPosted: Tue May 31, 2011 12:34 pm 
Offline

Joined: Fri Feb 18, 2011 1:39 pm
Posts: 4
Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: