i.MX6Q uboot boot from SATA

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

i.MX6Q uboot boot from SATA

Jump to solution
3,099 Views
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,

Labels (1)
0 Kudos
Reply
1 Solution
1,831 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
1,831 Views
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,831 Views
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 Kudos
Reply
1,832 Views
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 Kudos
Reply