Skip to contentSkip to conversation

PPC440EP USB1.1 Host Error

U-Boot 조기성 2 participants 2 messages Nov 7, 2008 – Nov 18, 2008

lore
Share & tools
lore

조기성

author
#0 lore raw

Hi , I'm using ppc440EP and using u-boot( git version )

I have a ploblem in using usb 1.1 host , in my board(has not CPLD)

I wanna using USB1.1 Host , and not using USB2.2
But usb1.1 Host is not working , when usb device is connected Kernel prints -62 err messages

How can I Slove it?

Best Regards.
Steven
____________________________________________________________________________
_____________________________
Hit any key to stop autoboot: 0
=> usb start
(Re)start USB...
USB: USB 1.1 Device init
scanning bus for devices... ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token d
not provide a handshake (OUT) (5)
ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token (IN) or did
not provide a handshake (OUT) (5)
2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Kernel Error Message

# usb 1-1: new low speed USB device using ppc-soc-ohci and address 2 
usb 1-1: device descriptor read/64, error -62 
usb 1-1: device descriptor read/64, error -62 
usb 1-1: new low speed USB device using ppc-soc-ohci and address 3 
usb 1-1: device descriptor read/64, error -62 
usb 1-1: device descriptor read/64, error -62 
usb 1-1: new low speed USB device using ppc-soc-ohci and address 4 
usb 1-1: device not accepting address 4, error -62 
usb 1-1: new low speed USB device using ppc-soc-ohci and address 5 
usb 1-1: device not accepting address 5, error -62

____________________________________________________________________________
_____________________________

/* It's my test code , but not working
int board_early_init_f(void)
{
...

#if 1 //steven added
	//mfsdr(sdr_usb0, sdr0_usb0);
	//sdr0_usb0 = sdr0_usb0 &~SDR0_USB0_USB_DEVSEL_MASK;
	//sdr0_usb0 = sdr0_usb0 | SDR0_USB0_USB11D_DEVSEL;
	//mtsdr(sdr_usb0, sdr0_usb0);

	mfsdr(sdr_usb0, sdr0_usb0);
	sdr0_usb0 = sdr0_usb0 &~SDR0_USB0_LEEN_MASK;
	sdr0_usb0 = sdr0_usb0 | SDR0_USB0_LEEN_ENABLE;
	mtsdr(sdr_usb0, sdr0_usb0);

#endif

}
---------------------------------------------------------------------
6F Lotte IT Castle II 550-1 Gasan-dong,
Geumcheon-gu, Seoul, 153-768, Korea
Research Engineer/R&D software Team
Tel: 82-2-890-1657(Direct)
FAX:02-890-1639

#1 lore raw

Hello Steven,

Quoted 5 lines

I have a ploblem in using usb 1.1 host , in my board(has not CPLD) I wanna using USB1.1 Host , and not using USB2.2
But usb1.1 Host is not working , when usb device is connected Kernel prints -62 err messages
How can I Slove it?

Sorry for the late reply.

Looking at the logging, it seems that you are using the common OHCI driver. The logging I see appears familiar to me.
It happens sometimes on some controllers (I do not expect it is USB stick related). It looks a bit like a startup issue, on our CPUs it occurs very infrequently and the problem is usually gone after a single reset. I still want to figure why it is happening sometimes.

Another option, which is more likely here, because the Linux kernel also has the same problem, is that the board specific initialisation is not entirely correct. Similar errors are also seen when the 48 MHz is not available (or configured wrong, at wrong frequency) for the OHCI controller. Usually U-boot needs to set up board timing, PLLs, etc. correct, the Linux kernel can depend on the bootloader configuration, but that might be different per architecture.

Kind Regards,

Remy

Quoted 69 lines

Best Regards.
Steven
____________________________________________________________________________
_____________________________
Hit any key to stop autoboot: 0
=> usb start
(Re)start USB...
USB: USB 1.1 Device init
scanning bus for devices... ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token d
not provide a handshake (OUT) (5)
ERROR: USB-error: DEVICENOTRESPONDING: Device did not respond to token (IN) or did
not provide a handshake (OUT) (5)
2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Kernel Error Message

# usb 1-1: new low speed USB device using ppc-soc-ohci and address 2
usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: new low speed USB device using ppc-soc-ohci and address 3
usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: new low speed USB device using ppc-soc-ohci and address 4
usb 1-1: device not accepting address 4, error -62
usb 1-1: new low speed USB device using ppc-soc-ohci and address 5
usb 1-1: device not accepting address 5, error -62

____________________________________________________________________________
_____________________________

/* It's my test code , but not working
int board_early_init_f(void)
{
...

#if 1 //steven added
       //mfsdr(sdr_usb0, sdr0_usb0);
       //sdr0_usb0 = sdr0_usb0 &~SDR0_USB0_USB_DEVSEL_MASK;
       //sdr0_usb0 = sdr0_usb0 | SDR0_USB0_USB11D_DEVSEL;
       //mtsdr(sdr_usb0, sdr0_usb0);

       mfsdr(sdr_usb0, sdr0_usb0);
       sdr0_usb0 = sdr0_usb0 &~SDR0_USB0_LEEN_MASK;
       sdr0_usb0 = sdr0_usb0 | SDR0_USB0_LEEN_ENABLE;
       mtsdr(sdr_usb0, sdr0_usb0);

#endif

}
---------------------------------------------------------------------
6F Lotte IT Castle II 550-1 Gasan-dong,
Geumcheon-gu, Seoul, 153-768, Korea
Research Engineer/R&D software Team
Tel: 82-2-890-1657(Direct)
FAX:02-890-1639

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot