PINE64
quartz64-a - on-board SATA port problems - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=166)
+--- Forum: Linux on Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=168)
+--- Thread: quartz64-a - on-board SATA port problems (/showthread.php?tid=17987)



quartz64-a - on-board SATA port problems - manning - 03-01-2023

Hi all,



I've been having problems getting the on-board SATA port on the Quartz64 Model A working, and I'm hoping someone might be able to point me in the right direction.  Thanks in advance for any help.



Hardware
  • Quartz64 model A
  • Current generation HDD
  • SATA cable
  • 5A power supply
  • Pine64 board to 2x SATA power splitter cable


Software


Validating the manual edits:

Code:
$ ls /boot/dtbs/rockchip/ | grep quartz64
rk3566-quartz64-a.dtb
rk3566-quartz64-a-sata.dtb
rk3566-quartz64-b.dtb
Code:
$ fdtget /boot/dtbs/rockchip/rk3566-quartz64-a-sata.dtb /usb@fd000000 status
disabled
Code:
$ fdtget /boot/dtbs/rockchip/rk3566-quartz64-a-sata.dtb /sata@fc400000 status
okay
Code:
$ cat /boot/extlinux/extlinux.conf
LABEL Manjaro ARM
KERNEL /Image
FDT /dtbs/rockchip/rk3566-quartz64-a-sata.dtb
APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 earlycon=uart8250,mmio32,0xfe660000 root=PARTUUID=<REDACTED> rw rootwait audit=0 splash plymouth.ignore-serial-consoles



Tests performed
  • Tested SATA cable in another system, confirmed good; tested with other known-good SATA cables
  • Tested a 2 port SATA to PCIe adaptor card (the Pine64 one), which works perfectly on this board
  • Tested multiple known-good HDDs one at a time; all work via the PCIe card, none appear on the on-board SATA port
  • Tested running 3 drives simultaneously; those plugged into the PCIe adapter work, but not on the on-board SATA port.  Have cycled which drive was plugged into which SATA port, for the same result


These test results imply to me it's most likely a problem with the software setup, with a small chance the hardware is problematic.



Various debug outputs



dmesg:

Code:
$ dmesg | grep ATA

<blank>

Code:
$ dmesg | grep usb
Code:
[    0.149542] usbcore: registered new interface driver usbfs
Code:
[    0.149609] usbcore: registered new interface driver hub
Code:
[    0.149660] usbcore: registered new device driver usb
Code:
[    0.344238] usbcore: registered new interface driver uas
Code:
[    0.344374] usbcore: registered new interface driver usb-storage
Code:
[    0.344521] usbcore: registered new interface driver usbserial_generic
Code:
[    0.344583] usbserial: USB Serial support registered for generic
Code:
[    0.345027] ehci-platform fd800000.usb: EHCI Host Controller
Code:
[    0.345053] ohci-platform fd840000.usb: Generic Platform OHCI controller
Code:
[    0.345117] ehci-platform fd880000.usb: EHCI Host Controller
Code:
[    0.345456] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2
Code:
[    0.345498] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1
Code:
[    0.345662] ehci-platform fd880000.usb: irq 36, io mem 0xfd880000
Code:
[    0.345722] ehci-platform fd800000.usb: irq 35, io mem 0xfd800000
Code:
[    0.345783] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
Code:
[    0.345828] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
Code:
[    0.346057] ohci-platform fd840000.usb: irq 37, io mem 0xfd840000
Code:
[    0.346073] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
Code:
[    0.346193] ohci-platform fd8c0000.usb: irq 38, io mem 0xfd8c0000
Code:
[    0.374372] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
Code:
[    0.374890] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
Code:
[    0.374912] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.374924] usb usb2: Product: EHCI Host Controller
Code:
[    0.374934] usb usb2: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ehci_hcd
Code:
[    0.374942] usb usb2: SerialNumber: fd880000.usb
Code:
[    0.404373] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
Code:
[    0.404975] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
Code:
[    0.404997] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.405008] usb usb1: Product: EHCI Host Controller
Code:
[    0.405017] usb usb1: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ehci_hcd
Code:
[    0.405026] usb usb1: SerialNumber: fd800000.usb
Code:
[    0.418667] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
Code:
[    0.418701] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.418714] usb usb4: Product: Generic Platform OHCI controller
Code:
[    0.418723] usb usb4: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ohci_hcd
Code:
[    0.418732] usb usb4: SerialNumber: fd8c0000.usb
Code:
[    0.420667] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
Code:
[    0.420691] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.420703] usb usb3: Product: Generic Platform OHCI controller
Code:
[    0.420713] usb usb3: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ohci_hcd
Code:
[    0.420723] usb usb3: SerialNumber: fd840000.usb
Code:
[    0.502514] usbcore: registered new interface driver pcwd_usb
Code:
[    0.518025] usbcore: registered new interface driver usbhid
Code:
[    0.518032] usbhid: USB HID core driver
Code:
[    0.685734] reg-fixed-voltage vcc5v0_usb20_otg: nonexclusive access to GPIO for vcc5v0_usb20_otg
Code:
[    1.855035] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
Code:
[    1.855074] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    1.855098] usb usb5: Product: xHCI Host Controller
Code:
[    1.855117] usb usb5: Manufacturer: Linux 6.1.12-1-MANJARO-ARM xhci-hcd
Code:
[    1.855134] usb usb5: SerialNumber: xhci-hcd.0.auto





