RK3568 SATA 速率調整

Hi,
目前RK3568 SATA 速率為GEN3 6.0Gb/s , 請問如何將SATA 速率固定為 GEN2 3.0Gb/s?

目前使用RK3568 SATA轉接版, 之後在轉接 SATA硬盘数据电源线延長, 資料傳輸過程中容易出現 Interface fatal error, 目前已經嘗試更換過幾種線材, 狀況一樣, 請問有沒有更好的解決方式?

用的是官方的转接板和排线吗
https://item.taobao.com/item.htm?spm=a1z10.3-c-s.w4002-24099170629.21.3b3546bfQXbOOG&id=648772135929

zhansb 发表于 2021-11-16 17:32
用的是官方的转接板和排线吗
https://item.taobao.com/item.htm?spm=a1z10.3-c-s.w4002-24099170629.21.3b

是的! 用的是官方的转接板和排线, 直接接上SATA 盘片, 在使用时就有机率出现interface fatal error,

用转接板在加上 SATA 延长线, 出现 interface fatal error 的机率更高.
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.4b0e2e8d9qvuCI&id=596279168434&_u=d1tci46cd422

能够在增强讯号吗? 或是可以提供方式, 把速率降成Gen2 尝试看看.

本帖最后由 zyk 于 2021-11-17 11:37 编辑

请问系统是linux还是Android,用的固件版本是多少,用的是哪一种sata硬盘。复现的概率很大吗,是如何操作的,只是单纯拷贝文件就会复现吗

zyk 发表于 2021-11-17 11:01
请问系统是linux还是Android,用的固件版本是多少,用的是哪一种sata硬盘。复现的概率很大吗,是如何操作的 …

使用的版本為 : FIREFLY-RK3568-AIOJ_UBUNTU18.04-GPT-20210705-1314.img
SATA 是 用 mSATA 硬盤, 很容易复现

root@firefly:~/test_m_sata#
root@firefly:~/test_m_sata# cp 123.txt test.txt
[ 1297.838912] ata1.00: exception Emask 0x12 SAct 0x20000000 SErr 0x800500 action 0x6 frozen
[ 1297.838936] ata1.00: irq_stat 0x08000000, interface fatal error
[ 1297.838944] ata1: SError: { UnrecovData Proto LinkSeq }
[ 1297.838952] ata1.00: failed command: READ FPDMA QUEUED
[ 1297.838964] ata1.00: cmd 60/00:e8:00:76:f3/02:00:00:00:00/40 tag 29 ncq dma 262144 in
[ 1297.838964] res 40/00:ec:00:76:f3/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 1297.838971] ata1.00: status: { DRDY }
[ 1298.339801] print_req_error: I/O error, dev sdb, sector 15955456
[ 1306.515561] ata1.00: exception Emask 0x12 SAct 0x4000 SErr 0x800500 action 0x6 frozen
[ 1306.515585] ata1.00: irq_stat 0x08000000, interface fatal error
[ 1306.515593] ata1: SError: { UnrecovData Proto LinkSeq }
[ 1306.515601] ata1.00: failed command: READ FPDMA QUEUED
[ 1306.515614] ata1.00: cmd 60/00:70:00:5c:19/02:00:01:00:00/40 tag 14 ncq dma 262144 in
[ 1306.515614] res 40/00:74:00:5c:19/00:00:01:00:00/40 Emask 0x12 (ATA bus error)
[ 1306.515620] ata1.00: status: { DRDY }
[ 1307.014449] print_req_error: I/O error, dev sdb, sector 18439168

arlam88 发表于 2021-11-17 15:16
使用的版本為 : FIREFLY-RK3568-AIOJ_UBUNTU18.04-GPT-20210705-1314.img
SATA 是 用 mSATA 硬盤, 很容 …

1.出现异常信息时,sata硬盘是否还能正常使用
2.可以考虑烧写Android的公版固件测试一下,排除硬件问题
3.可以发一下完整的log看一下,包含smartctl命令的结果

zyk 发表于 2021-11-17 15:54
1.出现异常信息时,sata硬盘是否还能正常使用
2.可以考虑烧写Android的公版固件测试一下,排除硬件问题

  1. 是, 盤片還可以正常使用
  2. 更換image 為 AIO-3568J_Android11_HDMI_210623.img
    一樣會有IFS 的情況發生, 盤片為全新的盤
  3. log

