module

  1. C

    Load module in stage-3 boot menu

    Hello, I need to load the bnxt module at FreeBSD 13.0 startup to get all network interfaces during an (OPNsense) installation. I tried to enable it in boot stage-3 (OPNsense Escape to loader prompt): First attempt: OK set if_bnxt_load="YES" OK boot and OK unload OK set...
  2. 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...
  3. Incnis Mrsi

    How I built a module

    Hello. Due to non-standard operational requirements I attempted to modify a module, namely /usr/src/sys/net/if_stf.c (instead of trying more conventional workarounds). This has been a “FreeBSD 12.1-RELEASE r354233 GENERIC amd64” system without any prior attempts to build kernel, without changes...
  4. 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=...
  5. 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 =...
  6. 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...
  7. 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...
  8. 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...
  9. 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.
  10. 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...
  11. 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]--...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
Back
Top