kldload issue: "Exec format error" with amd64 FreeBSD
Yong Rao
yrao at force10networks.com
Fri Aug 10 22:01:40 UTC 2007
Thanks, Fabian, for your useful information!
-Yong
-----Original Message-----
From: Fabian Wenk [mailto:fabian at wenks.ch]
Sent: Friday, August 10, 2007 2:10 PM
To: Yong Rao
Cc: freebsd-amd64 at 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
into the follwing folders will help you to find the information
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
Handbook" [2] probably is also helpful.
[1]
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/devicedri
vers.html
[2]
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.htm
l
Hope this helps.
bye
Fabian
More information about the freebsd-amd64
mailing list