[ 46.333852] logitech-hidpp-device 0003:046D:406B.0004: HID++ 4.5 device connected.
[ 46.514858] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 46.551498] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 50.235972] perfetto: enabled ftrace
[ 57.834353] type=1400 audit(1627812378.150:148): avc: denied { open } for comm=“droid.gallery3d” path=“/dev/properties/u:object_r:vendor_default_prop:s0” dev=“tmpfs” ino=18535 scontext=u:r:untrusted_app_29:s0:c109,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1 app=com.android.gallery3d
[ 57.835749] type=1400 audit(1627812378.150:149): avc: denied { getattr } for comm=“droid.gallery3d” path=“/dev/properties/u:object_r:vendor_default_prop:s0” dev=“tmpfs” ino=18535 scontext=u:r:untrusted_app_29:s0:c109,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1 app=com.android.gallery3d
[ 57.838379] type=1400 audit(1627812378.150:150): avc: denied { map } for comm=“droid.gallery3d” path=“/dev/properties/u:object_r:vendor_default_prop:s0” dev=“tmpfs” ino=18535 scontext=u:r:untrusted_app_29:s0:c109,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=1 app=com.android.gallery3d
[ 57.958721] type=1400 audit(1627812378.273:151): avc: denied { write } for comm=“RenderThread” name=“property_service” dev=“tmpfs” ino=18561 scontext=u:r:untrusted_app_29:s0:c109,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1 app=com.android.gallery3d
[ 57.989703] type=1400 audit(1627812378.273:152): avc: denied { connectto } for comm=“RenderThread” path=“/dev/socket/property_service” scontext=u:r:untrusted_app_29:s0:c109,c256,c512,c768 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1 app=com.android.gallery3d
[ 57.989995] type=1107 audit(1627812378.276:153): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg=‘avc: denied { set } for property=sys.gmali.version pid=1885 uid=10109 gid=10109 scontext=u:r:untrusted_app_29:s0:c109,c256,c512,c768 tcontext=u:object_r:system_prop:s0 tclass=property_service permissive=1’
[ 62.624111] perfetto: disabled ftrace
[ 63.574835] perfetto: enabled ftrace
[ 64.388283] binder: 319:604 transaction failed 29189/-22, size 68-0 line 3059
[ 67.210517] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 68.547638] perfetto: disabled ftrace
[ 74.765419] perfetto: enabled ftrace
[ 79.748671] perfetto: disabled ftrace
[ 122.392227] type=1400 audit(1627812442.706:154): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 122.393268] type=1400 audit(1627812442.706:155): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 122.428456] type=1400 audit(1627812442.720:156): avc: denied { search } for comm=“rs.media.module” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 122.431882] type=1400 audit(1627812442.720:157): avc: denied { getattr } for comm=“rs.media.module” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 127.210761] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 145.799889] perfetto: enabled ftrace
[ 150.762312] perfetto: disabled ftrace
[ 153.406985] perfetto: enabled ftrace
[ 153.825316] type=1400 audit(1627812474.140:158): avc: denied { read } for comm=“Binder:173_2” name=“wakeup28” dev=“sysfs” ino=32580 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 153.825546] type=1400 audit(1627812474.140:159): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28” dev=“sysfs” ino=32580 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 153.825674] type=1400 audit(1627812474.140:160): avc: denied { read } for comm=“Binder:173_2” name=“event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 153.825767] type=1400 audit(1627812474.140:161): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28/event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 153.825858] type=1400 audit(1627812474.140:162): avc: denied { getattr } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28/event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 153.828258] type=1400 audit(1627812474.143:163): avc: denied { read } for comm=“Binder:173_2” name=“wakeup9” dev=“sysfs” ino=25862 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=1
[ 153.828571] type=1400 audit(1627812474.143:164): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/virtual/power_supply/test_ac/wakeup9” dev=“sysfs” ino=25862 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=1
[ 158.034948] type=1400 audit(1627812478.350:165): avc: denied { read } for comm=“Binder:173_2” name=“wakeup28” dev=“sysfs” ino=32580 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 158.035142] type=1400 audit(1627812478.350:166): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28” dev=“sysfs” ino=32580 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 158.035376] type=1400 audit(1627812478.350:167): avc: denied { read } for comm=“Binder:173_2” name=“event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 162.684989] type=1400 audit(1627812483.000:170): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 162.686519] type=1400 audit(1627812483.000:171): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 164.393198] perfetto: disabled ftrace
[ 166.779992] type=1400 audit(1627812487.093:172): avc: denied { search } for comm=4173796E635461736B202331 name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 166.781026] type=1400 audit(1627812487.093:173): avc: denied { getattr } for comm=4173796E635461736B202331 path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 175.971146] [drm] Esmart0-win0 act_w[1329] MODE 16 == 1
[ 187.210841] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 193.020235] perfetto: enabled ftrace
[ 198.001001] perfetto: disabled ftrace
[ 220.323467] perfetto: enabled ftrace
[ 225.303822] perfetto: disabled ftrace
[ 247.214464] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 307.210647] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 310.470303] perfetto: enabled ftrace
[ 315.453899] perfetto: disabled ftrace
[ 348.666240] ata1: SATA link down (SStatus 0 SControl 300)
[ 354.073737] ata1: SATA link down (SStatus 0 SControl 300)
[ 359.407276] ata1: SATA link down (SStatus 0 SControl 300)
[ 359.407368] ata1.00: disabled
[ 359.407509] ata1.00: detaching (SCSI 0:0:0:0)
[ 359.535106] type=1400 audit(1627812679.850:174): avc: denied { getattr } for comm=“kdevtmpfs” path=“/sda1” dev=“devtmpfs” ino=10548 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 359.535506] type=1400 audit(1627812679.850:175): avc: denied { setattr } for comm=“kdevtmpfs” name=“sda1” dev=“devtmpfs” ino=10548 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 359.535667] type=1400 audit(1627812679.850:176): avc: denied { unlink } for comm=“kdevtmpfs” name=“sda1” dev=“devtmpfs” ino=10548 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 359.535885] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 359.535979] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 359.536035] sd 0:0:0:0: [sda] Stopping disk
[ 359.536059] sd 0:0:0:0: [sda] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 359.550019] type=1400 audit(1627812679.863:177): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 359.572869] type=1400 audit(1627812679.863:178): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 360.229916] FAT-fs (sda1): unable to read boot sector to mark fs as dirty
[ 360.251270] type=1400 audit(1627812680.566:179): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 360.252588] type=1400 audit(1627812680.566:180): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 360.383428] perfetto: enabled ftrace
[ 365.376321] perfetto: disabled ftrace
[ 367.210742] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 411.196263] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 412.106311] ata1.00: ATA-10: V200_mSATA_1T_010, 551, max UDMA/133
[ 412.106383] ata1.00: 1875385008 sectors, multi 1: LBA48 NCQ (depth 32)
[ 412.122475] ata1.00: configured for UDMA/133
[ 412.123576] scsi 0:0:0:0: Direct-Access ATA V200_mSATA_1T_01 551 PQ: 0 ANSI: 5
[ 412.127498] sd 0:0:0:0: [sda] 1875385008 512-byte logical blocks: (960 GB/894 GiB)
[ 412.127673] sd 0:0:0:0: [sda] Write Protect is off
[ 412.127861] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 412.128919] type=1400 audit(1627812732.443:181): avc: denied { create } for comm=“kdevtmpfs” name=“sda” scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 412.129130] type=1400 audit(1627812732.443:182): avc: denied { setattr } for comm=“kdevtmpfs” name=“sda” dev=“devtmpfs” ino=51329 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 412.129526] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 412.139091] sda: sda1
[ 412.140361] sd 0:0:0:0: [sda] Attached SCSI disk
[ 413.478202] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 417.836128] type=1400 audit(1627812738.150:183): avc: denied { search } for comm=4173796E635461736B202331 name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 417.837026] type=1400 audit(1627812738.150:184): avc: denied { getattr } for comm=4173796E635461736B202331 path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 427.214415] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 439.173025] type=1400 audit(1627812759.486:185): avc: denied { read } for comm=“Binder:173_2” name=“wakeup28” dev=“sysfs” ino=32580 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 439.174049] type=1400 audit(1627812759.486:186): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28” dev=“sysfs” ino=32580 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 439.181176] type=1400 audit(1627812759.490:187): avc: denied { read } for comm=“Binder:173_2” name=“event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 439.197938] type=1400 audit(1627812759.490:188): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28/event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 439.213310] type=1400 audit(1627812759.490:189): avc: denied { getattr } for comm=“Binder:173_2” path=“/sys/devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:406B.0004/power_supply/hidpp_battery_0/wakeup28/event_count” dev=“sysfs” ino=32587 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 439.217001] type=1400 audit(1627812759.493:190): avc: denied { read } for comm=“Binder:173_2” name=“wakeup9” dev=“sysfs” ino=25862 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=1
[ 439.217325] type=1400 audit(1627812759.493:191): avc: denied { open } for comm=“Binder:173_2” path=“/sys/devices/virtual/power_supply/test_ac/wakeup9” dev=“sysfs” ino=25862 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_power:s0 tclass=dir permissive=1
[ 441.700280] perfetto: enabled ftrace
[ 446.621995] [drm] Esmart0-win0 act_w[1329] MODE 16 == 1
[ 446.684698] perfetto: disabled ftrace
[ 475.749533] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 475.898889] usb 1-1: New USB device found, idVendor=0781, idProduct=5581, bcdDevice= 1.00
[ 475.898961] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 475.898988] usb 1-1: Product: Ultra
[ 475.899010] usb 1-1: Manufacturer: SanDisk
[ 475.899033] usb 1-1: SerialNumber: 4C530123161008105362
[ 475.907223] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 475.909826] scsi host1: usb-storage 1-1:1.0
[ 476.938656] scsi 1:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6
[ 476.942122] sd 1:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 476.943020] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 476.943322] sd 1:0:0:0: [sdb] Write Protect is off
[ 476.944494] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn’t support DPO or FUA
[ 476.945316] type=1400 audit(1627812797.260:192): avc: denied { create } for comm=“kdevtmpfs” name=“sdb” scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 476.945588] type=1400 audit(1627812797.260:193): avc: denied { setattr } for comm=“kdevtmpfs” name=“sdb” dev=“devtmpfs” ino=51961 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 476.971270] sdb: sdb1
[ 476.979250] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 477.454612] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 478.525951] type=1400 audit(1627812798.840:194): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 478.527441] type=1400 audit(1627812798.840:195): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 487.214667] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 494.839615] usb 1-1: USB disconnect, device number 2
[ 494.845613] type=1400 audit(1627812815.160:196): avc: denied { getattr } for comm=“kdevtmpfs” path=“/sdb1” dev=“devtmpfs” ino=51962 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 494.846022] type=1400 audit(1627812815.160:197): avc: denied { unlink } for comm=“kdevtmpfs” name=“sdb1” dev=“devtmpfs” ino=51962 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 495.385883] type=1400 audit(1627812815.700:198): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 495.389604] type=1400 audit(1627812815.700:199): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 503.346192] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 503.499242] usb 1-1: New USB device found, idVendor=8564, idProduct=1000, bcdDevice=11.00
[ 503.499406] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 503.499438] usb 1-1: Product: Mass Storage Device
[ 503.499462] usb 1-1: Manufacturer: JetFlash
[ 503.499484] usb 1-1: SerialNumber: 207BVV4MY8MYBC6T
[ 503.505092] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 503.507686] scsi host1: usb-storage 1-1:1.0
[ 504.814053] scsi 1:0:0:0: Direct-Access JetFlash Transcend 16GB 1100 PQ: 0 ANSI: 6
[ 504.816784] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 504.816851] sd 1:0:0:0: [sdb] 30818304 512-byte logical blocks: (15.8 GB/14.7 GiB)
[ 504.818009] sd 1:0:0:0: [sdb] Write Protect is off
[ 504.819112] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 504.819972] type=1400 audit(1627812825.136:200): avc: denied { create } for comm=“kdevtmpfs” name=“sdb” scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 504.820418] type=1400 audit(1627812825.136:201): avc: denied { setattr } for comm=“kdevtmpfs” name=“sdb” dev=“devtmpfs” ino=53692 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 504.826350] sdb: sdb1
[ 504.834306] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 505.219807] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 519.093387] perfetto: enabled ftrace
[ 524.075845] perfetto: disabled ftrace
[ 547.210692] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 551.388024] [drm] Esmart0-win0 act_w[1329] MODE 16 == 1

