OrPiZero3 Usb 1Mib speed

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • G_DIETPI_VERSION_CORE=10
    G_DIETPI_VERSION_SUB=2
    G_DIETPI_VERSION_RC=3
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
    
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • trixie
    
  • Kernel version | uname --all
  • Linux DietPi 6.12.76-current-sunxi64 #1 SMP Thu Mar  5 15:04:32 UTC 2026 aarch64 GNU/Linux
    
  • Architecture | dpkg --print-architecture
  • arm64
    
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Orange Pi Zero 3 (aarch64)
    
  • Power supply used | (EG: 5V 1A RAVpower)
  • 5V 3A
    
  • SD card used | (EG: SanDisk ultra)
  • SanDisk ultra
    

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a ā€œdietpi-bugreportā€, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Mount the USB-disk with external power using dietpi-drive_manager

  2. Run benchmark

  3. Result:

     [ INFO ] DietPi-Benchmark | Running read/write benchmark on /mnt/src/dietpi-benchmark_testfile (10 MiB)
    [ INFO ] DietPi-Benchmark | Testing seq write speed, please wait...
    [  OK  ] DietPi-Benchmark | Result: 1 MiB/s
    [ INFO ] DietPi-Benchmark | Clearing filesystem cache...
    [ INFO ] DietPi-Benchmark | Testing seq read speed, please wait...
    [  OK  ] DietPi-Benchmark | Result: 1 MiB/s
    

Expected behaviour

  • Consistent read and write speeds greater than 1 MiB.

Actual behaviour

  1. Disable UAS

  2. The same result - 1Mib/s

  3. Change IO-Scheduler to none

  4. The same result- 1Mib/s

  5. Mounted another drive, without external power.

  6. Run benchmark

  7. The same result- 1Mib/s

  8. Update Dietpi from 10.1.3 to 10.2.3

  9. Mount the USB-disk using dietpi-drive_manager

  10. Run benchmark

  11. Result:

    [ INFO ] DietPi-Benchmark | Running read/write benchmark on /mnt/src/dietpi-benchmark_testfile (10 MiB)
    [ INFO ] DietPi-Benchmark | Testing seq write speed, please wait...
    [  OK  ] DietPi-Benchmark | Result: 21 MiB/s
    [ INFO ] DietPi-Benchmark | Clearing filesystem cache...
    [ INFO ] DietPi-Benchmark | Testing seq read speed, please wait...
    [  OK  ] DietPi-Benchmark | Result: 40 MiB/s
    [  OK  ] DietPi-Benchmark | rm /mnt/src/dietpi-benchmark_testfile
    
    [ INFO ] DietPi-Benchmark | Running read/write benchmark on /mnt/src/dietpi-benchmark_testfile (100 MiB)
    [ INFO ] DietPi-Benchmark | Testing seq write speed, please wait...
    [  OK  ] DietPi-Benchmark | Result: 33 MiB/s
    [ INFO ] DietPi-Benchmark | Clearing filesystem cache...
    [ INFO ] DietPi-Benchmark | Testing seq read speed, please wait...
    [  OK  ] DietPi-Benchmark | Result: 39 MiB/s
    [  OK  ] DietPi-Benchmark | rm /mnt/src/dietpi-benchmark_testfile
    
  12. While testing if disabling UAS would yield a speed increase, I performed several reboots and again encountered a speed of 1 MiB/s. Restoring default settings (enabling UAS and setting the IO-scheduler to mq-deadline) does not help.

  13. When I manually mount:
    sudo mkdir /mnt/src && mount /dev/sda1, and then execute dd. The output I get is:

    dd if=/dev/urandom of=/mnt/src/output bs=8k count=10k; rm -f /mnt/src/output
    10240+0 records in
    10240+0 records out
    83886080 bytes (84 MB, 80 MiB) copied, 0.995505 s, 84.3 MB/s
    
    

Extra details

  • dmesg:

    dmesg -l emerg,alert,crit,err
    [    1.364931] dw-apb-uart 5000000.serial: Error applying setting,reverse things back
    [    1.365192] sun6i-spi 5010000.spi: Error applying setting, reverse things back
    [    1.370965] sunxi-mmc 4020000.mmc: Error applying setting, reverse things back
    [    1.371465] sunxi-mmc 4021000.mmc: Error applying setting, reverse things back
    [    1.371655] dw-apb-uart 5000000.serial: Error applying setting,reverse things back
    [    1.371902] sun6i-spi 5010000.spi: Error applying setting, reverse things back
    [    9.052943] usb 5-1: device descriptor read/64, error -110
    [    9.292890] usb 5-1: device descriptor read/64, error -71
    [   14.684930] usb 5-1: device descriptor read/64, error -110
    [   14.924892] usb 5-1: device descriptor read/64, error -71
    [   20.456157] usb 5-1: device descriptor read/8, error -110
    [   20.593533] usb 5-1: device descriptor read/8, error -71
    [   20.877532] usb 5-1: device descriptor read/8, error -71
    [   26.096542] usb 5-1: device descriptor read/8, error -71
    [   26.204984] usb usb5-port1: unable to enumerate USB device
    [   36.746071] panfrost 1800000.gpu: probe with driver panfrost failed with error -110
    

I forgot to mention that the APM_level does not support the disk, and also that I changed the ДPU governor to ondemand without any results.

Output of the lsusb command

lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
    |__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=usb-storage, 12M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M

sudo lsusb -vs 3:2

Bus 003 Device 002: ID 4971:8017 SimpleTech USB to ATA/ATAPI Bridge
Negotiated speed: Full Speed (12Mbps)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x4971 SimpleTech
  idProduct          0x8017 USB to ATA/ATAPI Bridge
  bcdDevice           81.05
  iManufacturer           1 JMicron
  iProduct                2 USB to ATA/ATAPI Bridge
  iSerial                 3 111122223333
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      BESL Link Power Management (LPM) Supported
    BESL value     3840 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
Device Status:     0x0000
  (Bus Powered)

Can you try out another PSU, another cable or even another SATA/USB adapter?
Bc sometimes it’s working and sometimes not, I don’t think it’s a software problem

The disk itself seems fine when connected to the PC, so I’m at a loss as to who’s responsible.
I tried changing the USB cable, the drive’s power, and the Orange Pi’s power, but it didn’t yield any results.
Test of another drive, without external power:

[ INFO ] DietPi-Benchmark | Running read/write benchmark on /mnt/src/dietpi-benchmark_testfile (100 MiB)
[ INFO ] DietPi-Benchmark | Testing seq write speed, please wait...
[  OK  ] DietPi-Benchmark | Result: 17 MiB/s
[ INFO ] DietPi-Benchmark | Clearing filesystem cache...
[ INFO ] DietPi-Benchmark | Testing seq read speed, please wait...
[  OK  ] DietPi-Benchmark | Result: 38 MiB/s

I’m going to order a different SATA adapter for testing.

I also noticed that when I unmount a disk, unplug it from the Orange Pi, and then plug in a different one, they don’t show up in lsblk, only in lsusb. I then have to restart the Orange Pi.

I re-checked the cable for the SATA adapter and the power supply, and replaced them, but the problem persisted. When connecting to the computer, there were no issues with it.

The issue was resolved by replacing the adapter.