Dear Sir,

We have a custom board based on PowerPC 823 with 16 Mbyte of RAM, ethernet,
USB host mode and  direct PCMCIA - IDE  iterface with a Compact Flash
running Linux kernel   2.4.4, downloaded from Denx site.
To have USB working in host mode, we have a external 48Mhz signal aplied in
PA7 (CLK1) pin and a external 1Khz signal in PC15 (DREQ0), both signals in
sync with 72 Mhz system clock. Also, we have installed the USB microcode
patch and  because  our USB tranceiver can "hear" it's own SOF being send,
we don't need TIMER2 interrupt, but we need TIMER2 to know the time left to
the following SOF. Here there are changes made in the m8xxhci.c driver:
#ifdef CONFIG_CNC8055
#define USE_PA7_CLK1 /* 48mhz clock
via CLK1 */
#define USB_XCVER_ECHOS_SOF
#define USE_TIMER2_FOR_SOF
#endif   /* CONFIG_CNC8055 */
#ifndef CONFIG_CNC8055
cpm_install_handler(CPMVEC_TIMER2,
m8xxhci_timer_interrupt, (void *)0);
/* make pa4 (tout2*) an output */
                                immap->im_ioport.iop_padir |=
        PA_DR4;
        immap->im_ioport.iop_papar |= PA_DR4;
#endif /* !CONFIG_CNC8055 */

With thouse changes, it seems everything works correctly, becuse we can
manage files from a USB pendrive. But after mounting de pendrive, if we see
proc file system information "cat /proc/driver/usb" we can see that the
driver has had 238 transmision errors. What does it means?
USB host controller v1.3:
        controller enabled
        root hub port state connected, status
        CCS PES PPS
        ints: cpm 37452, timer 0, isrs 37452
idle 37452, rst 0, bsy 0, rxb 129,
        txb 169
        errs: tx0 238, timeout 0, underrun 0
rx  0, nak 238, stall 0, mismatch 0
comp: iso 0, intr 1, ctrl 12, bulk 49
root hub sends 151
                               retransmits    0
                               tx restarts    238

        frame lists: current c036c560, next c036c594
        active_qe: 00000000
        current: c036c560, total_bytes 0
        next: c036c594, total_bytes 0
        event message:
        event logging: disabled

Also,   we can copy a 800Kbytes file form  USB pendrive to a  Compact 
flash, a 8 Mbytes file from USB pendrive to a ram file system, but if we 
        copy a 8 Mbytes file from  USB pendrive to a  Compact flash, we have
the 
        following errors:

<4>unlink_urb(urbÀ7699e0,qtype=3) status -115 <4>unlink_urb(urbÀ7699e0) done
<4> I/O error: dev 08:01, sector 2483 <4> I/O error: dev 08:01, sector 2499
<4> I/O error: dev 08:01, sector 2504 <4> I/O error: dev 08:01, sector 2550
<4> I/O error: dev 08:01, sector 2583 <4> I/O error: dev 08:01, sector 2588
<4> I/O error: dev 08:01, sector 2635 <4> I/O error: dev 08:01, sector 2643
<4> I/O error: dev 08:01, sector 2656 <4> I/O error: dev 08:01, sector 2662
<4> I/O error: dev 08:01, sector 2665 <4> I/O error: dev 08:01, sector 2673
<4> I/O error: dev 08:01, sector 2678 <4> I/O error: dev 08:01, sector 2683
<4> I/O error: dev 08:01, sector 2688 <4> I/O error: dev 08:01, sector 2692
<4> I/O error: dev 08:01, sector 2699 <4> I/O error: dev 08:01, sector 2892
<4> I/O error: dev 08:01, sector 2895 <4> I/O error: dev 08:01, sector 2946
<4> I/O error: dev 08:01, sector 3426 <4> I/O error: dev 08:01, sector 3437
<4> I/O error: dev 08:01, sector 3468 <4> I/O error: dev 08:01, sector 3483
<4> I/O error: dev 08:01, sector 3507 <4> I/O error: dev 08:01, sector 3511
<4> I/O error: dev 08:01, sector 3550 <4> I/O error: dev 08:01, sector 3583
<4> I/O error: dev 08:01, sector 3637 <4> I/O error: dev 08:01, sector 3749
<4> I/O error: dev 08:01, sector 4047 <4> I/O error: dev 08:01, sector 2000
<4> I/O error: dev 08:01, sector 2483 <4> I/O error: dev 08:01, sector 2000
<4>dev = 08:01, ino = 32006 <4>Filesystem panic (dev 08:01).
        <4>  msdos_write_inode: unable to read
        i-node block
        <4>  File system has been set read-only
We think that it could be posible  1Khz signal is not exactly in  sync with
the timer, but we are not sure this is the real  problem.
The new 2.4.24 kernel has better USB support than 2.4.4?
Please, Could you help us finding our problem?
Thanks in advance.


Igor Luri Bravo
Tecnico I+D Software
Fagor Automation S. Coop.
P. O. Box 144
E-20500 Mondragón-Arrasate
Tel. ++34 943 71 92 00 - ++34 943 03 98 00
Fax. ++34 943 79 17 12
www.fagorautomation.com <http://www.fagorautomation.com> 

*       Este mensaje y los documentos que, en su caso, lleve anexos, pueden
contener información confidencial. Por ello, se informa a quien lo reciba
por error que la información contenida en el mismo es reservada y su uso no
autorizado está prohibido legalmente, por lo que en tal caso le rogamos que
nos lo comunique por la misma vía , se abstenga de realizar copias del
mensaje o remitirlo o entregarlo a otra persona y proceda a borrarlo de
inmediato.
*        Mezu honek eta txertatuta eraman ditzakeen dokumentuek informazio
konfidentziala izan dezakete. Hori dela eta, nahi gabe hartzen duenari
jakinarazten zaio bertako informazioa erreserbatua  dela eta baimenik gabe
erabiltzea legez debekatuta dagoela; horregatik, bide beretik guri
jakinarazteko eskatzen diogu, eta aldi berean  mezuaren kopiarik ez egiteko,
beste pertsona bati ez emateko eta berehala ezabatzeko erregutzen diogu."
*       This message together with any documents attached may contain
confidential information. You are informed that if you should receive it by
mistake, the information it contains is reserved and its use is not
authorized. It is legally prohibited. If you have received this message by
mistake, please let us know as soon as possible by e-mail. Do not make any
copies of the message, nor send it or give it to anybody else. Please delete
it right away.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to