console:/ $
console:/ $
console:/ $ [ 607.210291] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 615.326717] perfetto: enabled ftrace
[ 620.306284] perfetto: disabled ftrace
[ 638.673506] perfetto: enabled ftrace
[ 643.648071] perfetto: disabled ftrace
[ 657.002695] ata1.00: exception Emask 0x10 SAct 0x204000 SErr 0x280100 action 0x6 frozen
[ 657.002720] ata1.00: irq_stat 0x08000000, interface fatal error
[ 657.002728] ata1: SError: { UnrecovData 10B8B BadCRC }
[ 657.002736] ata1.00: failed command: READ FPDMA QUEUED
[ 657.002746] ata1.00: cmd 60/00:70:00:30:1f/01:00:00:00:00/40 tag 14 ncq dma 131072 in
[ 657.002746] res 40/00:ac:00:31:1f/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[ 657.002752] ata1.00: status: { DRDY }
[ 657.002758] ata1.00: failed command: READ FPDMA QUEUED
[ 657.002795] ata1.00: cmd 60/00:a8:00:31:1f/01:00:00:00:00/40 tag 21 ncq dma 131072 in
[ 657.002795] res 40/00:ac:00:31:1f/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[ 657.002806] ata1.00: status: { DRDY }
[ 657.002817] ata1: hard resetting link
[ 657.469332] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 657.501037] ata1.00: configured for UDMA/133
[ 657.501144] sd 0:0:0:0: [sda] tag#14 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 657.501169] sd 0:0:0:0: [sda] tag#14 Sense Key : Illegal Request [current]
[ 657.501187] sd 0:0:0:0: [sda] tag#14 Add. Sense: Unaligned write command
[ 657.501207] sd 0:0:0:0: [sda] tag#14 CDB: Read(10) 28 00 00 1f 30 00 00 01 00 00
[ 657.501222] print_req_error: I/O error, dev sda, sector 2043904
[ 657.501356] sd 0:0:0:0: [sda] tag#21 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 657.501379] sd 0:0:0:0: [sda] tag#21 Sense Key : Illegal Request [current]
[ 657.501396] sd 0:0:0:0: [sda] tag#21 Add. Sense: Unaligned write command
[ 657.501414] sd 0:0:0:0: [sda] tag#21 CDB: Read(10) 28 00 00 1f 31 00 00 01 00 00
[ 657.501428] print_req_error: I/O error, dev sda, sector 2044160
[ 657.501519] ata1: EH complete
[ 667.215878] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 680.452666] ata1.00: exception Emask 0x12 SAct 0x7fff4000 SErr 0x800500 action 0x6 frozen
[ 680.452694] ata1.00: irq_stat 0x08000000, interface fatal error
[ 680.452701] ata1: SError: { UnrecovData Proto LinkSeq }
[ 680.452709] ata1.00: failed command: READ FPDMA QUEUED
[ 680.452719] ata1.00: cmd 60/00:70:00:af:4f/02:00:00:00:00/40 tag 14 ncq dma 262144 in
[ 680.452719] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452725] ata1.00: status: { DRDY }
[ 680.452730] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452747] ata1.00: cmd 61/c8:80:40:2e:b4/06:00:00:00:00/40 tag 16 ncq dma 888832 out
[ 680.452747] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452757] ata1.00: status: { DRDY }
[ 680.452767] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452780] ata1.00: cmd 61/38:88:08:35:b4/01:00:00:00:00/40 tag 17 ncq dma 159744 out
[ 680.452780] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452790] ata1.00: status: { DRDY }
[ 680.452799] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452812] ata1.00: cmd 61/40:90:40:36:b4/05:00:00:00:00/40 tag 18 ncq dma 688128 out
[ 680.452812] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452821] ata1.00: status: { DRDY }
[ 680.452832] ata1.00: failed command: READ FPDMA QUEUED
[ 680.452844] ata1.00: cmd 60/00:98:00:b1:4f/01:00:00:00:00/40 tag 19 ncq dma 131072 in
[ 680.452844] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452854] ata1.00: status: { DRDY }
[ 680.452864] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452876] ata1.00: cmd 61/c0:a0:80:3b:b4/02:00:00:00:00/40 tag 20 ncq dma 360448 out
[ 680.452876] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452886] ata1.00: status: { DRDY }
[ 680.452895] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452908] ata1.00: cmd 61/40:a8:40:3e:b4/05:00:00:00:00/40 tag 21 ncq dma 688128 out
[ 680.452908] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452917] ata1.00: status: { DRDY }
[ 680.452927] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452939] ata1.00: cmd 61/c0:b0:80:43:b4/02:00:00:00:00/40 tag 22 ncq dma 360448 out
[ 680.452939] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452948] ata1.00: status: { DRDY }
[ 680.452953] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452961] ata1.00: cmd 61/40:b8:40:46:b4/05:00:00:00:00/40 tag 23 ncq dma 688128 out
[ 680.452961] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.452967] ata1.00: status: { DRDY }
[ 680.452977] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.452991] ata1.00: cmd 61/c0:c0:80:4b:b4/02:00:00:00:00/40 tag 24 ncq dma 360448 out
[ 680.452991] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453001] ata1.00: status: { DRDY }
[ 680.453010] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.453023] ata1.00: cmd 61/40:c8:40:4e:b4/05:00:00:00:00/40 tag 25 ncq dma 688128 out
[ 680.453023] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453033] ata1.00: status: { DRDY }
[ 680.453043] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.453056] ata1.00: cmd 61/c0:d0:80:53:b4/02:00:00:00:00/40 tag 26 ncq dma 360448 out
[ 680.453056] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453066] ata1.00: status: { DRDY }
[ 680.453075] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.453088] ata1.00: cmd 61/40:d8:40:56:b4/05:00:00:00:00/40 tag 27 ncq dma 688128 out
[ 680.453088] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453098] ata1.00: status: { DRDY }
[ 680.453107] ata1.00: failed command: READ FPDMA QUEUED
[ 680.453120] ata1.00: cmd 60/00:e0:00:b2:4f/01:00:00:00:00/40 tag 28 ncq dma 131072 in
[ 680.453120] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453130] ata1.00: status: { DRDY }
[ 680.453139] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.453152] ata1.00: cmd 61/c0:e8:80:5b:b4/02:00:00:00:00/40 tag 29 ncq dma 360448 out
[ 680.453152] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453161] ata1.00: status: { DRDY }
[ 680.453171] ata1.00: failed command: WRITE FPDMA QUEUED
[ 680.453183] ata1.00: cmd 61/40:f0:40:5e:b4/05:00:00:00:00/40 tag 30 ncq dma 688128 out
[ 680.453183] res 40/00:f4:40:5e:b4/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
[ 680.453189] ata1.00: status: { DRDY }
[ 680.453198] ata1: hard resetting link
[ 680.922723] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 680.964225] ata1.00: configured for UDMA/133
[ 680.964491] sd 0:0:0:0: [sda] tag#14 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 680.964528] sd 0:0:0:0: [sda] tag#14 Sense Key : Illegal Request [current]
[ 680.964544] sd 0:0:0:0: [sda] tag#14 Add. Sense: Unaligned write command
[ 680.964559] sd 0:0:0:0: [sda] tag#14 CDB: Read(10) 28 00 00 4f af 00 00 02 00 00
[ 680.964571] print_req_error: I/O error, dev sda, sector 5222144
[ 680.964776] sd 0:0:0:0: [sda] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 680.964798] sd 0:0:0:0: [sda] tag#19 Sense Key : Illegal Request [current]
[ 680.964812] sd 0:0:0:0: [sda] tag#19 Add. Sense: Unaligned write command
[ 680.964828] sd 0:0:0:0: [sda] tag#19 CDB: Read(10) 28 00 00 4f b1 00 00 01 00 00
[ 680.964838] print_req_error: I/O error, dev sda, sector 5222656
[ 680.965146] sd 0:0:0:0: [sda] tag#28 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 680.965185] sd 0:0:0:0: [sda] tag#28 Sense Key : Illegal Request [current]
[ 680.965199] sd 0:0:0:0: [sda] tag#28 Add. Sense: Unaligned write command
[ 680.965214] sd 0:0:0:0: [sda] tag#28 CDB: Read(10) 28 00 00 4f b2 00 00 01 00 00
[ 680.965233] print_req_error: I/O error, dev sda, sector 5222912
[ 680.965353] ata1: EH complete

