Wiki - README‎ > ‎Computers‎ > ‎OpenSolaris‎ > ‎

Source

Source Code
from http://dlc.sun.com/osol/on/downloads/current/, downloaded
Common: ON Source, xVM Source
x86: ON Specific Build Tools, ON Binary-Only Components (debug), ON Signed Crypto Bin (debug), ON BFU Archives (debug)

extracted ON Source to ~/source/
# cd /usr/src/
# cp -R ~/source/usr/src* .

Adding a Kernel Module (link)

Compiling a driver for 32b x86 using using gcc (link)
$ gcc -D_KERNEL -ffreestanding -nodefaultlibs -c mydriver.c
$ /usr/ccs/bin/ld -r -o mydriver mydriver.o
Installing a Driver (tmp for testing)
# cp mydriver.conf /usr/kernel/drv
# cp mydriver /tmp
# ln -s /tmp/driver /usr/kernel/drv/mydriver


Comments