Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Lightbulb Usb to LAN KY-QF9700 with drivers for android

OP ngotova7

21st December 2011, 02:17 PM   |  #1  
OP Junior Member
Thanks Meter: 1
 
25 posts
Join Date:Joined: Mar 2010
More
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
24th December 2011, 01:53 PM   |  #2  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Dec 2011
Hey
can u please upload the contents of that cd
even i m trying to use this on my android tablet

thanks
24th December 2011, 05:49 PM   |  #3  
Senior Member
Union City Indiana
Thanks Meter: 45
 
594 posts
Join Date:Joined: Jun 2011
Quote:
Originally Posted by ngotova7

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..?
31st December 2011, 07:13 AM   |  #4  
Junior Member
Flag Bayan Lepas
Thanks Meter: 2
 
17 posts
Join Date:Joined: Apr 2009
Donate to Me
More
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.
3rd February 2012, 09:28 AM   |  #5  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: 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.

4th February 2012, 01:43 PM   |  #6  
Senior Member
Thanks Meter: 20
 
100 posts
Join Date:Joined: Dec 2011
More
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: [ View ]
5th June 2012, 01:57 PM   |  #7  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jun 2012
I did not get it,i am new in android .Can you please explain a little more step by step?
5th November 2013, 04:43 PM   |  #8  
Butcher25's Avatar
Junior Member
Flag Mexico
Thanks Meter: 0
 
8 posts
Join Date:Joined: Jan 2009
More
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!
5th November 2013, 04:48 PM   |  #9  
Butcher25's Avatar
Junior Member
Flag Mexico
Thanks Meter: 0
 
8 posts
Join Date:Joined: Jan 2009
More
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:	52
Size:	29.5 KB
ID:	2372985  
5th November 2013, 05:23 PM   |  #10  
Butcher25's Avatar
Junior Member
Flag Mexico
Thanks Meter: 0
 
8 posts
Join Date:Joined: Jan 2009
More
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"

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes