2009-09-10 22:44:04     Usb failed on uclinux2009r1-rc6 on bf532 board

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-09-10 22:44:04     Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79759   

 

Hi,all

 

I'm try to use sl811-hcd for usb on 532 board. but there is oops when insert the usb device.

 

------------------------------------------------------------------------------------------------------------------------

 

root:/> usb 1-1: new full speed USB device using sl811-hcd and address 7

usb 1-1: device descriptor read/64, error -62

usb 1-1: device descriptor read/64, error -62

usb 1-1: new full speed USB device using sl811-hcd and address 8

Data access CPLB miss

- Used by the MMU to signal a CPLB miss on a data access.

Kernel OOPS in progress

Deferred Exception context

 

No Valid process in current context

return address: [0x0010239a]; contents of:

0x00102370:  e420  0012  5007  0c07  e620  0012  1c10  916a

0x00102380:  6080  3259  320f  9b10  ac6a  e0b2  1008  0031

0x00102390:  0000  0000  0024  9910  0041 [9a18] 3290  6009

0x001023a0:  e482  000a  a250  4091  5808  b250  e120  ff8d

 

ADSP-BF532-0.5 400(MHz CCLK) 133(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1astfin

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000026  IPEND: 9030  SYSCFG: 0006

  EXCAUSE   : 0x26

  interrupts disabled

  physical IVG5 asserted : <0xffa08bf8> { _evt_ivhw + 0x0 }

  physical IVG12 asserted : <0xffa08d3c> { _evt_evt12 + 0x0 }

  physical IVG15 asserted : <0xffa08d54> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa08334> { _timer_interrupt + 0x0 }

  logical irq  21 mapped  : <0x000cdfe8> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  22 mapped  : <0x000ce24c> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  40 mapped  : <0x000f4bc8> { _usb_hcd_irq + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

 

Double Fault

Kernel OOPS in progress

Deferred Exception context

 

No Valid process in current context

return address: [0x00003c2c]; contents of:

0x00003c00:  b233  0000  4f6e  2001  e12a  00a0  e521  0028

0x00003c10:  3261  4414  3044  0820  18b4  0c05  182a  0000

0x00003c20:  0000  0000  e523  002a  0c43  1bef [e51a] 0050

0x00003c30:  0c42  1811  0000  0000  0000  ac55  a068  0987

 

ADSP-BF532-0.5 400(MHz CCLK) 133(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1astfin

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060024  IPEND: 0480  SYSCFG: 0006

  EXCAUSE   : 0x24

  physical IVG7 asserted : <0xffa08d00> { _evt_evt7 + 0x0 }

  physical IVG10 asserted : <0xffa08d24> { _evt_evt10 + 0x0 }

  logical irq   6 mapped  : <0xffa08334> { _timer_interrupt + 0x0 }

  logical irq  21 mapped  : <0x000cdfe8> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  22 mapped  : <0x000ce24c> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  40 mapped  : <0x000f4bc8> { _usb_hcd_irq + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

-----------------------------------------------------

 

And here is the board resource configure

 

-------------------------------------------------------------------

 

static struct resource sl811_hcd_resources[]={

{

  .start = CONFIG_IP0X_USB,

  .end   = CONFIG_IP0X_USB + 1,

  .flags = IORESOURCE_MEM,

},{

  .start = CONFIG_IP0X_USB + 0x20,

  .end   = CONFIG_IP0X_USB + 0x20+1,

  .flags = IORESOURCE_MEM,

},{

  .start = IRQ_PF7,

  .end   = IRQ_PF7,

  .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,

},

};

 

--------------------------------------------------------------------

 

I doubt the irq was conflict with others. but i can't find out.

 

Any advance will be appreciate.

 

Thanks

 

Roy

QuoteReplyEditDelete

 

 

2009-09-11 13:08:06     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Robin Getz (UNITED STATES)

Message: 79813   

 

Roy:

 

Thanks for reporting - first we need to figure out why it is double faulting - then it should be easy to pick out the other error.

 

Can you re-build the kernel with CONFIG_DEBUG_DOUBLEFAULT and DEBUG_DOUBLEFAULT_RESET turned on? on the next boot - it should say where the doublefault happened, and we can track it down from there...

 

-Robin

QuoteReplyEditDelete

 

 

2009-09-11 21:40:56     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79815   

 

Robin:

 

     Thanks.

 

    I have rebuild the kernel with CONFIG_DEBUG_DOUBLEFAULT and DEBUG_DOUBLEFAULT_RESE,and reboot.It show the same error message:

 

 

root:/> usb 1-1: new full speed USB device using sl811-hcd and address 2

Data access CPLB miss

- Used by the MMU to signal a CPLB miss on a data access.

Kernel OOPS in progress

Deferred Exception context

 

No Valid process in current context

return address: [0x001017b6]; contents of:

0x00101790:  5007  0c07  e620  0012  1c10  916a  6080  3259

0x001017a0:  320f  9b10  ac6a  e0b2  1008  0031  0000  0000

0x001017b0:  0024  9910  0041 [9a18] 3290  6009  e482  000a

0x001017c0:  a250  4091  5808  b250  e120  ff8d  0803  1762

 

ADSP-BF532-0.5 400(MHz CCLK) 133(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1astfin

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000026  IPEND: 9030  SYSCFG: 0006

  EXCAUSE   : 0x26

  interrupts disabled

  physical IVG5 asserted : <0xffa08c60> { _evt_ivhw + 0x0 }

  physical IVG12 asserted : <0xffa08da4> { _evt_evt12 + 0x0 }

  physical IVG15 asserted : <0xffa08dbc> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa08334> { _timer_interrupt + 0x0 }

 

Double Fault

Kernel OOPS in progress

Deferred Exception context

 

No Valid process in current context

return address: [0x00003c2c]; contents of:

0x00003c00:  b233  0000  4f6e  2001  e12a  00a0  e521  0028

0x00003c10:  3261  4414  3044  0820  18b4  0c05  182a  0000

0x00003c20:  0000  0000  e523  002a  0c43  1bef [e51a] 0050

0x00003c30:  0c42  1811  0000  0000  0000  ac55  a068  0987

 

ADSP-BF532-0.5 400(MHz CCLK) 133(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1astfin

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060026  IPEND: 0480  SYSCFG: 0006

  EXCAUSE   : 0x26

  physical IVG7 asserted : <0xffa08d68> { _evt_evt7 + 0x0 }

  physical IVG10 asserted : <0xffa08d8c> { _evt_evt10 + 0x0 }

  logical irq   6 mapped  : <0xffa08334> { _timer_interrupt + 0x0 }

 

 

 

and IT stop here,no reset no anything else happen.

 

       I use sl811 as usb driver,and PF7 is the interrupt pin,with the uClinux 2009R1.Should i config the PF7 interrupt mode by myself,just like bfin_write_FIO_DIR,bfin_write_FIO_EDGE,bfin_write_FIO_POLAR!?

 

 

QuoteReplyEditDelete

 

 

2009-09-11 23:36:57     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79816   

 

Hi Robin:

 

           More message:

 

root:/> usb 1-1: new full speed USB device using sl811-hcd and address 2

Data access CPLB miss

- Used by the MMU to signal a CPLB miss on a data access.

Kernel OOPS in progress

Deferred Exception context

 

Double Fault

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=  PID=1450464884

CPU = 69287936

QuoteReplyEditDelete

 

 

2009-09-12 21:28:20     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79835   

 

Hi Robin:

 

Our 532board can run usb device via 2008r1 uclinux well.

 

Regards

 

Roy

QuoteReplyEditDelete

 

 

2009-09-13 04:24:39     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79841   

 

Hi Robin:

 

We use the 2009 release toolchain too.

 

 

 

Roy

QuoteReplyEditDelete

 

 

2009-09-13 23:38:53     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Sonic Zhang (CHINA)

Message: 79851   

 

I create a bug in bug tracker.

 

  blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=5531

QuoteReplyEditDelete

 

 

2009-09-14 03:58:24     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Sonic Zhang (CHINA)

Message: 79867   

 

What kind of USB device do you use?

QuoteReplyEditDelete

 

 

2009-09-14 04:25:54     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79868   

 

Hi Sonic:

 

    I want to use usb modem(CDC_ACM),and test use usb mass storage(U盘).When i inserd the USB Mass Storage(U盘) to the USB,The error message appear!

QuoteReplyEditDelete

 

 

2009-09-14 04:48:42     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Sonic Zhang (CHINA)

Message: 79869   

 

We can't replicate your problem on bf537-stamp. We are trying again on bf533-ezkit and will let you know the result.

QuoteReplyEditDelete

 

 

2009-09-15 04:42:48     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 79926   

 

Hi,Sonic

 

In order to solve this problem  we can support our bf532 custom board.

 

Regards

 

Roy

QuoteReplyEditDelete

 

 

2009-09-16 04:04:40     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Sonic Zhang (CHINA)

Message: 80013   

 

Could you please also attach your kernel configure file here?

QuoteReplyEditDelete

 

 

2009-09-16 04:31:06     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 80015   

 

Here is the configs.

 

config.device

config.linux-2.6.x

config.vendor-2.6.x

QuoteReplyEditDelete

 

 

2009-09-17 08:20:49     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 80078   

 

Hi,Sonic

 

The uclinux 2008r1.5 usb driver run well on my bf532 custom board. but it doesnot support  mult_fr1x32x32 fixed point function which i need. So i move to uclinux2009r1-rc6 kernel. but it's usb driver is broken. I know down grade is fool, but If the 2008toolchain can support mult_fr1x32x32 is another choice for me currently. Is there workable to improve the mult_fr1x32x32 function at 2008toolchain ?

 

Roy

QuoteReplyEditDelete

 

 

2009-09-17 10:18:52     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Robin Getz (UNITED STATES)

Message: 80081   

 

Roy:

 

I think the plan is to get your hardware, replicate what the problem is, and determine what is going on with 2009 release.

 

I don't think it will take very long after we get your hardware.

 

-Robin

QuoteReplyEditDelete

 

 

2009-09-21 06:54:53     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

Michael Hennerich (GERMANY)

Message: 80187    You run SCLK @ 133MHz the SL811 driver won't work without the

DUMMY_DELAY option enabled!

>CONFIG_NO_DUMMY_DELAY=y

 

Adjust the EBIU timings of the bank the SL811 is connected to.

Then set a proper DUMMY_DELAY bank that fits the additional cycles of

delay needed to talk to the SL811.

 

I'm sure that will fix your problem.

 

-Michael

QuoteReplyEditDelete

 

 

2009-09-21 22:40:05     Re: Usb failed on uclinux2009r1-rc6 on bf532 board

roy xue (CHINA)

Message: 80206   

 

Hi, Michael

 

Thanks for help. We slow down the EBIU and the USB work now.

 

Regards,

 

Roy

Outcomes