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

[Fire TV Stick] Any 'adb' command returns 'Illegal instruction' #4

Open
randomt4sk opened this issue Jul 9, 2019 · 14 comments
Open
Labels
help wanted Extra attention is needed

Comments

@randomt4sk
Copy link

randomt4sk commented Jul 9, 2019

I tried both scripts and also added 'apt -y upgrade', without success.
Installation seems to succeed, since it returns:
'Tools were successfully installed!'

When running an adb command (eg. 'adb devices') it returns:
'/data/data/com.termux/files/usr/bin/adb: line 7 9976 Illegal instruction $dir/adb.bin "$@"'

The seconds number '9976' changes from time to time (or on reinstall), but it's always referring to line 7.
Any ideas, if it's an device specific issue or my fault?

Edit:
The issue occurs on an Fire TV Stick (gen. 1).
However, it's working fine on my phone.

@MasterDevX
Copy link
Owner

MasterDevX commented Jul 10, 2019

@randomt4sk Okay, my telepathic abilities say that you came here from XDA 😁
So I've read this thread on XDA about this TV Stick and I think there might be some different revisions (or something like this) of this stick with different CPU architectures, so this may cause this problem. What does command arch show on your stick?

@randomt4sk
Copy link
Author

@MasterDevX haha, your telepathic abilities are right, but why don't they tell you what 'arch' is returning? ;)
Thanks a lot for the quick reply.
I'm not sure where to execute the command.
On Termux it's returning:
No command 'arch' found, did you mean: blablabla

'adb arch' & 'adb sh arch' are also saying that it's not a valid command.

@MasterDevX
Copy link
Owner

@randomt4sk Hmm, looks like you just don't have this binary. Let's find another way. Do you have dpkg installed there?

@randomt4sk
Copy link
Author

@MasterDevX Yes, dpkg is in place.

@MasterDevX
Copy link
Owner

@randomt4sk Then try to execute this:
dpkg --print-architecture

@randomt4sk
Copy link
Author

randomt4sk commented Jul 10, 2019

@MasterDevX This only shows 'arm' (i guess 32 bit).
However, 'lscpu' returns some additional information:

Key Value
Architecture armv7l
Byte Order Little Endian
CPU(s) 2
On-line CPU(s) list 0,1
Thread(s) per core 1
Core(s) per socket 1
Socket(s) 2
Vendor ID ARM
Model 0
Model name Cortex-A9
Stepping r3p0
CPU max MHz 999.9990
CPU min MHz 312.0000
BogoMIPS 2400.25
Flags swp half thumb fastmult vfp edsp thumbee nean vfpv3

Edit: Hmm, sorry, somehow table layout isn't working.

@MasterDevX
Copy link
Owner

@randomt4sk Most likely that's because of armv7l, I have one device with the same CPU architecture, so I'm gonna check if ADB works there.
I'll write back soon :)

@MasterDevX
Copy link
Owner

MasterDevX commented Jul 10, 2019

@randomt4sk Hmm, worked pretty well on my armv7l.
Try running ADB without wrapper script. To do so, type:
$PREFIX/bin/adb.bin
And tell if you're getting the same error.

@randomt4sk
Copy link
Author

Unfortunately this shows 'Illegal instruction'.

@MasterDevX
Copy link
Owner

Currently I have no idea, why are you getting this error, sorry.
I'll write here if I find any solution.

@MasterDevX MasterDevX changed the title Any 'adb' command returns 'Illegal instruction' [Fire TV Stick] Any 'adb' command returns 'Illegal instruction' Jul 10, 2019
@MasterDevX MasterDevX added the help wanted Extra attention is needed label Jul 10, 2019
@randomt4sk
Copy link
Author

Well, thanks for your efforts.
I'll try again after factory reset.
I also have another AFTVS and I'll try on that one too.

@seyiman
Copy link

seyiman commented Nov 27, 2019

Pls why is it asking me for username and password for github.com

@MasterDevX
Copy link
Owner

Pls why is it asking me for username and password for github.com

Show the screenshot of message you're getting.

@Frank-hooder
Copy link

adb command runs on pydroid but failed on termux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants