SATA on TWR-LS1021A

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

SATA on TWR-LS1021A

Jump to solution
3,917 Views
artsiomstaliaro
Contributor IV

Hello,

Im trying to start SATA 3.0 on TWR-LS1021A with external hard driver. But u-boot and Linux cannot detect it.

Maybe anybody has experience with SATA on LS1021A?

Maybe somebody has RCW especially for SATA?

Labels (1)
Tags (2)
1 Solution
2,779 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Art Staliarou,


Please download LS1021A SP v1.5 from QorIQ LS1 Tower System Module|Freescale, and apply this patch based on SDK 1.7 release, this release includes Linux SATA driver.  SATA driver is enabled by default in V1.5 release, you could use the pre-built images to do verification.

In addition, please enable SATA in RCW, please refer to the following worked u-boot log.

iU-Boot 2014.07+ls1+g659b6a2 (Mar 10 2015 - 10:30:21)

CPU:  Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

      CPU0(ARMV7):1000 MHz,

      Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

      00000000: 0608000a 00000000 00000000 00000000

      00000010: 70000000 00007900 e0025a00 21046000

      00000020: 00000000 00000000 00000000 00038000

      00000030: 00080000 48007340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V4.0

VBank: 0

I2C:  ready

DRAM:  1 GiB

Using SERDES1 Protocol: 112 (0x70)

Firmware 'Microcode version 0.0.0 for T1040 r1.0' for 1040 V1.0

QE: uploading microcode 'Microcode for T1040 r1.0'

Flash: 128 MiB

MMC:  FSL_SDHC: 0

EEPROM: NXID v1

PCIe1: Root Complex no link, regs @ 0x3400000

PCIe2: Root Complex no link, regs @ 0x3500000

In:    serial

Out:  serial

Err:  serial

Target spinup took 0 ms.

AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode

flags: 64bit ncq pm clo only pmp fbss pio slum part ccc

scanning bus for devices...

  Device 0: (0:0) Vendor: ATA Prod.: ST3160815AS Rev: 4.AD

            Type: Hard Disk

            Capacity: 152587.8 MB = 149.0 GB (312500000 x 512)

                                                            


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

8 Replies
2,779 Views
kporenta
Contributor III

Hi Art,

have you downloaded and applied service pack for SDK 1.7?

Freescale Linux QorIQ SDK v1.7 for LS1021A SP v1.5

Br, Klemen

0 Kudos
2,779 Views
artsiomstaliaro
Contributor IV

Yes, im working with uboot and Linux from SDK 1.7. Tomorrow i will show Linux log.

0 Kudos
2,779 Views
artsiomstaliaro
Contributor IV

U-Boot 2014.07+ls1+g6747328 (Dec 07 2014 - 16:03:02)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 70000000 00407900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 00038000

       00000030: 00080000 48007340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V3.0

VBank: 0

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 112 (0x70)

Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0

QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1

Flash: 128 MiB

MMC:   FSL_SDHC: 0

EEPROM: CRC mismatch (3119a321 != ffffffff)

In:    serial

Out:   serial

Err:   serial

Net:   eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

Hit any key to stop autoboot:  0

## Booting kernel from Legacy Image at 60120000 ...

   Image Name:   Linux-3.12.19-rt30+ls1+g1298273

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3079816 Bytes = 2.9 MiB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

## Loading init Ramdisk from Legacy Image at 60920000 ...

   Image Name:   fsl-image-core-ls1021atwr-201412

   Image Type:   ARM Linux RAMDisk Image (gzip compressed)

   Data Size:    20478111 Bytes = 19.5 MiB

   Load Address: 00000000

   Entry Point:  00000000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 60020000

   Booting using the fdt blob at 0x60020000

   Loading Kernel Image ... OK

   Loading Ramdisk to bdbaa000, end bef3189f ... OK

   Loading Device Tree to bdba1000, end bdba917c ... OK

Starting kernel ...

Booting Linux on physical CPU 0xf00

