[U-Boot] Missing SCSI block device connected to SATA adapter
Kostya Porotchkin
kostap at marvell.com
Thu Dec 29 16:45:08 CET 2016
Hello,
I am trying to use the new SCSI code with CONFIG_BLK=y on a Marvell board.
I added CONFIG_DM_SCSI=y to my default configuration too.
However "scsi reset" does not detect the connected hard disk since the execution flow never entered the "uclass_foreach_dev" loop in scsi_scan() function.
My device is "UCLASS_AHCI" (arch/arm/mach-mvebu/sata.c) and calls ahci_init().
Should I take any additional steps for being registered as a SCSI device too?
Thank you for help!
Konstantin
U-Boot 2016.11-00446-g7b1402b-dirty (Dec 29 2016 - 17:44:24 +0200)
DRAM: 2 GiB
Pre-reloc malloc() used 0x218 bytes (0 KB)
Now running in RAM - U-Boot at: 7ff39000
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: SGMII2 1.25 Gbps
Comphy-1: SATA0
Comphy-2: USB3_HOST0
Comphy-3: SATA1
Comphy-4: KR
Comphy-5: SGMII3 1.25 Gbps
UTMI PHY 0 initialized to USB Host0
UTMI PHY 1 initialized to USB Host1
UTMI PHY 2 initialized to USB Host0
SATA link 0 timeout.
Target spinup took 0 ms.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
MMC: sdhci at 6e0000: 0
SF: Detected w25q32bv with page size 256 Bytes, erase size 4 KiB, total 4 MiB
Model: MACCHIATOBin-8040
Net: No ethernet found.
=>
=> scsi reset
Reset SCSI
scanning bus for devices (DM)...
Get UCLASS_SCSI - OK
=> dm tree
Class Probed Name
----------------------------------------
root [ + ] root_driver
simple_bus [ + ] |-- ap806
simple_bus [ + ] | `-- config-space
pinctrl [ + ] | |-- ap-pinctl at 6F4000
pinconfig [ ] | | |-- i2c-pins-0
pinconfig [ + ] | | `-- emmc-pins-0
gpio [ ] | |-- gpio at 6F5040
serial [ + ] | |-- serial at 512000
mmc [ + ] | `-- sdhci at 6e0000
blk [ ] | `-- sdhci at 6e0000.blk
simple_bus [ + ] |-- cp110-master
simple_bus [ + ] | |-- config-space
pinctrl [ ] | | |-- cpm-pinctl at 440000
pinconfig [ ] | | | |-- cpm-i2c-pins-0
pinconfig [ ] | | | |-- cpm-i2c-pins-1
pinconfig [ ] | | | |-- cpm-ge-rgmii-pins-0
pinconfig [ ] | | | |-- cpm-pca0_pins
pinconfig [ ] | | | |-- cpm-sdhi-pins-0
pinconfig [ ] | | | `-- cpm-spi-pins-0
gpio [ ] | | |-- gpio at 440100
gpio [ ] | | |-- gpio at 440140
ahci [ + ] | | |-- sata at 540000
i2c [ ] | | |-- i2c at 701000
i2c [ ] | | |-- i2c at 701100
misc [ + ] | | `-- comphy at 441000
pci [ ] | `-- pcie at f2600000
simple_bus [ + ] `-- cp110-slave
simple_bus [ + ] `-- config-space
pinctrl [ + ] |-- cps-pinctl at 440000
pinconfig [ ] | |-- cps-ge-rgmii-pins-0
pinconfig [ + ] | `-- cps-spi-pins-1
gpio [ ] |-- gpio at 440100
gpio [ ] |-- gpio at 440140
ahci [ ] |-- sata at 540000
usb [ ] |-- usb3 at 500000
spi [ + ] |-- spi at 700680
spi_flash [ ] | `-- spi_flash at 0:0
misc [ + ] `-- comphy at 441000
More information about the U-Boot
mailing list