console:/ $ sm [ 696.509517] type=1400 audit(1627813016.823:202): avc: denied { getattr } for comm=“sh” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[ 696.512679] type=1400 audit(1627813016.823:203): avc: denied { getattr } for comm=“sh” path=“/data_mirror” dev=“tmpfs” ino=19959 scontext=u:r:shell:s0 tcontext=u:object_r:mirror_data_file:s0 tclass=dir permissive=1
[ 696.512938] type=14
acct/ data_mi0rror/ lost+found/ sdcard/
apex/ 0 debug_ramdisk/ metadata/ a storage/
bin/ default.prop u mnt/ sys/
budgreports dev/ i odm/ sytstem/
cache/ etc1/ oem/ system_ext/
config/ init p6roc/ vendor/
d/ init.environ2.rc product/
data/ 7 linkerconfig/ re8s/
console:/ $ sm 016.823:204): avc: denied { getattr } for comm=“sh” path=“/init.environ.rc” dev=“dm-0” ino=26 scontext=u:r:shell:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=1
[ 696.513626] type=1400 audit(1627813016.830:205): avc: denied { getattr } for comm=“sh” path=“/init” dev=“dm-0” ino=25 scontext=u:r:shell:s0 tcontext=u:object_r:init_exec:s0 tclass=lnk_file permissive=1
[ 696.513828] type=1400 audit(1627813016.830:206): avc: denied { read } for comm=“sh” name=“init” dev=“dm-0” ino=25 scontext=u:r:shell:s0 tcontext=u:object_r:init_exec:s0 tclass=lnk_file permissive=1
[ 696.513906] audit: audit_lost=11 audit_rate_limit=5 audit_backlog_limit=64
[ 696.513938] audit: rate limit exceeded
console:/ $
console:/ $ [ 727.215847] healthd: battery l=50 v=3 t=2.6 h=2 st=3 fc=100 chg=au
[ 731.826871] perfetto: enabled ftrace
[ 736.808225] perfetto: disabled ftrace
[ 747.338705] usb 1-1: USB disconnect, device number 3
[ 747.365559] type=1400 audit(1627813067.680:208): avc: denied { getattr } for comm=“kdevtmpfs” path=“/sdb1” dev=“devtmpfs” ino=53693 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 747.365877] type=1400 audit(1627813067.680:209): avc: denied { setattr } for comm=“kdevtmpfs” name=“sdb1” dev=“devtmpfs” ino=53693 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 747.367978] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 747.368056] type=1400 audit(1627813067.680:210): avc: denied { unlink } for comm=“kdevtmpfs” name=“sdb1” dev=“devtmpfs” ino=53693 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=blk_file permissive=1
[ 747.368093] sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 747.384264] type=1400 audit(1627813067.700:211): avc: denied { search } for comm=“android.bg” name=“/” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 747.385736] type=1400 audit(1627813067.700:212): avc: denied { getattr } for comm=“android.bg” path=“/oem” dev=“mmcblk0p13” ino=2 scontext=u:r:mediaprovider_app:s0:c119,c256,c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1 app=com.android.providers.media.module
[ 747.402663] audit: audit_lost=12 audit_rate_limit=5 audit_backlog_limit=64
[ 747.402696] audit: rate limit exceeded

