• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Usb to LAN KY-QF9700 with drivers for android

Search This thread

ngotova7

Member
Mar 7, 2010
25
1
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
 

shaun298

Senior Member
Jun 14, 2011
595
44
Union City Indiana
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..?
 
Apr 25, 2009
17
2
Bayan Lepas
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

New member
Jun 18, 2010
4
0
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.

:cool:
 

haag498

Senior Member
Dec 31, 2011
100
20
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).

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.
 
  • Like
Reactions: dabl8

Butcher25

Member
Jan 15, 2009
8
0
Mexico
Hi, I´m using a GT-N8000 and it is the result of the 'insmod qf9700_android.ko'
lanadapter.png

some sugestions? I need this adapter for test my LAN wired network
thanks!
 

Butcher25

Member
Jan 15, 2009
8
0
Mexico
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'
lanadapter.png

some sugestions? I need this adapter for test my LAN wired network
thanks!
 

Attachments

  • lanadapter.png
    lanadapter.png
    29.5 KB · Views: 800

Butcher25

Member
Jan 15, 2009
8
0
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"
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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).

    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.