sata commands in uboot in 12.09.01.01 ltib

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

sata commands in uboot in 12.09.01.01 ltib

跳至解决方案
4,359 次查看
frankmiller
Contributor IV

Greetings,

We have a custom board that is based on the Sabre SDB.  We are building uboot and a kernel using the 12.09.01.01 ltib and its all booting up fine.  However, our uboot image does not seem to have the 'sata' commands enabled.  How would we go about enabling them or switching our uboot to the mainline tree to get  those commands?

Thanks,

FM

0 项奖励
回复
1 解答
1,347 次查看
lily_zhang
NXP Employee
NXP Employee

Please enable SATA command option into U-Boot. Meanwhile, you can change configuraiton and store the boot command into SATA.  Take MX6Q SabreSD board as the example, the following changes are needed.

diff --git a/include/configs/mx6q_sabresd.h b/include/configs/mx6q_sabresd.h

index 0cd57d9..68e7bec 100644

--- a/include/configs/mx6q_sabresd.h

+++ b/include/configs/mx6q_sabresd.h

@@ -103,7 +103,7 @@

#define CONFIG_CMD_CLOCK

#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ

-/* #define CONFIG_CMD_SATA */

+#define CONFIG_CMD_SATA

#undef CONFIG_CMD_IMLS

#define CONFIG_CMD_IMX_DOWNLOAD_MODE

@@ -300,9 +300,9 @@

#define CONFIG_SYS_NO_FLASH

/* Monitor at beginning of flash */

-#define CONFIG_FSL_ENV_IN_MMC

+/* #define CONFIG_FSL_ENV_IN_MMC */

/* #define CONFIG_FSL_ENV_IN_NAND */

-/* #define CONFIG_FSL_ENV_IN_SATA */

+#define CONFIG_FSL_ENV_IN_SATA

#define CONFIG_ENV_SECT_SIZE    (8 * 1024)

#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE

Lily

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,348 次查看
lily_zhang
NXP Employee
NXP Employee

Please enable SATA command option into U-Boot. Meanwhile, you can change configuraiton and store the boot command into SATA.  Take MX6Q SabreSD board as the example, the following changes are needed.

diff --git a/include/configs/mx6q_sabresd.h b/include/configs/mx6q_sabresd.h

index 0cd57d9..68e7bec 100644

--- a/include/configs/mx6q_sabresd.h

+++ b/include/configs/mx6q_sabresd.h

@@ -103,7 +103,7 @@

#define CONFIG_CMD_CLOCK

#define CONFIG_REF_CLK_FREQ CONFIG_MX6_HCLK_FREQ

-/* #define CONFIG_CMD_SATA */

+#define CONFIG_CMD_SATA

#undef CONFIG_CMD_IMLS

#define CONFIG_CMD_IMX_DOWNLOAD_MODE

@@ -300,9 +300,9 @@

#define CONFIG_SYS_NO_FLASH

/* Monitor at beginning of flash */

-#define CONFIG_FSL_ENV_IN_MMC

+/* #define CONFIG_FSL_ENV_IN_MMC */

/* #define CONFIG_FSL_ENV_IN_NAND */

-/* #define CONFIG_FSL_ENV_IN_SATA */

+#define CONFIG_FSL_ENV_IN_SATA

#define CONFIG_ENV_SECT_SIZE    (8 * 1024)

#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE

Lily

0 项奖励
回复
1,347 次查看
frankmiller
Contributor IV

Many thanks, this works fine!

FM

0 项奖励
回复
1,347 次查看
tonyzheng
NXP Employee
NXP Employee

learn a lot!

0 项奖励
回复