]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/commitdiff
Add binary images for testing the hardware
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 6 Nov 2013 01:19:54 +0000 (02:19 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 6 Nov 2013 01:19:54 +0000 (02:19 +0100)
motor-reg.sh
test-bin/Makefile [new file with mode: 0644]
test-bin/initramfs.uImage [new file with mode: 0644]
test-bin/motorboot [new file with mode: 0755]
test-bin/shark-ryu.dtb [new file with mode: 0644]
test-bin/uImage [new file with mode: 0644]

index fec5aae2f58c43dd3f798e79cdc550b156c8e79b..7b23b105c6e275d554c37ee8cef6a9042630dfdb 100644 (file)
@@ -1,6 +1,6 @@
 A=/sys/devices/motorek.1/action
 P=/sys/devices/motorek.1/position
-ref=1000
+ref=${1:-1000}
 while true; do 
        p=$(cat $P); 
        e=$((ref-p));
diff --git a/test-bin/Makefile b/test-bin/Makefile
new file mode 100644 (file)
index 0000000..d1bf37c
--- /dev/null
@@ -0,0 +1,2 @@
+initramfs.uImage: initramfs.cpio
+       mkimage -T ramdisk -A powerpc -O linux -d $< $@
diff --git a/test-bin/initramfs.uImage b/test-bin/initramfs.uImage
new file mode 100644 (file)
index 0000000..baa170e
Binary files /dev/null and b/test-bin/initramfs.uImage differ
diff --git a/test-bin/motorboot b/test-bin/motorboot
new file mode 100755 (executable)
index 0000000..56cd40d
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env novaboot
+# -*-sh-*-
+
+# Use this file with https://github.com/wentasah/novaboot
+#
+# Connect ryu board to your computer (USB console and Ethernet) and
+# run ./motorboot -t ryulocal.
+
+uImage console=ttyPSC0,115200
+shark-ryu.dtb
+initramfs.uImage
diff --git a/test-bin/shark-ryu.dtb b/test-bin/shark-ryu.dtb
new file mode 100644 (file)
index 0000000..ecea1b4
Binary files /dev/null and b/test-bin/shark-ryu.dtb differ
diff --git a/test-bin/uImage b/test-bin/uImage
new file mode 100644 (file)
index 0000000..8ab8370
Binary files /dev/null and b/test-bin/uImage differ