kernel

  1. devtop

    Is it possible to have a minimal source tree?

    I'm currently working on a embedded project, and i'm trying to understand if it's possible to have a small /usr/src tree. This source tree only has to contain the FreeBSD bootloader, kernel, kernel-modules, because the embedded application will replace /sbin/init. So is is possible to have a...
  2. A

    Kernel driver code which honored FDT variable

    I wrote a couple of kernel drivers for GPIO devices which code uses a conditional inclusion based on an FDT flag. I use it for a device definition using either FDT overlays or a device.hints file. #ifdef FDT if ((err = rcrecv_fdt_setup_pin(sc)) == 0) rcrecv_fdt_get_params(sc); #else...
  3. 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...
  4. alfa

    Other How to change Packet Traversal order in FreeBSD IPFW and PF Firewalls in Kernel level ?

    Hi, I have to use both IPFW and PF sametime in my freebsd 12.2 gateway normally firewalls follows this order pf => ipfw as you now i am trying to do this order: input => ipfw => pf but i think i cannot change this order without touching kernel level . when i made some research i found this...
  5. ziomario

    kld_list="i915kms" does not stick on /etc/rc.conf at all.

    Hello. I've added this parameter to /etc/rc.conf : kld_list="i915kms" adding it on the rc.conf file should make the setting permanently,right ? But why,everytime I reboot the PC and I come back to FreeBSD,I should write "kldload i915kms",otherwise Xorg does not start,causing the error...
  6. O

    Updating 2 machines from the same cloned source leads to 2 differing shasums?

    We have 2 machines on the same LAN that I installed FreeBSD on using the 13.0 Release iso I then followed the quickstart example in hanbook section 24.5.1, in order to update both machines from source. https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld After doing so I...
  7. ziomario

    qemu Mounting from cd9660:/dev/iso9660/13_0_RELEASE_AARCH64_CD failed with error 19.

    Hello. I'm trying to emulate Freebsd for arm64 on my jetson nano (arm64) using qemu and kvm. This is the script that I'm using : tunctl -t tap0 ifconfig tap0 up brctl addif virbr0 tap0 /opt/qemu-5.2.0/build/aarch64-softmmu/./qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt --enable-kvm \...
  8. 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...
  9. sudheera

    Nvidia driver installation problem

    Hello friends, I have a TrueNAS 12.0 server which runs with no GUI. I plugged in Nvidia GTX 1050Ti to it in order to use in ffmpeg. After plugging in pciconf -vl gave me the following output vgapci0@pci0:2:0:0: class=0x030000 card=0x85d11043 chip=0x1c8210de rev=0xa1 hdr=0x00 vendor...
  10. the3ajm

    GPU hanging around on GM965 chipset

    I find a consistent problem with my laptop whenever I run cheese, the screen will turn black and I'll look into the logs and get this following message: Feb 8 21:53:43 Dell kernel: error: [drm:pid12:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung Feb 8 21:53:43 Dell kernel...
  11. Snurg

    Solved Please, assist me in correctly wording a PR to get a 12-year-old kernel module bug fixed!

    Since its introduction in 2009, the vesa.ko kernel module contains a bug, presumably of the category "use of uninitialized data structures". This bug prevents the system resuming correctly on systems with nvidia graphics card and using the sc console in text mode. To build+install a custom...
  12. D

    Solved Fatal Error On DRM Load

    Hello,I have been trying to get clinfo to display my GPU correctly. Currently it displays: clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No devices found in platform [Clover?] At first I tried loading the Radeon GPU DRM radeonkms.ko but when I try to load it I get a fatal trap 12 page fault...
  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. X

    failed to resolve type kernel struct thread *

    Hello, I cannot compile www/node (and some others) with this error dtrace: failed to compile script src/v8ustack.d: "/usr/lib/dtrace/psinfo.d", line 93: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name| My kernel is compiled with CTF options ...
  15. T

    DTrace unable to resize buffers

    Hi all, I've spent about a week learning and using the DTrace framework and it has worked fantastic. I have also become increasingly familiar with FreeBSD (specifically the kernel) over the last couple of months, but I realize I might still be unaware about a lot of things, so forgive any...
  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. I

    Did you ever consider using a microkernel?

    I read a lot about L4 microkernels recently and I found that seL4 is the only kernel that has a formal verification, which sounds pretty impressive. Somebody already ported OpenBSD to L4 many years ago, so it is not impossible to do it with BSD systems. As far as I understand from security and...
  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. J

    calling kernel space malloc get error

    ###Here is the errors I am getting. Below the error is the code I wrote, any help would be incredibly appreciated.!! Thanks! Can someone explained by I am getting implicit warning for malloc and Malloc_Define, I included the header files. I also would like to know how to fix the errors ...
Top