ohci not detected on at91rm9200?
Hans Petter Selasky
hselasky at c2i.net
Tue Jul 14 15:21:29 UTC 2009
On Tuesday 14 July 2009 16:14:51 Krassimir Slavchev wrote:
> Hans Petter Selasky wrote:
> > On Tuesday 14 July 2009 13:36:12 Krassimir Slavchev wrote:
> >> Hans Petter Selasky wrote:
> >>> On Tuesday 14 July 2009 10:04:05 Krassimir Slavchev wrote:
> >>>> Hi,
> >
> > Hi,
> >
> > %grep -d recurse ohci_atmelarm.c .
> > ./files:dev/usb/controller/ohci_atmelarm.c optional ohci at91rm9200
> >
> > The option is already there, but you need to add:
> >
> > device at91rm9200
> >
> > To your kernel config file.
>
> Ahh, where this is documented? This device is missing in other
> at91rm9200 kernel config files in sys/arm/conf .
See Warner's patch. It's not documented, more of a hack.
>
> > Maybe you also want to test the device port:
> >
> > ./files:dev/usb/controller/at91dci_atmelarm.c optional at91dci
> > at91rm9200
> >
> > Requires usb_template module and ustorage module.
>
> You mean:
> device at91dci
> device usb_template
> device usfs
>
> ugen0.2: <FreeBSD foundation> at usbus0
> ugen0.2: <FreeBSD foundation> at usbus0 (disconnected)
> ugen0.2: <FreeBSD foundation> at usbus0
> ustorage_fs0: <USB Mass Storage Interface> on usbus0
>
> umass0: FreeBSD foundation USB Memory Stick, rev 1.10/1.00, addr 5
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <FreeBSD File-Stor Gadget 0101> Removable Direct Access SCSI-2 device
> da0: 1.000MB/s transfers
> da0: 4MB (8192 512 byte sectors: 64H 32S/T 4C)
>
> Reading produces only zeros but I am not sure whether device port is
> initialized or not, most probably not.
>
That's like expected. You need to format the image, hence it is only a RAM
disk of 4MBytes.
It there is also an ethernet DCI profile.
See:
sysctl hw.usb.template=1
And you need:
device if_cdce
In the kernel config.
--HPS
More information about the freebsd-arm
mailing list