Linux version 3.12.19-rt30+ls1+g1298273 (jenkins@neptune) (gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04) ) #1 SMP Sun Dec 7 16:03:39 CST 2014

CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c73c7d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale LS1021A, model: LS1021A TWR Board

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @80d49000 s8384 r8192 d16192 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

Kernel command line: root=/dev/ram rw console=ttyS0,115200

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 1014076K/1048576K available (3224K kernel code, 255K rwdata, 1460K rodata, 180K init, 196K bss, 34500K reserved, 0K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f800000 - 0x7fe00000   (   6 MB)

      .text : 0x80008000 - 0x8049b244   (4685 kB)

      .init : 0x8049c000 - 0x804c90c0   ( 181 kB)

      .data : 0x804ca000 - 0x80509e60   ( 256 kB)

       .bss : 0x80509e68 - 0x8053b124   ( 197 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

Hierarchical RCU implementation.

        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

NR_IRQS:16 nr_irqs:16 16

Architected cp15 timer(s) running at 12.50MHz (phys).

Switching to timer-based delay loop

sched_clock: ARM arch timer >56 bits at 12500kHz, resolution 80ns

sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms

Console: colour dummy device 80x30

Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: update cpu_power 1024

CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00

Setting up static identity map for 0x80304218 - 0x8030427c

CPU1: Booted secondary processor

CPU1: update cpu_power 1024

CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01

Brought up 2 CPUs

SMP: Total of 2 processors activated.

CPU: All CPU(s) started in HYP mode.

CPU: Virtualization extensions available.

devtmpfs: initialized

VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5

regulator-dummy: no parameters

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

cpuidle: using governor menu

syscon 1570000.scfg: regmap [mem 0x01570000-0x0157ffff] registered

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 8 bytes.

bio: create slab <bio-0> at 0

3P3V: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

i2c i2c-1: IMX I2C adapter registered

i2c i2c-2: of_i2c: modalias failure on /soc/i2c@21a0000/ltc2945@67

i2c i2c-2: IMX I2C adapter registered

pps_core: LinuxPPS API ver. 1 registered

pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

PTP clock support registered

fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller

Advanced Linux Sound Architecture Driver Initialized.

Switched to clocksource arch_sys_counter

NET: Registered protocol family 2

TCP established hash table entries: 8192 (order: 4, 65536 bytes)

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP: reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

Trying to unpack rootfs image as initramfs...

rootfs image is not initramfs (no cpio magic); looks like an initrd

Freeing initrd memory: 19996K (bdbaa000 - bef31000)

hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) В© 2001-2006 Red Hat, Inc.

msgmni has been set to 2019

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00

pci_bus 0000:00: root bus resource [io  0x1000-0xffff]

pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0000:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 1: assigned [mem 0x4040000000-0x4043ffffff]

pci 0000:00:00.0: BAR 0: assigned [mem 0x4044000000-0x4044ffffff]

pci 0000:00:00.0: BAR 6: assigned [mem 0x4045000000-0x4045ffffff pref]

pci 0000:00:00.0: BAR 8: assigned [mem 0x4046000000-0x40460fffff]

pci 0000:01:00.0: BAR 0: assigned [mem 0x4046000000-0x40460fffff]

pci 0000:00:00.0: PCI bridge to [bus 01]

pci 0000:00:00.0:   bridge window [mem 0x4046000000-0x40460fffff]

layerscape-pcie 3500000.pcie: phy link never came up

layerscape-pcie 3500000.pcie: PCI host bridge to bus 0001:00

pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])

pci_bus 0001:00: root bus resource [mem 0x4840000000-0x487fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0001:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers enabled

pci 0001:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]

pci 0001:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]

pci 0001:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]

pci 0001:00:00.0: PCI bridge to [bus 01]

sii902x: probe of 1-0039 failed with error -1

syscon 1570000.scfg: Failed to create debugfs directory

Console: switching to colour frame buffer device 60x34

fb0: fb device registered successfully.

fb1: fb device registered successfully.

fb2: fb device registered successfully.

fb3: fb device registered successfully.

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

console [ttyS0] enabled

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

of_serial 2402200.ucc: clk or clock-frequency not defined

of_serial: probe of 2402200.ucc failed with error -2

serial: Freescale lpuart driver

2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 112, base_baud = 6250000) is a FSL_LPUART

brd: module loaded

loop: module loaded

60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00227e

Amd/Fujitsu Extended Query Table at 0x0040

  Amd/Fujitsu Extended Query version 1.3.

number of CFI chips: 1

8 ofpart partitions found on MTD device 60000000.nor

Creating 8 MTD partitions on "60000000.nor":

0x000000000000-0x000000020000 : "NOR bank0 RCW Image"

0x000000020000-0x000000120000 : "NOR DTB Image"

0x000000120000-0x000000920000 : "NOR Linux Kernel Image"

0x000000920000-0x000003f20000 : "NOR Ramdisk Root File System Image"

0x000003f80000-0x000004000000 : "NOR bank4 u-boot Image"

0x000004000000-0x000004020000 : "NOR bank4 RCW Image"

0x000004020000-0x000007f20000 : "NOR JFFS2 ROOT File System Image"

0x000007f80000-0x000008000000 : "NOR bank0 u-boot Image"

fsl-quadspi 1550000.quadspi: found mr25h256, expected n25q128a13

fsl-quadspi 1550000.quadspi: mr25h256 (32 Kbytes)

fsl-quadspi 1550000.quadspi: Unsupported cmd 0x03

fsl-quadspi 1550000.quadspi: QuadSPI SPI NOR flash driver

fsl-dspi 2110000.dspi: can't get dspi transfer mode

CAN device driver interface

libphy: Freescale PowerQUICC MII Bus: probed

fsl-gianfar ethernet.4: enabled errata workarounds, flags: 0x4

fsl-gianfar ethernet.4 eth0: mac: 00:00:00:00:00:00

fsl-gianfar ethernet.4 eth0: Running with NAPI enabled

fsl-gianfar ethernet.4 eth0: RX BD ring size for Q[0]: 256

fsl-gianfar ethernet.4 eth0: TX BD ring size for Q[0]: 256

fsl-gianfar ethernet.5: enabled errata workarounds, flags: 0x4

fsl-gianfar ethernet.5 eth1: mac: 00:00:00:00:00:00

fsl-gianfar ethernet.5 eth1: Running with NAPI enabled

fsl-gianfar ethernet.5 eth1: RX BD ring size for Q[0]: 256

fsl-gianfar ethernet.5 eth1: TX BD ring size for Q[0]: 256

fsl-gianfar ethernet.6: enabled errata workarounds, flags: 0x4

fsl-gianfar ethernet.6 eth2: mac: 00:00:00:00:00:00

fsl-gianfar ethernet.6 eth2: Running with NAPI enabled

fsl-gianfar ethernet.6 eth2: RX BD ring size for Q[0]: 256

fsl-gianfar ethernet.6 eth2: TX BD ring size for Q[0]: 256

e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k

e1000e: Copyright(c) 1999 - 2013 Intel Corporation.

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller

xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1

xhci-hcd xhci-hcd.0.auto: irq 125, io mem 0x03100000

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller

xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

usbcore: registered new interface driver usb-storage

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)

qoriq_cpufreq: Freescale PowerPC qoriq CPU frequency scaling driver

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: no vqmmc regulator found

mmc0: no vmmc regulator found

mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA

caam 1700000.crypto: Entropy delay = 3200

caam 1700000.crypto: Instantiated RNG4 SH0

caam 1700000.crypto: Instantiated RNG4 SH1

caam 1700000.crypto: device ID = 0x0a14030000000000 (Era 7)

caam 1700000.crypto: job rings = 4, qi = 0

caam algorithms registered in /proc/crypto

