diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2017-05-12 15:03:44 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2017-05-12 12:54:01 +0000 |
commit | 43d09e9778e482fad6723d677cc060a8d7606d34 (patch) | |
tree | 607e3ee591fd47defcbc4540ca5460be3e54cba4 | |
parent | 23be0b449773495b8e895e81dc2fae225822a3a8 (diff) | |
download | meta-boot2qt-43d09e9778e482fad6723d677cc060a8d7606d34.tar.gz |
qdb: fix qdb daemon startup problems
- Kernel needs some time before usb_gadget properly loaded and configured.
- use basic.target for qdbd, since not all devices have wired network.
- use /etc/machine-id for the serial, since not all devices have wired network.
Task-number: QTBUG-60774
Change-Id: I84edb1757868611d1562571656e41ea6dbe632f0
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
-rw-r--r-- | recipes-qt/b2qt-addons/qdbd/defaults | 2 | ||||
-rwxr-xr-x | recipes-qt/b2qt-addons/qdbd/qdbd-init.sh | 1 | ||||
-rw-r--r-- | recipes-qt/b2qt-addons/qdbd/qdbd.service | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/recipes-qt/b2qt-addons/qdbd/defaults b/recipes-qt/b2qt-addons/qdbd/defaults index edefcd2..64478b9 100644 --- a/recipes-qt/b2qt-addons/qdbd/defaults +++ b/recipes-qt/b2qt-addons/qdbd/defaults | |||
@@ -1,3 +1,3 @@ | |||
1 | VENDOR=0xdbdb | 1 | VENDOR=0xdbdb |
2 | PRODUCT=0x0001 | 2 | PRODUCT=0x0001 |
3 | SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address) | 3 | SERIAL=$(hostname)-$(cat /etc/machine-id) |
diff --git a/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh b/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh index 10151c9..bcc22a8 100755 --- a/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh +++ b/recipes-qt/b2qt-addons/qdbd/qdbd-init.sh | |||
@@ -63,6 +63,7 @@ case "$1" in | |||
63 | start) | 63 | start) |
64 | b2qt-gadget-network.sh --reset | 64 | b2qt-gadget-network.sh --reset |
65 | modprobe libcomposite | 65 | modprobe libcomposite |
66 | sleep 1 | ||
66 | # Gadget configuration | 67 | # Gadget configuration |
67 | mkdir -p $GADGET_CONFIG | 68 | mkdir -p $GADGET_CONFIG |
68 | echo $VENDOR > $GADGET_CONFIG/idVendor | 69 | echo $VENDOR > $GADGET_CONFIG/idVendor |
diff --git a/recipes-qt/b2qt-addons/qdbd/qdbd.service b/recipes-qt/b2qt-addons/qdbd/qdbd.service index 88806a2..6c1b8e8 100644 --- a/recipes-qt/b2qt-addons/qdbd/qdbd.service +++ b/recipes-qt/b2qt-addons/qdbd/qdbd.service | |||
@@ -1,6 +1,6 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=Qt Debug Bridge Daemon | 2 | Description=Qt Debug Bridge Daemon |
3 | After=network.target | 3 | After=basic.target |
4 | Before=adbd.service | 4 | Before=adbd.service |
5 | Conflicts=adbd.service | 5 | Conflicts=adbd.service |
6 | 6 | ||