Skip to contentSkip to conversation

davinci: omapl138_lcdk: use correct AIS config

PATCH New Fabien Parent 4 participants 8 messages Nov 16, 2016 – Nov 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 davinci: omapl138_lcdk: use correct AIS config

The AIS image built for the OMAPL138-LCDK board is not booting because the AIS configuration is not correct.
This commit adds a AIS configuration file that allow the SPL to boot correctly.

---
 board/davinci/da8xxevm/omapl138_lcdk_ais.cfg | 4 ++++
 include/configs/omapl138_lcdk.h              | 3 +++
 scripts/config_whitelist.txt                 | 1 +
 3 files changed, 8 insertions(+)
 create mode 100644 board/davinci/da8xxevm/omapl138_lcdk_ais.cfg
board/davinci/da8xxevm/omapl138_lcdk_ais.cfg new file +4 -0
new file mode 100644
index 0000000..afce286
@@ -0,0 +1,4 @@
+PLL0    180001  40b
+DDR2    18010001 2 c5 134832 264a3209 3c14c722 492    0
+EMIFA_ASYNC 0 3ffffffd 0 0    2
+PSC 10d0003
include/configs/omapl138_lcdk.h +3 -0
index 854fc47..91ddbb1 100644
@@ -272,6 +272,9 @@
 #define CONFIG_SPL_PAD_TO	32768
 #endif
 
+/* AIS Image */
+#define CONFIG_AIS_CONFIG_FILE	"board/davinci/da8xxevm/omapl138_lcdk_ais.cfg"
+
 /* additions for new relocation code, must added to all boards */
 #define CONFIG_SYS_SDRAM_BASE		0xc0000000
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x1000 - /* Fix this */ \
scripts/config_whitelist.txt +1 -0
index d476367..c694f90 100644
@@ -73,6 +73,7 @@ CONFIG_ADP_AG101P
 CONFIG_AEABI
 CONFIG_AEMIF_CNTRL_BASE
 CONFIG_AES
+CONFIG_AIS_CONFIG_FILE
 CONFIG_ALTERA_SDRAM
 CONFIG_ALTERA_SPI_IDLE_VAL
 CONFIG_ALTIVEC
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/3 davinci: da850evm: fix empty boot method list in the SPL

The list of available boot method is not part of the binary which prevent the SPL from booting u-boot or Linux.

Add the missing .u_boot_list* sections to the binary to fix it.

---
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds | 3 +++
 1 file changed, 3 insertions(+)
board/davinci/da8xxevm/u-boot-spl-da850evm.lds +3 -0
index ab4f50c..85a6be9 100644
@@ -34,6 +34,9 @@ SECTIONS
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
 
 	. = ALIGN(4);