AIO-3568J_Android11_HDMI_210623.img比较旧了,最好用新的。麻烦拍一下硬盘和板子的连接图看一下,有试过其它硬盘吗,什么牌子的,确保不是山寨硬盘。板子是还有接u盘吗

zyk 发表于 2021-11-17 17:37
AIO-3568J_Android11_HDMI_210623.img比较旧了,最好用新的。麻烦拍一下硬盘和板子的连接图看一下,有试过 …

官方的转接板和排线, 有更好的固定方式可以教学吗? , 另外额外外接 SATA 延长线, 不管使用哪一家厂牌的SATA 盘片都会发生IFS, SAMSUNG 870也是, SATA 延长线也换过好几条. 使用mSATA 必须透过转接版

有什么需求需要用到延长线,是线的长度不够是吗,可以拍一下您那边的连接图看一下吗,另外麻烦更新一下固件再测试。我们这边试了两个硬盘,闪迪 3D SSD和致钛 SC001,拷贝大视频文件并且连续播放硬盘里面的视频两天,都是正常的,没用出现过interface fatal error的信息。

zyk 发表于 2021-11-19 10:56
有什么需求需要用到延长线,是线的长度不够是吗,可以拍一下您那边的连接图看一下吗,另外麻烦更新一下固件 …

因为找不到方式去固定你们官方提供的SATA转接版, 在更换SATA 盘片的同时容易去拉扯排线, 所以使用了延长线.

