From: Radek Matejka Date: Thu, 9 Aug 2012 14:35:19 +0000 (+0200) Subject: Add boot scripts etc. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/can-eth-gw.git/commitdiff_plain/20907e057fa837850f376f07fec078dc9c373443?ds=sidebyside Add boot scripts etc. --- 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 +