]> rtime.felk.cvut.cz Git - can-eth-gw.git/commitdiff
Add boot scripts etc.
authorRadek Matejka <radek.matejka@gmail.com>
Thu, 9 Aug 2012 14:35:19 +0000 (16:35 +0200)
committerRadek Matejka <radek.matejka@gmail.com>
Thu, 9 Aug 2012 14:35:19 +0000 (16:35 +0200)
test/boot [new file with mode: 0755]
test/myroot/bin/canethgw.ko [new symlink]
test/myroot/bin/cegw [new symlink]
test/myroot/bin/cegwbench [new symlink]
test/myroot/etc/init.d/rcS [new file with mode: 0755]

diff --git a/test/boot b/test/boot
new file mode 100755 (executable)
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 (symlink)
index 0000000..dea6757
--- /dev/null
@@ -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 (symlink)
index 0000000..f1c96d2
--- /dev/null
@@ -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 (symlink)
index 0000000..2abf96e
--- /dev/null
@@ -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 (executable)
index 0000000..591a6a9
--- /dev/null
@@ -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
+