DM9621 USB转RJ45网络模块请参考下列步骤添加驱动:
附件是DM9621的驱动移植文件,仅供参考,具体驱动移植要根据平台做相应修改即可。
(“drivers/u***/net” is for old kernel version,“drivers/net/u***” is for the new kernel version )
DM9621 Driver
l Copy DM9621 driver into the kernel source
v Copy “dm9620.c” to “drivers/u***/net”
l Modify “drivers/u***/net/Kconfig”
Find the “config USB_NET_CDCETHER”configuration item, add below configuration item
to follow it:
config USB_NET_DM9620
tristate"Davicom DM9620 based ethernet devices"
depends onUSB_USBNET
selectCRC32
select MII
help
Thisoption adds support for Davicom DM9620 based
u***-ethernet adapters.
l Modify “drivers/u***/net/Makefile”
Add “dm9620.o” into the object file list:
Obj-$(CONFIG_USB_NET_DM9620) +=dm9620.o
l enable the Multi-purpose USB NetworkingFramework and then DM9620/21, and save your new
kernel configuration.
Change to BSP directory:
SHELL> cd ~/pxa270/microtime/linux
Start by execute the command:
SHELL> make menuconfig
Track the configure structure as belowhierarchy, select “Multi-purpose USB Networking
Framework” & “Davicom DM9620 based ethernetdevices”:
Device Drivers --->
USB support --->
USB Network Adapters ---> Multi-purpose USB Networking Framework
:
<*>Davicom DM9620 based ethernet devices