You don’t need to depend on GitHub.
For a quick and dirty build, install Asciidoctor however you like and build:
pkg install asciidoc xdg-utils
make doc
# download the kernel sudo svn co --trust-server-cert --non-interactive https://svn0.us-east.freebsd.org/base/stable/11/ /usr/src # first take backup cp -Rp /boot/kernel/ /boot/kernel.backup # determine ur arch uname -a # in my case amd64 cd /usr/src/sys/amd64/conf/ # copy kenel .config cp GENERIC NEWKERNEL # compile! cd /usr/src make buildkernel KERNCONF=NEWKERNEL # install! make installkernel KERNCONF=NEWKERNEL
Google: freebsd kernel module hello world
kldstat make make load make unload make clean
How to add your own custom syscall to FreeBSD then use it from userland
$cd syscall $make $kldload module/syscall.ko $./test/call $dmesg $kldunload module/syscall.ko
Another simple char dev, because "cdev LKM" not working now, and this works smoothly. [Reference]
-
The FreeBSD Developer’s Handbook, specifically Chapter 10
src/tools/regression
`src/tools/
Google: Micro Benchmark Checklist for FreeBSD
-
1. This chapter contains all the steps in detail. Please don’t abbreviate it.
-
2. Don’t make that in gnome, use ttys, Please -- my laptop always sleep with gnome (I don’t mean 'that', sorry) --
-
3. Ch 9. Building and Installing a FreeBSD Kernel - developers-handbook is complementary.
-
All Kernel modules exist in
/boot/kernel
-
$dmesg
content at boot-time ===/var/run/dmesg.boot
-
Another tool for finding hardware is
pciconf(8)
, which provides more verbose output.pciconf -lv
-
FreeBSD source code
/usr/src/sys
, If this place not exist, Google:get freebsd source code /usr/src/sys
, that’s easy. sounds like git clone, but using svn.. I don’t try to make this page a refernce .. so google it… -
/var/log/messages
records the kernel messages from every successful boot. While, dmesg(8) will print the kernel messages from the current boot. -
/boot/kernel/kernel.old
location of old kernel - last successful & bootable kernel :) -
/etc
configuration files