+	.u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } >.sram
+
+	. = ALIGN(4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
 		*(.rel*)
Signature · 1 line
2.10.2
#3 lore raw

PATCH 3/3 davinci: omapl138_lcdk: add MMC/SD SPL boot support

In reply to Fabien Parent

Define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR in order to be able to boot from MMC/SD.

The SPL is stored at sector 0x75, while u-boot will follow at sector 0xb5.

---
 include/configs/omapl138_lcdk.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/omapl138_lcdk.h +8 -0
index 91ddbb1..0964176 100644
@@ -272,6 +272,14 @@
 #define CONFIG_SPL_PAD_TO	32768
 #endif
 
+/* Load U-Boot Image From MMC */
+#ifdef CONFIG_SPL_MMC_LOAD
+#define SPL_SECTOR				0x75
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	(SPL_SECTOR + \
+							CONFIG_SPL_PAD_TO / 512)
+#undef CONFIG_SPL_SPI_LOAD
+#endif
+
 /* AIS Image */
 #define CONFIG_AIS_CONFIG_FILE	"board/davinci/da8xxevm/omapl138_lcdk_ais.cfg"
 
Signature · 1 line
2.10.2
#6 lore raw

PATCH 1/3 davinci: omapl138_lcdk: use correct AIS config

In reply to Fabien Parent
Quoted 6 lines · Fabien Parent

The AIS image built for the OMAPL138-LCDK board is not booting because the AIS configuration is not correct.
This commit adds a AIS configuration file that allow the SPL to boot correctly.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161117/fe127363/attachment.sig>
#2 lore raw

PATCH 2/3 davinci: da850evm: fix empty boot method list in the SPL

In reply to Fabien Parent
Quoted 6 lines · Fabien Parent

The list of available boot method is not part of the binary which prevent the SPL from booting u-boot or Linux.

Add the missing .u_boot_list* sections to the binary to fix it.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161117/334bfb1c/attachment.sig>
#4 lore raw

PATCH 3/3 davinci: omapl138_lcdk: add MMC/SD SPL boot support

In reply to Fabien Parent
Quoted 19 lines · Fabien Parent

Define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR in order to be able to boot from MMC/SD.

The SPL is stored at sector 0x75, while u-boot will follow at sector 0xb5.

---
 include/configs/omapl138_lcdk.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/omapl138_lcdk.h +0 -0
index 91ddbb1..0964176 100644
@@ -272,6 +272,14 @@
 #define CONFIG_SPL_PAD_TO	32768
 #endif
 

include/configs/omapl138_lcdk.h line 284

Quoted 10 lines
include/configs/omapl138_lcdk.h +8 -0
+/* Load U-Boot Image From MMC */
+#ifdef CONFIG_SPL_MMC_LOAD
+#define SPL_SECTOR				0x75
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	(SPL_SECTOR + \
+							CONFIG_SPL_PAD_TO / 512)
+#undef CONFIG_SPL_SPI_LOAD
+#endif
+
 /* AIS Image */
 #define CONFIG_AIS_CONFIG_FILE	"board/davinci/da8xxevm/omapl138_lcdk_ais.cfg"

We need to do this on top of Sam's series, and we need to do this in Kconfig and not adding more stuff to the config header.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161117/73496fb8/attachment.sig>
#7 lore raw

PATCH 1/3 davinci: omapl138_lcdk: use correct AIS config

In reply to Tom Rini
Quoted 12 lines · Tom Rini

Error verifying signature: gpg: Fatal: can't create directory
'/home/phoward/.gnupg': File exists

Quoted 8 lines · Fabien Parent

The AIS image built for the OMAPL138-LCDK board is not booting because
the AIS configuration is not correct.
This commit adds a AIS configuration file that allow the SPL to boot
correctly.

Quoted 3 lines
Quoted 1 line

Given these changes, can you modify/remove board/davinci/da8xxevm/README.omapl138-lcdk please?

Signature · 1 line
Peter Howard <[email protected]>
#5 lore raw

PATCH 3/3 davinci: omapl138_lcdk: add MMC/SD SPL boot support

In reply to Tom Rini
Quoted 20 lines · Tom Rini
Quoted 19 lines · Fabien Parent

Define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR in order to be able to boot from MMC/SD.

The SPL is stored at sector 0x75, while u-boot will follow at sector 0xb5.

---
 include/configs/omapl138_lcdk.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/omapl138_lcdk.h +0 -0
index 91ddbb1..0964176 100644
@@ -272,6 +272,14 @@
 #define CONFIG_SPL_PAD_TO    32768
 #endif
 
Quoted 14 lines

include/configs/omapl138_lcdk.h line 284

Quoted 10 lines
include/configs/omapl138_lcdk.h +8 -0
+/* Load U-Boot Image From MMC */
+#ifdef CONFIG_SPL_MMC_LOAD
+#define SPL_SECTOR                           0x75
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR      (SPL_SECTOR + \
+                                                     CONFIG_SPL_PAD_TO / 512)
+#undef CONFIG_SPL_SPI_LOAD
+#endif
+
 /* AIS Image */
 #define CONFIG_AIS_CONFIG_FILE       "board/davinci/da8xxevm/omapl138_lcdk_ais.cfg"

We need to do this on top of Sam's series, and we need to do this in Kconfig and not adding more stuff to the config header.

Just FYI: mentioned patch is [1]. For the Kconfig option itself see diif at [2].

[1] http://git.denx.de/?p=u-boot.git;a=commit;h=38fed8abe7d2e7ba90deb352d0e7aed4364c5236
[2] http://git.denx.de/?p=u-boot.git;a=blobdiff;f=common/spl/Kconfig;h=df9e0ce68f9ea2348af8aec3ebe5aea25456062e;hp=bb99f1fcff4b4ba3ae909be3d3134323741f6c84;hb=38fed8abe7d2e7ba90deb352d0e7aed4364c5236;hpb=c2cbd164ea5b5f564fcf03447c7bf9ec4a9f5699

Quoted 2 lines

--
Tom