Skip to contentSkip to conversation

armv7: ls1021aiot: Fixing SPL compiling issues

PATCH New York Sun 2 participants 3 messages Nov 23, 2016 – Nov 24, 2016

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH 1/1 armv7: ls1021aiot: Fixing SPL compiling issues

To align with SPL change 38fed8ab and 693d4c9f, add Kconfig option CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to defconfig, and remove CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS.

---
 configs/ls1021aiot_sdcard_defconfig | 2 ++
 include/configs/ls1021aiot.h        | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)
configs/ls1021aiot_sdcard_defconfig +2 -0
index 4b082ab..a5a391d 100644
@@ -1,6 +1,8 @@
 CONFIG_ARM=y
 CONFIG_TARGET_LS1021AIOT=y
 CONFIG_SPL=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xe8
 CONFIG_DEFAULT_DEVICE_TREE="ls1021a-iot-duart"
 CONFIG_DM_SPI=y
 CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SPL_FSL_PBL,SD_BOOT,SD_BOOT_QSPI"
include/configs/ls1021aiot.h +0 -1
index 182a003..7af4bc4 100644
@@ -96,7 +96,6 @@
 #define CONFIG_SPL_SERIAL_SUPPORT
 #define CONFIG_SPL_MMC_SUPPORT
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0xe8
-#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS		0x400
 
 #define CONFIG_SPL_TEXT_BASE	0x10000000
 #define CONFIG_SPL_MAX_SIZE		0x1a000
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/1 image-fit: Fix compiling error caused by autoconf.h

Commit ec6617c3 includes autoconf.h in image-fit.c, causing conflict for board odroid-xu3 which overwrites CONFIG_SYS_BOARD in header file. Move the include higher and use linux/kconfig.h instead of generated/autoconf.h.

---
 common/image-fit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/image-fit.c +1 -1
index ea56d5b..9468e51 100644
@@ -14,6 +14,7 @@
 #include <time.h>
 #else
 #include <linux/compiler.h>
+#include <linux/kconfig.h>
 #include <common.h>
 #include <errno.h>
 #include <mapmem.h>
@@ -27,7 +28,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #include <u-boot/md5.h>
 #include <u-boot/sha1.h>
 #include <u-boot/sha256.h>
-#include <generated/autoconf.h>
 
 /*****************************************************************************/
 /* New uImage format routines */
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/1 image-fit: Fix compiling error caused by autoconf.h

Quoted 38 lines

-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Thursday, November 24, 2016 3:09 AM
To: u-boot at lists.denx.de
Cc: york sun <[email protected]>; Alison Wang <[email protected]>
Subject: [PATCH] image-fit: Fix compiling error caused by autoconf.h

Commit ec6617c3 includes autoconf.h in image-fit.c, causing conflict for board odroid-xu3 which overwrites CONFIG_SYS_BOARD in header file. Move the include higher and use linux/kconfig.h instead of generated/autoconf.h.

---
 common/image-fit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/image-fit.c +1 -1
index ea56d5b..9468e51 100644
@@ -14,6 +14,7 @@
 #include <time.h>
 #else
 #include <linux/compiler.h>
+#include <linux/kconfig.h>
 #include <common.h>
 #include <errno.h>
 #include <mapmem.h>
@@ -27,7 +28,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #include <u-boot/md5.h>
 #include <u-boot/sha1.h>
 #include <u-boot/sha256.h>
-#include <generated/autoconf.h>
 
 
 /**********************************************************************
Quoted 2 lines

*******/
/* New uImage format routines */

Thanks.

Best Regards,
Alison Wang