Or, having an out-of-tree (i.e. not in /usr/src/sys) custom FreeBSD kernel module, how one can specify a kernel configuration, like GENERIC, the module shall be built against?
Here is a very small kernel module that can be compiled, but cannot be loaded on a stock FreeBSD 12.
I have several questions about hardware driver module loading.
When I run pciconf -l -v, I see output for the various devices in my system, like so:
hostb0@pci0:0:0:0: class=0x060000 card=0x3084103c chip=0x35808086 rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
I'm trying to debug an issue with eMMC controller and would like to exclude the module (sdhci_acpi) from kernel and be able to load it myself when I make changes to the driver source. However, even after I commented these lines from the conf file, the module still shows up as a part of the...
I am doing some light experimentation with the kernel and am writing a module. I am trying to have a /dev file functions as a TCP listening socket. So if you do cat /dev/tcp/5555, it would be the equivalent of nc -l 5555.
My general strategy is to create a socket by jumping into the...
I'm not sure if this is the right forum for this sort of question. If not, forgive me.
I made a change to this file: /usr/src/sys/modules/usb/usb/ng_lookup.c and have ran a make which produces many object files. The one I am concerned with is /usr/src/sys/modules/usb/usb/usb_lookup.o. Now I...
Can someone explains this casting: #define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var))
Ref: cdefs.h, L651
I have exauhsted all my resources trying to figure out an explanation for this type casting. I appreciate your help.
OK, I have a client (booker) and server (fourroses).
I want to run a script on booker that uses rsync to copy files to fourroses and keep all user and group ownership attributes the same.
I have had success maintaining file attributes running rsync in regular instead of daemon mode. But I...
I have a problem with booting my Freebsd 11.0 box with zfs as zroot. The idea behind installation of new drivers for em0 was that I have some problems with it watchdog that is killing my dhcpclient and losing connection to that box:
forteca kernel: em0: Watchdog timeout Queue--...
Hello, I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VMware. I want to write first FreeBSD kernel module. I find this link: How to write a FreeBSD Kernel Module
and now I have some errors in my file, first.c.
in file included from first.c:3...
I am reading the FreeBSD Architecture Handbook, PCI Devices. In the sample source provided, I do not see where the VendorID or DeviceID are defined. My test VirtualBox instance seems probe and attach to 0x80EE (Likely because its Oracle Virtualbox) with the alternating device IDs of...
I have a custom kernel for which I like to have wlan just in rare cases. In the kernel configuration I have
% grep wlan MYKERNEL
device wlan # 802.11 support
device wlan_wep # 802.11 WEP support
device wlan_ccmp # 802.11 CCMP support...
Dear FreeBSD Support Team:
Last year I upgraded the hardware in this Samsung NP300V4A by adding a 500 GB SSD and 12 GB RAM.
So I decided to install FreeBSD 10.3, in that try I had problems installing it from the USB due to display errors at the moment of enter option 1 in the splash screen of...
Using 10.3-RELEASE and trying to compile a simple kernel module. My Makefile is really simple....
~/code/memstat % cat Makefile
# Source files for kernel module
# Declare Name of the kernel module
# Include kernel module makefile
I'm loading kernel module by kldload...
I'm trying to call kern_execve() from kthread_create(): if I call kern_execve() directly from start() - everything works fine, but if I call kthread_create() from start() and then call kern_execve() from the created child - I'm getting...
I'm running 10.2-RELEASE with GENERIC kernel.
I'm trying to use a boot splash screen and did the implementation right according to the FreeBSD handbook and the few threads here in the board including the correct file format via GIMP.
When I boot with boot splash configured it...