/usr/src/linux-headers-4.9.108-tegra/scripts/basic/fixdep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=abc0f3338adbac158818634095c5377e12ed23a2, not stripped
So these are x86-64 binaries, not ARM64. I’m not sure if it came pre-installed like that, or if I did something wrong earlier. Looks like kernel related code/tools, and I have no prior experience with that.
Anyone got any advice on how to build a driver on Xavier, or know a different way to get this Wi-Fi dongle working? Thanks!
This confirms you are not using cross-compile tools (or at least part of it is not set up correctly):
/bin/sh: 1: scripts/basic/fixdep: Exec format error
I have not yet tried compiling this kernel, I am still working on other things. However, have you tried building this natively on the Xavier itself? There should be no problem in doing so, and then you don’t even need to specify ARCH or any tools since it is native. You may want to install this since menuconfig and nconfig (and anything command line) might use this:
Building it natively on Xavier is what I was doing (sorry, should have mentioned that). Which is why I was surprised that scripts/basic/fixdep was an x86 executable. It’s quite possible this is due to me installing the wrong package at some point. That said, the path is /usr/src/linux-headers-4.9.108-tegra/ so I’m not sure where I would have gotten a tegra-specific package with x86 binaries.
Could anyone tell me if they have the same linux-headers directory, and if the fixdep executable is ARM or not?
If you are building natively, then don’t specify any ARCH. I see this kernel has the driver without needing external source (I am guessing you downloaded something from github):
Hey @capn8cg27 , could you please share your steps. I am facing exact problem, you described in original post. It’s on jetson nano, but issue is the same. But am less familiar with linux kernels, so I’d need some tips… :D
I have wifi dongle: tp-link C 1300; Archer T4U version 3; USB id 2357:0115 . I tried to use it with my Jetson Nano.
It was pain. I will not go to details there… I hope my post will help to reduce future pain of someone…