This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: Test USB and Ethernet using devmem2, but get "Bus error" message

Part Number: SK-AM62


Hi Ti Support Team,

We are going to test USB and Ethernet(100 BASE-Tx Mode 5 MDI) on AM62-SK EVM.

We use the way as below:

  1. USB1:
    1. devmem2 0x31100420 w 0xA0
    2. devmem2 0x31100020 w 0x4
    3. devmem2 0x31100424 w 0x40000000

Step #A, #B work well, but #C returns “Bus error”.

We also give a try for USB0, but get the same result.

Please refer to the attached log file, USB_TEST_20230705.log

 

root@Triton:~# devmem2 0x31100420 w 0xA0
/dev/mem opened.
Memory mapped at address 0xffff92fc6000.
Value at address 0x31100420 (0xffff92fc6420): 0xE03
Written 0xA0; readback 0x80
root@Triton:~# [   36.242925] usb 1-1: USB disconnect, device number 2
[   36.842025] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[   36.999634] usb 1-1: New USB device found, idVendor=8564, idProduct=1000, bcdDevice=11.00
[   37.007964] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   37.015266] usb 1-1: Product: Mass Storage Device
[   37.020139] usb 1-1: Manufacturer: JetFlash
[   37.024477] usb 1-1: SerialNumber: 11S4CRAA4X56WT9N
[   37.043246] usb-storage 1-1:1.0: USB Mass Storage device detected
[   37.050108] scsi host0: usb-storage 1-1:1.0
[   38.409652] scsi 0:0:0:0: Direct-Access     JetFlash Transcend 16GB   1100 PQ: 0 ANSI: 6
[   38.424773] sd 0:0:0:0: [sda] 30851072 512-byte logical blocks: (15.8 GB/14.7 GiB)
[   38.433777] sd 0:0:0:0: [sda] Write Protect is off
[   38.439485] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   38.478046]  sda: sda1
[   38.483918] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   38.822073] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

root@Triton:~# devmem2 0x31100020 w 0x4
/dev/mem opened.
Memory mapped at address 0xffff93525000.
Value at address 0x31100020 (0xffff93525020): 0x5
Written 0x4; readback 0x4
root@Triton:~# devmem2 0x31100424 w 0x40000000
/dev/mem opened.
Memory mapped at address 0xffff86519000.
Bus error
root@Triton:~# 
root@Triton:~# 
root@Triton:~# 
root@Triton:~# devmem2 0x31000420 w 0xA0
/dev/mem opened.
Memory mapped at address 0xffff8cf0b000.
Value at address 0x31000420 (0xffff8cf0b420): 0x280
Written 0xA0; readback 0x80
root@Triton:~# devmem2 0x31000020 w 0x4
/dev/mem opened.
Memory mapped at address 0xffffae61e000.
Value at address 0x31000020 (0xffffae61e020): 0x0
Written 0x4; readback 0x4
root@Triton:~# devmem2 0x31000424 w 0x40000000
/dev/mem opened.
Memory mapped at address 0xffffbd3c6000.
Bus error
root@Triton:~# 

We use the way as below after referring to “How to Configure DP838xx for Ethernet Compliance Testing.pdf”:

  1. Ethernet:
    1. devmem2 0x001F w 0x8000
    2. devmem2 0x0000 w 0x2100
    3. devmem2 0x0010 w 0x5008
    4. devmem2 0x0009 w 0xBB00
    5. devmem2 0x0025 w 0x0480

 

Step #B, #C work well, but #A, #D, #E return “Bus error”.

Please refer to the attached log file, ETHERNET_TEST_20230705.log

root@Triton:~# devmem2 0x001F w 0x8000
/dev/mem opened.
Memory mapped at address 0xffff94cfa000.
Bus error
root@Triton:~# devmem2 

Usage:  devmem2 { address } [ type [ data ] ]
        address : memory address to act upon
        type    : access operation type : [b]yte, [h]alfword, [w]ord
        data    : data to be written

root@Triton:~# devmem2 0x001f
/dev/mem opened.
Memory mapped at address 0xffffa1c40000.
Bus error
root@Triton:~# devmem2 0x0000
/dev/mem opened.
Memory mapped at address 0xffffa70cc000.
Value at address 0x0 (0xffffa70cc000): 0x0
root@Triton:~# devmem2 0x0000 w 0x2100
/dev/mem opened.
Memory mapped at address 0xffff8d954000.
Value at address 0x0 (0xffff8d954000): 0x0
Written 0x2100; readback 0x2100
root@Triton:~# devmem2 0x0010
/dev/mem opened.
Memory mapped at address 0xffff8d6a3000.
Value at address 0x10 (0xffff8d6a3010): 0x0
root@Triton:~# devmem2 0x0010 w 0x5008
/dev/mem opened.
Memory mapped at address 0xffffba857000.
Value at address 0x10 (0xffffba857010): 0x0
Written 0x5008; readback 0x5008
root@Triton:~# devmem2 0x0010
/dev/mem opened.
Memory mapped at address 0xffffb0d78000.
Value at address 0x10 (0xffffb0d78010): 0x5008
root@Triton:~# devmem2 0x0009
/dev/mem opened.
Memory mapped at address 0xffffbbb4e000.
Bus error
root@Triton:~# devmem2 0x0025
/dev/mem opened.
Memory mapped at address 0xffff8b696000.
Bus error
root@Triton:~#