Looking for block devices doesn't show any SATA hard drives:
Code:
$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mmcblk1      179:0    0  14.6G  0 disk
├─mmcblk1p1  179:1    0 457.8M  0 part /boot
└─mmcblk1p2  179:2    0  14.1G  0 part /
mmcblk1boot0 179:32   0     4M  1 disk
mmcblk1boot1 179:64   0     4M  1 disk
zram0        253:0    0   5.5G  0 disk [SWAP]


Code:
$ lsscsi

<blank>


Code:
$ sudo fdisk -l
Disk /dev/mmcblk1: 14.59 GiB, 15665725440 bytes, 30597120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9D5D28C6-63B7-4C32-BA44-DAAF62A38685

Device           Start      End  Sectors   Size Type
/dev/mmcblk1p1   62500  1000000   937501 457.8M Microsoft basic data
/dev/mmcblk1p2 1000001 30597086 29597086  14.1G Linux filesystem


Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/zram0: 5.48 GiB, 5886869504 bytes, 1437224 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes



RE: quartz64-a - on-board SATA port problems - Mastermindaxe - 08-27-2023

(03-01-2023, 05:20 AM)manning Wrote: Hi all,



I've been having problems getting the on-board SATA port on the Quartz64 Model A working, and I'm hoping someone might be able to point me in the right direction.  Thanks in advance for any help.



Hardware
  • Quartz64 model A
  • Current generation HDD
  • SATA cable
  • 5A power supply
  • Pine64 board to 2x SATA power splitter cable


Software


Validating the manual edits:

Code:
$ ls /boot/dtbs/rockchip/ | grep quartz64
rk3566-quartz64-a.dtb
rk3566-quartz64-a-sata.dtb
rk3566-quartz64-b.dtb
Code:
$ fdtget /boot/dtbs/rockchip/rk3566-quartz64-a-sata.dtb /usb@fd000000 status
disabled
Code:
$ fdtget /boot/dtbs/rockchip/rk3566-quartz64-a-sata.dtb /sata@fc400000 status
okay
Code:
$ cat /boot/extlinux/extlinux.conf
LABEL Manjaro ARM
KERNEL /Image
FDT /dtbs/rockchip/rk3566-quartz64-a-sata.dtb
APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 earlycon=uart8250,mmio32,0xfe660000 root=PARTUUID=<REDACTED> rw rootwait audit=0 splash plymouth.ignore-serial-consoles



Tests performed
  • Tested SATA cable in another system, confirmed good; tested with other known-good SATA cables
  • Tested a 2 port SATA to PCIe adaptor card (the Pine64 one), which works perfectly on this board
  • Tested multiple known-good HDDs one at a time; all work via the PCIe card, none appear on the on-board SATA port
  • Tested running 3 drives simultaneously; those plugged into the PCIe adapter work, but not on the on-board SATA port.  Have cycled which drive was plugged into which SATA port, for the same result


These test results imply to me it's most likely a problem with the software setup, with a small chance the hardware is problematic.



Various debug outputs



dmesg:

Code:
$ dmesg | grep ATA

<blank>

