ADB mini 2440

jean
hi,

I succeed to have Android on my mini 2440, but I can't have ADB... I used
linux kernel v2.6.27  and enabled USB gadget drivers, but it's still not
working.

Does anyone succeed to have ADB working and send an .apk on his mini 2440??

Thanks,

Dave McLaughlin
Have you enabled USB debugging on the device in system settings?

Does your device show up if you type ADB devices?

Have you installed the Google USB drivers? (Assuming you are on Windows)

jean
Thanks Dave for your reply

Yes I have enabled USB debugging on the device.
No the device doesn't show up when I type ADB devices.

I used linux and window, and on my windows machine the Google USB drivers
are installed.

Dave McLaughlin
What do you see in Device Manager when you plug in the USB? Does windows
dectect the device? Do you get any errors?

Dave...

jean
There is nothing which appears in the device Manager when I plug the usb
cable.
Windows don't detect the device it's like if the USB is not enabled in the
kernel of the mini2440. But I checked and the USB is enabled.
Dave do you use android on mini2440?

Thanks,

Dave McLaughlin
Hi Jean,

No, I use it on the Mini6410 and now the Mini210. I never tried the
Mini2440 with Android but I believe it works if a little slower.

If you monitor the debug output on the Mini2440 what do you see?

I get this on my Mini210 when I plug in the USB cable to the PC.

[  169.857022] android_usb gadget: high speed config #1: Android Composite

jean
Hi,

You mean that I should monitor the Jtag interface?? 
I checked the message from the RS 232 ouput during the boot and I can see
my mouse connected of the USB host connector, but nothnig about the USB
device connector and the ADB.

Dave McLaughlin
I mean the RS232 output. JTAG will show nothing.

Strange that you don't see the system detecting the USB. Possibly USB fault
maybe?

If you run another OS on it, does it work?

Dave...

jean
About Jtag: That's what I am thinking. That why I checked the RS232.

Yes I tried WCE6.0 and the USB works correctly, I can see my device and use
the USB.

I think the problem is located in the kernel, I mean that I certainly do
not enable (or disable) something in the kernel, but I do not have any clue
to find what I am missing.

Jean

Jasper
If you have an Ethernet connection, you can put adb in tcp/ip mode with the
following commands:

setprop service.adb.tcp.port 5555
stop adbd
start adbd

In ms-dos you must enter “adb connect ipadress-of-mini” to connect to the
board
With “adb devices” you can see if the board is connected

jean
Unfortunatly I don't have Ethernet connection, even if in my kernel it
seems to be enabled, I do have a big problem with this one.



To those who have Android on mini2440, I got a question
Which is kernel version are you using for your mini2440? Personnaly I use
that one :
http://www.friendlyarm.net/dl.php?file=android-kernel_20090825.tgz
I only have changed some things to have the compatibility with the W35
screen.

Dave McLaughlin
Hi Jean,

I spotted this tonight. I have downloaded the kernel you posted and had a
look at the config and came across this website.  

https://groups.google.com/forum/?fromgroups#!topic/android-porting/bpUqC...

Have you enabled everything they indicate here?

Dave...

Jean
Hi,

Thank you Dave.
Now, after enabled USB_MUSB_PERIPHERAL symbol (and some other under this
one...), I succeed to have in the Windows Device manager my mini2440 as
Android ADB Interface, I have added the following lines in the
android_winusb.inf file. 
%SingleAdbInterface%        = USB_Install, USB\VID_5345&PID_1234
%CompositeAdbInterface%     = USB_Install, USB\VID_5345&PID_1234&MI_01

With VID and PID found in the inf file downloaded right here :
http://www.friendlyarm.net/dl.php?file=usb-downloaddr_20090421.zip in the
inf file.

And I have inserted those lines just below [Google.NTx86] and
[Google.NTamd64] of the android_winusb.inf file.

But when I try the "adb devices" cmd, I have nothing in the liste of
devices. 

Thanks,

Jean
Hi,

I am stucked.. In my device manager in fact I have my board as an Unknown
device.
Here some symbols of my config:

CONFIG_USB_OTG=y
CONFIG_USB=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_MUSB_OTG=y 
CONFIG_USB_GADGET=y 
CONFIG_USB_ANDROID=m

I have some questions:
Do I need to define myself the VID and the PID in the kernel? They are
different from those provided by Friendly (USB\VID_5345&PID_1234). If yes,
in which file I have to set them?

Someone uses the kernel provided by friendly arm??

Someone uses adb with mini 2440?

Thanks,

Jean
Hi,

For those which are also stucked as me and the others, I found something
very interesting in the following link :

http://groups.google.com/group/android-kernel/tree/browse_frm/month/2009...?

So it seems that the android kernel provided by friendly arm can't be used
to use adb, and that it is necessary to made a kind of merge with the
kernel 2.6.29 or one other more recent.

Jean