* Help on MPC82XX USB Host controller Development using m82xx-hcd.
@ 2008-03-26 16:11 Amarendra_Reddy
2008-03-27 8:56 ` Laurent Pinchart
0 siblings, 1 reply; 6+ messages in thread
From: Amarendra_Reddy @ 2008-03-26 16:11 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
We are working on implementation of the USB host controller driver for the
MPC8272ADS (eval board).
The USB Host controller on MPC8272 chip is neither UHCI nor OHCI compliant.
We downloaded the project cpm2usb and the patches created by Mr.Mike
Rapoport from http://cpm2usb.sourceforge.net
We integrated the 'm82xx-hcd' into the 2.6.10 source with few changes to usb
data structures (usb_hcd,usb_device,usb_host_endpoint) and to struct
hc_driver. Also updated the function ''tx_err' present in m82xx-hcd.c.
The output from console:
---------------------------------------------------------------------------
NET: Registered protocol family 16
mpc8272ads: Init
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of device 0000:00:00.0
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xf0011a00 (irq = 40) is a CPM UART
ttyCPM1 at MMIO 0xf0011a60 (irq = 43) is a CPM UART
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
loop: loaded (max 8 devices)
fs_enet.c:v1.0 (Aug 8, 2005)
fs_enet: eth0 Phy @ 0x0, type DM9161 (0x0181b881)
fs_enet: eth1 Phy @ 0x3, type DM9161 (0x0181b881)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
USB Universal Host Controller Interface driver v2.2
sl811: driver sl811-hcd, 06 Dec 2004
=> driver mpc82xx-hcd, 2005
mpc82xx-hcd mpc82xx-hcd3: PQ2 intergrated USB controller v0.1
mpc82xx-hcd mpc82xx-hcd3: new USB bus registered, assigned bus number 1
Oops: kernel access of bad area, sig: 11 [#1]
PREEMPT
--------------------------------------------------------------------------
I have a little knowledge of USB support by Linux.
If anyone has any clues or faced such a problem,
it would be of great help if you could reply or give any suggestion.
Thanks in advance
Amarendra Reddy
--
View this message in context: http://www.nabble.com/Help-on-MPC82XX-USB-Host-controller-Development-using-m82xx-hcd.-tp16304553p16304553.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.
2008-03-26 16:11 Help on MPC82XX USB Host controller Development using m82xx-hcd Amarendra_Reddy
@ 2008-03-27 8:56 ` Laurent Pinchart
2008-04-04 14:47 ` Help required " Amarendra_Reddy
2008-06-04 10:12 ` Help " gforgcc
0 siblings, 2 replies; 6+ messages in thread
From: Laurent Pinchart @ 2008-03-27 8:56 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: Amarendra_Reddy
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
Hi Amarendra,
On Wednesday 26 March 2008 17:11, Amarendra_Reddy wrote:
>
> Hi all,
>
> We are working on implementation of the USB host controller driver for the
> MPC8272ADS (eval board).
>
> The USB Host controller on MPC8272 chip is neither UHCI nor OHCI compliant.
>
> We downloaded the project cpm2usb and the patches created by Mr.Mike
> Rapoport from http://cpm2usb.sourceforge.net
>
> We integrated the 'm82xx-hcd' into the 2.6.10 source with few changes to usb
> data structures (usb_hcd,usb_device,usb_host_endpoint) and to struct
> hc_driver. Also updated the function ''tx_err' present in m82xx-hcd.c.
The cpm2usb project isn't maintained. If possible you should upgrade to a more
recent kernel and switch to the powerpc architecture where a new USB driver
called fhci is available.
The MPC872ADS is supported in recent kernels so switching shouldn't be too
difficult.
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help required on MPC82XX USB Host controller Development using m82xx-hcd.
2008-03-27 8:56 ` Laurent Pinchart
@ 2008-04-04 14:47 ` Amarendra_Reddy
2008-06-04 10:12 ` Help " gforgcc
1 sibling, 0 replies; 6+ messages in thread
From: Amarendra_Reddy @ 2008-04-04 14:47 UTC (permalink / raw)
To: linuxppc-embedded
Hi Laurent,
Thanks for your reply.
Most of the modules of the new product(based on Kernrel 2.6.10) are
completed, except for the USB module. Hence we have to work with the kernre=
l
2.6.10 even for USB module.
We integrated cmp2usb project into Kernel 2.6.10, and with some
modifications and compiled the kernel successfully.
When pendrive is inserted into the USB port we are facing the below
mentioned problems.
(sorry for a lengthy posting)
We would be thankful if you / anyone could suggest us with some solution or
idea or an alternative approach.
Given below is the Console Output=20
CASE 1: When pendrive is inserted "Directly to USB port of the 8272ADS
board".
CASE 2: When pendrive is inserted on an "External hub which is conntected t=
o
USB port of 8272ADS board".
Output from console:
CASE 1: Pendrive Directly connected to uSB port of the 8272ADS board
USB Universal Host Controller Interface driver v2.2
Registering platform device 'mpc82xx-hcd.3'. Parent at platform
=3D> driver mpc82xx-hcd, 2005
mpc82xx-hcd mpc82xx-hcd.3: PQ2 intergrated USB controller v0.1
mpc82xx-hcd mpc82xx-hcd.3: new USB bus registered, assigned bus number 1
usb usb1: Product: PQ2 intergrated USB controller v0.1
usb usb1: Manufacturer: Linux 2.6.10_mvl401-8272ads mpc82xx-hcd
usb usb1: SerialNumber: mpc82xx-hcd.3
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
PQ2USB: debug file creation
........after SANDISK pendrive inserted.........
usb 1-1: new full speed USB device using mpc82xx-hcd and address 2
usb 1-1: Product: U3 Cruzer Micro
usb 1-1: Manufacturer: SanDisk Corporation
Oops: Exception in kernel mode, sig: 4 [#1]
........after unknown/generic manufacturer's pendrive inserted.......
usb 1-1: new full speed USB device using mpc82xx-hcd and address 2
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using mpc82xx-hcd and address 3
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using mpc82xx-hcd and address 4
usb 1-1: device not accepting address 4, error -110
usb 1-1: new full speed USB device using mpc82xx-hcd and address 5
usb 1-1: device not accepting address 5, error -110
CASE 2: Pendrive is inserted on an "External hub which is conntected to USB
port of 8272ADS board".
USB Universal Host Controller Interface driver v2.2
sl811: driver sl811-hcd, 19 May 2005
Registering platform device 'mpc82xx-hcd.3'. Parent at platform
=3D> driver mpc82xx-hcd, 2005
mpc82xx-hcd mpc82xx-hcd.3: PQ2 intergrated USB controller v0.1
mpc82xx-hcd mpc82xx-hcd.3: new USB bus registered, assigned bus number 1
usb usb1: Product: PQ2 intergrated USB controller v0.1
usb usb1: Manufacturer: Linux 2.6.10_mvl401-8272ads mpc82xx-hcd
usb usb1: SerialNumber: mpc82xx-hcd.3
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
PQ2USB: debug file creation
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
.......after SANDISK pendrive inserted........
usb 1-1.3: new full speed USB device using mpc82xx-hcd and address 3
usb 1-1.3: Product: U3 Cruzer Micro
usb 1-1.3: Manufacturer: SanDisk Corporation
usb 1-1.3: can't set config #1, error -110
hub 1-1:1.0: cannot disable port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: Cannot enable port 3. Maybe the USB cable is bad?
hub 1-1:1.0: cannot disable port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: Cannot enable port 3. Maybe the USB cable is bad?
hub 1-1:1.0: cannot disable port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: cannot reset port 3 (err =3D -110)
hub 1-1:1.0: Cannot enable port 3. Maybe the USB cable is bad?
hub 1-1:1.0: cannot disable port 3 (err =3D -110)
hub 1-1:1.0: cannot disable port 3 (err =3D -110)
hub 1-1:1.0: hub_port_status failed (err =3D -110)
........after unknown manufacturer's pendrive inserted...........
usb 1-1.1: new full speed USB device using mpc82xx-hcd and address 7
usb 1-1.1: Product: Mass Storage Device
usb 1-1.1: Manufacturer: Generic
usb 1-1.1: SerialNumber: 6EOG5LAF
scsi0 : SCSI emulation for USB Mass Storage devices
floating point used in kernel (task=3Dc0306050, pc=3Dc022a5f8)
Oops: Exception in kernel mode, sig: 4 [#1]
Thanks & Regards
Amarendra Reddy
--------------------------------------------------------
Laurent Pinchart-4 wrote:
>=20
> Hi Amarendra,
>=20
> On Wednesday 26 March 2008 17:11, Amarendra_Reddy wrote:
>>=20
>> Hi all,
>>=20
>> We are working on implementation of the USB host controller driver for
>> the
>> MPC8272ADS (eval board).=20
>>=20
>> The USB Host controller on MPC8272 chip is neither UHCI nor OHCI
>> compliant.=20
>>=20
>> We downloaded the project cpm2usb and the patches created by Mr.Mike
>> Rapoport from http://cpm2usb.sourceforge.net
>>=20
>> We integrated the 'm82xx-hcd' into the 2.6.10 source with few changes to
>> usb
>> data structures (usb_hcd,usb_device,usb_host_endpoint) and to struct
>> hc_driver. Also updated the function ''tx_err' present in m82xx-hcd.c.
>=20
> The cpm2usb project isn't maintained. If possible you should upgrade to a
> more=20
> recent kernel and switch to the powerpc architecture where a new USB
> driver=20
> called fhci is available.
>=20
> The MPC872ADS is supported in recent kernels so switching shouldn't be to=
o=20
> difficult.
>=20
> Best regards,
>=20
> --=20
> Laurent Pinchart
> CSE Semaphore Belgium
>=20
> Chauss=C3=A9e de Bruxelles, 732A
> B-1410 Waterloo
> Belgium
>=20
> T +32 (2) 387 42 59
> F +32 (2) 387 42 75
>=20
> =20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
--=20
View this message in context: http://www.nabble.com/Help-on-MPC82XX-USB-Hos=
t-controller-Development-using-m82xx-hcd.-tp16304553p16491756.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.
2008-03-27 8:56 ` Laurent Pinchart
2008-04-04 14:47 ` Help required " Amarendra_Reddy
@ 2008-06-04 10:12 ` gforgcc
2008-06-04 10:29 ` Laurent Pinchart
1 sibling, 1 reply; 6+ messages in thread
From: gforgcc @ 2008-06-04 10:12 UTC (permalink / raw)
To: linuxppc-embedded
Laurent Pinchart-4 wrote:
>
> The cpm2usb project isn't maintained. If possible you should upgrade to a
> more
> recent kernel and switch to the powerpc architecture where a new USB
> driver
> called fhci is available.
>
> The MPC872ADS is supported in recent kernels so switching shouldn't be too
> difficult.
>
>
Hi Laurent,
i have some basic queries, i have some knowledge on what is UHCI or OHCI,
but can you please brief me what is FHCI and some info regarding this ?
googling on this dint help me much.. :(
we are using powerpc architecture with latest kernel 2.6.25.. and trying to
implement the USB host controller driver and have similar problems..
Thanks and Regards,
Naren.
--
View this message in context: http://www.nabble.com/Help-on-MPC82XX-USB-Host-controller-Development-using-m82xx-hcd.-tp16304553p17643409.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.
2008-06-04 10:12 ` Help " gforgcc
@ 2008-06-04 10:29 ` Laurent Pinchart
2008-06-04 10:47 ` gforgcc
0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2008-06-04 10:29 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: gforgcc
[-- Attachment #1: Type: text/plain, Size: 1819 bytes --]
Hi Naren,
On Wednesday 04 June 2008 12:12, gforgcc wrote:
>
> Laurent Pinchart-4 wrote:
> >
> > The cpm2usb project isn't maintained. If possible you should upgrade to a
> > more recent kernel and switch to the powerpc architecture where a new USB
> > driver called fhci is available.
> >
> > The MPC872ADS is supported in recent kernels so switching shouldn't be too
> > difficult.
> >
> >
>
> Hi Laurent,
> i have some basic queries, i have some knowledge on what is UHCI or OHCI,
> but can you please brief me what is FHCI and some info regarding this ?
> googling on this dint help me much.. :(
FHCI stands for Freescale Host Controller Interface. The term is unofficial
and not referenced in the CPM documentation.
> we are using powerpc architecture with latest kernel 2.6.25.. and trying to
> implement the USB host controller driver and have similar problems..
The good news is that Anton Vorontsov wrote and posted a FHCI driver for
QE-based parts on the linux-ppc mailing list (search the archive for "[PATCH]
Freescale QUICC Engine USB Host Controller"). The driver can be easily
modified to work with CPM2-based parts.
The bad news is that, from my experience with the CPM2, the controller is
almost unusable. It eats around 40% CPU time on my MPC8248 system, and
requires software help to generate SOF tokens, which results in bad SOF
tokens being sent on the bus. Most USB disks don't seem to care, but all the
USB Bluetooth host controllers I've tested crashed.
We will be looking for an external USB host controller (or even another CPU)
for the next revision of the design.
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.
2008-06-04 10:29 ` Laurent Pinchart
@ 2008-06-04 10:47 ` gforgcc
0 siblings, 0 replies; 6+ messages in thread
From: gforgcc @ 2008-06-04 10:47 UTC (permalink / raw)
To: linuxppc-embedded
Laurent Pinchart-4 wrote:
>
>
> The good news is that Anton Vorontsov wrote and posted a FHCI driver for
> QE-based parts on the linux-ppc mailing list (search the archive for
> "[PATCH]
> Freescale QUICC Engine USB Host Controller"). The driver can be easily
> modified to work with CPM2-based parts.
>
> The bad news is that, from my experience with the CPM2, the controller is
> almost unusable. It eats around 40% CPU time on my MPC8248 system, and
> requires software help to generate SOF tokens, which results in bad SOF
> tokens being sent on the bus. Most USB disks don't seem to care, but all
> the
> USB Bluetooth host controllers I've tested crashed.
>
> We will be looking for an external USB host controller (or even another
> CPU)
> for the next revision of the design.
>
>
oh.. woww.. great info... :) :) thanks a million..
Right now I am just trying to get a USB -WiFi adapter working with EP8248
board. Did you have a go at any USB WiFi devices?
Yes hogging processor for 40% of time is a big issue...I guess at this
moment I don't have any other options like respining or using 83xx
processors so I would like to give a try with this once. Do you have a
patch for getting the CPM2 posted any where? If not can you send me the
patch.
Thanks and Regards
Naren.
--
View this message in context: http://www.nabble.com/Help-on-MPC82XX-USB-Host-controller-Development-using-m82xx-hcd.-tp16304553p17643915.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-06-04 10:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 16:11 Help on MPC82XX USB Host controller Development using m82xx-hcd Amarendra_Reddy
2008-03-27 8:56 ` Laurent Pinchart
2008-04-04 14:47 ` Help required " Amarendra_Reddy
2008-06-04 10:12 ` Help " gforgcc
2008-06-04 10:29 ` Laurent Pinchart
2008-06-04 10:47 ` gforgcc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).