Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-adb for STF as device provider on Odroid XU4 #11

Open
deg0nz opened this issue Mar 21, 2018 · 4 comments
Open

docker-adb for STF as device provider on Odroid XU4 #11

deg0nz opened this issue Mar 21, 2018 · 4 comments

Comments

@deg0nz
Copy link

deg0nz commented Mar 21, 2018

Hey, @sorccu
I am trying to get stf running as a device provider on an Odroid XU4 running Arch Linux for a day now and couldn't get this working...
You said, that your XU4 is running smoothely here, so I assume you got your ADB container working on your XU4, but how did you handle this?

When I start your container, I get the error standard_init_linux.go:195: exec user process caused "exec format error".
Did you stumble upon this error before?

Research on the net shows, that it's either a architecture error or encoding... But I couldn't figure out what the actual problem is here...

I also tried building the container on the machine, but this didn't work either. When I start this, the 'adb' command throws the error from above...

Do you have any hints on that?

@sorccu
Copy link
Owner

sorccu commented Mar 21, 2018

I would suggest using whatever is easiest with your distro. There’s no official build for arm and most package managers have an ancient version. The one on Alpine Linux is what I’ve used in the past but it is also relatively out of date. Arch Linux also has an out of date package but they’ve worked well enough.

You could also try qemu.

@deg0nz
Copy link
Author

deg0nz commented Mar 23, 2018

Alright, thanks fo the quick answer!
I found the android-tools package on arch. I couldn't connect to the device yet, but it appears via lsusb... but this is another problem.

I would like to try to port your container to ARM somehow... do you have any hints for me on that?

It seems to me, that the android toolchain your container is downloading from google, is kinda generic, do you think it would suffice, if we replace the glibc stuff of the container to compiled binaries for ARM? Or should the whole toolchain be rebuild for ARM in that case?

@sorccu
Copy link
Owner

sorccu commented Mar 23, 2018

You'd need to change everything and use qemu to run the binary, or use an unofficial outdated build.

@deg0nz
Copy link
Author

deg0nz commented May 8, 2018

Okay, just to give you an update on this...

I managed to build a Docker container on basis of Archlinux and then installing android-tools in it, which currently support Android 8.1.0 for ARM. It's by far not as small as your container, but it seems to work and I'll pay the price of wasting disk space...

If this issue is solved by this from your point of view, we can close the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants