Skip to contentSkip to conversation

boot-monitor: add K2L and K2E boot monitor build support

PATCH Superseded [email protected] 5 participants 22 messages May 14, 2014 – Jun 5, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boot-monitor: add K2L and K2E boot monitor build support

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
recipes-bsp/boot-monitor/boot-monitor_git.bb +13 -5
index 7c5e9cf..2c3aa43 100644
@@ -3,8 +3,12 @@ EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
 
 LICENSE = "BSD"
 
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-monitor.git;protocol=git;branch=${BRANCH}"
 
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after do_compile
 
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
 }
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 12 lines · On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
index 7c5e9cf..2c3aa43 100644
@@ -3,8 +3,12 @@ EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
 

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" · line 11

Quoted 10 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
 LICENSE = "BSD"
 
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Have you tested it? You mix case in the above variables - one has K2HK uppercase, another has k2HK lowercase. Same for k2l...

Quoted 40 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +7 -3
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-monitor.git;protocol=git;branch=${BRANCH}"
 
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after do_compile
 
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
 }
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#2 lore raw
Quoted 15 lines · Denys Dmytriyenko
Quoted 14 lines · On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
index 7c5e9cf..2c3aa43 100644
@@ -3,8 +3,12 @@ EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
 
 LICENSE = "BSD"
 
Quoted 13 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" · line 11

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Have you tested it? You mix case in the above variables - one has K2HK uppercase, another has k2HK lowercase. Same for k2l...

Yes, I tested it. I will correct the lowercase error and re-submit the patch.

Quoted 40 lines
Quoted 40 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +7 -3
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-monitor.git;protocol=git;branch=${BRANCH}"
 
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after do_compile
 
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
 }
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#3 lore raw
Quoted 30 lines · Hao Zhang
Quoted 15 lines · Denys Dmytriyenko
Quoted 14 lines · On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
index 7c5e9cf..2c3aa43 100644
@@ -3,8 +3,12 @@ EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
 
 LICENSE = "BSD"
 
Quoted 13 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" · line 11

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Have you tested it? You mix case in the above variables - one has K2HK uppercase, another has k2HK lowercase. Same for k2l...

Quoted 2 lines

Yes, I tested it. I will correct the lowercase error and re-submit the patch.

It shouldn't have worked, as you use incorrect variables below in do_deploy.

Quoted 41 lines
Quoted 40 lines
Quoted 40 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +7 -3
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-monitor.git;protocol=git;branch=${BRANCH}"
 
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after do_compile
 
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK} ${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
 }
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#4 lore raw
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 6 lines · Hao Zhang
Quoted 5 lines · Denys Dmytriyenko
Quoted 4 lines · On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" · line 11

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 29 lines
Quoted 2 lines
Quoted 2 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 5 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below in do_deploy.

Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Quoted 31 lines
Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after

do_compile

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after do_compile

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 44

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 45

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 46

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

author
#5 lore raw
Quoted 29 lines · Chase
Quoted 29 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 6 lines · Hao Zhang
Quoted 5 lines · Denys Dmytriyenko
Quoted 4 lines · On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 26 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" · line 11

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 15 lines
Quoted 2 lines
Quoted 2 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 5 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below in do_deploy.

For some reason, it still works, anyway I fixed the lowercase errors

Quoted 14 lines
Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Will use for loop and re-sumbit the patch.

Quoted 31 lines
Quoted 31 lines
Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after

do_compile

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after do_compile

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 44

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 45

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 46

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#6 lore raw
Quoted 97 lines

-----Original Message-----
From: Zhang, Hao
Sent: Wednesday, May 14, 2014 3:38 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected]

Quoted 17 lines · wrote:
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" · line 11

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these

in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 4 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below

in

Quoted 3 lines
Quoted 3 lines

do_deploy.

For some reason, it still works, anyway I fixed the lowercase errors

Quoted 14 lines
Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe

Quoted 6 lines

why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Quoted 1 line

Will use for loop and re-sumbit the patch.

Can you clarify if you really want all 3 devices installed all the time or do you really want a recipe that installs the boot monitor per device? I know you don't currently have 3 machine types so maybe that is what is feeding your issue here, but my question is whether you need to have separate builds per device.

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after

Quoted 5 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after

do_compile

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after do_compile

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 44

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 45

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 46

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

