Termux-ADB icon indicating copy to clipboard operation
Termux-ADB copied to clipboard

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

Open randomt4sk opened this issue 6 years ago • 14 comments

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.

randomt4sk avatar Jul 09 '19 14:07 randomt4sk

@randomt4sk Okay, my telepathic abilities say that you came here from XDA :grin: 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?

MasterDevX avatar Jul 10 '19 07:07 MasterDevX

@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.

randomt4sk avatar Jul 10 '19 08:07 randomt4sk

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

MasterDevX avatar Jul 10 '19 09:07 MasterDevX

@MasterDevX Yes, dpkg is in place.

randomt4sk avatar Jul 10 '19 09:07 randomt4sk

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

MasterDevX avatar Jul 10 '19 09:07 MasterDevX

@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.

randomt4sk avatar Jul 10 '19 09:07 randomt4sk

@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 avatar Jul 10 '19 09:07 MasterDevX

@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.

MasterDevX avatar Jul 10 '19 09:07 MasterDevX

Unfortunately this shows 'Illegal instruction'.

randomt4sk avatar Jul 10 '19 10:07 randomt4sk

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

MasterDevX avatar Jul 10 '19 11:07 MasterDevX

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.

randomt4sk avatar Jul 10 '19 11:07 randomt4sk

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

seyiman avatar Nov 27 '19 06:11 seyiman

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

Show the screenshot of message you're getting.

MasterDevX avatar Jan 25 '20 16:01 MasterDevX

adb command runs on pydroid but failed on termux

Frank-hooder avatar Jun 18 '20 20:06 Frank-hooder