caam_jr 1710000.jr: registering rng-caam

mmc0: new high speed SDHC card at address 0001

caam 1700000.crypto: fsl,sec-v5.3 algorithms registered in /proc/crypto

mmcblk0: mmc0:0001 RTSS2 7.41 GiB

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

mmcblk0: p1

sgtl5000 1-000a: sgtl5000 revision 0x11

sgtl5000 1-000a: Failed to get supply 'VDDD': -19

1-000a: 1200 mV normal

sgtl5000 1-000a: Using internal LDO instead of VDDD

vf610-sgtl5000 sound.9:  sgtl5000 <-> 2b50000.sai mapping ok

oprofile: using timer interrupt.

TCP: cubic registered

Initializing XFRM netlink socket

NET: Registered protocol family 17

NET: Registered protocol family 15

can: controller area network core (rev 20120528 abi 9)

NET: Registered protocol family 29

can: raw protocol (rev 20120528)

Key type dns_resolver registered

regulator-dummy: disabling

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

ALSA device list:

  #0: FSL-VF610-TWR-BOARD

RAMDISK: gzip image found at block 0

usb 1-1: new high-speed USB device number 2 using xhci-hcd

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd

usb 2-1: Parent hub missing LPM exit latency info.  Power management will be impacted.

hub 2-1:1.0: USB hub found

hub 2-1:1.0: 4 ports detected

usb 1-1.3: new high-speed USB device number 3 using xhci-hcd

VFS: Mounted root (ext2 filesystem) on device 1:0.

devtmpfs: mounted

Freeing unused kernel memory: 180K (8049c000 - 804c9000)

INIT: version 2.88 booting

Starting udev

udevd[128]: starting version 182

FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

Starting Bootlog daemon: bootlogd.

Populating dev cache

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.all.rp_filter = 1

hwclock: can't open '/dev/misc/rtc': No such file or directory

Sun Dec  7 08:10:00 UTC 2014

hwclock: can't open '/dev/misc/rtc': No such file or directory

Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...

Running postinst /etc/rpm-postinsts/101-debianutils...

update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)

Removing any system startup links for run-postinsts ...

  /etc/rcS.d/S99run-postinsts

INIT: Entering runlevel: 5

Configuring network interfaces... SIOCSIFFLAGS: Cannot assign requested address

Starting system message bus: dbus.

Starting Dropbear SSH server: Generating key, this may take a while...

Public key portion is:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCFE230/QK3tBO7FA0sjwGlBfKakFS+zXz0y4BmgseH8zjHvoS1qm91TXeNiEPVcw8V3F8qZ/aV/IZWM17iz9Vpg/CZkyeN33fovpuwViNvEycAQTaRlwmk3A9IRLNBK6LdcJDGvOdVOKYYbbCfndQCunLz4ShEnGXA/a6Z4C87Mly/6z4z5FnU9Ee05iDtDVUQbMmSwyMdiIr39/nJVyRmzo++CIDtgjcHzZVzvyWLOhDnzw3KWDlO0nsKXq71nHGv88TEtPr/f1XAziakw2VSHl0eyrzhboMcji7eoF2uXL4qaou/lYxaJ5O1WBWUumbk1Agm5lTJYUlws5qan5ZR root@ls1021atwr

Fingerprint: md5 90:21:e8:82:22:3c:4d:78:0a:4b:af:1b:de:ca:14:98

dropbear.

hwclock: can't open '/dev/misc/rtc': No such file or directory

Starting network benchmark server: netserver.

Starting system log daemon...0

Starting kernel log daemon...0

Starting internet superserver: xinetd.

Stopping Bootlog daemon: bootlogd.

Poky (Yocto Project Reference Distro) 1.6.1 ls1021atwr /dev/ttyS0

0 Kudos
2,780 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Art Staliarou,


