Home › Forum › Getting Started › uBoot detection of SATA devices
With my v1.2 board which I am finally getting an opportunity to benchmark, uBoot can’t seem to consistently detect a SATA drive. I have to run ‘scsi reset’ multiple times to get the card to detect an SSD if it does at all.
Can this be related to the PCIe bug fixed in ver 1.3?
When the card boots, it does see the SSD. Since I want to use the SSD as a boot device, this is far too late…
BootROM – 2.03
Starting CP-1 IOROM 1.07
Booting from SPI NOR flash 1 (0x32)
Found valid image at boot postion 0x000
lNOTICE: Starting binary extension
NOTICE: Gathering DRAM information
mv_ddr: mv_ddr-armada-17.02.0-g42da6da (Mar 9 2017 – 12:02:05)
mv_ddr: scrubbing memory…
mv_ddr: completed successfully
Booting Trusted Firmware
BL1: v1.2(release):armada-17.02.0:2017.02-218-g1558a93
BL1: Built : 12:02:06, Mar 9 2017
NOTICE: BL1: Booting BL2
lNOTICE: BL2: v1.2(release):armada-17.02.0:2017.02-218-g1558a93
NOTICE: BL2: Built : 12:02:06, Mar 9 2017
NOTICE: BL1: Booting BL31
lNOTICE: BL31: v1.2(release):armada-17.02.0:2017.02-218-g1558a93
NOTICE: BL31: Built : 12:02:06, Mar 9 2017
lU-Boot 2015.01-armada-17.02.0 (Mar 09 2017 – 12:01:25)
I2C: ready
DRAM: 15.8 GiB
Board: MACCHIATOBin-8040
Clock: CPU 1300 [MHz]
DDR 800 [MHz]
FABRIC 800 [MHz]
MSS 200 [MHz]
DDR 64 Bit width
LLC Enabled (Exclusive Mode)
Comphy chip #0:
Comphy-0: PEX0
Comphy-1: PEX0
Comphy-2: PEX0
Comphy-3: PEX0
Comphy-4: KR
Comphy-5: SATA1
Comphy chip #1:
Comphy-0: SGMII1 1.25 Gbps
Comphy-1: SATA0
Comphy-2: USB3_HOST0
Comphy-3: SATA1
Comphy-4: KR
Comphy-5: SGMII2 1.25 GbpsERROR: UTMI PHY port type is invalid
at drivers/phy/comphy_cp110.c:1498/comphy_dedicated_phys_init()
ERROR: UTMI PHY port type is invalid
at drivers/phy/comphy_cp110.c:1498/comphy_dedicated_phys_init()
ERROR: UTMI PHY port type is invalid
at drivers/phy/comphy_cp110.c:1498/comphy_dedicated_phys_init()
UTMI PHY 0 initialized to USB Host255
UTMI PHY 1 initialized to USB Host255
UTMI PHY 2 initialized to USB Host255
Now running in RAM – U-Boot at: 3ff0a000
U-Boot DT blob at : 000000003f9f4548
NAND: 0 MiB
MMC: XENON-SDHCI: 0, XENON-SDHCI: 1
SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB
PCIE-0: Link down
SCSI: SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
No Link on this port!
Can not start port 0
Net: Skipping disabled port egiga1
Skipping disabled port egiga2
egiga0, egiga1
Warning: egiga1 MAC addresses don’t match:
Address in SROM is 02:50:43:ff:ff:01
Address in environment is 02:50:43:ff:ff:02
, egiga2 [PRIME], egiga3
Hit any key to stop autoboot: 0
Marvell>> scsi resetReset SCSI
Setting SCSI to 0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
No Link on this port!
Can not start port 0
scanning bus 0 for devices…
Invalid port number 3
Invalid port number 4
Invalid port number 5
Invalid port number 6
Invalid port number 7
Found 0 device(s).
Setting SCSI to 1
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
scanning bus 1 for devices…
timeout exit!
Invalid port number 11
Invalid port number 12
Invalid port number 13
Invalid port number 14
Invalid port number 15
Found 0 device(s).
Marvell>> scsi resetReset SCSI
Setting SCSI to 0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
No Link on this port!
Can not start port 0
scanning bus 0 for devices…
Invalid port number 3
Invalid port number 4
Invalid port number 5
Invalid port number 6
Invalid port number 7
Found 0 device(s).
Setting SCSI to 1
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Can not start port 0
scanning bus 1 for devices…
timeout exit!
Invalid port number 11
Invalid port number 12
Invalid port number 13
Invalid port number 14
Invalid port number 15
Found 0 device(s).
Marvell>> scsi resetReset SCSI
Setting SCSI to 0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
No Link on this port!
Can not start port 0
scanning bus 0 for devices…
Invalid port number 3
Invalid port number 4
Invalid port number 5
Invalid port number 6
Invalid port number 7
Found 0 device(s).
Setting SCSI to 1
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Target spinup took 0 ms.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
Can not start port 0
scanning bus 1 for devices…
timeout exit!
Invalid port number 11
Invalid port number 12
Invalid port number 13
Invalid port number 14
Invalid port number 15
Found 0 device(s).
Marvell>> scsi info
Marvell>>
From dmesg,
[ 4.443860] ata3.00: supports DRM functions and may not be fully accessible
[ 4.450862] ata3.00: ATA-9: Micron_M500_MTFDDAT480MAV, MU05, max UDMA/133
[ 4.457683] ata3.00: 937703088 sectors, multi 16: LBA48 NCQ (depth 31/32)
[ 4.464532] ata3.00: READ LOG DMA EXT failed, trying unqueued
[ 4.473785] ata3.00: supports DRM functions and may not be fully accessible
[ 4.484022] ata3.00: configured for UDMA/133
[ 4.488506] scsi 2:0:0:0: Direct-Access ATA Micron_M500_MTFD MU05 PQ: 0 ANSI: 5
[ 4.496952] ata3.00: Enabling discard_zeroes_data
[ 4.501705] sd 2:0:0:0: [sda] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[ 4.509228] sd 2:0:0:0: [sda] 4096-byte physical blocks
[ 4.514563] sd 2:0:0:0: [sda] Write Protect is off
[ 4.519383] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 4.519414] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 4.528694] ata3.00: Enabling discard_zeroes_data
[ 4.534811] sda: sda1 sda2 sda3
[ 4.538476] ata3.00: Enabling discard_zeroes_data
FWIW, booting from SSD over SATA has been stable for me, but I am using the “17.10” release of Marvell’s trees.
Technical specification tables can not be displayed on mobile. Please view on desktop