[Q] Kernel module compiled but RD9700 USB-Ethernet adapter not recognized - General Questions and Answers

Hi,
I bought an (awful) RD9700 USB-Ethernet adapter for my MK802IV stick (stock Rikomagic firmware).
I was able to compile qf9700 module, 'insmod' it without errors but, inserting USB adapter in the OTG port, it is not recognized at all, always same error from usb_otg stack.
Any help?
I'm not even able to post 'lsusb' output because there is no such command in default busybox

Related

Help with 3G USB Dongle

Hello.
I am triying to use a Huawei E173 HSPA Dongle in an APAD with Android 2.2 and kernel 2.6.32. When I insert the device it is not attached to the ttyUSB serial ports, but I can see in Terminal Emulator with the command lsusb. In Ubuntu I do sudo modprobe usbserial vendor=0xXXXX product= 0xXXXX and then the Dongle is attached to the serial ports and I can go to internet.
I was trying to do the same in android with Terminal Emulator but the problem is the module usbserial is not found. I don't have it.
I need advice in installing usbserial module in my android system. ¿do you think if I find the module file usbserial.ko compiled for 2.6.32 kernel and put it in my module folder will it work? ¿And where can I found it? ¿Anybody have it in his device?

[Q] Can I develop/put my own drivers onto Android. (To get USB peripherials working)

So I have many many things I want to do with (Specifically) USB devices on my TF101. It's my baby and I use it for almost everything now, but there's still a few problems I haven't been able to shake or get other answers too.
I have a USB-MIDI cable that doesn't work (isn't detected, I think driver issue/isn't supported) Could I make a driver to do this so I can connect my keyboard to my tf and record some jams?
More Important
I have a USB - 3.5 mm converter/cable, usb in, headphone port out. It's by logitech and works fine on computer to plug any 3.5mm headphones into, not at all on android though. My headphone port is broken so this would be an amazing thing to get working properly.
Any help or guidance would be greatly appreciated, even workarounds to get these things working.
Well actually when you are rooted, you can anything!
If nothing helps, you can write your own kernel module since you can compile yourself a custom kernel.
Therefore: yes, we can
conizius said:
Well actually when you are rooted, you can anything!
Click to expand...
Click to collapse
Alright then step 1 is complete I suppose! xD I am rooted and running the tastymehICS kernel.
Gratz good luck for everything else - access to the whole system is open now!
In my opinion guvours kernel is a bit better (got less - not to say no - SoD).
Sent from my HTC Vision using XDA
I've tried both and guevor's seemed a bit more unstable for long periods of usage --just my preference, but that's beside the point xD"
So does anyone know how I could go about creating + adding drivers to the system?
You need download kernel source from asus site and prepare build environment according google andriod development site. Then you can build your kernel a start to add new features and write new kernel modules
Sent from my HTC Desire S using xda premium
I have windows drivers, all I'd need to do is port them, not necessarily write a whole new kernel X3
you don't need write whole kernel, source code for current stock kernel are on asus web site. And you don't have sources for guevor or other kernel. Is not possible to port windows driver to andriod without source code.
Try find if linux driver for you device exist. If yes, it is easy to add it to asus kerenel for transformer. And later is possible to combine your device driver (module) with some other custom kernel.
(I have working USB dvb-t stick on my transformer)
Thanks, I misread what I thought you read when I posted (if that makes any sense x.x")
Ok, it's plug and play on my linux machine too, where could I find the driver to import? So how would I make a module + combine with the guevor/tastymehics kernel?
ok, if your device is plug and play in linux, install any terminal emulation application into transformer (if you not have now) and use "lsusb" then plug your device into usb and use lsusb command again.
You should see something like BUS 001 Device 001: ID 1a4b:0003.
Then use google and try find what module is needed for device 1a4b:0003
then you need environment for building kernel and use some comamnd to build yout kernel module.
1) make menuconfig - choice module needed for your device
2) make ARCH=arm CROSS_COMPILE=mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- modules
this comple kernel modules for your device. Or you can ask for help from one of developer of custom kernel what you use to comile module what you need from his suource. Kernel and kernel modules musbe compiled from same version.
then copy modules to transformer and use insmod command to load it into kernel. Then you can plug in your device and it should work. (use dmesg to check if device driver is loaded)
Please post "dmesg" output after you plug your device in.(e.g last 10 lines) and output from lsusb.
Take a look in the thread http://forum.xda-developers.com/showthread.php?t=1513490
There is a lot of possibilities to play with usb drivers.
crossik1 said:
Please post "dmesg" output after you plug your device in.(e.g last 10 lines) and output from lsusb.
Click to expand...
Click to collapse
Dmesg (relevant lines):
usb 1-1.2: new full speed USB device number 28 using tegra-ehci
usb 1-1.2: new usb device found, idvendor=046d, idproduct=0a17
usb 1-1.2: new usb device strings: mfr=1, product=2, Serialnumber=0
usb 1-1.2: Product: Logitech g330 Headset
usb 1-1.2: Manufacturer: Logitech
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 <-- These were here already
Bus 001 Device 026: ID 05e3: 0610<-- These were here already
Bus 001 Device 028: ID 046d:0a17 <--- this is the new entry after plugging in
These are the log results asked for. I'm looking into the module now, thanks
At this point I have 4 options to fix my headphone port (that I know of)
1. Open it and try to sauter the port back together (best but, dangerous :/)
2. Get this driver stuff to work so I can use my adapter (great)
3. Bluetooth headphones (meh sound quality from my experience, but good if they work, also expensive)
4. HDMI-Out to Rca to 3.5mm to headphones. (UGH CABLES, but all I would need is the hdmi-rca cable.)

