From: Jan Kiszka <[email protected]> This brings the usual target-specific files and installs u-boot-script for this machine.
Signed-off-by: Jan Kiszka <[email protected]> --- recipes-core/customizations/customizations.bb | 3 +++ .../customizations/files/.bash_history-espressobin | 14 ++++++++++++++ recipes-core/customizations/files/ethernet | 2 +- recipes-core/customizations/files/postinst-espressobin | 17 +++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 recipes-core/customizations/files/.bash_history-espressobin create mode 100644 recipes-core/customizations/files/postinst-espressobin diff --git a/recipes-core/customizations/customizations.bb b/recipes-core/customizations/customizations.bb index 112a078..94996ef 100644 --- a/recipes-core/customizations/customizations.bb +++ b/recipes-core/customizations/customizations.bb @@ -31,6 +31,9 @@ DEBIAN_DEPENDS = "openssh-server, passwd" DEBIAN_DEPENDS_append_orangepi-zero = ", u-boot-script" DEPENDS_append_orangepi-zero = "u-boot-script" +DEBIAN_DEPENDS_append_espressobin = ", u-boot-script" +DEPENDS_append_espressobin = "u-boot-script" + do_install() { sudo rm -rf ${D}/etc ${D}/root diff --git a/recipes-core/customizations/files/.bash_history-espressobin b/recipes-core/customizations/files/.bash_history-espressobin new file mode 100644 index 0000000..498e866 --- /dev/null +++ b/recipes-core/customizations/files/.bash_history-espressobin @@ -0,0 +1,14 @@ +jailhouse enable /etc/jailhouse/espressobin.cell +jailhouse console +jailhouse cell create /etc/jailhouse/espressobin-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/espressobin-linux-demo.cell \ + /boot/vmlinuz* \ + -d /etc/jailhouse/dts/inmate-espressobin.dtb \ + -i /usr/libexec/jailhouse/demos/rootfs.cpio \ + -c "console=ttyMV0 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 9db3add..54394d5 100644 --- a/recipes-core/customizations/files/ethernet +++ b/recipes-core/customizations/files/ethernet @@ -2,7 +2,7 @@ allow-hotplug eth0 allow-hotplug enp0s2 allow-hotplug enp3s0 -# used on qemuarm64 and orangepi-zero +# used on qemuarm64, orangepi-zero and espressobin iface eth0 inet dhcp # used on qemuamd64 diff --git a/recipes-core/customizations/files/postinst-espressobin b/recipes-core/customizations/files/postinst-espressobin new file mode 100644 index 0000000..74f150f --- /dev/null +++ b/recipes-core/customizations/files/postinst-espressobin @@ -0,0 +1,17 @@ +cat << EOF > /etc/default/u-boot-script +KERNEL_ARGS_APPEND="root=/dev/mmcblk0p1 rw rootwait mem=768M" +NO_INITRD="yes" +SCRIPT_PREPEND=" +setenv devtype mmc +setenv devnum 0 +setenv distro_bootpart 1 +setenv fdt_addr_r 0x4f00000 +setenv fdtfile marvell/armada-3720-espressobin.dtb +setenv kernel_addr_r 0x5000000 +" +EOF + +update-u-boot-script + +# workaround for Debian Bug#879903 +echo "ttyMV0" >> /etc/securetty -- 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.
