Re: [android-kernel] Re: (currently nonworking) attempt at USB host mode for MSM7201

2010-06-04 Thread Andrew de Quincey
On 13 May 2010 21:13, Bill Gatliff wrote: > Poke!  :) > > Did you ever post this patch anywhere?  I'm using a USB3320 on an > OMAP3530 platform, and seeing very similar behavior.  I'm wondering if > it's the same problem... Hi, sorry, I don't have access to any OMAP hardware so I can't really dev

Re: [android-kernel] Building Android 1.6 on x64 platform

2010-05-20 Thread Andrew de Quincey
> I'm trying to build Donut. The command I'm using is 'make CC=gcc-4.3' > but it seems that gcc 4.3 can't find a compatible version of libgcc. > Anyone know how I can get one? > > I'm running on an x64 architecture. I found the android SDK (at least the ARM one) didn't work under 64bit. I work on

[android-kernel] [patch] MSM7201 usb driver v23

2010-04-20 Thread Andrew de Quincey
Hi, here's a very-close-to-working new version of my patch which has unloadable function and host mode modules, yet also maintains the mass_storage device nodes at all times to keep the android userspace happy. See http://adq.livejournal.com/100734.html for an explanation of how this is done (aka t

Re: [android-kernel] Re: (currently nonworking) attempt at USB host mode for MSM7201

2010-03-18 Thread Andrew de Quincey
> Does this mean future phones will support usb HOST mode? If they're using similar hardware, there is no technical reason why not. The current generation all seem to have the requisite hardware support. Its up to the manufacturers whether they include the software support provided by this patch

Re: [android-kernel] "android-usb" platform_driver cleanup

2010-03-18 Thread Andrew de Quincey
On 18 March 2010 20:33, Chris Stratton wrote: > I dont think the usb drivers are complete enough to be unloadable.  Andrew > de Quincey was doing some preliminary work in that area to permit switching > to usb host mode, also someone observed that the samsung galaxy msm 7201a > usb

Re: [android-kernel] Sprint CDMA HTC HERO - patch errors

2010-03-18 Thread Andrew de Quincey
Hi, I've been having a break from the usb stuff this week - also my laptop decided to die, and developing on a netbook screen ain't so much fun :) I'll port it to the sprint hero source once I've got it working on the standard hero source... sometime next week I hope! -- unsubscribe: android-ker

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-03-10 Thread Andrew de Quincey
On 11 March 2010 00:28, Sven Killig wrote: >> -Original Message- >> From: android-kernel@googlegroups.com >> [mailto:android-ker...@googlegroups.com] On Behalf Of Andrew de Quincey >> Sent: Wednesday, March 10, 2010 6:55 PM >> To: android-kernel@googlegroup

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-03-10 Thread Andrew de Quincey
On 10 March 2010 16:58, Andrew de Quincey wrote: > On 10 March 2010 14:50, sonic wrote: >> First of all, a big thank you for finding all this out! >> I eagerly want to try this on my Nexus One. What would be the best >> route to proceed? >> I'm wondering ho

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-03-10 Thread Andrew de Quincey
On 10 March 2010 17:40, Sven Killig wrote: >> -Original Message- >> From: android-kernel@googlegroups.com > [mailto:android-ker...@googlegroups.com] On Behalf Of Andrew de Quincey >> Sent: Wednesday, March 10, 2010 5:59 PM >> To: android-kernel@googlegroups.c

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-03-10 Thread Andrew de Quincey
On 10 March 2010 14:50, sonic wrote: > First of all, a big thank you for finding all this out! > I eagerly want to try this on my Nexus One. What would be the best > route to proceed? > I'm wondering how your ehci-msm7201.c relates to > https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git;a

[android-kernel] Re: [PATCH] MSM7201 host+ function driver modules

2010-03-09 Thread Andrew de Quincey
I'm signing off for the evening, but I've just noticed from "adb logcat" that vold is continually being started up and then segfaulting. I assume this is why the USB storage GUI isn't working. I'm not sure why its segfaulting because all the files in vold.conf are present. I bet its doing this all

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-17 Thread Andrew de Quincey
Hi, quick status update before I go to sleep. I've just fixed the msm72k_udc.ko gadget driver so it can be unloaded/loaded properly. I've tested it by repeatedly loading/unloading the msm72k_udc.ko gadget and the ehci-hcd.ko host drivers one after another and it seems fairly stable (I'd bet there

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-17 Thread Andrew de Quincey
On 17 February 2010 01:27, Markus Fritsche wrote: > >> Expect more soon. > > Does that mean my android device might be able to connect to linux- > supported usb hardware? My pocket DVB-recoder coming up? ;) Theoretically yes; I've not yet tried a DVB USB stick, but I've got two in the cupboard!

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-16 Thread Andrew de Quincey
On 16 February 2010 10:29, Olivier Perron wrote: > On Mon, Feb 15, 2010 at 8:45 PM, Olivier Perron > wrote: >>> Hi, attached are the latest patches - I've restarted the number at 10 > > Hi Andrew, > patched kernel compiled and tested this morning: usb host works as expected. That's great news, t

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-15 Thread Andrew de Quincey
Hmmph, I've just been looking over the msm72k_udc.c /gadget/ usb code this evening: there's no module unload routine defined right now, so its not possible to cleanly unload it when compiled as a module. I need to sort this out first of all so we can test things without having to reboot all the tim

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-15 Thread Andrew de Quincey
On 15 February 2010 18:25, Andrew de Quincey wrote: >> On Mon, Feb 15, 2010 at 6:25 PM, Andrew de Quincey >> wrote: >>>. which kernel base are you compiling against? >> >> I've tried with the stock HTC Hero kernel source code and starting >> from t

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-15 Thread Andrew de Quincey
> On Mon, Feb 15, 2010 at 6:25 PM, Andrew de Quincey wrote: >>. which kernel base are you compiling against? > > I've tried with the stock HTC Hero kernel source code and starting > from their given .config > > Maybe I'm not using the right set of patches ? I did

