Skip to contentSkip to conversation

keystone: k2l-evm conf: add k2l-evm machine config

PATCH In review [email protected] 2 participants 4 messages May 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 keystone: k2l-evm conf: add k2l-evm machine config

From: Hao Zhang <[email protected]>

k2l-evm machine config shares the same Keystone SoC family, it has K2L EVM specific machine configuration for UBI image, boot monitor, U-boot, etc.

---
 conf/machine/include/keystone.inc            |    2 --
 conf/machine/k2hk-evm.conf                   |    4 ++++
 conf/machine/k2l-evm.conf                    |   30 ++++++++++++++++++++++++++
 recipes-bsp/boot-monitor/boot-monitor_git.bb |    9 ++++----
 4 files changed, 38 insertions(+), 7 deletions(-)
 create mode 100644 conf/machine/k2l-evm.conf
conf/machine/include/keystone.inc +0 -2
index 63f069c..a9449b2 100644
@@ -12,8 +12,6 @@ MACHINE_KERNEL_PR = "r7"
 
 KERNEL_IMAGETYPE = "uImage"
 
-UBOOT_MACHINE = "k2hk_evm_config"
-
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
conf/machine/k2hk-evm.conf +4 -0
index 088e524..2885335 100644
@@ -4,6 +4,10 @@
 
 require conf/machine/include/keystone.inc
 
+UBOOT_MACHINE = "k2hk_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
 IMAGE_FSTYPES += "ubi tar.gz cpio"
 
 SERIAL_CONSOLE = "115200 ttyS0"
conf/machine/k2l-evm.conf new file +30 -0
new file mode 100644
index 0000000..0824a09
@@ -0,0 +1,30 @@
+#@TYPE: Machine
+#@NAME: Keystone 2 K2L machine
+#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L EVM
+
+require conf/machine/include/keystone.inc
+
+UBOOT_MACHINE = "k2l_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
+IMAGE_FSTYPES += "ubi tar.gz cpio"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+
+SYSVINIT_ENABLED_GETTYS = ""
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: logical eraseblock size:    253952 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 1926 LEBs
+MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: physical eraseblock size:   256 KiB
+# UBI: sub-page size:              4096
+UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
recipes-bsp/boot-monitor/boot-monitor_git.bb +4 -5
index 0b559fa..0761d83 100644
@@ -5,23 +5,22 @@ LICENSE = "BSD"
 
 BOOT_MONITOR_BINARY ?= "skern.bin"
 BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
-BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
 
-COMPATIBLE_MACHINE = "k2hk-evm"
+COMPATIBLE_MACHINE = "k2hk-evm|k2l-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"
 
 S = "${WORKDIR}/git"
 