硬盘通过设计的外壳去固定,参考https://wiki.t-firefly.com/EC-A3568J/started.html#chan-pin-jian-jie

zyk 发表于 2021-11-22 08:51
硬盘通过设计的外壳去固定,参考https://wiki.t-firefly.com/EC-A3568J/started.html#chan-pin-jian-jie

这目前无法解决我遇到的问题!, 还是可以提供SATA速率降成GEN2 3.0GB/s 的方式

参考

6G: io -w -4 0xfdc50000 0x33302220
3G: io -w -4 0xfdc50000 0x33301110
1.5G: io -w -4 0xfdc50000 0x33300000

Android系统io指令默认是关闭的,打开方式参考

diff --git a/kernel/arch/arm64/configs/firefly_defconfig b/kernel/arch/arm64/configs/firefly_defconfig
index 10a67d7998..c85ca2f73e 100644
--- a/kernel/arch/arm64/configs/firefly_defconfig
+++ b/kernel/arch/arm64/configs/firefly_defconfig
@@ -925,3 +925,5 @@ CONFIG_CAN_ROCKCHIP=y
 CONFIG_CANFD_ROCKCHIP=y

 CONFIG_GPIO_PCA953X=y
+
+CONFIG_DEVMEM=y
diff --git a/kernel/configs/rockchip/android-11.config b/kernel/configs/rockchip/android-11.config
index a35dd108fb..3fb58f2846 100644
--- a/kernel/configs/rockchip/android-11.config
+++ b/kernel/configs/rockchip/android-11.config
@@ -5,7 +5,6 @@
 # CONFIG_CIFS_XATTR is not set
 # CONFIG_CIFS_POSIX is not set
 # CONFIG_CRYPTO_MD4 is not set
