]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/commitdiff
init test moved to proper location
authorhoudek <houdepre@fel.cvut.cz>
Wed, 10 May 2017 13:21:24 +0000 (13:21 +0000)
committerhoudek <houdepre@fel.cvut.cz>
Wed, 10 May 2017 13:21:24 +0000 (13:21 +0000)
build/rootfs-overlay/etc/init.d/S60runJailHouse [new file with mode: 0755]
build/rootfs-overlay/etc/inittab [deleted file]

diff --git a/build/rootfs-overlay/etc/init.d/S60runJailHouse b/build/rootfs-overlay/etc/init.d/S60runJailHouse
new file mode 100755 (executable)
index 0000000..dc78bab
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+ip a
+sleep 1
+echo "1" > /proc/sys/kernel/printk
+sleep 1
+#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
diff --git a/build/rootfs-overlay/etc/inittab b/build/rootfs-overlay/etc/inittab
deleted file mode 100644 (file)
index d79509d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-# /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