]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/commitdiff
autorun jailhouse test
authorhoudek <houdepre@fel.cvut.cz>
Fri, 5 May 2017 14:10:08 +0000 (14:10 +0000)
committerhoudek <houdepre@fel.cvut.cz>
Fri, 5 May 2017 14:10:08 +0000 (14:10 +0000)
build/rootfs-overlay/etc/inittab [new file with mode: 0644]
build/rootfs-overlay/test [new file with mode: 0755]

diff --git a/build/rootfs-overlay/etc/inittab b/build/rootfs-overlay/etc/inittab
new file mode 100644 (file)
index 0000000..d79509d
--- /dev/null
@@ -0,0 +1,38 @@
+# /etc/inittab
+#
+# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
+#
+# 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>:<runlevels>:<action>:<process>
+#
+# 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 (executable)
index 0000000..3c09871
--- /dev/null
@@ -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
+
+