Unable to access SATA consistently in L2.6.35 on i.MX53 QSB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unable to access SATA consistently in L2.6.35 on i.MX53 QSB

跳至解决方案
1,920 次查看
vincentchou
Contributor IV

We recently came across a strange phenomenon that Linux could not see SATA drive after booted into 2.6.35.  However, we could see SATA information and partition table within u-boot.  Has anyone observed the same phenomenon in his/her board? 

Vincent

标签 (2)
1 解答
1,179 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Please read the i.MX53 QSB BSP reference Manual (mx53_start_linux.pdf) Chapter 23 SATA Driver for more details.

23.4 Linux Menu Configuration Options

The following Linux kernel configurations are provided for SATA driver:

• CONFIG_SATA_AHCI_PLATFORM: Configure options for SATA driver. In the menuconfig this

option is available under "Device Drivers --->Serial ATA (prod) and Parallel ATA (experimental)

drivers -> Platform AHCI SATA support”.

• CONFIG_SATA_AHCI_FSL_NO_HOTPLUG_MODE: Configure options to disable SATA

HOTPLUG mode which is used to close SATA internal clock if SATA device is not found. In the

menuconfig this option is available under "Device Drivers --->Serial ATA (prod) and Parallel ATA

(experimental) drivers -> Freescale i.MX SATA AHCI NO HOTPLUG mode”

In busybox, enable "fdisk" under "Linux System Utilities".

23.7 Usage Example

1. After building the kernel and the SATA AHCI driver and deploying, boot the target, and log in as

root.

2. Make sure that the AHCI and AHCI paltform drivers are built in kernel or loaded into kernel. Use

the following commands to load the drivers into kernel.

# insmod libata.ko

# insmod libahci.ko

# insmod ahci-platform.ko

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,180 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Please read the i.MX53 QSB BSP reference Manual (mx53_start_linux.pdf) Chapter 23 SATA Driver for more details.

23.4 Linux Menu Configuration Options

The following Linux kernel configurations are provided for SATA driver:

• CONFIG_SATA_AHCI_PLATFORM: Configure options for SATA driver. In the menuconfig this

option is available under "Device Drivers --->Serial ATA (prod) and Parallel ATA (experimental)

drivers -> Platform AHCI SATA support”.

• CONFIG_SATA_AHCI_FSL_NO_HOTPLUG_MODE: Configure options to disable SATA

HOTPLUG mode which is used to close SATA internal clock if SATA device is not found. In the

menuconfig this option is available under "Device Drivers --->Serial ATA (prod) and Parallel ATA

(experimental) drivers -> Freescale i.MX SATA AHCI NO HOTPLUG mode”

In busybox, enable "fdisk" under "Linux System Utilities".

23.7 Usage Example

1. After building the kernel and the SATA AHCI driver and deploying, boot the target, and log in as

root.

2. Make sure that the AHCI and AHCI paltform drivers are built in kernel or loaded into kernel. Use

the following commands to load the drivers into kernel.

# insmod libata.ko

# insmod libahci.ko

# insmod ahci-platform.ko

 

0 项奖励
回复
1,179 次查看
vincentchou
Contributor IV

Sorry!  I forgot to reply!  We suspect this is a hardware issue instead of software because it only occurs to a few boards.  Thanks for your help anyway!

Vincent

0 项奖励
回复
1,179 次查看
belgianwaffle
Contributor II

Hi Vincent,

Did you ever solve the issue? We are seeing 10% of our boards have the SATA issue with Linux version 2.6.35. It works fine in U-Boot.

I'm trying to get Linux version 3.14.33 working to see if it was a kernel bug.

1,179 次查看
vincentchou
Contributor IV

We did not stay on i.MX53 for too long due to certain hardware limitation.  Now we have already migrated to i.MX6 completely.  So far we have not come across the same issue on i.MX6.

0 项奖励
回复