![Thomas Petazzoni](/assets/img/avatar_default.png)
This package allows to build the fastboot and adb host utilities, which can be used to interact with target devices implementing one of these protocols. The work behind the host utilities was funded by ECA Group <http://www.ecagroup.com>. ECA Group is the copyright owner of the contributed code. The package also allows to build fastboot, adb and adbd daemon for the target. Regarding adbd, the target is required to have the FunctionFS USB Gadget configuration. Then the following commands enable the use of adb: # modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 \ iSerialNumber="buildroot" # mkdir -p /dev/usb-ffs/adb # mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000 # adbd & Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Tested-by: Julien Corjon <corjon.j@ecagroup.com> [Thomas: - update on top of master. - fix Config.in.host prompt, it should have been "host android-tools" and not just "android-tools".] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
[PATCH] Fix build issue with uclibc
|
|
|
|
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
|
|
---
|
|
core/adbd/adb_auth_client.c | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/core/adb/adb_auth_client.c b/core/adb/adb_auth_client.c
|
|
index 0b4913e..068d837 100644
|
|
--- a/core/adb/adb_auth_client.c
|
|
+++ b/core/adb/adb_auth_client.c
|
|
@@ -72,7 +72,7 @@ static void read_keys(const char *file, struct listnode *list)
|
|
if (sep)
|
|
*sep = '\0';
|
|
|
|
- ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
|
+ ret = b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
|
if (ret != sizeof(key->key)) {
|
|
D("%s: Invalid base64 data ret=%d\n", file, ret);
|
|
free(key);
|
|
diff --git a/core/adbd/adb_auth_client.c b/core/adbd/adb_auth_client.c
|
|
index 0b4913e..068d837 100644
|
|
--- a/core/adbd/adb_auth_client.c
|
|
+++ b/core/adbd/adb_auth_client.c
|
|
@@ -72,7 +72,7 @@ static void read_keys(const char *file, struct listnode *list)
|
|
if (sep)
|
|
*sep = '\0';
|
|
|
|
- ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
|
+ ret = b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4);
|
|
if (ret != sizeof(key->key)) {
|
|
D("%s: Invalid base64 data ret=%d\n", file, ret);
|
|
free(key);
|
|
--
|
|
2.6.1
|
|
|