Allwinner A10
Ganbold Tsagaankhuu
ganbold at gmail.com
Fri Jan 4 15:43:47 UTC 2013
Hans,
I can't see usb is finding attached usb stick in normal dmesg, however
when I enabled debug lines in usb_debug.h and gave ufs:/dev/da0a on
mountroot prompt I see the usb stick:
http://pastebin.ca/2299375
Like:
ugen0.2: <JetFlash> at usbus0
usb_probe_and_attach: iclass=8/6/80 iindex=0/0
umass0: <JetFlash Mass Storage Device, class 0/0, rev 2.00/1.00, addr
2> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x4100
...
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <JetFlash Transcend 8GB 8.07> Removable Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 7656MB (15679488 512 byte sectors: 255H 63S/T 976C)
...
Please ignore lines starting with "------------" etc in log, I just
added it to debug before discovering DPRINTFs in usb_debug.h.
Any reason why it can't see the stick before?
Is there any error I should check or fix?
thanks,
Ganbold
On Thu, Dec 27, 2012 at 5:04 PM, Hans Petter Selasky <hselasky at c2i.net> wrote:
> On Wednesday 26 December 2012 17:05:35 Ganbold Tsagaankhuu wrote:
>> Just some information,
>>
>> Still nothing useful yet, but with the help of andrew@, ray@, gonzo@
>> and other arm guys kernel boots:
>>
>> https://github.com/tsgan/allwinner_a10/blob/master/dmesg_ehci.txt
>>
>> Tried usb/ehci glue code, no success yet, so maybe I will leave it now
>> and try next SD/MMC :)
>>
>
> Hi,
>
> It looks like number of ports is zero. Can you try this:
>
> Edit sys/dev/usb/controller/ehci.c
>
>
> Find this:
> sc->sc_noport = EHCI_HCS_N_PORTS(sparams);
>
> Add this:
> if (sc->sc_noport == 0)
> sc->sc_noport = 1;
>
> Does the EHCI work now?
>
> --HPS
More information about the freebsd-arm
mailing list