Skip to contentSkip to conversation

recipes-bsp: jailhouse: Update tty for j7-evm jailhouse

PATCH In review Nikhil Devshatwar 2 participants 3 messages Mar 4, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 recipes-bsp: jailhouse: Update tty for j7-evm jailhouse

From: Nikhil Devshatwar <[email protected]>

Latest upstream jailhouse uses ttyS3 as the console for inmate cell. Update the recipe to pass the correct cmdline.

Override only for j7-evm

---
 recipes-kernel/jailhouse/jailhouse_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-kernel/jailhouse/jailhouse_git.bb +2 -1
index a4ee2fc7..1273c57d 100644
@@ -59,7 +59,8 @@ INITRAMFS_IMAGE ?= ""
 JH_RAMFS_IMAGE ?= "${INITRAMFS_IMAGE}"
 
 JH_CMDLINE ?= ""
-JH_CMDLINE_k3 ?= "console=ttyS1,115200n8"
+JH_CMDLINE_am65xx ?= "console=ttyS1,115200n8"
+JH_CMDLINE_j7-evm ?= "console=ttyS3,115200n8"
 
 do_configure() {
 	if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 conf: j7-evm: Update the secondary console for jailhouse

From: Nikhil Devshatwar <[email protected]>

Latest upstream jailhouse uses ttyS3 as console. Update the conf file so that this reflects correctly in the tiny rootfs.

---
 conf/machine/j7-evm.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/j7-evm.conf +1 -1
index e73c75bd..9e910067 100644
@@ -4,7 +4,7 @@
 
 require conf/machine/include/k3.inc
 
-SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
+SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
 KERNEL_DEVICETREE = " \
Signature · 1 line
2.17.1
#2 lore raw
In reply to Nikhil Devshatwar

Thanks.

Quoted 17 lines · On Thu, Mar 05, 2020 at 01:03:46AM +0530, [email protected] wrote:

From: Nikhil Devshatwar <[email protected]>

Latest upstream jailhouse uses ttyS3 as the console for inmate cell. Update the recipe to pass the correct cmdline.

Override only for j7-evm

---
 recipes-kernel/jailhouse/jailhouse_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-kernel/jailhouse/jailhouse_git.bb +0 -0
index a4ee2fc7..1273c57d 100644

recipes-kernel/jailhouse/jailhouse_git.bb INITRAMFS_IMAGE ?= "" · line 63

Quoted 6 lines
recipes-kernel/jailhouse/jailhouse_git.bb +2 -1
@@ -59,7 +59,8 @@ INITRAMFS_IMAGE ?= ""
 JH_RAMFS_IMAGE ?= "${INITRAMFS_IMAGE}"
 
 JH_CMDLINE ?= ""
-JH_CMDLINE_k3 ?= "console=ttyS1,115200n8"
+JH_CMDLINE_am65xx ?= "console=ttyS1,115200n8"
+JH_CMDLINE_j7-evm ?= "console=ttyS3,115200n8"

Will this break am65?

Quoted 5 lines
recipes-kernel/jailhouse/jailhouse_git.bb +0 -0
 do_configure() {
 	if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ]; 
Signature · 1 line
2.17.1