From: houdek Date: Fri, 5 May 2017 14:10:08 +0000 (+0000) Subject: autorun jailhouse test X-Git-Tag: 0.0~53 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hercules2020/jailhouse-build.git/commitdiff_plain/5b6c29756195fba86640f7871aedf17cabd9a749 autorun jailhouse test --- diff --git a/build/rootfs-overlay/etc/inittab b/build/rootfs-overlay/etc/inittab new file mode 100644 index 0000000..d79509d --- /dev/null +++ b/build/rootfs-overlay/etc/inittab @@ -0,0 +1,38 @@ +# /etc/inittab +# +# Copyright (C) 2001 Erik Andersen +# +# Note: BusyBox init doesn't support runlevels. The runlevels field is +# completely ignored by BusyBox init. If you want runlevels, use +# sysvinit. +# +# Format for each entry: ::: +# +# id == tty to run on, or empty for /dev/console +# runlevels == ignored +# action == one of sysinit, respawn, askfirst, wait, and once +# process == program to run + +# Startup the system +::sysinit:/bin/mount -t proc proc /proc +::sysinit:/bin/mount -o remount,rw / +::sysinit:/bin/mkdir -p /dev/pts +::sysinit:/bin/mkdir -p /dev/shm +::sysinit:/bin/mount -a +::sysinit:/bin/hostname -F /etc/hostname +# now run any rc scripts +::sysinit:/etc/init.d/rcS +# my startup scripts +::sysinit:/test + + +# Put a getty on the serial port +console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL + +# Stuff to do for the 3-finger salute +#::ctrlaltdel:/sbin/reboot + +# Stuff to do before rebooting +::shutdown:/etc/init.d/rcK +::shutdown:/sbin/swapoff -a +::shutdown:/bin/umount -a -r diff --git a/build/rootfs-overlay/test b/build/rootfs-overlay/test new file mode 100755 index 0000000..3c09871 --- /dev/null +++ b/build/rootfs-overlay/test @@ -0,0 +1,19 @@ +#!/bin/sh +#sh -c 'echo 1 > /sys/kernel/debug/cpuidle_t210/fast_cluster_states_enable' +insmod /lib/modules/3.10.96/extra/driver/jailhouse.ko +/usr/local/sbin/jailhouse enable /jail/configs/jetson-tx1.cell + +sleep 5 + +#/usr/local/sbin/jailhouse cell create /jail/configs/jetson-tx1-demo.cell +#/usr/local/sbin/jailhouse cell load jetson-tx1-demo /jail/demos/my-demo.bin +#/usr/local/sbin/jailhouse cell start jetson-tx1-demo + +#sudo jailhouse cell stats jetson-tx1-demo + +sleep 5 +/usr/local/sbin/jailhouse disable +sleep 3 +rmmod jailhouse + +