USB-Networkadapter driver

Hello everybody,
I want to connect my iconia A700 with wired network. So i plugged in my usb network adapter.
And this is what dmesg has showed
<6>[46753.465362] tegra-ehci tegra-ehci.0: new USB bus registered, assigned bus number 1
<6>[46753.491903] tegra-ehci tegra-ehci.0: irq 52, io mem 0x7d000000
<6>[46753.514954] tegra-ehci tegra-ehci.0: USB 2.0 started, EHCI 1.00
<6>[46753.516316] utmi_phy_irq: usb device plugged-in
<6>[46753.517581] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[46753.518916] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[46753.519656] usb usb1: Product: Tegra EHCI Host Controller
<6>[46753.521311] usb usb1: Manufacturer: Linux 3.1.10+ ehci_hcd
<6>[46753.522243] usb usb1: SerialNumber: tegra-ehci.0
<6>[46753.532426] hub 1-0:1.0: USB hub found
<6>[46753.533294] hub 1-0:1.0: 1 port detected
<6>[46753.855044] usb 1-1: new full speed USB device number 2 using tegra-ehci
<6>[46753.940886] usb 1-1: New USB device found, idVendor=0bda, idProduct=8150
<6>[46753.942477] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[46753.943250] usb 1-1: Product: USB 10/100 LAN
<6>[46753.944526] usb 1-1: Manufacturer: REALTEK
<6>[46753.945240] usb 1-1: SerialNumber: 0219
Click to expand...
Click to collapse
is there a possible solution for my problem? Or has anyone a working driver?
1) This should go in general.
2) You can try loading the attached module using insmod or modprobe.
pawitp said:
1) This should go in general.
2) You can try loading the attached module using insmod or modprobe.
Click to expand...
Click to collapse
Is there also a driver for the Delock 61147 (MOdule need is mcs7830.ko)?
elhennig said:
Is there also a driver for the Delock 61147 (MOdule need is mcs7830.ko)?
Click to expand...
Click to collapse
All compiled from Acer's released kernel source. (Note: don't use these on CyanogenMod, the drivers are already built into the kernel)
asix.ko
cdc_eem.ko
cx82310_eth.ko
dm9601.ko
gl620a.ko
hso.ko
int51x1.ko
ipheth.ko
kalmia.ko
lg-vl600.ko
mcs7830.ko
net1080.ko
plusb.ko
sierra_net.ko
smsc75xx.ko
zaurus.ko
Pawitp, while you're at it, maybe you can compile md4.ko? In your CM10 rom, no md4.ko - cifs manager doesn't work without it on stock rom...
zeer said:
Pawitp, while you're at it, maybe you can compile md4.ko? In your CM10 rom, no md4.ko - cifs manager doesn't work without it on stock rom...
Click to expand...
Click to collapse
MD4 has been built into the CM kernel for maximum compatibility. Anyway, here's the md4.ko if you want to use stock.
Hi pawit, thanks a lot for the module pack.
One question comes up as the module loads perfectly: How can I route traffic like for the standard mail client through eth0 device? The mail client and the play store app seem to need a wlan device
I don't know. The standard android is supposed to recognize eth0 as a valid internet connection and route automatically. CM does, I'm not sure how Acer configured it.
Sent from my GT-I9000 using xda app-developers app
how does one implement this into stock?
Please, could someone help me!
Iam on Icianian 2.4 and try to get the dm9601.ko work!
But every time, i load the kernel module, the tap froze!
any idea?
Could the kernel module wrong?
PLEASE help me
djsven said:
Please, could someone help me!
Iam on Icianian 2.4 and try to get the dm9601.ko work!
But every time, i load the kernel module, the tap froze!
any idea?
Could the kernel module wrong?
PLEASE help me
Click to expand...
Click to collapse
I'm working on this for iconiaN
It's going to require more than just kernel modules to work
Hi,
not realy!
I can tell you, it work!
But you have to plugin, get on terminal and configer the eth0.
netcfg eth0 dhcp
setprop net.dns1 8.8.8.8
and it work
I've got it working now without having to use terminal.
Tested using a Galaxy S Mini USB Tether.
It uses usb0 instead of eth0 but it worked without issues.
I have built the kernel with the network modules built-in and also patched framework files.
Bamm your are the best.This would realy nice.
Please could you build the right mount points inside the kernel?
Think about sdcard.This is /Removeable/xxx
I guess its /mnt/external_usb
Can we point the uab device to eth0?
So Android Firewall would work.
Gesendet von meinem GT-I9100 mit Tapatalk 2
pawitp said:
All compiled from Acer's released kernel source. (Note: don't use these on CyanogenMod, the drivers are already built into the kernel)
asix.ko
cdc_eem.ko
cx82310_eth.ko
dm9601.ko
gl620a.ko
hso.ko
int51x1.ko
ipheth.ko
kalmia.ko
lg-vl600.ko
mcs7830.ko
net1080.ko
plusb.ko
sierra_net.ko
smsc75xx.ko
zaurus.ko
Click to expand...
Click to collapse
Hi, i have A700 with original Acer software. I made it to the "root" description: http://forum.xda-developers.com/showthread.php?t=1953917 , and i ave unlocked bootloader (http://forum.xda-developers.com/showthread.php?t=1710755).
I want to use the tablet Asix AX88772 with, but when they want linked asix.ko was inserted, I get this message:
[email protected]:/system/lib/modules # modprobe asix.ko
modprobe: chdir(/lib/modules): No such file or directory
We could be the problem? Can you help me?
The correct sw version (Settings menu/ About tablet):
Android version: 4.1.1
Kernel version: 3.1.10+
Image version: Acer_AV051_A700_RV16RC02_WW_GEN1
Build number: Acer_AV051_A700_1.050.00_WW_GEN1
Image P/N: FM.S1MA0.0.40

[Q] need usb to ethernet drivers for Micromax A117

i have a usb to Ethernet adapter 10/100 which cabe with its CD. I hooked it up with my device but no luck. :crying:
could not see eth0 in terminal using netcfg .
after reading some posts about usb to Ethernet on xda , I rooted the phone, ran the makefile provided in the CD. still no luck.
So finally after reading for 2 days, I have options to
Install Ethernet drivers (don't know how)
Install kernel with Ethernet drivers (will change my phone config completely, maybe need to recalibrate later)
Flash a new ROM with Ethernet drivers (will need to reinstall everything)
Don't know the best option. Kinda stuck.
I don't want to loose the current config of cpu speed, etc. provided in the current Android
FYI: The device is detected on the device using usb host controller. Usb to Ethernet Model "Terabyte USB To Lan Card Ethernet Adapter Speed 10/100" found on Amazon. Manufacturer CH9100 Make CH9200. drivers provided has a "ch9x00.c" dunno what to do with it. (I mean after cross compiling).
attached the .c file for refrence.

[Resolved] OnePlus One + NetHunter - no power on otg AND LKM support issue

Hello everybody! Noobing the shoozle out of my:
OnePlus One, model A0001 / 64GB currently with: Android 6.0.1 / Cyanogen OS version: 13.1.2-ZNH2KAS3P0-bacon / CyanogenMod API level: Elderberry(5) (just FYI, not sure if helpful)
Kernel version: 3.4.112-cyanogenmod-g8fbc62e
Unlocked, rooted with BaconRootToolkit/ TWRP ROM, downloaded latest ver -3.0.2-0 via official App, from Play Store
Kali images from: build.nethunter.com/nightly, as offensive-security's kali-nethunter wiki on github says (no external links for noobs, sorry )
apt-get updated, upgraded and dist-upgraded via KALI terminal
The first issue is with the OTG, not powering the USB WiFi adapter properly... with the regular USB-OTG adapter, lsusb WORKS, and returns proper info about 3 different adapters (Alfa Awus036h, TP-link WN725N and WN722N), BUT does not power them. No indicator lights get lit whatsoever 0mA status from lsusb -v
I bought a powered USB-OTG hub, that appears to not charge my phone, when plugged in two different chargers AND a powerbank. Still lsusb -v returns: 100mA current for the hub.
I tried plugging an A4Tech receiver for kbd+mouse, both work fine, with the tplink WN725N plugged in the second USB socket. lsusb shows the hub, the receiver and the WN725N data... Both regular and hub OTG's work fine with mouse+kbd, read and write data to USB Memsticks. Regular OTG transfers files to a computer and charges the phone.
I noticed that when in Android, the WiFi is turned off, ifconfig omits wlan0 and p2p0, that is the phone's main WiFi adapter.
So I thought that manually loading (insmod) the rtl drivers would start the OTG wlan.... Thus coming to the second issue:
The kernel is without LKM support - no modprobe, lsmod returns:
Code:
libkmod: ERROR: ../libkmod/libkmod-module.c: 1655 kmod_module_new_from_loaded: could not open /proc/modules: no such file or directory
Error: could not get list of modules: No such file or directory
When "apt-get install linux-headers-$(uname -r)" is typed, returns:
Code:
E: Unable to locate package 'linux-headers-3.4.112-cyanogenmod-g8fbc62e'
E: Couldn't find any package by glob 'linux-headers-3.4.112-cyanogenmod-g8fbc62e'
E: Couldn't find any package by regex 'linux-headers-3.4.112-cyanogenmod-g8fbc62e'
"apt-cache search linux-headers" returns some options for version linux-headers-4.9.0-kali1-all-armhf (the only armHF, others are armmp)
I cannot find a way to recompile my kernel and enable Loadable Kernel Modules support. Would you say this would be necessary for the external WiFi to work?
Do you know if there is any way out of this mess, as I am really tired fighting a "Our preferred device"-release issues??? Overall I'd love it if I could run external antenna
I am kind of new around.... In forums - in general, so I kindly ask for understanding. If any screenshots/pics/additional info is required - I'll make sure I update this thread. Not sure if I could've posted this thread in XDA assist, so I did it here.
EDIT: everything went fine when I tried third, different USB - WiFi adapter. Works properly. Still no LKMs.

Categories

Resources