[Q] Installing USB Ethernet Adapter drivers - Galaxy S 4 Accessories

I recently got an ASIX AX88179 USB 3.0 to Gigabit Ethernet adapter for my Android device running CyanogenMod based on Android 5.1.1 and the 3.4.* kernel.
The drivers for the device are provided as source code and are available:
http://www.asix.com.tw/FrootAttach/driver/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE.tar.gz
ASIX represents that the drivers are "For Android 1.x/2.x/3.x/4.x/5.x, Linux kernel 2.6.25 and later".
I attempted to compile the drivers using the CyanogenMod-included Terminal emulator App, but could not get anything to compile. It seemed that the "make" command or tool is not recognized.
I found a note in the drivers source readme file:
Code:
Prepare to build the driver, you need the Linux kernel sources installed on the
build machine, and make sure that the version of the running kernel must match
the installed kernel sources.
I found kernel sources on https://www.kernel.org/ . How do I make use of the kernel sources?
The version 3.4.* kernel is frequently updated. Should I be recompiling the driver with new, updated kernel sources every time a new kernel version is installed?
Must the drivers be compiled on the system they are to be used on?
Is there a better way to handle driver preparations or acquisitions?

Related

ubuntu custom kernel - installed prime1.5

Hi
I've installed the prime 1.5 rom onto my transformer. However I need serial devices support for my electronics stuff. How would I go about compiling the kernel module using the chrooted ubuntu.

[CM 10.2] linux headers for building a kernel module?

I'm trying to compile a kernel module for Cyanogenmod 10.2.1 on a Nexus 7 tablet (tilapia). I'm using for this task an ARM virtual machine with Debian installed on it.
To compile the module I need the CM linux headers, but I can't find where to get them. Can you please link me the source repo?
PS: I want to compile a driver for a usb to lan adapter:
http://www.asix.com.tw/download.php?sub=driverdetail&PItemID=105
http://www.lindy-usa.com/usb-20-fast-ethernet-adapter-usb-micro-b-42948.html
Lucas Malor said:
I'm trying to compile a kernel module for Cyanogenmod 10.2.1 on a Nexus 7 tablet (tilapia). I'm using for this task an ARM virtual machine with Debian installed on it.
To compile the module I need the CM linux headers, but I can't find where to get them. Can you please link me the source repo?
PS: I want to compile a driver for a usb to lan adapter:
http://www.asix.com.tw/download.php?sub=driverdetail&PItemID=105
http://www.lindy-usa.com/usb-20-fast-ethernet-adapter-usb-micro-b-42948.html
Click to expand...
Click to collapse
You don't need "cm linux" headers. There is no such thing. What you need is to compile from source the kernel you are using....which is some 3.1.10 kernel. Then you need to have the "3.1.10 kernel headers" installed. Finally you cross compile the USB to Lan driver against the sources of the kernel you compiled. If the compiled kernel is there....then the cross compiler must be properly linked to the source...and it will find the header files it needs and warn you of missing dependencies. It could be that you'll need to enable some things in the kernel build in order to have all the needed support for your driver.

List of Touchpanel driver name needed

I have android device with mediatek Soc, I don't have kernel source code it so I have compiled kernel for other MTK6575 device and Managed to get run on my device,I have done following modification to run kernel from other device to my device
1) Fixed partition table issue
2)Fixed LCM driver
3)Fixed keypad driver
Now I need to enable touchpanel driver ,I have also compiled set of touchpanel driver from kernel source but none of worked for me.
So can you give me list of touchpanel drivers used in MTK6575 soc?
I don't have device specification so I need to do it by trial and run method, I have check touchpanel driver name in original running kernel but
didn't find any usefull information
Please help.

Looking for kernel module cdc_acm (ttyacm/ttyacm0)

Hi,
I'm looking for a way to get support for an USB CDC ACM device on my OnePlus 6 with OxygenOS 9.0.9.
If I plug in the USB device it is correctly detected but the driver is missing. (On my linux box, the kernel module cdc_acm is loaded and I can connect via the device /dev/ttyACM0).
I did not find an offered kernel which supports my goal. So I suspect such a kernel does not exist. Perhaps some kernel provider could add this support?
Or would it be possible to compile the module on my own? Any help or link welcome!
Thank you very much.

Matching a kernel's config for compatible kernel modules

I have:
Downloaded the exact kernel version running on my device from an AOSP mirror (4.9.170) (https://github.com/aosp-mirror/kernel_common.git)
Downloaded the exact compiler used to compile the kernel from my device:
Ran `cat /proc/version`, which returns "Linaro GCC 5.3-2016.05", which I downloaded from https://releases.linaro.org/components/toolchain/binaries/5.3-2016.05/aarch64-linux-gnu/
Took the kernel configuration from `/proc/config.gz`, copied it to the kernel source directory `kernel_common` as `.config`
Ran `make ARCH=arm64 CROSS_COMPILE=xxx oldconfig`
What I'm seeing:
First, the downloaded kernel source for 4.9.170 seems to think that my `config` is incomplete, since it will prompt me to answer ~15 extra configuration questions.
Second, this old Linaro compiled doesn't appear to support `-fstack-protector-strong` despite it being explicitly enabled in the `/proc/config.gz` file. So I end up disabling it with `./scripts/config --disable CONFIG_CC_STACKPROTECTOR_STRONG`
Finally, after successfully compiling, I take `net/ipv4/tcp_westwood.ko`, just as a test module, and try to load it on my Android device, and it fails:
`insmod: failed to load tcp_westwood_5.ko: Exec format error`
And in dmesg output: `tcp_westwood: disagrees about version of symbol module_layout`
My questions:
Can I assume that the `/proc/config.gz` file is not the actual file used to compile the running kernel, considering it doesn't completely configure the 4.9.170 kernel?
Am I on the right path to getting a kernel module that my kernel will load?
Background information:
I'm hoping this isn't very relevant, but just to head off some questions
This is a T95 Android TV device running what appears to be, to this newbie's eyes, a very Frankenstein'd Android 10 install (See https://www.cnx-software.com/2020/0...-comes-with-mali-g31-gpu-supports-android-10/)
I can't find any official - or unofficial - source for this device, which is why I'm going to all the trouble above.
I really appreciate any help, thank you!

Categories

Resources