I get an ls1021a TWR board, and there is "SATA basic support" in SDK 1.2 RN, but how to enable this SATA support?
I have tried to change SW3[6], but the result is still the same:
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
scanning bus for devices...
Found 0 device(s).
Besides that, I cannot access any SATA devices in kernel too.
Does the TWR board come with SATA support? If so, how to enable it in u-boot and kernel?
Thanks
I just took a look at what comes with SDK images. On the SDK
use one of the images in ls1021atwr/rcw/RSR_PPS_70. In that
directory name 70 refers to Serdes Protocol 0x70 and it enables
SATA1 on Lane B. Use one of these images as your RCW and boot
your board with it. You should be able to see SATA enabled.
Regards
Sinan Akman
Hi Sinan,
Thanks for your reply.
I have tried to set Serdes Protocol to 0x70, but I still get the same result:
U-Boot 2014.01Layerscape-SDK-V1.1+g2b4d7d7 (Aug 29 2014 - 11:57:41)
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 881b7340 00000000 00000000
Board: LS1021ATWR
CPLD: V2.3
PCBA: V3.0
VBank: 0
I2C: ready
DRAM: 1 GiB (DDR3, 32-bit, CL=10, ECC off)
Using SERDES1 Protocol: 112 (0x70)
Flash: 128 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
Firmware 'Microcode version 0.0.0 for T1040 r1.0' for 1040 V1.0
QE: uploading microcode 'Microcode for T1040 r1.0'
In: serial
Out: serial
Err: serial
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
scanning bus for devices...
Found 0 device(s).
Net: eTSEC2 is in sgmii mode.
eTSEC1 [PRIME], eTSEC2, eTSEC3
Hit any key to stop autoboot: 0
=> scsi scan
scanning bus for devices...
Found 0 device(s).
I still cannot figure it out.
Hi H Wei
OK, I have to debug this and see what that SDK uboot has implemented.
Meanwhile, I am just curious, are you getting similar results with Linux
kernel as well ?
Regards
Sinan Akman
Hi Sinan,
No matter what I try, the result in kernel is still:
root@ls1021atwr:~# ls /dev/sd*
ls: /dev/sd*: No such file or directory
Thanks
Hello H Wei,
In the recent LS1021A Linux SDK(1.2), only Sata disk detecting is supported in u-boot, SATA Linux driver is under developing now.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yiping,
Does the SATA drive get supported in SDK 1.7?
I find it still doesn't work on my board.
Thanks
Hello H Wei,
SATA 3.0 doesn't get support in SDK 1.7, it is still under investigation.
Thanks,
Yiping
Hi H Wei, you will probably have to make sure SRDS_PRTCL_S1[128:135] RCW
value is set accordingly for SerDes protocol that configures the board to use SATA. I am
not sure if there is a prebuilt RCW image available for this as part of SDK at this
point.
Hope this helps.
Sinan Akman
Hi H Wei
What RCW are you using to test out your SATA ?
Regards
Sinan Akman