summaryrefslogtreecommitdiffstats
path: root/utils/ypr0tools
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-02-04 22:20:27 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-04 22:26:06 +0100
commitb828b9d99bff2acc0e1f543f3176fd4b632cba68 (patch)
tree11b3bf5d4d8d61f1af3a880c19fdd4b96e3d0631 /utils/ypr0tools
parent761975ef500534cf3962c857b0f60944c8e17c4b (diff)
downloadrockbox-b828b9d99bff2acc0e1f543f3176fd4b632cba68.tar.gz
rockbox-b828b9d99bff2acc0e1f543f3176fd4b632cba68.zip
samsung ypr0: Include getty service in the patched firmware for usb serial shell access.
The getty service mointors /dev/ttyGS0 (also created by the patched firmware). When the g_serial.ko module is loaded this automatically enables shell access via usb. It exposes a cdc-acm device to the host which is compatible to linux (usb_serial.ko) and windows. The g_serial.ko is not included module can be build from the YP-R0 open source package provided by samsung. It can be loaded via rc.user on the internal memory. Change-Id: I4903a635fd2e2f0ce6f5e91589a31d72bba2776b
Diffstat (limited to 'utils/ypr0tools')
-rw-r--r--utils/ypr0tools/files/common/etc/inittab7
-rwxr-xr-xutils/ypr0tools/patch-firmware.sh2
2 files changed, 9 insertions, 0 deletions
diff --git a/utils/ypr0tools/files/common/etc/inittab b/utils/ypr0tools/files/common/etc/inittab
new file mode 100644
index 0000000000..50fb056a34
--- /dev/null
+++ b/utils/ypr0tools/files/common/etc/inittab
@@ -0,0 +1,7 @@
+# see busybox-1.00rc2/examples/inittab for more examples
+::sysinit:/etc/rc.d/rc.start
+::respawn:/etc/autologin ttymxc0 login -f root
+::ctrlaltdel:/sbin/reboot
+::shutdown:/etc/rc.d/rc.reboot
+::restart:/sbin/init
+::respawn:/sbin/getty -n -l /bin/sh 115200 /dev/ttyGS0
diff --git a/utils/ypr0tools/patch-firmware.sh b/utils/ypr0tools/patch-firmware.sh
index acc1b48631..07ec6f0dd7 100755
--- a/utils/ypr0tools/patch-firmware.sh
+++ b/utils/ypr0tools/patch-firmware.sh
@@ -113,6 +113,8 @@ echo "Patching rootfs ($MODEL files)"
MODEL_FILES="$FILES/$MODEL"
echo "cp -r $MODEL_FILES/* $ROOTFS/"
cp -r $MODEL_FILES/* $ROOTFS/
+rm -rf $ROOTFS/dev/ttyGS0
+mknod $ROOTFS/dev/ttyGS0 c 127 0
echo "Packing new cramfs image"
cramfs-1.1/mkcramfs $ROOTFS $CRAMFS