module

  1. Bobi B.

    How to specify kernel configuration when compiling out-of-tree kernel modules?

    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. Makefile: KMOD=...
  2. Hornpipe2

    Module auto-loading for PCI devices?

    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' device =...
  3. S

    Module still part of kernel after removing from conf file

    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...
  4. Farhan Khan

    Get thread from within a module

    Hi all, 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...
  5. andrewschools

    Compile kernel module with modified object file

    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...
  6. David John

    Type casting!

    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.
  7. L

    Rsync group ownership using modules

    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...
  8. O

    Solved Freebsd 11.0 can't boot after network module install

    Hello, 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[0]--...
  9. S

    freebsd kernel module writing

    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. cc first.c: in file included from first.c:3...
  10. Farhan Khan

    Solved PCI Driver vendorID/deviceID defined where?

    Hi all, 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...
  11. chrbr

    Solved How to force device to be a module when make kernel

    Dear community, 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...
  12. Manuel Solis

    Solved Trying to install FreeBSD 11 on Laptop Samsung NP300V4A

    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...
  13. fnoyanisi

    Solved Cannot compile simple kernel module

    Hi there, 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 SRCS=memstat_kmod.c # Declare Name of the kernel module KMOD=memstat # Include kernel module makefile .include...
  14. B

    Troubles with calling kern_execve from kthread_create

    Hello, Everyone. 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...
  15. UncleBAZINGA

    Solved Kernel panic vesa module not found (for boot splash)

    Hello there, 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...
Top