kernel build

  1. G

    How far can we reduce the FreeBSD kernel?

    How far can we reduce the FreeBSD kernel, to the point of only using busybox, the boot system to start the system, to make it very small? (Sorry for possible spelling mistakes, I'm from Brazil and I have a huge appreciation for FreeBSD)
  2. nxjoseph

    Solved Disabling crypto and aesni support in kernel cause make to fail

    Hi. I made a custom kernel by copying GENERIC to a new file called MYKERNEL and I built kernel with KERNCONF=MYKERNEL. My problem is when i commented out those two lines below, make buildkernel command fails with errors. If I don't comment out these lines, make doesn't fail. I would want to know...
  3. J

    Understanding SD card image vs. kernel compatibility

    If you want to build a custom kernel to be used with an SD card image of FreeBSD, you have to pick a kernel source git version which works with that image. If you pick a wrong version you end up with something like "module 'kernel' exists but with wrong version" message and booting stops right...
  4. C

    Solved Help with locally built stable kernel not finding zfs root

    Hi, I have installed FreeBSD on an amd64 laptop, and the only issue with it is an apparently long-standing bug in support for eMMC storage (, which I would like to investigate. But I'm stuck even getting an unmodified but locally...
  5. A

    buildroot and the linux-kernel

    Hi, I am new to buildroot and embedded linux, I have once build the root on my laptop using the buildroot and it took like 20 to 30 minutes, I want to know what kernel is used in the buildroot and how can I change it e.g. if I want to use the kernel of the freebsd in buildroot, would that be...
  6. zamon

    Solved Stuck in "Loading kernel modules" after build custom kernel

    Hello all, it's 4 days since I trying to make custom kernel and fail with stuck in 'loading kernel modules' (no message just stuck in there). Because I'm curios why this happen, so I try to build another custom kernel without any modification at all, just copy paste the GENERIC as new file...
  7. kr0m

    Solved Confused about kernel configuration options

    I have been compiling kernel but i am a little bit confused about how it chooses to include functionalities and drivers inside kernel or as external module. I have readed the handbook section and the "Absolute freebsd" compilation kernel book section, but i have some unresolved questions. From...
  8. N

    building kernel from github using Ubuntu wsl and windows 10

    I have, for the past 3 days, been trying to get wireless access to my internet with FreeBSD. Yesterday, I got a dongle that IS supported by FreebSD via the rtwn drivers. Unfortunately for me, I need to access the drivers here, rtwn_usb. If you notice this has no option for boot time loading, and...
  9. F

    Remove kernel drivers

    I am following the book "Absolute Freebsd" I suppose many of you will know it. I'm in the chapter that talks about the kernel, where you can remove drivers and options that you don't need. Well I have the following problem and I can not understand why, (I am a newbie) For example on my desktop...
  10. T

    Solved clang error during kernel compilation

    Hello, I have just upgraded my system from 12.2-Release to 13.0-Release without any problems. I had a custom kernel set up before and wanted to compile one for the upgraded install too. Obtained relevant /usr/src from git with branch releng/13.0 and configured it using a copy of GENERIC. I then...
  11. V

    Solved Unable to compile custom kernel cam_iosched error recompile with -fPIC

    Whenever I try to compile my custom kernel (I have commented out some useless things from GENERIC) I get: ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC >>> defined in cam_iosched.o >>> referenced by cam_iosched.c:1171...
  12. T

    Solved PF Packet Filter not loading rules on reboot manual required

    Hello, For the past 3 weeks I have been testing PF firewall and so far so good except for the rules not loading automatically on reboot. I load the rules using pfctl -F all -f /etc/pf.conf and all works great. I did change my default kernel to accomodate altq I actually had to redo the kernel...
  13. D

    STABLE-13 Kernel fails to build: kmalloc issue

    I'm trying to build the FreeBSD STABLE-13 kernel, but it errors out in various ways all relating to invocations of kmalloc I'm running an older version of CURRENT-13 /usr/src/sys/compat/linuxkpi/common/include/linux/string.h:122:11: error: implicit declaration of 'kmalloc' errors in...
  14. D

    Solved Custom Kernel Build Fails

    I got the 12.1 source code from the base/releng directory of the SVN repository which would give me the latest 12.1-RELEASE kernel (p10). I used the GENERIC configuration to create the attached configuration file and then ran make -j4 buildkernel KERNCONF=SMALLER And the build goes well until...
  15. F

    Solved Kernel build error

    Any help would be appreciated. Ive never seen this error and dont know what to do? MYKERNEL' ERROR: version of config(8) does not match kernel! config version = 600016, version required = 600018 Make sure that /usr/src/usr.sbin/config is in sync with your /usr/src/sys and install a new config...
  16. Alain De Vos

    Building kernel and world in a poudriere jail

    Can I build a kernel and world in a poudriere jail? Is there a kernel and world port ? Or how to do ?
  17. Unee0x

    Kernel Development and Testing

    I'm just starting kernel development ( custom kernels, drivers, patching and etc... ) and i'd like to find a good tutorial of how to setup and environment for FreeBSD Kernel Development. For instance, executing custom code on a live kernel as well as debugging. Will I actually need two machines...
  18. illumulli

    Where do I sign up?

    I have been using FreeBSD and tinkering with it for about 4 years now and I want to take on a bigger role in the community and really work on the FreeBSD operating system at a lower level in my free time to expand my skill sets. I know a little Assembly and am pretty versed in C. Any tips on...
  19. rwatt

    Unable to build generic kernel. All methods generate errors.

    Hello, Still learning the ins and outs of FreeBSD, so please keep that in mind. :-) I'm happy to read whatever manual that might help with this, but my searches have not turned up anything that is helpful. I have a server at home running FreeBSD 12.1-RELEASE-p3 GENERIC amd64. It is mainly just...
  20. F

    Trying to configure JACK, but sound isn't working...again

    Hi, so I reinstalled FreeBSD a few days ago, and everything seemed to be working except for sound. I'm going through a slew of problems to configure it. My audio interface is a Focusrite Scarlett 18i8. When I first installed it, I got a desktop running with the dwm wm, Firefox, and the JACK...