-# CONFIG_DEVMEM is not set
 # CONFIG_FHANDLE is not set
 # CONFIG_FW_CACHE is not set
 # CONFIG_IP6_NF_NAT is not set

zyk 发表于 2021-11-22 17:49
参考

io -w -4 0xfdc50000 0x33301110
目前把速率降成 3G 看起來是可以的

我目前使用 AIO-3568J-Ubuntu20.04-RTLINUX-GPT-20210924-1511.img

重新掃SSD盤片的時候有遇到另一個問題, 之後盤片就再也無法link 了

因為是隨機出現的, 所以寫了一個測試script, 使用的SSD 是 SAMSUNG 870 QVO

目前只會發生在 3G 跟 1.5 G 的速率, 是否還有其他參數需要做設定?

#!/bin/bash
i=0
while [ $i -ne 9999 ]
do
        echo "Test $i times"
        i=$(($i+1))
        #sleep 1
        echo "- - -" > /sys/class/scsi_host/host0/scan
done
[  913.843335] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  913.846675] ata1.00: supports DRM functions and may not be fully accessible
[  913.848931] ata1.00: supports DRM functions and may not be fully accessible
[  913.850705] ata1.00: configured for UDMA/133
[  913.850875] ata1.00: Enabling discard_zeroes_data
[  914.319998] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  914.323150] ata1.00: supports DRM functions and may not be fully accessible
[  914.325530] ata1.00: supports DRM functions and may not be fully accessible
[  914.327310] ata1.00: configured for UDMA/133
[  914.800012] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  914.803156] ata1.00: supports DRM functions and may not be fully accessible
[  914.805428] ata1.00: supports DRM functions and may not be fully accessible
[  914.807273] ata1.00: configured for UDMA/133
[  914.807477] ata1.00: Enabling discard_zeroes_data
[  924.032041] [dhd-wlan0] wl_run_escan : LEGACY_SCAN sync ID: 17, bssidx: 0
[  924.810404] ata1: softreset failed (1st FIS failed)
[  934.813792] ata1: softreset failed (1st FIS failed)
[  969.817242] ata1: softreset failed (1st FIS failed)
[  969.817271] ata1: limiting SATA link speed to 1.5 Gbps
[  974.989982] ata1: softreset failed (device not ready)
[  974.990013] ata1: reset failed, giving up
[  974.990024] ata1.00: disabled
[  985.003392] ata1: softreset failed (1st FIS failed)
[  987.078869] [dhd-wlan0] wl_run_escan : LEGACY_SCAN sync ID: 18, bssidx: 0
[  995.007469] ata1: softreset failed (1st FIS failed)
[ 1030.010539] ata1: softreset failed (1st FIS failed)
[ 1030.010567] ata1: limiting SATA link speed to 1.5 Gbps
[ 1035.183303] ata1: softreset failed (device not ready)
[ 1035.183331] ata1: reset failed, giving up
[ 1035.183373] ata1.00: detaching (SCSI 0:0:0:0)
[ 1035.203935] sd 0:0:0:0: [sda] Stopping disk
[ 1045.196872] ata1: softreset failed (1st FIS failed)
[ 1050.078234] [dhd-wlan0] wl_run_escan : LEGACY_SCAN sync ID: 19, bssidx: 0
[ 1055.199997] ata1: softreset failed (1st FIS failed)
[ 1090.203944] ata1: softreset failed (1st FIS failed)
[ 1090.203973] ata1: limiting SATA link speed to 1.5 Gbps
[ 1095.376622] ata1: softreset failed (device not ready)
[ 1095.376650] ata1: reset failed, giving up
[ 1105.380862] ata1: softreset failed (1st FIS failed)
[ 1113.077533] [dhd-wlan0] wl_run_escan : LEGACY_SCAN sync ID: 20, bssidx: 0
[ 1115.383526] ata1: softreset failed (1st FIS failed)
[ 1150.386720] ata1: softreset failed (1st FIS failed)
[ 1150.386751] ata1: limiting SATA link speed to 1.5 Gbps
[ 1155.559944] ata1: softreset failed (device not ready)
[ 1155.559972] ata1: reset failed, giving up
[ 1165.564112] ata1: softreset failed (1st FIS failed)
[ 1175.567488] ata1: softreset failed (1st FIS failed)
[ 1176.078347] [dhd-wlan0] wl_run_escan : LEGACY_SCAN sync ID: 21, bssidx: 0
[ 1210.567589] ata1: softreset failed (1st FIS failed)
[ 1210.567619] ata1: limiting SATA link speed to 1.5 Gbps
[ 1215.739942] ata1: softreset failed (device not ready)
[ 1215.739969] ata1: reset failed, giving up

