kernel

  1. malavon

    Kernel Driver Ordering (trying to write early PMU/PMIC/regulator driver)

    So, as might have been obvious from an answer in another post I'm trying to help a little with restoring and improving the BeagleBone Black & possiblye other TI processors support. One of the things that I've been wanting to have ever since using FreeBSD (on the BBB) is dynamic frequency &...
  2. JamesElstone

    Solved printf statements in kernel, silly question...

    Hi All, I noticed in /usr/src/sys/nfs/bootp_subr.c there are a large number of printf statements. For example printf("Interface list:\n"); I have never really looked at the kernel code much before, and a thought occured to help me work out what is going wrong with my other current issue. Silly...
  3. JamesElstone

    Solved sysctl 'kern.bootp_cookie' is not being set by DHCP Option 134 (pxe vendor specific) related to existing src/sys/nfs/bootp_subr.c - Send help please!

    I have a DHCP Server which is sending DHCP option 134 (a simple string of "this that something else"), and an altered MTU (1300) using dnsmasq: dhcp-option-force=FREEBSD,26,1300 dhcp-option-force=FREEBSD,134,this that something else dnsmasq-dhcp: 1 sent size: 2 option: 26 mtu 1300...
  4. U

    Update to 14.1-RELEASE-p6 Incomplete

    This is happening across all machines. After the usual freebsd-update fetch, freebsd-update install cycle, world/base looks like it updated correctly, but the kernel did not. freebsd-version shows: 14.1-RELEASE-p6 freebsd-version -k shows: 14.1-RELEASE-p5 I noticed this this morning when the...
  5. A

    Unable to trace vtnet_tick() in remote gdb setup

    Hello all! I have set up the following environment: vmrun.sh -d disk.img -t tap0 -G 1234 thevm Then I have moved to where I have the kernel compiled and ran gdb from there. In the VM, I have also run dtrace -n 'fbt:kernel:vtnet_tick:entry' And I can see that it fires regularly. The...
  6. C

    Recompile initramfs equivalent?

    So I have this weird security issue where on my Linux install I get suspicious behavior upon reboot sometimes. I reboot, try to mount some stuff, and out of the blue it tells me something has changed in the /etc/fstab file, it was modified or something. Very strange. Never happened before...
  7. rm1984

    Kernel crashes after upgrading from 14.0 to 14.1

    Hi all, I'm currently running FreeBSD 14.0 on a VPS (by Contabo): # uname -a FreeBSD host 14.0-RELEASE-p11 FreeBSD 14.0-RELEASE-p11 #0: Wed Sep 18 23:01:59 UTC 2024 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 I have been using FreeBSD for years and I...
  8. A

    How to debug kernel in bhyve?

    Hello, I am doing kernel development and would like to debug my version of the kernel. Can I do that with the help of debugger and bhyve, to run in a containerized environment? Thanks.
  9. P

    How to fix bhyve + kgdb online debugging setup for kernel development

    I'm trying to reach a point where I can do online debugging with kgdb of the FreeBSD kernel and it's modules in order to learn more about the system and take on a small projects in the system development. I have searched through the whole internet for the complete guide on how to do it however...
  10. I

    Solved Cannot mount FAT32 msdosfs USB disk

    Hi, I am new to FreeBSD and use it at work. We use a stripped version of FreeBSD11.4-RELEASE (the person that stripped it is not around) and so, do not hesitate to tell me what "might" be missing or what "might" be different in our stripped version. I need to mount a FAT32 usb stick. The...
  11. kr0m

    Solved Custom kernel compilation FreeBSD-14.0 no releng found

    I have updated my system from 13.2-RELEASE -> 14.0-RELEASE, I use a custom kernel configuration in order to have network interface polling enabled, yet when I have tried to recompile my custom kernel with 14.0 version I noticed that releng/14.0 is not present in Git repository. Now I have my...
  12. M

    Changing the runtime gid of the rtld linker

    I am looking for a way to change the gid of the dynamic linker while it is reading shared objects from the filesystem. For context, my goal is to create an environment where an unprivileged user can not read/analyze ELF files but can still execute them. This can be easily implemented for ELF...
  13. F

    jails Jail with newer version (13.2) than host system (13.1)?

    I am running a system with TrueNAS-13.0-U6.1, which currently is the most recent release. This is based on FreeBSD 13.1 (which is EOL): # uname -a FreeBSD storage.example.com 13.1-RELEASE-p9 FreeBSD 13.1-RELEASE-p9 n245429-296d095698e TRUENAS amd64 This is a bit of a shame (it tends to happen...
  14. B

    Config for the wireguard service kernel module based

    Hi all! Is it possible to load the wg-interface configuration through a setting in rc.conf without using the devd hook? On FreeBSD v.14 my wireguard service run under that config: # cat /boot/loader.conf | grep wg if_wg_load="YES" # # cat /etc/rc.conf | grep wg cloned_interfaces="wg"...
  15. Farhan Khan

    Using ddb to print softc variables

    Hi all, Somewhere in my code the member of a struct is changed but I can't seem to find where. I want to use ddb's watch feature but can't figure out how to pinpoint a memory address. I cam find the softc address via 'show all devices', but i cannot figure out how to print the equivalent of...
  16. WhatTheHell

    Solved "Mounting from ufs:/dev/da0s1a failed with error 19. " after using the new kernel

    I've compile the kernel with this conf in vmware workstation, [root@FreeBSD14 ~]# cat SEC cpu HAMMER device acpi device aesni # AES-NI OpenCrypto module device bpf # Berkeley packet filter device ch...
  17. 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...
  18. C

    Setting up a bhyve vm for kernel development and debugging

    I recently set up a bhyve vm on my workstation for kernel development and figured others might be able to make use of my notes as well, because it's really quite easy. VM setup Download a FreeBSD disk image, i.e. 13.2-RELEASE if you're running 13.2. This version should match whatever kernel...
  19. I

    There appears to be a "hidden" kernel panic somewhere during the shutdown/reboot process??

    I've done some updates to my packages and recently upgraded from 13.2-p3 to p4 and noticed that when I reboot or turn on from a cold boot, savecore saves a core dump for some reason. The system appears perfectly normal the rest of the time; it has no apparent panic during the...
  20. 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 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211705#c3), which I would like to investigate. But I'm stuck even getting an unmodified but locally...
Back
Top