How to compile driver for dm9601

http://tech.firdooze.com/2011/11/16/how-to-instal-davicom-9601-drivers-dm9601-on-linux/

http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,28/func,view/id,42543/

It works on slackware64 13.37 by adding the following lines to the original file dm9601.c

{
USB_DEVICE(0×0fe6, 0×9700),
.driver_info = (unsigned long)&dm9601_info,
}

Makefile

##================================================================
##     Davicom Semiconductor Inc.       For DM9601 V0.00
##   ——————————————————–
## Description:
##              Compile driver dm9601.c to dm9601.o
##
## Modification List:
## 09/05/2000   Fixed SMPFALGS wrong on smp & smp_mod
## 08/02/2000   Changed some description string & include file path
## 07/25/2000   Append smp_mod and changed some descriptions
## 01/25/2000   by Sten Wang
##================================================================
# Comment/uncomment the following line to disable/enable debugging
#DEBUG = y

# Add your debugging flag (or not) to CFLAGS
ifeq ($(DEBUG),y)
DEBFLAGS = -O -g # “-O” is needed to expand inlines
else
DEBFLAGS = -O2
endif

EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINCDIR)

ifneq ($(KERNELRELEASE),)
# call from kernel build system

obj-m   := dm9601.o

else

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD       := $(shell pwd)

default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINCDIR=$(PWD)/../include modules

endif

clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions

depend .depend dep:
$(CC) $(EXTRA_CFLAGS) -M *.c > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif

Advertisements

One thought on “How to compile driver for dm9601

  1. The webpage is the perfect put to showcase new-fangled harvest, novel dreams, ready to lend a hand military, and so on. Today, present are probably billions of webpage on the Internet from approximately the world. The two nearly everyone successful conduct to get citizens to access and appear by the side of one’s webpage are through ads and investigate engines. Just like introduction ads on Tube, newspapers, billboards, etc., populace can expend currency to place ads of their webpage on well-liked WebPages visited frequently by the others. The ads will live in hyperlink which when it is clicked, will robotically straight the web browser to the ads’ website and display the webpage.
    Using the explore engine to straight populace to your webpage is free other than requires a little attempt resting on your part. There are three admired investigate engines (Bing, Google, and Yahoo) that the wide-ranging civic uses to look meant for information. Search engine employs gigantic processor income to search billions of WebPages on the Internet to get the information that people query. Basically, the explore is conducted in the following sequences:
    1) A uncomplicated software routine called spiderbot is sent elsewhere to the Internet to crawl the webpage sites stored in the investigate engine’s Doman Name Database (DNdb). To accelerate the crawling, quite a lot of spiderbots may live worn on the similar time.
    2) The spiderbot afterward extracts the keywords in the webpage’s HTML source system. It updates the DNdb with the keywords linked with the webpage.
    3) The spiderbot next goes to the subsequently webpage site in the DNdb. The process could obtain more than a few days to complete every the webpage sites in the DNdb.
    4) Steps 1) to 3) are repetitive lying on a regular root to create convinced that all the WebPages in the DNdb enclose their newest keywords.
    So, in organize to have your webpage to subsist searched, you need to register it with the explore engine to subsist integrated in its DNdb. Click on the hyperlink under to find not in how.
    http://bodybuildingas.eu

    As you type your query in the investigate engine’s webpage, it extracts the keywords in the query and starts a explore in its DMdb. If supplementary than one bout is create, each and every one linked webpage information will live displayed in the orders according to the webpage’s satisfied and relevance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s