Code:
$ dmesg | grep usb
Code:
[    0.149542] usbcore: registered new interface driver usbfs
Code:
[    0.149609] usbcore: registered new interface driver hub
Code:
[    0.149660] usbcore: registered new device driver usb
Code:
[    0.344238] usbcore: registered new interface driver uas
Code:
[    0.344374] usbcore: registered new interface driver usb-storage
Code:
[    0.344521] usbcore: registered new interface driver usbserial_generic
Code:
[    0.344583] usbserial: USB Serial support registered for generic
Code:
[    0.345027] ehci-platform fd800000.usb: EHCI Host Controller
Code:
[    0.345053] ohci-platform fd840000.usb: Generic Platform OHCI controller
Code:
[    0.345117] ehci-platform fd880000.usb: EHCI Host Controller
Code:
[    0.345456] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2
Code:
[    0.345498] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1
Code:
[    0.345662] ehci-platform fd880000.usb: irq 36, io mem 0xfd880000
Code:
[    0.345722] ehci-platform fd800000.usb: irq 35, io mem 0xfd800000
Code:
[    0.345783] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
Code:
[    0.345828] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
Code:
[    0.346057] ohci-platform fd840000.usb: irq 37, io mem 0xfd840000
Code:
[    0.346073] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
Code:
[    0.346193] ohci-platform fd8c0000.usb: irq 38, io mem 0xfd8c0000
Code:
[    0.374372] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
Code:
[    0.374890] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
Code:
[    0.374912] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.374924] usb usb2: Product: EHCI Host Controller
Code:
[    0.374934] usb usb2: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ehci_hcd
Code:
[    0.374942] usb usb2: SerialNumber: fd880000.usb
Code:
[    0.404373] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
Code:
[    0.404975] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
Code:
[    0.404997] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.405008] usb usb1: Product: EHCI Host Controller
Code:
[    0.405017] usb usb1: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ehci_hcd
Code:
[    0.405026] usb usb1: SerialNumber: fd800000.usb
Code:
[    0.418667] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
Code:
[    0.418701] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.418714] usb usb4: Product: Generic Platform OHCI controller
Code:
[    0.418723] usb usb4: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ohci_hcd
Code:
[    0.418732] usb usb4: SerialNumber: fd8c0000.usb
Code:
[    0.420667] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
Code:
[    0.420691] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    0.420703] usb usb3: Product: Generic Platform OHCI controller
Code:
[    0.420713] usb usb3: Manufacturer: Linux 6.1.12-1-MANJARO-ARM ohci_hcd
Code:
[    0.420723] usb usb3: SerialNumber: fd840000.usb
Code:
[    0.502514] usbcore: registered new interface driver pcwd_usb
Code:
[    0.518025] usbcore: registered new interface driver usbhid
Code:
[    0.518032] usbhid: USB HID core driver
Code:
[    0.685734] reg-fixed-voltage vcc5v0_usb20_otg: nonexclusive access to GPIO for vcc5v0_usb20_otg
Code:
[    1.855035] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
Code:
[    1.855074] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Code:
[    1.855098] usb usb5: Product: xHCI Host Controller
Code:
[    1.855117] usb usb5: Manufacturer: Linux 6.1.12-1-MANJARO-ARM xhci-hcd
Code:
[    1.855134] usb usb5: SerialNumber: xhci-hcd.0.auto





Looking for block devices doesn't show any SATA hard drives:
Code:
$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mmcblk1      179:0    0  14.6G  0 disk
├─mmcblk1p1  179:1    0 457.8M  0 part /boot
└─mmcblk1p2  179:2    0  14.1G  0 part /
mmcblk1boot0 179:32   0     4M  1 disk
mmcblk1boot1 179:64   0     4M  1 disk
zram0        253:0    0   5.5G  0 disk [SWAP]


Code:
$ lsscsi

<blank>


Code:
$ sudo fdisk -l
Disk /dev/mmcblk1: 14.59 GiB, 15665725440 bytes, 30597120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9D5D28C6-63B7-4C32-BA44-DAAF62A38685

Device           Start      End  Sectors   Size Type
/dev/mmcblk1p1   62500  1000000   937501 457.8M Microsoft basic data
/dev/mmcblk1p2 1000001 30597086 29597086  14.1G Linux filesystem


Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/zram0: 5.48 GiB, 5886869504 bytes, 1437224 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Hey there! Did you get this working by any chance? Facing the same problem


RE: quartz64-a - on-board SATA port problems - manning - 09-14-2023

(08-27-2023, 07:50 AM)Mastermindaxe Wrote: Hey there! Did you get this working by any chance? Facing the same problem

Unfortunately not, sorry.