本帖最后由 zyk 于 2022-2-9 09:46 编辑

对比一下不用延长线,使用官方的转接板是否存在问题

zyk 发表于 2022-2-9 09:33
对比一下不用延长线,使用官方的转接板是否存在问题

目前的環境就是用官方的轉接版, 沒有使用延長線

3G速度反复扫描确实会出现问题,但6G速度测试9999次没问题,ssd可能并不适合工作在sata2
正常情况就应该是建立6Gbps的速度,你在使用6Gbps速度时候出现的 ata1:SError:{UnrecovData Proto LinkSeq} 强烈怀疑是硬件问题
建议板子和转接板一起申请售后返修

延长线也带上,寄出后快递信息私发给我

Liuth 发表于 2022-2-10 09:49
3G速度反复扫描确实会出现问题,但6G速度测试9999次没问题,ssd可能并不适合工作在sata2
正常情况就应该是 …

SSD 可能並不適合在sata2工作 => 是說這個SATA port 不建議使用GEN1或GEN2的速率嗎?
理論上應該都要支持的?

目前因為延長線+官方轉接版在6Gbps 的速率下有機會出現IFS, 其他主板也是一樣的(不只一片), 有交換測試過.
在3G速率下是沒有問題的, 但是目前又遇到3G重複掃盤後會異常…