05-31-2019, 03:32 PM
(05-31-2019, 02:13 PM)Nikolay_Po Wrote: The controller is SATA 3.0 capable, up to 6Gbps speed:
ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
Good start:
Code:...
[ 2.892158] ahci 0000:01:00.0: version 3.0
[ 2.892187] ahci 0000:01:00.0: enabling device (0000 -> 0002)
[ 2.897587] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[ 2.902878] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[ 2.908140] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
[ 2.912936] scsi host0: ahci
[ 2.916136] scsi host1: ahci
[ 2.919593] ata1: SATA max UDMA/133 abar m512@0xfa010000 port 0xfa010100 irq 239
[ 2.926758] ata2: SATA max UDMA/133 abar m512@0xfa010000 port 0xfa010180 irq 239
[ 3.028283] md: linear personality registered for level -1
[ 3.045306] md: multipath personality registered for level -4
[ 3.057861] md: raid0 personality registered for level 0
[ 3.071080] md: raid1 personality registered for level 1
[ 3.082245] async_tx: api initialized (async)
[ 3.089432] md: raid6 personality registered for level 6
[ 3.092450] md: raid5 personality registered for level 5
[ 3.095382] md: raid4 personality registered for level 4
[ 3.110664] md: raid10 personality registered for level 10
[ 3.393371] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 3.404767] ata1.00: ATA-10: WDC WD40EFRX-68N32N0, 82.00A82, max UDMA/133
[ 3.415416] ata1.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 3.427469] ata1.00: configured for UDMA/133
[ 3.435658] scsi 0:0:0:0: Direct-Access ATA WDC WD40EFRX-68N 0A82 PQ: 0 ANSI: 5
[ 3.442864] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 3.448774] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 3.456362] sd 0:0:0:0: [sda] Write Protect is off
[ 3.459313] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 3.460473] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 3.517821] EXT4-fs (mmcblk0p7): mounted filesystem with writeback data mode. Opts: (null)
[ 3.889868] sda: sda1
[ 3.903345] sd 0:0:0:0: [sda] Attached SCSI disk
[ 3.918439] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 3.931274] ata2.00: ATA-10: WDC WD40EFRX-68N32N0, 82.00A82, max UDMA/133
[ 3.943376] ata2.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 3.957284] ata2.00: configured for UDMA/133
[ 3.966477] scsi 1:0:0:0: Direct-Access ATA WDC WD40EFRX-68N 0A82 PQ: 0 ANSI: 5
[ 3.976806] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 3.985707] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 3.994681] sd 1:0:0:0: [sdb] Write Protect is off
[ 4.003161] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 4.003390] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
...
[ 4.434918] sdb: sdb1
[ 4.457494] sd 1:0:0:0: [sdb] Attached SCSI disk
...
[ 6.212890] systemd[1]: Started Journal Service.
[ 6.264396] systemd-journald[333]: Received request to flush runtime journal from PID 1
...
[ 7.139122] ata2.00: configured for UDMA/133
[ 7.143767] ata2: EH complete
[ 7.149571] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 7.188731] ata1.00: configured for UDMA/133
[ 7.193347] ata1: EH complete
[ 7.198255] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 7.454191] FAT-fs (mmcblk0p6): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 7.481085] FAT-fs (mmcblk0p6): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 8.111178] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl
[ 8.123701] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl
...
Bad start
Code:...
[ 2.603078] ahci 0000:01:00.0: version 3.0
[ 2.603088] ahci 0000:01:00.0: enabling device (0000 -> 0002)
[ 2.604895] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[ 2.606642] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[ 2.608467] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
[ 2.611101] scsi host0: ahci
[ 2.612919] scsi host1: ahci
[ 2.614743] ata1: SATA max UDMA/133 abar m512@0xfa010000 port 0xfa010100 irq 239
[ 2.616930] ata2: SATA max UDMA/133 abar m512@0xfa010000 port 0xfa010180 irq 239
[ 2.875669] EXT4-fs (mmcblk0p7): mounted filesystem with writeback data mode. Opts: (null)
...
[ 4.741549] systemd[1]: Started Journal Service.
[ 4.786973] systemd-journald[337]: Received request to flush runtime journal from PID 1
[ 4.822384] ata1: SATA link down (SStatus 1 SControl 300)
[ 4.826507] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen t4
[ 4.830837] ata1: irq_stat 0x00000040, connection status changed
[ 4.834850] ata1: SError: { CommWake DevExch }
[ 4.838688] ata1: hard resetting link
...
[ 5.317967] FAT-fs (mmcblk0p6): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 5.338342] FAT-fs (mmcblk0p6): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 7.048589] ata1: SATA link down (SStatus 1 SControl 300)
[ 7.062679] ata1: EH complete
[ 7.076432] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
[ 7.083094] ata1: irq_stat 0x00000040, connection status changed
[ 7.089241] ata1: SError: { CommWake DevExch }
[ 7.095259] ata1: limiting SATA link speed to 1.5 Gbps
[ 7.101366] ata1: hard resetting link
[ 9.311599] ata1: SATA link down (SStatus 1 SControl 310)
[ 9.325961] ata1: EH complete
[ 9.339887] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
[ 9.346637] ata1: irq_stat 0x00000040, connection status changed
[ 9.352832] ata1: SError: { CommWake DevExch }
[ 9.358896] ata1: limiting SATA link speed to 1.5 Gbps
[ 9.365048] ata1: hard resetting link
...
repeat in a loop
Thank you Nikolay for extracting the above information from the logs.
Good start was after ssh to console after bad start and executing reboot command so no changes to cables or anything inside.
I just tried to connect hard drives to atx power supply, turn on power supply and wait for hard drives to spinup and plugin dc power supply into socket which turned on rockpro64 and same problem, bad start. I tried the same thing an hour ago but I couldn't reproduce so it has to be time related as sometimes i need to leave it off for 5-10 minutes and sometimes for an hour or overnight.
Do you think i just need to find same size dc jack and connect to atx power supply to be 100% that it is not power issue?