Re: [android-kernel] Re: Working MSM7201 usb host driver v2

2010-02-15 Thread Andrew de Quincey
> > then enable EHCI HCD (USB 2.0) support > > I definitively can't see that one. Where is it supposed to be ? The kconfig config option for the MSM architecture has changed name in some kernels (certainly the vanilla g1 source differs from the hero source)... which kernel base are you compiling a

Re: [android-kernel] Fast kernel switching (chain loading etc) ?

2010-02-15 Thread Andrew de Quincey
On 13 February 2010 16:04, Chris Stratton wrote: > Would it be possible to make a running kernel for an msm7201 phone > chain load and startup a test kernel? This would be fairly useless on > a phone that can fastboot, but a number of otherwise rooted phones > cant do that, making flash & crash

Re: [android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-12 Thread Andrew de Quincey
Hi, thanks for trying that out, good to see the EHCI hardware initialised ok, even if its not quite working yet. Are you supplying power to the USB disk on its /USB/ interface? Even if its got an external PSU, it might need power on the USB line as well in order to function properly. When I plug

Re: [android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-10 Thread Andrew de Quincey
1_driver +#endif + #if !defined(PCI_DRIVER) && !defined(PLATFORM_DRIVER) && \ !defined(PS3_SYSTEM_BUS_DRIVER) && !defined(OF_PLATFORM_DRIVER) #error "missing bus glue for ehci-hcd" diff --git a/drivers/usb/host/ehci-msm7201.c b/drivers/usb/host/ehci-msm7201

Re: [android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-10 Thread Andrew de Quincey
ATFORM_DRIVER) #error "missing bus glue for ehci-hcd" diff --git a/drivers/usb/host/ehci-msm7201.c b/drivers/usb/host/ehci-msm7201.c new file mode 100644 index 000..a20e3da --- /dev/null +++ b/drivers/usb/host/ehci-msm7201.c @@ -0,0 +1,315 @@ +/* + * Copyright (c) 2010 Andrew de Quin

Re: [android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-10 Thread Andrew de Quincey
Here you go - this is a patch against the android-msm-2.6.27 branch. I don't have a config.gz from the G1, so I don't know what specific options it uses so there may be compilation failures resulting from disabling the USB_FUNCTION stuff. If you could send me a copy of your config.gz, I can sort t

Re: [android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-10 Thread Andrew de Quincey
Cool, I shall get on it then! Would 2.6.27 be the branch to go for would you reckon? Do you know if there's another list with more G1 users on it for testing perhaps? This one seems sort of dead. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/

Re: [android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-09 Thread Andrew de Quincey
On 9 February 2010 22:14, Jun Sun wrote: > On 2/9/2010 12:16 PM, Andrew de Quincey wrote: > >> Hi, here's my now working patch - I've still a bit of work to do on it >> obviously, but it should suffice as a proof of concept >> >> -- >> unsubscribe:

[android-kernel] [patch] Working MSM7201 usb host driver v2

2010-02-09 Thread Andrew de Quincey
RIVER) && !defined(OF_PLATFORM_DRIVER) #error "missing bus glue for ehci-hcd" --- kernel_hero/drivers/usb/host/ehci-msm7201.c 1970-01-01 01:00:00.0 +0100 +++ kernel_hero.patched/drivers/usb/host/ehci-msm7201.c 2010-02-09 20:09:10.556297861 + @@ -0,0 +1,319 @@ +/* + *

[android-kernel] Re: [patch] (currently nonworking) attempt at USB host mode for MSM7201

2010-02-09 Thread Andrew de Quincey
Success!! It works; just needed to tell the EHCI controller to use coherently allocated DMA memory. I'll send an updated patch soon. My USB keyboard works out of the box; a USB mouse does... sort of... as well :) I would have typed this on the phone, but google mail on the phone won't let me NOT i

[android-kernel] Re: [patch] (currently nonworking) attempt at USB host mode for MSM7201

2010-02-08 Thread Andrew de Quincey
Ok, I've just discovered that I had the D+/D- lines the wrong way round to my hacky device. Its still not working, but its not working better :) I'm 99% certain the D+/D- lines are correct now because on connection: [ 682.849304] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s [ 683.0030

[android-kernel] [patch] (currently nonworking) attempt at USB host mode for MSM7201

2010-02-08 Thread Andrew de Quincey
d(PLATFORM_DRIVER) && \ !defined(PS3_SYSTEM_BUS_DRIVER) && !defined(OF_PLATFORM_DRIVER) #error "missing bus glue for ehci-hcd" --- kernel_hero/drivers/usb/host/ehci-msm7201.c 1970-01-01 01:00:00.0 +0100 +++ kernel_hero.patched/drivers/usb/host/ehci-msm7201.c