Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,816 Members 39,058 Now Online
XDA Developers Android and Mobile Development Forum

Usb to LAN KY-QF9700 with drivers for android

Tip us?
 
ngotova7
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 25
Join Date: Mar 2010
Lightbulb Usb to LAN KY-QF9700 with drivers for android

Hi everybody,

I just bought Usb to LAN adapter and realize that CD contains drivers for Android.

I have copy drivers to my Acer 501 and run Terminal. Now the problem starts.

First I did is chmod to all files in that directory. "chmod -R 777 qf9700_android.o" and so on

when I type "dmesg" I get:

<6>[ 1654.189933] usb 1-1: new full speed USB device using tegra-ehci and address 5
<6>[ 1654.189933] usb 1-1: New USB device found, idVendor=0fe6, idProduct=9700
<6>[ 1654.189933] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
<6>[ 1654.189933] usb 1-1: Product: USB 2.0 10/100M Ethernet Adaptor

and I'm stuck here. This is "makefile" file, and I don't know what is the path to KERENEL_DIR

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
#KERNEL_DIR := /usr/src/linux-2.6.29/linux-2.6.29.i686/
KERNEL_VERSION := $(shell uname -r)
PWD := $(shell pwd)
MODULE_NAME := qf9700_android
obj-m := $(MODULE_NAME).o

all:
@echo "Building QF9700_ANDROID USB2NET chip driver..."
@(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)

clean:
-rm -f *.o *.ko .*.cmd .*.flags .mii.mod.o.d *.mod.c Module.symvers Module.markers modules.order version.h
-rm -rf .tmp_versions
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

and when I run ./Makefile I get this:

/////////////////////////////////
/////////////////////////////////
#./Makefile
shell: not found
KERNEL_DIR: not found
shell: not found
KERNEL_VERSION: not found
MODULE_NAME: not found
MODULE_NAME: not found
obj-m: not found
all:: not found
/////////////////////////////////
/////////////////////////////////

So, is there any good soul how can help?

much appreciated.


yes yes, one more thing. This is the list of all files which are in this folder.

.qf9700_android.ko.cmd
.qf9700_android.mod.o.cmd
.qf9700_android.o.cmd
Makefile
Module.markers
Module.symvers
modules.order
qf9700_android.c
qf9700_android.h
qf9700_android.ko
qf9700_android.mod.c
qf9700_android.mod.o
qf9700_android.o
README
Device: HTC Desire S-LCD PVT-4
Current ROM: Oxygen 2.2.1
Kernel: 2.6.32.13-sablethalamus@Co-60 #1
SPL: 6.93.1002 S-OFF
Radio: 32.49.00.32U_5.11.05.27
Recovery: 4EXT
HBOOT: CM7 R2
 
Vivek Yarra
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Dec 2011
Hey
can u please upload the contents of that cd
even i m trying to use this on my android tablet

thanks
 
shaun298
Old
#3  
Senior Member
Thanks Meter 44
Posts: 592
Join Date: Jun 2011
Location: Union City Indiana
Quote:
Originally Posted by ngotova7 View Post
Hi everybody,

I just bought Usb to LAN adapter and realize that CD contains drivers for Android.

I have copy drivers to my Acer 501 and run Terminal. Now the problem starts.

First I did is chmod to all files in that directory. "chmod -R 777 qf9700_android.o" and so on

when I type "dmesg" I get:

<6>[ 1654.189933] usb 1-1: new full speed USB device using tegra-ehci and address 5
<6>[ 1654.189933] usb 1-1: New USB device found, idVendor=0fe6, idProduct=9700
<6>[ 1654.189933] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
<6>[ 1654.189933] usb 1-1: Product: USB 2.0 10/100M Ethernet Adaptor

and I'm stuck here. This is "makefile" file, and I don't know what is the path to KERENEL_DIR

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
#KERNEL_DIR := /usr/src/linux-2.6.29/linux-2.6.29.i686/
KERNEL_VERSION := $(shell uname -r)
PWD := $(shell pwd)
MODULE_NAME := qf9700_android
obj-m := $(MODULE_NAME).o

all:
@echo "Building QF9700_ANDROID USB2NET chip driver..."
@(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)

clean:
-rm -f *.o *.ko .*.cmd .*.flags .mii.mod.o.d *.mod.c Module.symvers Module.markers modules.order version.h
-rm -rf .tmp_versions
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

and when I run ./Makefile I get this:

