Do any of the publically available recipes for the TWR LS1021a board support USB devices?

cancel
Showing results for 
Search instead for 
Did you mean: 

Do any of the publically available recipes for the TWR LS1021a board support USB devices?

1,058 Views
tafthorne
Contributor III

I have a TWR-LS1021a board that I have tried to boot an updated Kernel and filesystem image on.  It does not seem to have a functional set of USB 3 device ports though.  When I plug in a USB storage device or serial adapter neither seems to be recognised at all.  

When I started looking at the kernel setup few USB modules were included as part of the usual kernel or core-image-full-cmdline recipes.  So I started trying to build some in but do not seem to be having a lot of success.  

Do any of the standard recipes for the LS1021atwr board include support for the USB ports on the board and perhaps a handful of basic devices?  I was hoping to use them as a comparison for my efforts to see if I could spot where I was going wrong.  

My first guess would be that i need a better set of kernel modules to support USB.  I will keep working on that for now.  

My other guess is that I am still using an old version of u-boot with a new version of linux kernel and that is causing further issues.  It was already explained to me in another thread (eth0 (eTSEC1) On A LS1021a-TWR Board) that my ethernet interface problems were probably related to this.  If my kernel module twiddling does not work, I will bite the bullet and try to get either; a full boot from an SD-Card including loading an updated u-boot from there or update the U-Boot image in one of the device flash banks.  I have been putting off altering the flash images as it is nice to have them to fall back on but it has to happen some time. 

Labels (1)
7 Replies

516 Views
followme
Contributor II

I am running into a similar issue using recipes packaged in SDK 2.0.

I'm seeing:

xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID
xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.
usb usb1-port1: couldn't allocate usb_device

as a result, USB devices are not recognized when plugged in.

the image that was flashed at the factory works correctly and sees USB devices. This makes me, and OP believe that the RCW is correct.

The problem is the images that are build with SDK 2.0.  in my case, I built using fsl-image-full.

Here's my U-boot log:

U-Boot 2015.01+ls1+g3281947 (Jul 30 2015 - 20:01:52)

CPU:   Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)
Clock Configuration:
       CPU0(ARMV7):1000 MHz,
       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),
Reset Configuration Word (RCW):
       00000000: 0608000a 00000000 00000000 00000000
       00000010: 70000000 00007900 e0025a00 21046000
       00000020: 00000000 00000000 00000000 20000000
       00000030: 00080000 881b7340 00000000 00000000
Board: LS1021ATWR
CPLD:  V2.0
PCBA:  V1.0
VBank: 0
I2C:   ready
DRAM:  1 GiB
Using SERDES1 Protocol: 112 (0x70)
Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0
QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1
Flash: 128 MiB
MMC:   FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: Root Complex x1 gen1, regs @ 0x3400000
     01:00.0    - 168c:0030 - Network controller
PCIe1: Bus 00 - 01
PCIe2: Root Complex no link, regs @ 0x3500000
In:    serial
Out:   serial
Err:   serial
SEC0: RNG instantiated
SATA link 0 timeout.
AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc
scanning bus for devices...
Found 0 device(s).
SCSI:  Net:   eTSEC2 is in sgmii mode.
eTSEC1, eTSEC2, eTSEC3 [PRIME]

516 Views
keestrommel
Contributor IV

What is the revision of the LS1021A of your board (rev 1 or 2)?

What version of the SDK do you use?

Take into account that LS1021A rev 1 is only supported by SDK1.7 or SDK1.8 and LS1021A rev 2 is only supported by SDK1.9 or SDK2.0

When I insert a memory stick in LS1021ATWR board running the SDK1.8 Linuxthen its is recognized, see:

root@ls1021atwr:~# usb 2-1.2: new SuperSpeed USB device number 3 using xhci-hcd
usb 2-1.2: Parent hub missing LPM exit latency info. Power management will be impacted.
usb-storage 2-1.2:1.0: USB Mass Storage device detected
scsi1 : usb-storage 2-1.2:1.0
scsi 1:0:0:0: Direct-Access Netac OnlyDisk 1.00 PQ: 0 ANSI: 6
sd 1:0:0:0: [sda] 15765504 512-byte logical blocks: (8.07 GB/7.51 GiB)
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] No Caching mode page found
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] No Caching mode page found
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda:
sd 1:0:0:0: [sda] No Caching mode page found
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk

root@ls1021atwr:~# ls -l /media/sda/
total 16
drwxrwx--- 11 root disk 4096 Nov 19 2014 Hardware
drwxrwx--- 2 root disk 4096 Jun 7 16:48 Software
drwxrwx--- 2 root disk 4096 Jun 10 13:29 System Volume Information
-rwxrwx--- 1 root disk 381 Nov 6 2014 readme.txt

The memory stick is not recognized when doing the same when running SDK2.0. I also get some USB related errors when SDK2.0 Linux starts.

516 Views
tafthorne
Contributor III

Kees Trommel wrote:

What is the revision of the LS1021A of your board (rev 1 or 2)?

What version of the SDK do you use?

 

I believe that I have rev 2 LS1021 TWR board.  I am not sure what version or processor silicon it has on it though.  I know it was more modern than the chip on the LS1021 IOT board that I had been trying to use previously.  

I would have tried to use the version of SDK that came with it... I will look on my CD pile now.  I have CDs for; the LS1021a IOT Rev2 v0.4 SDK, the Freescale QorIQ Linux SDK v1.7 CORTEXA 7 Yocto and the QorIQ Linux SDK v2.0.  I am confident that I tried any of those that had the board as a target before moving on to try and use the Community BSP mentioned here https://community.nxp.com/thread/323782  I think I tried the 1.7, 2.0 and 2.1 versions of the community BSP but I am not sure about the 2.1 version.  

If any of them had worked for me I would be using it now.  Time constraints meant that I moved on to evaluating other processors.  

0 Kudos

516 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Kees Trommel,

We have already tested USB 3.0 working normally on LS1021ATWR  board with SDK 2.0 images.

Did you use the RCW supporting USB 3.0?

What is the manufacturer of your memory stick?

Would you please provide your u-boot and Linux Kernel boot up log?


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

516 Views
viktorkhachtcha
Contributor I

Hi,

I have the same problem with not working USB and worker timeout log messages with SDK 2.

Any updates since January?

Regards,

Viktor

0 Kudos

516 Views
followme
Contributor II

Hi Yiping,

I am trying to get USB working with SDK 2.0 and have not been successful.

My process was:

- install SDK 2.0

-install SDK V2.0-1611

- bitbake -c menuconfig virtual/kernel  (enable cfg80211 and a few wireless drivers)

- bitbake fsl-image-full

the resulting image boots fine but has errors:

xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID
xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.
usb usb1-port1: couldn't allocate usb_device
random: nonblocking pool is initialized
xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID
xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.
usb usb2-port1: couldn't allocate usb_device
xhci-hcd xhci-hcd.0.auto: Command completion event does not match command

 

Here's my kernel info:

root@ls1021atwr:~# uname -a
Linux ls1021atwr 4.1.30-rt34+g4004071 #2 SMP Thu Jan 5 11:53:58 EST 2017 armv7l GNU/Linux

I've also added some more info about the board and u-boot output in my "Jan 4, 2017 1:18 PM" comments.

What is the secret in getting USB devices to be recognized with SDK 2.0?

0 Kudos

516 Views
keestrommel
Contributor IV

Using a SDK2.0 Core image I get the following error message at my TWR-LS1021A board with a Rev 1 LS1021:

xhci-hcd xhci-hcd.0.auto: Command completion event does not match command
xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID
xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.
usb usb1-port1: couldn't allocate usb_device
udevd[161]: worker [169] timeout, kill it

udevd[161]: seq 1466 '/devices/platform/soc/3100000.usb3/xhci-hcd.0.auto/usb1' killed

udevd[161]: worker [171] timeout, kill it

udevd[161]: seq 1468 '/devices/platform/soc/3100000.usb3/xhci-hcd.0.auto/usb2' killed

udevd[161]: worker [169] terminated by signal 9 (Killed)

xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID
xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.
usb usb2-port1: couldn't allocate usb_device
udevd[161]: worker [171] terminated by signal 9 (Killed)

I get this error message while no memory stick is inserted. So the manufacturer of the memory stick is irrelevant (but I used the "Freescale" memory stick that comes with the TWR-LS1021 board).

Using the same SDK2.0 U-boot and the same RCW but using a SDK1.8 Core image I do not get this error message. So the RCW supports USB3.0 because else it not work either with SDK1.8.