Please download LS1021A SP v1.5 from QorIQ LS1 Tower System Module|Freescale, and apply this patch based on SDK 1.7 release, this release includes Linux SATA driver.  SATA driver is enabled by default in V1.5 release, you could use the pre-built images to do verification.

In addition, please enable SATA in RCW, please refer to the following worked u-boot log.

iU-Boot 2014.07+ls1+g659b6a2 (Mar 10 2015 - 10:30:21)

CPU:  Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

      CPU0(ARMV7):1000 MHz,

      Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

      00000000: 0608000a 00000000 00000000 00000000

      00000010: 70000000 00007900 e0025a00 21046000

      00000020: 00000000 00000000 00000000 00038000

      00000030: 00080000 48007340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V4.0

VBank: 0

I2C:  ready

DRAM:  1 GiB

Using SERDES1 Protocol: 112 (0x70)

Firmware 'Microcode version 0.0.0 for T1040 r1.0' for 1040 V1.0

QE: uploading microcode 'Microcode for T1040 r1.0'

Flash: 128 MiB

MMC:  FSL_SDHC: 0

EEPROM: NXID v1

PCIe1: Root Complex no link, regs @ 0x3400000

PCIe2: Root Complex no link, regs @ 0x3500000

In:    serial

Out:  serial

Err:  serial

Target spinup took 0 ms.

AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode

flags: 64bit ncq pm clo only pmp fbss pio slum part ccc

scanning bus for devices...

  Device 0: (0:0) Vendor: ATA Prod.: ST3160815AS Rev: 4.AD

            Type: Hard Disk

            Capacity: 152587.8 MB = 149.0 GB (312500000 x 512)

                                                            


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

632 Views
Madhu2
Contributor I

@yipingwang 

Hello, 

I'm trying to brig up the sata interface in U-boot and kernel. I didn't find the LS1021A SP v1.5 packege and i'm using Uboot version 2019.10. The below prints getting when testing sata in U-boot.

=> scsi scan
scanning bus for devices...
SATA link 0 timeout.
AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc
=>

0 Kudos
2,779 Views
artsiomstaliaro
Contributor IV

Thank you!

i was apply the patch (SP v.1.5) and saw that SATA driver was not included in Linux build configuration (Freescale 3.0Gbps SATA support). I was add it and got next errors when compile:

| drivers/ata/sata_fsl.c: In function 'sata_fsl_probe':

| drivers/ata/sata_fsl.c:1478:2: error: implicit declaration of function 'of_iomap' [-Werror=implicit-function-declaration]

|   hcr_base = of_iomap(ofdev->dev.of_node, 0);

|   ^

| drivers/ata/sata_fsl.c:1478:11: warning: assignment makes pointer from integer without a cast [enabled by default]

|   hcr_base = of_iomap(ofdev->dev.of_node, 0);

|            ^

| drivers/ata/sata_fsl.c:1503:2: error: implicit declaration of function 'irq_of_parse_and_map' [-Werror=implicit-function-declaration]

|   irq = irq_of_parse_and_map(ofdev->dev.of_node, 0);

|   ^

| drivers/ata/sata_fsl.c: In function 'sata_fsl_remove':

| drivers/ata/sata_fsl.c:1590:2: error: implicit declaration of function 'irq_dispose_mapping' [-Werror=implicit-function-declaration]

|   irq_dispose_mapping(host_priv->irq);

|   ^

| cc1: some warnings being treated as errors

| make[2]: *** [drivers/ata/sata_fsl.o] Error 1

| make[1]: *** [drivers/ata] Error 2

| make: *** [drivers] Error 2

| make: *** Waiting for unfinished jobs....

0 Kudos
2,779 Views
artsiomstaliaro
Contributor IV

Thank you for idea about "In addition, please enable SATA in RCW, please refer to the following worked u-boot log.".

This is true, need to enable SerDes 1 PLL 2.

0 Kudos
2,777 Views
kporenta
Contributor III

Hi Art,

as I wrote in first post, you need to apply SP 1.5 to add support for SATA.

Klemen

0 Kudos