From 20907e057fa837850f376f07fec078dc9c373443 Mon Sep 17 00:00:00 2001 From: Radek Matejka Date: Thu, 9 Aug 2012 16:35:19 +0200 Subject: [PATCH] Add boot scripts etc. --- test/boot | 4 ++++ test/myroot/bin/canethgw.ko | 1 + test/myroot/bin/cegw | 1 + test/myroot/bin/cegwbench | 1 + test/myroot/etc/init.d/rcS | 13 +++++++++++++ 5 files changed, 20 insertions(+) create mode 100755 test/boot create mode 120000 test/myroot/bin/canethgw.ko create mode 120000 test/myroot/bin/cegw create mode 120000 test/myroot/bin/cegwbench create mode 100755 test/myroot/etc/init.d/rcS diff --git a/test/boot b/test/boot new file mode 100755 index 0000000..29a273b --- /dev/null +++ b/test/boot @@ -0,0 +1,4 @@ +#!/usr/bin/env novaboot +KERNEL=qemuKernel console=ttyS0,115200 +ramdisk < ( ( cd ~/workdir/busybox/_install; find . | cpio -o -H newc ); ( cd $SRCDIR/myroot; find . | cpio -o --dereference -H newc ) ) | gzip + diff --git a/test/myroot/bin/canethgw.ko b/test/myroot/bin/canethgw.ko new file mode 120000 index 0000000..dea6757 --- /dev/null +++ b/test/myroot/bin/canethgw.ko @@ -0,0 +1 @@ +../../../kernel/canethgw.ko \ No newline at end of file diff --git a/test/myroot/bin/cegw b/test/myroot/bin/cegw new file mode 120000 index 0000000..f1c96d2 --- /dev/null +++ b/test/myroot/bin/cegw @@ -0,0 +1 @@ +../../../utils/cegw/cegw \ No newline at end of file diff --git a/test/myroot/bin/cegwbench b/test/myroot/bin/cegwbench new file mode 120000 index 0000000..2abf96e --- /dev/null +++ b/test/myroot/bin/cegwbench @@ -0,0 +1 @@ +../../../utils/cegwbench/cegwbench \ No newline at end of file diff --git a/test/myroot/etc/init.d/rcS b/test/myroot/etc/init.d/rcS new file mode 100755 index 0000000..591a6a9 --- /dev/null +++ b/test/myroot/etc/init.d/rcS @@ -0,0 +1,13 @@ +#!/bin/sh +set +x +mount -t proc none /proc +# can +ifconfig lo up +ip link add dev vcan0 type vcan +ifconfig vcan0 up +insmod /bin/canethgw.ko +cegw --listen udp@127.0.0.1:10501 +cegw --add -s can@vcan0 -d udp@127.0.0.1:10502 + +cegwbench -s can@vcan0 -d udp@127.0.0.1:10502 -n 10 -m oneattime + -- 2.39.2