kldload issue: "Exec format error" with amd64 FreeBSD
Fabian Wenk
fabian at wenks.ch
Fri Aug 10 21:10:22 UTC 2007
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/devicedrivers.html
[2]
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html
Hope this helps.
bye
Fabian
More information about the freebsd-amd64
mailing list