Alignment Error and Bus Error when freshly installing adb on minimal 18.04

Post Reply
VTNewb
Posts: 22
Joined: Fri Aug 24, 2018 4:14 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Alignment Error and Bus Error when freshly installing adb on minimal 18.04

Unread post by VTNewb » Fri Sep 20, 2019 1:32 am

Hi Ya'll,

I've got a few ODROID XU4s and a few eMMCs here, and no matter what I do, if I use the 18.04 minimal image and install adb via apt, I get the following:

Code: Select all

root@odroid:~# adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 705
--- adb starting (pid 705) ---
adb I 09-19 16:26:45   705   705 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 09-19 16:26:45   705   705 main.cpp:57] Version 1:8.1.0+r23-5~18.04
adb I 09-19 16:26:45   705   705 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
adb I 09-19 16:26:45   705   705 main.cpp:57] 
adb I 09-19 16:26:45   705   705 adb_auth_host.cpp:416] adb_auth_init...
adb I 09-19 16:26:45   705   705 adb_auth_host.cpp:262] User key '/root/.android/adbkey' does not exist...
adb I 09-19 16:26:45   705   705 adb_auth_host.cpp:109] generate_key(/root/.android/adbkey)...

* failed to start daemon
error: cannot connect to daemon
I also see at the same time some ARM output

Code: Select all

[577.387867] Alignment trap:not handling instruction ecd6cb04 at [<b6cc1c78>]
[577.394534] Unhandled fault: alignment exception: (0x011) at 0xb6cc15a1
[577.400949] pgd = ece3000
[577.403646] [b6cc15a11] *pgd=b5404835
If I try and use ADB's internal debug utilities I see:

Code: Select all

root@odroid:~# adb nodaemon server
adb I 09-19 16:32:07   739   739 adb_auth_host.cpp:416] adb_auth_init...
adb I 09-19 16:32:07   739   739 adb_auth_host.cpp:262] User key '/root/.android/adbkey' does not exist...
adb I 09-19 16:32:07   739   739 adb_auth_host.cpp:109] generate_key(/root/.android/adbkey)...
Bus error

Can anyone point me in the right direction to get this fixed?

User avatar
odroid
Site Admin
Posts: 32318
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 138 times
Been thanked: 315 times
Contact:

Re: Alignment Error and Bus Error when freshly installing adb on minimal 18.04

Unread post by odroid » Fri Sep 20, 2019 10:11 am

I could reproduce the issue and it seems to be a bug in a specific Debian package.
I think "android-libboringssl" package must be updated by Canonical and Debian maintainer. Otherwise, you need to build the "android-libboringssl" source with two patches by yourself.
https://www.mail-archive.com/debian-bug ... 92751.html
These users thanked the author odroid for the post:
VTNewb (Fri Sep 20, 2019 10:17 pm)

VTNewb
Posts: 22
Joined: Fri Aug 24, 2018 4:14 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Alignment Error and Bus Error when freshly installing adb on minimal 18.04

Unread post by VTNewb » Fri Sep 20, 2019 9:37 pm

Thanks odroid! I'll try that today.

I'm always impressed at how helpful the Odroid forums are - that's why we keep buying them and building them into our prototypes.

VTNewb
Posts: 22
Joined: Fri Aug 24, 2018 4:14 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Alignment Error and Bus Error when freshly installing adb on minimal 18.04

Unread post by VTNewb » Fri Sep 20, 2019 10:30 pm

Quick update - I had to learn a little bit on patching debian files but it's installed and works. Thanks again.

User avatar
odroid
Site Admin
Posts: 32318
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 138 times
Been thanked: 315 times
Contact:

Re: Alignment Error and Bus Error when freshly installing adb on minimal 18.04

Unread post by odroid » Mon Sep 23, 2019 8:53 am

Glad to hear that you solved the issue by the patches. :)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests