Help on MPC82XX USB Host controller Development using m82xx-hcd.

6 messages, 3 authors, 2008-06-04 · open the first message on its own page

Help on MPC82XX USB Host controller Development using m82xx-hcd.

From: Amarendra_Reddy <hidden>
Date: 2008-03-26 16:11:06

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

19 more lines

Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.

From: Laurent Pinchart <hidden>
Date: 2008-03-27 08:56:16

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

Re: Help required on MPC82XX USB Host controller Development using m82xx-hcd.

From: Amarendra_Reddy <hidden>
Date: 2008-04-04 14:47:10

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

93 more lines

=20
Hi Amarendra,
=20
On Wednesday 26 March 2008 17:11, Amarendra_Reddy wrote:
quoted
=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.

Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.

From: gforgcc <hidden>
Date: 2008-06-04 10:13:04



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.

Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.

From: Laurent Pinchart <hidden>
Date: 2008-06-04 10:29:36

Hi Naren,

On Wednesday 04 June 2008 12:12, gforgcc wrote:
Laurent Pinchart-4 wrote:
quoted
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

Re: Help on MPC82XX USB Host controller Development using m82xx-hcd.

From: gforgcc <hidden>
Date: 2008-06-04 10:47:59


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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help