How does U-boot detect SATA drives?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How does U-boot detect SATA drives?

1,552 Views
KZ
Contributor I

 

We boot from SD card on LS1028A-RDB, but U-boot doesn't detect SATA drive.
Already we have modified the LS1028A-RDB to use SATA interface, so the LS1028A-RDB is detected SATA drive on Linux OS.

How does U-boot detect SATA drives?

We have already modified the LS1028A-RDB and change RCW  to use SATA interface, so the LS1028A-RDB  detect SATA drive on Linux .

 

0 Kudos
Reply
4 Replies

1,543 Views
KZ
Contributor I

We use   Layerscape(LSDK)  21.08

0 Kudos
Reply

1,531 Views
yipingwang
NXP TechSupport
NXP TechSupport

The default u-boot source code provided in LSDK 21.08 for LS1028ARDB supports SATA.

=> scsi reset

Reset SCSI
scanning bus for devices...
Target spinup took 0 ms.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst 
  Device 0: (0:0) Vendor: ATA Prod.: KINGSTON SA400M8 Rev: 0309
            Type: Hard Disk
            Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)
0 Kudos
Reply

1,516 Views
KZ
Contributor I
We tried below in U-BOOT.

--------------------------------------------------------------------------------

=> scsi reset

Reset SCSI
scanning bus for devices...
SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
=>

Reset SCSI
scanning bus for devices...

-------------------------------------------------------------------------------

In Linux  log
[ 14.717390] ata1: SATA link down (SStatus 1 SControl 300)
[ 15.509285] ata1: limiting SATA link speed to 1.5 Gbps
[ 16.385402] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 16.394855] ata1.00: ATA-10: CFast 3IE4, L20420i, max UDMA/133
[ 16.400716] ata1.00: 31277232 sectors, multi 1: LBA48 NCQ (depth 32)
[ 16.415538] ata1.00: configured for UDMA/133
[ 16.420126] scsi 0:0:0:0: Direct-Access ATA CFast 3IE4 20i PQ: 0 ANSI: 5
[ 16.429191] sd 0:0:0:0: [sda] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 16.436874] sd 0:0:0:0: [sda] Write Protect is off
[ 16.441739] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 16.474405] sda: sda1 sda2 sda3 sda4
[ 16.480685] sd 0:0:0:0: [sda] Attached SCSI disk
[ 80.957385] ata1: SATA link down (SStatus 0 SControl 310)
[ 85.209384] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 85.227481] ata1.00: configured for UDMA/133
----------------------------------------------------------------------------------------------------

In U-boot, Can we try to forced low speed link up ( SATA link up 1.5 Gbps)?
0 Kudos
Reply

1,428 Views
yipingwang
NXP TechSupport
NXP TechSupport

In u-boot, there is no command to implement this function, you need to modify u-boot source code to force low speed link up.

0 Kudos
Reply