From: Jan Kiszka <[email protected]> This brings the target-specific files. It also adds eth2 as interface, the only one that is available via RJ45 on all MACCHIATObin variants.
As our default CMA size of 16M is too small for the board's Ethernet interfaces tune this via the kernel command line. Signed-off-by: Jan Kiszka <[email protected]> --- recipes-core/customizations/customizations.bb | 3 +++ .../customizations/files/.bash_history-macchiatobin | 14 ++++++++++++++ recipes-core/customizations/files/ethernet | 4 ++++ recipes-core/customizations/files/postinst-macchiatobin | 15 +++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 recipes-core/customizations/files/.bash_history-macchiatobin create mode 100644 recipes-core/customizations/files/postinst-macchiatobin diff --git a/recipes-core/customizations/customizations.bb b/recipes-core/customizations/customizations.bb index 430332c..ccab669 100644 --- a/recipes-core/customizations/customizations.bb +++ b/recipes-core/customizations/customizations.bb @@ -34,6 +34,9 @@ DEPENDS_append_orangepi-zero = "u-boot-script" DEBIAN_DEPENDS_append_espressobin = ", u-boot-script" DEPENDS_append_espressobin = "u-boot-script" +DEBIAN_DEPENDS_append_macchiatobin = ", u-boot-script" +DEPENDS_append_macchiatobin = "u-boot-script" + do_install() { sudo rm -rf ${D}/etc ${D}/root diff --git a/recipes-core/customizations/files/.bash_history-macchiatobin b/recipes-core/customizations/files/.bash_history-macchiatobin new file mode 100644 index 0000000..16a0312 --- /dev/null +++ b/recipes-core/customizations/files/.bash_history-macchiatobin @@ -0,0 +1,14 @@ +jailhouse enable /etc/jailhouse/macchiatobin.cell +jailhouse console +jailhouse cell create /etc/jailhouse/macchiatobin-gic-demo.cell +jailhouse cell load gic-demo /usr/libexec/jailhouse/demos/gic-demo.bin +jailhouse cell start gic-demo +jailhouse cell stats gic-demo +jailhouse cell destroy gic-demo +jailhouse cell linux /etc/jailhouse/macchiatobin-linux-demo.cell \ + /boot/vmlinuz* \ + -d /etc/jailhouse/dts/inmate-macchiatobin.dtb \ + -i /usr/libexec/jailhouse/demos/rootfs.cpio \ + -c "console=ttyS0,115200 ip=192.168.19.2" +ssh 192.168.19.2 +jailhouse disable diff --git a/recipes-core/customizations/files/ethernet b/recipes-core/customizations/files/ethernet index 3b6483a..07d20eb 100644 --- a/recipes-core/customizations/files/ethernet +++ b/recipes-core/customizations/files/ethernet @@ -10,12 +10,16 @@ # allow-hotplug eth0 +allow-hotplug eth2 allow-hotplug enp0s2 allow-hotplug enp3s0 # used on qemuarm64, orangepi-zero and espressobin iface eth0 inet dhcp +# used on macchiatobin +iface eth2 inet dhcp + # used on qemuamd64 iface enp0s2 inet dhcp diff --git a/recipes-core/customizations/files/postinst-macchiatobin b/recipes-core/customizations/files/postinst-macchiatobin new file mode 100644 index 0000000..016822f --- /dev/null +++ b/recipes-core/customizations/files/postinst-macchiatobin @@ -0,0 +1,15 @@ +# +# Jailhouse, a Linux-based partitioning hypervisor +# +# Copyright (c) Siemens AG, 2018 +# +# Authors: +# Jan Kiszka <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +sed -i 's/\(KERNEL_ARGS=".*\)"/\1 rw rootwait cma=32M mem=3840M"/' \ + /etc/default/u-boot-script + +update-u-boot-script -- 2.16.4 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
