Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2007 15:01:03 -0700
From:      "Yong Rao" <yrao@force10networks.com>
To:        "Fabian Wenk" <fabian@wenks.ch>
Cc:        freebsd-amd64@freebsd.org
Subject:   RE: kldload issue: "Exec format error" with amd64 FreeBSD
Message-ID:  <9E2742C54E161041A53F36F9A8DC31BE32498C@EXCH-CLUSTER-04.force10networks.com>
In-Reply-To: <46BCD42B.9070403@wenks.ch>
References:  <9E2742C54E161041A53F36F9A8DC31BE32494A@EXCH-CLUSTER-04.force10networks.com> <46BCD42B.9070403@wenks.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, Fabian, for your useful information!=20
-Yong
-----Original Message-----
From: Fabian Wenk [mailto:fabian@wenks.ch]=20
Sent: Friday, August 10, 2007 2:10 PM
To: Yong Rao
Cc: freebsd-amd64@freebsd.org
Subject: Re: kldload issue: "Exec format error" with amd64 FreeBSD

Hello Yong

Yong Rao wrote:
> Is there example makefile(device driver code set) we can refer to?

I don't know much about programming, but probably having a look=20
into the follwing folders will help you to find the information=20
needed:

/usr/src/sys/
	here is a Makefile for the whole kernel, I guess

/usr/src/sys/dev/
	device drivers which could be in the kernel

/usr/src/sys/dev/em/
	eg. here are the files of the Intel NIC driver

/usr/src/sys/modules/em/Makefile
	the Makefile for the Intel NIC kernel modul?


The chapter "II. Device Drivers" [1] in the "FreeBSD Architecture=20
Handbook" [2] probably is also helpful.

   [1]=20
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/devicedri
vers.html
   [2]=20
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.htm
l


Hope this helps.


bye
Fabian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9E2742C54E161041A53F36F9A8DC31BE32498C>