-#Tag "K2_BM_13.11"
-SRCREV = "ba597d183423971e63295cdd59d3c90245e9170a"
+#Tag "K2_BM_14.05"
+SRCREV = "0e3ffe1ea4a0cee38ae2406901b7cf4d5324b5e9"
 
 do_compile () {
 	unset LDFLAGS
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 48 lines · On Fri, May 16, 2014 at 03:13:59PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

k2l-evm machine config shares the same Keystone SoC family, it has K2L EVM specific machine configuration for UBI image, boot monitor, U-boot, etc.

---
 conf/machine/include/keystone.inc            |    2 --
 conf/machine/k2hk-evm.conf                   |    4 ++++
 conf/machine/k2l-evm.conf                    |   30 ++++++++++++++++++++++++++
 recipes-bsp/boot-monitor/boot-monitor_git.bb |    9 ++++----
 4 files changed, 38 insertions(+), 7 deletions(-)
 create mode 100644 conf/machine/k2l-evm.conf
conf/machine/include/keystone.inc +0 -2
index 63f069c..a9449b2 100644
@@ -12,8 +12,6 @@ MACHINE_KERNEL_PR = "r7"
 
 KERNEL_IMAGETYPE = "uImage"
 
-UBOOT_MACHINE = "k2hk_evm_config"
-
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
conf/machine/k2hk-evm.conf +4 -0
index 088e524..2885335 100644
@@ -4,6 +4,10 @@
 
 require conf/machine/include/keystone.inc
 
+UBOOT_MACHINE = "k2hk_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
 IMAGE_FSTYPES += "ubi tar.gz cpio"
 
 SERIAL_CONSOLE = "115200 ttyS0"
conf/machine/k2l-evm.conf new file +0 -0
new file mode 100644
index 0000000..0824a09

conf/machine/k2l-evm.conf line 3

Quoted 3 lines
conf/machine/k2l-evm.conf new file +3 -0
@@ -0,0 +1,30 @@
+#@TYPE: Machine
+#@NAME: Keystone 2 K2L machine
+#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L EVM

Same comment as to #1 - find-copies-harder would have detected this file being very similar to the original, making review much easier.

Quoted 31 lines
conf/machine/k2l-evm.conf new file +26 -0
+require conf/machine/include/keystone.inc
+
+UBOOT_MACHINE = "k2l_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
+IMAGE_FSTYPES += "ubi tar.gz cpio"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+
+SYSVINIT_ENABLED_GETTYS = ""
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: logical eraseblock size:    253952 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 1926 LEBs
+MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: physical eraseblock size:   256 KiB
+# UBI: sub-page size:              4096
+UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -0
index 0b559fa..0761d83 100644

recipes-bsp/boot-monitor/boot-monitor_git.bb LICENSE = "BSD" · line 11

Quoted 9 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -2
@@ -5,23 +5,22 @@ LICENSE = "BSD"
 
 BOOT_MONITOR_BINARY ?= "skern.bin"
 BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
-BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
 
-COMPATIBLE_MACHINE = "k2hk-evm"
+COMPATIBLE_MACHINE = "k2hk-evm|k2l-evm"

Just do the entire SOC family:
COMPATIBLE_MACHINE = "keystone"

Quoted 25 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -3
 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"
 
 S = "${WORKDIR}/git"
 
-#Tag "K2_BM_13.11"
-SRCREV = "ba597d183423971e63295cdd59d3c90245e9170a"
+#Tag "K2_BM_14.05"
+SRCREV = "0e3ffe1ea4a0cee38ae2406901b7cf4d5324b5e9"
 
 do_compile () {
 	unset LDFLAGS
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 42 lines · Denys Dmytriyenko
Quoted 41 lines · On Fri, May 16, 2014 at 03:13:59PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

k2l-evm machine config shares the same Keystone SoC family, it has K2L EVM specific machine configuration for UBI image, boot monitor, U-boot, etc.

---
 conf/machine/include/keystone.inc            |    2 --
 conf/machine/k2hk-evm.conf                   |    4 ++++
 conf/machine/k2l-evm.conf                    |   30 ++++++++++++++++++++++++++
 recipes-bsp/boot-monitor/boot-monitor_git.bb |    9 ++++----
 4 files changed, 38 insertions(+), 7 deletions(-)
 create mode 100644 conf/machine/k2l-evm.conf
conf/machine/include/keystone.inc +0 -2
index 63f069c..a9449b2 100644
@@ -12,8 +12,6 @@ MACHINE_KERNEL_PR = "r7"
 
 KERNEL_IMAGETYPE = "uImage"
 
-UBOOT_MACHINE = "k2hk_evm_config"
-
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
conf/machine/k2hk-evm.conf +4 -0
index 088e524..2885335 100644
@@ -4,6 +4,10 @@
 
 require conf/machine/include/keystone.inc
 
+UBOOT_MACHINE = "k2hk_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
 IMAGE_FSTYPES += "ubi tar.gz cpio"
 
Quoted 15 lines

conf/machine/k2l-evm.conf line 3

Quoted 10 lines
conf/machine/k2hk-evm.conf +0 -0
 SERIAL_CONSOLE = "115200 ttyS0"
conf/machine/k2l-evm.conf new file +3 -0
new file mode 100644
index 0000000..0824a09
@@ -0,0 +1,30 @@
+#@TYPE: Machine
+#@NAME: Keystone 2 K2L machine
+#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L EVM

Same comment as to #1 - find-copies-harder would have detected this file being very similar to the original, making review much easier.

K2L has different UBI configuration since it has a different NAND device, I guess that's why git does not detect the file being copied.

Quoted 36 lines
Quoted 36 lines
conf/machine/k2l-evm.conf new file +26 -0
+require conf/machine/include/keystone.inc
+
+UBOOT_MACHINE = "k2l_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
+IMAGE_FSTYPES += "ubi tar.gz cpio"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+
+SYSVINIT_ENABLED_GETTYS = ""
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: logical eraseblock size:    253952 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 1926 LEBs
+MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: physical eraseblock size:   256 KiB
+# UBI: sub-page size:              4096
+UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
index 0b559fa..0761d83 100644
@@ -5,23 +5,22 @@ LICENSE = "BSD"
 
 BOOT_MONITOR_BINARY ?= "skern.bin"
 BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
-BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
Quoted 9 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb LICENSE = "BSD" · line 11

Quoted 4 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
 
-COMPATIBLE_MACHINE = "k2hk-evm"
+COMPATIBLE_MACHINE = "k2hk-evm|k2l-evm"

Just do the entire SOC family:
COMPATIBLE_MACHINE = "keystone"

Will use keystone machine name.

Quoted 25 lines
Quoted 25 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -3
 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"
 
 S = "${WORKDIR}/git"
 
-#Tag "K2_BM_13.11"
-SRCREV = "ba597d183423971e63295cdd59d3c90245e9170a"
+#Tag "K2_BM_14.05"
+SRCREV = "0e3ffe1ea4a0cee38ae2406901b7cf4d5324b5e9"
 
 do_compile () {
 	unset LDFLAGS
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#3 lore raw
Quoted 57 lines · Hao Zhang
Quoted 42 lines · Denys Dmytriyenko
Quoted 41 lines · On Fri, May 16, 2014 at 03:13:59PM -0400, [email protected] wrote:

From: Hao Zhang <[email protected]>

k2l-evm machine config shares the same Keystone SoC family, it has K2L EVM specific machine configuration for UBI image, boot monitor, U-boot, etc.

---
 conf/machine/include/keystone.inc            |    2 --
 conf/machine/k2hk-evm.conf                   |    4 ++++
 conf/machine/k2l-evm.conf                    |   30 ++++++++++++++++++++++++++
 recipes-bsp/boot-monitor/boot-monitor_git.bb |    9 ++++----
 4 files changed, 38 insertions(+), 7 deletions(-)
 create mode 100644 conf/machine/k2l-evm.conf
conf/machine/include/keystone.inc +0 -2
index 63f069c..a9449b2 100644
@@ -12,8 +12,6 @@ MACHINE_KERNEL_PR = "r7"
 
 KERNEL_IMAGETYPE = "uImage"
 
-UBOOT_MACHINE = "k2hk_evm_config"
-
 UBOOT_ENTRYPOINT = "0x80008000"
 UBOOT_LOADADDRESS = "0x80008000"
 
conf/machine/k2hk-evm.conf +4 -0
index 088e524..2885335 100644
@@ -4,6 +4,10 @@
 
 require conf/machine/include/keystone.inc
 
+UBOOT_MACHINE = "k2hk_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
 IMAGE_FSTYPES += "ubi tar.gz cpio"
 
Quoted 13 lines

conf/machine/k2l-evm.conf line 3

Quoted 10 lines
conf/machine/k2hk-evm.conf +0 -0
 SERIAL_CONSOLE = "115200 ttyS0"
conf/machine/k2l-evm.conf new file +3 -0
new file mode 100644
index 0000000..0824a09
@@ -0,0 +1,30 @@
+#@TYPE: Machine
+#@NAME: Keystone 2 K2L machine
+#@DESCRIPTION: Machine configuration for the TI Keystone 2 K2L EVM

Same comment as to #1 - find-copies-harder would have detected this file being very similar to the original, making review much easier.

Quoted 2 lines

K2L has different UBI configuration since it has a different NAND device, I guess that's why git does not detect the file being copied.

Hmm, I'd assume it would still be very similar, but I guess it's above the threshold... Fine, anyway.

Quoted 38 lines
Quoted 38 lines
Quoted 38 lines
conf/machine/k2l-evm.conf new file +26 -0
+require conf/machine/include/keystone.inc
+
+UBOOT_MACHINE = "k2l_evm_config"
+
+BOOT_MONITOR_MAKE_TARGET = "k2hk"
+
+IMAGE_FSTYPES += "ubi tar.gz cpio"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+
+SYSVINIT_ENABLED_GETTYS = ""
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# From dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: logical eraseblock size:    253952 bytes
+# from ubiattach stdout:
+# UBI device number 0, total 1926 LEBs
+MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 1926"
+
+# do ubiattach /dev/ubi_ctrl -m 4
+# from dmesg:
+# UBI: smallest flash I/O unit:    4096
+# UBI: physical eraseblock size:   256 KiB
+# UBI: sub-page size:              4096
+UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
recipes-bsp/boot-monitor/boot-monitor_git.bb +0 -1
index 0b559fa..0761d83 100644
@@ -5,23 +5,22 @@ LICENSE = "BSD"
 
 BOOT_MONITOR_BINARY ?= "skern.bin"
 BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
-BOOT_MONITOR_MAKE_TARGET  ?= "all"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
 
Quoted 7 lines
Quoted 5 lines

recipes-bsp/boot-monitor/boot-monitor_git.bb LICENSE = "BSD" · line 11

Quoted 2 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +1 -1
-COMPATIBLE_MACHINE = "k2hk-evm"
+COMPATIBLE_MACHINE = "k2hk-evm|k2l-evm"

Just do the entire SOC family:
COMPATIBLE_MACHINE = "keystone"

Will use keystone machine name.

It's SOC family name. It is accepted by COMPATIBLE_MACHINE as well as any generic variable overrides.

Quoted 26 lines
Quoted 25 lines
Quoted 25 lines
recipes-bsp/boot-monitor/boot-monitor_git.bb +3 -3
 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"
 
 S = "${WORKDIR}/git"
 
-#Tag "K2_BM_13.11"
-SRCREV = "ba597d183423971e63295cdd59d3c90245e9170a"
+#Tag "K2_BM_14.05"
+SRCREV = "0e3ffe1ea4a0cee38ae2406901b7cf4d5324b5e9"
 
 do_compile () {
 	unset LDFLAGS
Signature · 7 lines
1.7.9.5

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