/////////////////////////////////
/////////////////////////////////
#./Makefile
shell: not found
KERNEL_DIR: not found
shell: not found
KERNEL_VERSION: not found
MODULE_NAME: not found
MODULE_NAME: not found
obj-m: not found
all:: not found
/////////////////////////////////
/////////////////////////////////

So, is there any good soul how can help?

much appreciated.


yes yes, one more thing. This is the list of all files which are in this folder.

.qf9700_android.ko.cmd
.qf9700_android.mod.o.cmd
.qf9700_android.o.cmd
Makefile
Module.markers
Module.symvers
modules.order
qf9700_android.c
qf9700_android.h
qf9700_android.ko
qf9700_android.mod.c
qf9700_android.mod.o
qf9700_android.o
README
Don't the CD have the install for the drivers..?
 
Crimson_Moon79
Old
#4  
Junior Member
Thanks Meter 2
Posts: 17
Join Date: Apr 2009
Location: Bayan Lepas

 
DONATE TO ME
Talking This will be very useful

Hey, can this be done on my SGS2 ?? I have the same model (KY-QF9700) just laying around, i already have a MicroUSB to Normal USB cable for my phone, it work for my USB mouse, was wondering will it work for the USB LAN also.
 
christcrusher
Old
#5  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Jun 2010
same here. got this adapter and noticed that there are android-drivers on the CD but i dont know how to install them and no ideas how to use it. any tutorials or hint here ? search didnt bring any solutions 4 me.

 
haag498
Old
#6  
Senior Member
Thanks Meter 20
Posts: 100
Join Date: Dec 2011
First off: Make sure you've got busybox installed. Then try 'insmod qf9700_android.ko' (without the quotes) inside the directory where qf9700_android.ko is located. If this tells you something about incompatibilities, you'll have to compile the driver yourself. For that you'll need the Android SDK and ARM crosscompiler on your computer, along with the sources for your kernel (if it's thor's, you're screwed, he's in violation of the GPL because of that). Then run the makefile with your crosscompiler (adjusting the paths to fit your setup first, of course) and insmod the resulting qf9700_android.ko on your tab...

The insane way to go is trying the same trick on your tab using a debian chroot instead of the Android SDK... You won't need a crosscompiler then, as the android ARM gcc (crosscompiler) produces almost the same code as debian's ARMEL gcc (and it's certainly compatible)...

If all goes well, you'll have a working driver either way, though painful experience suggests that you're in for a rough time... wish you luck, you'll need it. If you're completely stuck, try posting the files, so others can give it a shot (I will if I find the time).

Quote:
Hey, can this be done on my SGS2?
Theoretically, yes... if it recognizes the adapter at all it'll work just the same way I described above.
The Following User Says Thank You to haag498 For This Useful Post: [ Click to Expand ]
 
cdua2
Old
#7  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jun 2012
I did not get it,i am new in android .Can you please explain a little more step by step?
 
Butcher25
Old
#8  
Butcher25's Avatar
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jan 2009
Location: Mexico
Hi, Iīm using a GT-N8000 and it is the result of the 'insmod qf9700_android.ko'

some sugestions? I need this adapter for test my LAN wired network
thanks!
 
Butcher25
Old
#9  
Butcher25's Avatar
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jan 2009
Location: Mexico
Question Help Lan adapter USB-LAN

Hi, Iīm using a rooted and busybox installed GT-N8000 and it is the result of the 'insmod qf9700_android.ko'

some sugestions? I need this adapter for test my LAN wired network
thanks!
Attached Thumbnails
Click image for larger version

Name:	lanadapter.png
Views:	24
Size:	29.5 KB
ID:	2372985  
 
Butcher25
Old
#10  
Butcher25's Avatar
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jan 2009
Location: Mexico
I have edited the code of my Make file to
-----------------------------------------------------------------------------------------------------
KERNEL_DIR := /proc/sys/kernel/
KERNEL_VERSION := $(shell uname -r)
PWD := $(shell pwd)
MODULE_NAME := jp1081_android
obj-m := $(MODULE_NAME).o

all:
@ECHO "Building JiaPeng NET JP1081 USB2NET chip driver for android platform..."
@(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)

clean:
-rm -f *.o *.ko .*.cmd .*.flags .mii.mod.o.d *.mod.c Module.symvers Module.markers modules.order version.h
-rm -rf .tmp_versions
---------------------------------------------------------------------------------------------------------

then chmod 777 * in my makefiles directory
But now I canīt execute the ./Makefile "canīt execute: Permission denied"

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes