i.MX6Q uboot boot from SATA

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

i.MX6Q uboot boot from SATA

跳至解决方案
3,120 次查看
williamliu
Contributor II

Hi:

        I use i.MX6 Series SABRE,   u-boot-2009.08,linux-3.0.35

 

        I had modified mx6q_sabresd.h in uboot:

              #define CONFIG_CMD_SATA

             #undef CONFIG_FSL_ENV_IN_MMC

             #define CONFIG_FSL_ENV_IN_SATA

       after uboot boot,printf:

U-Boot 2009.08 (Dec 10 2014 - 15:15:43)

CPU: Freescale i.MX6 family TO1.2 at 792 MHz

Thermal sensor with ratio = 181

Temperature:   31 C, calibration data 0x5794cd7d

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 264000000Hz

emi_slow clock: 132000000Hz

ddr clock     : 528000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ]

Boot Device: SATA

I2C:   ready

DRAM:   1 GB

MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode

flags: ncq stag pm led clo only pmp pio slum part

No port device detected!

In:    serial

Out:   serial

Err:   serial

Found PFUZE100! deviceid=10,revid=11

Net:   got MAC address from IIM: 00:04:9f:03:77:d5

FEC

MX6Q SABRESD U-Boot > printenv

stdin=serial

stdout=serial

stderr=serial

ethact=FEC0

Environment size: 53/8188 bytes

It's wrong use SATA in-uboot, but I had tested mount filesystem on SATA in Linux.

WhereI need modify in u-boot?

Best Regards,

标签 (1)
0 项奖励
回复
1 解答
1,852 次查看
igorpadykov
NXP Employee
NXP Employee

please check GPR13 in linux:

linux source code(arch/arm/mach-mx6/board-mx6q_sabresd.c)

and make the same settings in UBoot:

board/freescale/mx6q_sabresd/mx6q_sabresd.c

Also in Uboot check CCM CG2 register CCM_CCGR5 so sata clock

will be enabled.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,852 次查看
igorpadykov
NXP Employee
NXP Employee

Hi William

I think below may help

https://community.freescale.com/message/318957#318957

https://community.freescale.com/message/329244#329244

May be useful to check GPR13 in Uboot and Linux.

Best regards

igor

1,852 次查看
williamliu
Contributor II

I have sata cmd in u-boot,but sata init faied

MX6Q SABRESD U-Boot > sata init

AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode

flags: ncq stag pm led clo only pmp pio slum part

No port device detected!

The same SATA can mount in Linux.

0 项奖励
回复
1,853 次查看
igorpadykov
NXP Employee
NXP Employee

please check GPR13 in linux:

linux source code(arch/arm/mach-mx6/board-mx6q_sabresd.c)

and make the same settings in UBoot:

board/freescale/mx6q_sabresd/mx6q_sabresd.c

Also in Uboot check CCM CG2 register CCM_CCGR5 so sata clock

will be enabled.

0 项奖励
回复