cest73 Posted February 17 Posted February 17 Armbianmonitor: https://paste.armbian.com/bayoyehune Hi, the hardware in question: PCIe_TO_2-CH_SATA_HAT+ In expectation for the Rock 4D forum to arrive I am posting my issue here: The Rock 4D works and all is well The two SATA drives work over USB to SATA adapters - that is not ideal in the long term IMHO The HAT just arrived and i have no doubt in my mind that it can be defective in any way - i assume it is 100% operational. But when i connect it and plug the power in the Rock 4D boots, everything else works as usual, but the HAT just sits there without any signal. My questions: 1. How do i query the eeprom via the pins 27 & 28 (ID_SD & ID_SC), do i just enable the i2c_6 overlay? 2. What then? I queried the ahci module with: `modinfo ahci` but it is both a built in and i suspect it does not support my device anyway? Looking forward to try help get this nice board supported on Armbian for other FPC equipped devices. 0 Quote
cest73 Posted February 17 Author Posted February 17 I just tried to enable the i2c6 (/boot/dtb/rockchip/overlay/rk3576-i2c6-m0.dtbo) overlay by armbian-config but as i try to enter the overlay utility i get thrown out to the CLI with "Invalid overlay_prefix rk35xx" What gives? 0 Quote
cest73 Posted February 17 Author Posted February 17 What do You know! # i2cdetect -l i2c-1 i2c rk3x-i2c I2C adapter i2c-2 i2c rk3x-i2c I2C adapter i2c-3 i2c rk3x-i2c I2C adapter i2c-6 i2c rk3x-i2c I2C adapter i2c-10 i2c ddc it was always there, just missed i2c -tools 😁 next: # i2cdetect -F 6 Functionalities implemented by /dev/i2c-6: I2C yes SMBus Quick Command yes SMBus Send Byte yes SMBus Receive Byte yes SMBus Write Byte yes SMBus Read Byte yes SMBus Write Word yes SMBus Read Word yes SMBus Process Call yes SMBus Block Write yes SMBus Block Read no SMBus Block Process Call no SMBus PEC yes I2C Block Write yes I2C Block Read yes SMBus Host Notify no 10-bit addressing no Target mode no And finally: # i2cdetect -y 6 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: UU UU UU UU UU UU UU UU -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- So we seem to have something there (at address 0x50). What would be the next steps? read out the eerpom? Also, why does the OS not take care of this automatically? How come Raspbian OS does? 0 Quote
cest73 Posted February 17 Author Posted February 17 According to i2cdetect the "UU" means the eeprom is being accessed (used) by something, and indeed after checking dmesg i've found this: [ 8.135029] at24 6-0050: Looking up vcc-supply property in node /i2c@2ac90000/at24c16@50 failed The at24 is again a built in module and i am not sure how i can prevent it from accessing the 0x50 on i2c 6? 0 Quote
cest73 Posted February 17 Author Posted February 17 Well, i have unbound the a24 driver by now: echo -n "6-0050" > /sys/bus/i2c/drivers/at24/unbind apparently it was an Radxa specific eeprom he had hanged on to: # i2cget 6 0x50 0x00 i | xxd -r -p WARNING! This program can confuse your I2C bus, cause data loss and worse! I will read from device file /dev/i2c-6, chip address 0x50, data address 0x00, 32 bytes using read I2C block data. Continue? [Y/n] RADXX but the neighbor is a mistery: i2cget 6 0x51 0x00 i | xxd -r -p WARNING! This program can confuse your I2C bus, cause data loss and worse! I will read from device file /dev/i2c-6, chip address 0x51, data address 0x00, 32 bytes using read I2C block data. Continue? [Y/n] R-Po���������������������������� 0 Quote
cest73 Posted February 17 Author Posted February 17 So far no dice with Armbian. I am trying my luck with the Radxa official image and will report how that goes eventually. Meanwhile feel free to offer ideas or procedures i could tackle 0 Quote
Solution cest73 Posted 1 hour ago Author Solution Posted 1 hour ago I'm back Asking for help on Radxa discord i got the answer to check for the FPC ("Flexible Printed Circuit") cable pin orientation and run lspci next. Turns out it was the cable all along, lspci returned: # lspci 00:00.0 PCI bridge: Rockchip Electronics Co., Ltd Device 3576 (rev 01) 01:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02) and lsblk shows: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 4.5T 0 disk └─sda1 8:1 0 4.5T 0 part sdb 8:16 0 223.6G 0 disk └─sdb1 8:17 0 223.6G 0 part mtdblock0 31:0 0 16M 0 disk mmcblk1 179:0 0 59.5G 0 disk ├─mmcblk1p1 179:1 0 16M 0 part /config ├─mmcblk1p2 179:2 0 300M 0 part /boot/efi └─mmcblk1p3 179:3 0 59.2G 0 part / zram0 253:0 0 1.9G 0 disk [SWAP] So now it works and i can carry on with making my NAS 😇 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.