author
#7 lore raw
Quoted 97 lines · Chase
Quoted 97 lines

-----Original Message-----
From: Zhang, Hao
Sent: Wednesday, May 14, 2014 3:38 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected]

Quoted 17 lines · wrote:
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 10

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these

in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 4 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below

in

Quoted 3 lines
Quoted 3 lines

do_deploy.

For some reason, it still works, anyway I fixed the lowercase errors

Quoted 24 lines
Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 13

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe

Quoted 9 lines
Quoted 6 lines

why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Quoted 1 line

Will use for loop and re-sumbit the patch.

Can you clarify if you really want all 3 devices installed all the time or do you really want a recipe that installs the boot monitor per device? I know you don't currently have 3 machine types so maybe that is what is feeding your issue here, but my question is whether you need to have separate builds per device.

I want all the 3 boot monitors built and installed all the time in one recipe, since MCSDK 3.1 supports all the 3 Keystone II devices in the same release package. This applies to the U-boot (3 U-boot build for all the 3 Keystone II devices) and Linux kernel DTB.

Quoted 33 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after

Quoted 5 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after

do_compile

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 38

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 44

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 45

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 46

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#8 lore raw
Quoted 112 lines · Hao Zhang
Quoted 102 lines · Chase
Quoted 102 lines

-----Original Message-----
From: Zhang, Hao
Sent: Wednesday, May 14, 2014 3:38 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected]

Quoted 17 lines · wrote:
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 10

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these

in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 4 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below

in

Quoted 3 lines
Quoted 3 lines

do_deploy.

For some reason, it still works, anyway I fixed the lowercase errors

Quoted 14 lines
Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 13

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe

why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

Will use for loop and re-sumbit the patch.

Can you clarify if you really want all 3 devices installed all the time or do you really want a recipe that installs the boot monitor per device? I know you don't currently have 3 machine types so maybe that is what is feeding your issue here, but my question is whether you need to have separate builds per device.

Quoted 4 lines

I want all the 3 boot monitors built and installed all the time in one recipe, since MCSDK 3.1 supports all the 3 Keystone II devices in the same release package. This applies to the U-boot (3 U-boot build for all the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs, obviously.

As of U-boot, in Sitara world we had to manage board variations by detecting the board at runtime. So, the same single binary would work on AM335x-EVM, AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it similarly, so you don't have to build 3 different binaries for 3 slightly different Keystone baords...

Quoted 34 lines
Quoted 33 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after

Quoted 5 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after

do_compile

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 38

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 44

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 45

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 46

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

author
#9 lore raw
Quoted 120 lines · Denys Dmytriyenko
Quoted 112 lines · Hao Zhang
Quoted 102 lines · Chase
Quoted 102 lines

-----Original Message-----
From: Zhang, Hao
Sent: Wednesday, May 14, 2014 3:38 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected]

Quoted 17 lines · wrote:
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 10

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these

in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 4 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below

in

Quoted 3 lines
Quoted 3 lines

do_deploy.

For some reason, it still works, anyway I fixed the lowercase errors

Quoted 14 lines
Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 13

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe

why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

Will use for loop and re-sumbit the patch.

Can you clarify if you really want all 3 devices installed all the time or do you really want a recipe that installs the boot monitor per device? I know you don't currently have 3 machine types so maybe that is what is feeding your issue here, but my question is whether you need to have separate builds per device.

Quoted 4 lines

I want all the 3 boot monitors built and installed all the time in one recipe, since MCSDK 3.1 supports all the 3 Keystone II devices in the same release package. This applies to the U-boot (3 U-boot build for all the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs, obviously.

Quoted 9 lines

As of U-boot, in Sitara world we had to manage board variations by detecting the board at runtime. So, the same single binary would work on AM335x-EVM, AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it similarly, so you don't have to build 3 different binaries for 3 slightly different Keystone baords...

Keystone Linux team is working on the up-streaming of U-boot which may include a single binary of U-boot for all the 3 different boards, but for MCSDK 3.1 release, we will still use 3 binaries.

I am looping Santosh who is the Keystone Linux team manager ..

Quoted 34 lines
Quoted 34 lines
Quoted 33 lines
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after

Quoted 5 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 }
 
 inherit deploy
@@ -36,5 +42,7 @@ addtask deploy before do_build after

do_compile

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 38

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 do_deploy () {
 	install -d ${DEPLOYDIR}
-	install ${S}/${BOOT_MONITOR_BINARY}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 44

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2HK}

${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2HK}

Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 45

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2L}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2L}
Quoted 1 line
Quoted 1 line

recipes-bsp/boot-monitor/boot-monitor_git.bb addtask deploy before do_build after · line 46

Quoted 1 line
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -0
+	install ${S}/${BOOT_MONITOR_BINARY_K2E}
	${DEPLOYDIR}/${BOOT_MONITOR_IMAGE_K2E}
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
 }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#10 lore raw
Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 18 lines
Quoted 18 lines
Quoted 11 lines
Quoted 6 lines

Can you clarify if you really want all 3 devices installed all the time or do you really want a recipe that installs the boot monitor per device? I know you don't currently have 3 machine types so maybe that is what is feeding your issue here, but my question is whether you need to have separate builds per device.

I want all the 3 boot monitors built and installed all the time in one recipe, since MCSDK 3.1 supports all the 3 Keystone II devices in the same release package. This applies to the U-boot (3 U-boot build for all the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs, obviously.

As of U-boot, in Sitara world we had to manage board variations by detecting the board at runtime. So, the same single binary would work on AM335x-EVM, AM335x-SK, BeagleBone White and BeagleBone Black.

Quoted 5 lines
Quoted 5 lines

I would recommend you working with Tom Rini and doing it similarly, so you don't have to build 3 different binaries for 3 slightly different Keystone baords...

Three boars for same SOC is different than 3 different SOCs with their own boards. We need to support different u-boot configs for that. And upstream of the patches work is already in progress with Tom reviewing the patches.

Regards,
Santosh

#21 lore raw
In reply to Denys Dmytriyenko
Quoted 118 lines · Denys Dmytriyenko
Quoted 112 lines · Hao Zhang
Quoted 102 lines · Chase
Quoted 102 lines

-----Original Message-----
From: Zhang, Hao
Sent: Wednesday, May 14, 2014 3:38 PM
To: Maupin, Chase
Cc: Dmytriyenko, Denys; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 7 lines · Chase
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Wednesday, May 14, 2014 2:01 PM
To: Zhang, Hao
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Wed, May 14, 2014 at 02:29:49PM -0400, [email protected]

Quoted 17 lines · wrote:
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

From: Hao Zhang <[email protected]>

---
 recipes-bsp/boot-monitor/boot-monitor_git.bb |   18

+++++++++++++-----

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 13 insertions(+), 5 deletions(-)
(quoted diff) +0 -0

b/recipes-bsp/boot-monitor/boot-monitor_git.bb

Quoted 4 lines
Quoted 4 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE =

Quoted 4 lines

index 7c5e9cf..2c3aa43 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -3,8 +3,12 @@ EXTRA_OEMAKE =

"CROSS_COMPILE=${TARGET_PREFIX}"

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 LICENSE = "BSD"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 10

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +6 -2
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2HK ?= "skern-k2hk.bin"
+BOOT_MONITOR_IMAGE_k2HK  ?= "skern-k2hk-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2L ?= "skern-k2l.bin"
+BOOT_MONITOR_IMAGE_k2L  ?= "skern-k2l-${MACHINE}.bin"
+BOOT_MONITOR_BINARY_K2E ?= "skern-k2e.bin"
+BOOT_MONITOR_IMAGE_k2E  ?= "skern-k2e-${MACHINE}.bin"

Maybe a silly question but do you need to package all of these

in a single recipe or do you want to package K2HK and K2L and K2E in separate packages?

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Have you tested it? You mix case in the above variables - one

has K2HK

Quoted 4 lines
Quoted 3 lines

uppercase, another has k2HK lowercase. Same for k2l...

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Yes, I tested it. I will correct the lowercase error and re-

submit the

Quoted 1 line

patch.

It shouldn't have worked, as you use incorrect variables below

in

Quoted 3 lines
Quoted 3 lines

do_deploy.

For some reason, it still works, anyway I fixed the lowercase errors

Quoted 14 lines
Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb EXTRA_OEMAKE = · line 13

Quoted 3 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
 BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM =

"file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"

Quoted 2 lines
Quoted 2 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb COMPATIBLE_MACHINE = "keystone-evm" · line 18

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
@@ -14,7 +18,7 @@ COMPATIBLE_MACHINE = "keystone-evm"
 SRC_URI = "git://git.ti.com/keystone-linux/boot-

monitor.git;protocol=git;branch=${BRANCH}"

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 PV = "2.0"
-PR = "r0+gitr${SRCPV}"
+PR = "r1+gitr${SRCPV}"
 
 BRANCH = "master"
 
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb do_compile () { · line 36

Quoted 8 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -1
@@ -27,7 +31,9 @@ do_compile () {
 	unset LDFLAGS
 	unset CFLAGS
 	unset CPPFLAGS
-	oe_runmake ${BOOT_MONITOR_MAKE_TARGET}
+	oe_runmake k2hk
+	oe_runmake k2l
+	oe_runmake k2e

If you really want to package all of these in a single recipe

why not use a for loop? The naming, etc is formulaic. You could just have a list of "k2hk k2l k2e" and do the make for that list as well as your do_deploy stuff below.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

Will use for loop and re-sumbit the patch.

Can you clarify if you really want all 3 devices installed all the time or do you really want a recipe that installs the boot monitor per device? I know you don't currently have 3 machine types so maybe that is what is feeding your issue here, but my question is whether you need to have separate builds per device.

Quoted 4 lines

I want all the 3 boot monitors built and installed all the time in one recipe, since MCSDK 3.1 supports all the 3 Keystone II devices in the same release package. This applies to the U-boot (3 U-boot build for all the 3 Keystone II devices) and Linux kernel DTB.

Quoted 5 lines

Linux kernel has support for board variations through DTBs, obviously.

As of U-boot, in Sitara world we had to manage board variations by detecting the board at runtime. So, the same single binary would work on AM335x-EVM, AM335x-SK, BeagleBone White and BeagleBone Black.

Note that this relies on a reliable way to tell what board we're on at run-time. AM335x TI influenced boards have an i2c EEPROM with a defined layout and a board name field. Siemens does something similar (but different layout) with their am335x HW as well. Beagleboard also supports similar due to intentional GPIO setups, iirc. If Keystone II platforms have some way to tell at run-time, then we can do this there too, otherwise it's 3 binaries.

Signature · 1 line
Tom
#11 lore raw
In reply to Santosh Shilimkar
Quoted 49 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices installed

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot monitor

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe that

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you need

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II devices

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board variations

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work on

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Quoted 7 lines

Three boars for same SOC is different than 3 different SOCs with their
own boards. We need to support different u-boot configs for that. And
upstream of the patches work is already in progress with Tom reviewing
the patches.

So which one is it? Is this a case of three boards for a single SoC or 3 SoCs with their own boards?

Quoted 4 lines

Regards,
Santosh

#12 lore raw
Quoted 57 lines · Chase
Quoted 49 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices installed

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot monitor

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe that

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you need

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II devices

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board variations

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work on

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Quoted 7 lines

Three boars for same SOC is different than 3 different SOCs with their
own boards. We need to support different u-boot configs for that. And
upstream of the patches work is already in progress with Tom reviewing
the patches.

Quoted 2 lines

So which one is it? Is this a case of three boards for a single SoC or 3 SoCs with their own boards?

I was just saying you AM example was multiple board for 1 SOC. What Hao is talking '3 SOCs with their own boards.

Regards,
Santosh

#13 lore raw
Quoted 58 lines · Santosh Shilimkar
Quoted 57 lines · Chase
Quoted 56 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices installed

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot monitor

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe that

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you need

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II devices

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board variations

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work on

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different SOCs with their
own boards. We need to support different u-boot configs for that. And
upstream of the patches work is already in progress with Tom reviewing
the patches.

Quoted 4 lines
Quoted 2 lines

So which one is it? Is this a case of three boards for a single SoC or 3 SoCs with their own boards?

I was just saying you AM example was multiple board for 1 SOC. What Hao is talking '3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part #s), then we should consider creating 3 different OE machine configs.

Signature · 1 line
Denys
#14 lore raw
Quoted 59 lines · Denys Dmytriyenko
Quoted 58 lines · Santosh Shilimkar
Quoted 57 lines · Chase
Quoted 56 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices installed

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot monitor

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe that

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you need

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II devices

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board variations

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work on

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different SOCs with their
own boards. We need to support different u-boot configs for that. And
upstream of the patches work is already in progress with Tom reviewing
the patches.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

So which one is it? Is this a case of three boards for a single SoC or 3 SoCs with their own boards?

I was just saying you AM example was multiple board for 1 SOC. What Hao is talking '3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part #s), then we should consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

#15 lore raw
Quoted 83 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 11:14 AM
To: Dmytriyenko, Denys
Cc: Maupin, Chase; Zhang, Hao; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 12:06:15PM -0400, Santosh Shilimkar

Quoted 7 lines · wrote:
Quoted 7 lines · Chase
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices

installed

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot

monitor

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe

that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you

need

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II

devices

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board

variations

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work

on

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different SOCs

with

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

their
own boards. We need to support different u-boot configs for

that.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

And
upstream of the patches work is already in progress with Tom reviewing
the patches.

So which one is it? Is this a case of three boards for a

single SoC or 3 SoCs with their own boards?

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

I was just saying you AM example was multiple board for 1 SOC.

Quoted 8 lines

What Hao is talking

Quoted 3 lines
Quoted 1 line

'3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part #s),

then we should

Quoted 2 lines

consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

Then Denys is right. We should have 3 different OE machine configs which all share an SOC_FAMILY of "keystone". That way they can re-use as much as possible, but unique differences such as the bootloader, example apps, etc can be easily handled.

author
#16 lore raw
Quoted 86 lines · Chase
Quoted 86 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 11:14 AM
To: Dmytriyenko, Denys
Cc: Maupin, Chase; Zhang, Hao; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 12:06:15PM -0400, Santosh Shilimkar

Quoted 7 lines · wrote:
Quoted 7 lines · Chase
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices

installed

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot

monitor

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe

that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you

need

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II

devices

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board

variations

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work

on

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different SOCs

with

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

their
own boards. We need to support different u-boot configs for

that.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

And
upstream of the patches work is already in progress with Tom reviewing
the patches.

So which one is it? Is this a case of three boards for a

single SoC or 3 SoCs with their own boards?

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

I was just saying you AM example was multiple board for 1 SOC.

What Hao is talking

Quoted 2 lines
Quoted 1 line

'3 SOCs with their own boards.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

If those are 3 different SOCs (not just spins or diff part #s),

then we should

Quoted 2 lines

consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

Then Denys is right. We should have 3 different OE machine configs which all share an SOC_FAMILY of "keystone". That way they can re-use as much as possible, but unique differences such as the bootloader, example apps, etc can be easily handled.

Can you show me an example how to do that?

#17 lore raw
Quoted 89 lines · Hao Zhang
Quoted 88 lines · Chase
Quoted 88 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 11:14 AM
To: Dmytriyenko, Denys
Cc: Maupin, Chase; Zhang, Hao; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 12:06:15PM -0400, Santosh Shilimkar

Quoted 7 lines · wrote:
Quoted 7 lines · Chase
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang wrote:

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices

installed

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot

monitor

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so maybe

that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether you

need

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all the

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II

devices

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-boot

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through DTBs,

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board

variations

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would work

on

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing it

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different SOCs

with

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

their
own boards. We need to support different u-boot configs for

that.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

And
upstream of the patches work is already in progress with Tom reviewing
the patches.

So which one is it? Is this a case of three boards for a

single SoC or 3 SoCs with their own boards?

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

I was just saying you AM example was multiple board for 1 SOC.

What Hao is talking

Quoted 3 lines
Quoted 1 line

'3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part #s),

then we should

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

Then Denys is right. We should have 3 different OE machine configs which all share an SOC_FAMILY of "keystone". That way they can re-use as much as possible, but unique differences such as the bootloader, example apps, etc can be easily handled.

Can you show me an example how to do that?

meta-ti layer, conf/machine for machine configs and conf/machine/include for SOC configs.

examples would be:

- am335x-evm.conf and beaglebone.conf both use ti33x.inc SOC definition
- dra7xx-evm.conf and omap5-evm.conf both use omap-a15.inc SOC

Signature · 1 line
Denys
#18 lore raw
Quoted 131 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 15, 2014 11:33 AM
To: Zhang, Hao
Cc: Maupin, Chase; Shilimkar, Santosh; Rini, Tom; meta- [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 6 lines · Hao Zhang
Quoted 5 lines · Chase
Quoted 5 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 11:14 AM
To: Dmytriyenko, Denys
Cc: Maupin, Chase; Zhang, Hao; Rini, Tom; meta-

[email protected]

Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

monitor build support

Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 12:06:15PM -0400, Santosh Shilimkar

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines · wrote:
Quoted 7 lines · Chase
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and

K2E

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

boot

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices

installed

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot

monitor

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so

maybe

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether

you

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

need

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all

the

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II

devices

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-

boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through

DTBs,

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board

variations

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would

work

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

on

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing

it

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different

SOCs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

with

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

their
own boards. We need to support different u-boot configs

for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

And
upstream of the patches work is already in progress with

Tom

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

reviewing
the patches.

So which one is it? Is this a case of three boards for a

single SoC or 3 SoCs with their own boards?

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

I was just saying you AM example was multiple board for 1

SOC.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

What Hao is talking

Quoted 3 lines
Quoted 1 line

'3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part

#s),

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

then we should

Quoted 2 lines

consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

Then Denys is right. We should have 3 different OE machine

configs which all share an SOC_FAMILY of "keystone". That way they can re-use as much as possible, but unique differences such as the bootloader, example apps, etc can be easily handled.

Quoted 3 lines
Quoted 1 line

Can you show me an example how to do that?

meta-ti layer, conf/machine for machine configs and conf/machine/include for
SOC configs.

Quoted 5 lines

examples would be:

- am335x-evm.conf and beaglebone.conf both use ti33x.inc SOC definition
- dra7xx-evm.conf and omap5-evm.conf both use omap-a15.inc SOC

Denys,

Is there something outstanding here? Does this patch need to be revamped now that we have individual machine types?

Quoted 3 lines

--
Denys

#19 lore raw
Quoted 133 lines · Chase
Quoted 133 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 15, 2014 11:33 AM
To: Zhang, Hao
Cc: Maupin, Chase; Shilimkar, Santosh; Rini, Tom; meta- [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 6 lines · Hao Zhang
Quoted 5 lines · Chase
Quoted 5 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 11:14 AM
To: Dmytriyenko, Denys
Cc: Maupin, Chase; Zhang, Hao; Rini, Tom; meta-

[email protected]

Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

monitor build support

Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 12:06:15PM -0400, Santosh Shilimkar

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines · wrote:
Quoted 7 lines · Chase
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and

K2E

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

boot

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices

installed

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot

monitor

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so

maybe

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether

you

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

need

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

separate builds per device.

I want all the 3 boot monitors built and installed all

the

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II

devices

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-

boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through

DTBs,

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board

variations

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would

work

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

on

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing

it

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different

SOCs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

with

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

their
own boards. We need to support different u-boot configs

for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

And
upstream of the patches work is already in progress with

Tom

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

reviewing
the patches.

So which one is it? Is this a case of three boards for a

single SoC or 3 SoCs with their own boards?

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

I was just saying you AM example was multiple board for 1

SOC.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

What Hao is talking

Quoted 3 lines
Quoted 1 line

'3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part

#s),

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

then we should

Quoted 2 lines

consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

Then Denys is right. We should have 3 different OE machine

configs which all share an SOC_FAMILY of "keystone". That way they can re-use as much as possible, but unique differences such as the bootloader, example apps, etc can be easily handled.

Quoted 3 lines
Quoted 1 line

Can you show me an example how to do that?

meta-ti layer, conf/machine for machine configs and conf/machine/include for
SOC configs.

examples would be:

Quoted 8 lines
Quoted 3 lines

- am335x-evm.conf and beaglebone.conf both use ti33x.inc SOC definition
- dra7xx-evm.conf and omap5-evm.conf both use omap-a15.inc SOC

Denys,

Is there something outstanding here? Does this patch need to be revamped now that we have individual machine types?

Yes, indeed. This recipe should build boot-monitor for current ${MACHINE} and not all 3 of them together. Similar to kernel and u-boot.

Signature · 1 line
Denys
#20 lore raw

Hao,

Do you have any questions about the changes needed here? Will you be sending the updated patch? Please let me know if you need any additional help. Thanks.

Signature · 1 line
Denys
Quoted 153 lines · Denys Dmytriyenko
Quoted 133 lines · Chase
Quoted 133 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, May 15, 2014 11:33 AM
To: Zhang, Hao
Cc: Maupin, Chase; Shilimkar, Santosh; Rini, Tom; meta- [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E boot monitor build support

Quoted 6 lines · Hao Zhang
Quoted 5 lines · Chase
Quoted 5 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 11:14 AM
To: Dmytriyenko, Denys
Cc: Maupin, Chase; Zhang, Hao; Rini, Tom; meta-

[email protected]

Quoted 1 line
Quoted 1 line
Quoted 1 line

Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and K2E

boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

monitor build support

Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 12:06:15PM -0400, Santosh Shilimkar

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines · wrote:
Quoted 7 lines · Chase
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: Shilimkar, Santosh
Sent: Thursday, May 15, 2014 10:39 AM
To: Zhang, Hao; Dmytriyenko, Denys
Cc: Maupin, Chase; Rini, Tom; [email protected]
Subject: Re: [meta-ti] [PATCH] boot-monitor: add K2L and

K2E

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

boot

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

monitor build support

Quoted 2 lines · Hao Zhang
Quoted 1 line · Denys Dmytriyenko

On Thu, May 15, 2014 at 10:41:52AM -0400, Hao Zhang

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[..]

Quoted 1 line
Quoted 1 line
Quoted 1 line

Can you clarify if you really want all 3 devices

installed

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

all the time or

Quoted 1 line
Quoted 1 line
Quoted 1 line

do you really want a recipe that installs the boot

monitor

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

per device? I

Quoted 1 line
Quoted 1 line
Quoted 1 line

know you don't currently have 3 machine types so

maybe

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

is what is

Quoted 1 line
Quoted 1 line
Quoted 1 line

feeding your issue here, but my question is whether

you

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

need

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

to have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

separate builds per device.

I want all the 3 boot monitors built and installed all

the

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

time in one

Quoted 1 line
Quoted 1 line
Quoted 1 line

recipe, since MCSDK 3.1 supports all the 3 Keystone II

devices

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

in the

Quoted 1 line
Quoted 1 line
Quoted 1 line

same release package. This applies to the U-boot (3 U-

boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

build for all

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the 3 Keystone II devices) and Linux kernel DTB.

Linux kernel has support for board variations through

DTBs,

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

obviously.

Quoted 2 lines
Quoted 2 lines

As of U-boot, in Sitara world we had to manage board

variations

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

by detecting

Quoted 1 line
Quoted 1 line

the board at runtime. So, the same single binary would

work

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

on

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

AM335x-EVM,

Quoted 3 lines
Quoted 3 lines

AM335x-SK, BeagleBone White and BeagleBone Black.

I would recommend you working with Tom Rini and doing

it

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

similarly, so you

Quoted 1 line
Quoted 1 line

don't have to build 3 different binaries for 3 slightly

different Keystone

Quoted 3 lines
Quoted 3 lines

baords...

Three boars for same SOC is different than 3 different

SOCs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

with

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

their
own boards. We need to support different u-boot configs

for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

And
upstream of the patches work is already in progress with

Tom

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

reviewing
the patches.

So which one is it? Is this a case of three boards for a

single SoC or 3 SoCs with their own boards?

Quoted 2 lines
Quoted 2 lines
Quoted 1 line

I was just saying you AM example was multiple board for 1

SOC.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

What Hao is talking

Quoted 3 lines
Quoted 1 line

'3 SOCs with their own boards.

If those are 3 different SOCs (not just spins or diff part

#s),

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

then we should

Quoted 2 lines

consider creating 3 different OE machine configs.

yes they are 3 different SOCs with different capabilities

Then Denys is right. We should have 3 different OE machine

configs which all share an SOC_FAMILY of "keystone". That way they can re-use as much as possible, but unique differences such as the bootloader, example apps, etc can be easily handled.

Quoted 3 lines
Quoted 1 line

Can you show me an example how to do that?

meta-ti layer, conf/machine for machine configs and conf/machine/include for
SOC configs.

examples would be:

Quoted 8 lines
Quoted 3 lines

- am335x-evm.conf and beaglebone.conf both use ti33x.inc SOC definition
- dra7xx-evm.conf and omap5-evm.conf both use omap-a15.inc SOC

Denys,

Is there something outstanding here? Does this patch need to be revamped now that we have individual machine types?

Yes, indeed. This recipe should build boot-monitor for current ${MACHINE} and not all 3 of them together. Similar to kernel and u-boot.

Signature · 6 lines
Denys
-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti