From 22caf5a9fd6cf00ff2b822c0a84f96b53f4b920f Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 14 Oct 2013 13:13:47 +0300 Subject: raspberrypi: use adb over ethernet For raspberry pi, we don't need to load ffs modules. Change-Id: I80f86e71031c41a4b664ae2a20754881ed7393e0 Reviewed-by: Samuli Piippo --- recipes/adbd/files/raspberrypi/adb-init | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/adbd/files/raspberrypi/adb-init (limited to 'recipes/adbd/files') diff --git a/recipes/adbd/files/raspberrypi/adb-init b/recipes/adbd/files/raspberrypi/adb-init new file mode 100644 index 0000000..8910e0e --- /dev/null +++ b/recipes/adbd/files/raspberrypi/adb-init @@ -0,0 +1,21 @@ +#!/bin/sh + +DAEMON=/usr/bin/adbd + +case "$1" in +start) + start-stop-daemon --start --quiet --exec $DAEMON & + ;; +stop) + start-stop-daemon --stop --quiet --exec $DAEMON + ;; +restart) + start-stop-daemon --stop --quiet --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --exec $DAEMON & + ;; +*) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac +exit 0 -- cgit v1.2.3-54-g00ecf From 4caaf27fd9b82092b0e4f378806be348b9aa61fe Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 22 Jan 2014 11:53:17 +0200 Subject: adb: use modprobe to load dependency modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I311b4945aff87b0851bc2da719025e03ff8e1114 Reviewed-by: Pasi Petäjäjärvi --- recipes/adbd/files/adb-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/adbd/files') diff --git a/recipes/adbd/files/adb-init b/recipes/adbd/files/adb-init index e88df23..6faed60 100755 --- a/recipes/adbd/files/adb-init +++ b/recipes/adbd/files/adb-init @@ -8,7 +8,7 @@ SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address) case "$1" in start) - insmod $(busybox find /lib/modules/$(uname -r) -name "g_ffs.ko") idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL} + modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL} mkdir -p /dev/usb-ffs chmod 770 /dev/usb-ffs mkdir -p /dev/usb-ffs/adb -- cgit v1.2.3-54-g00ecf