
Load Modules at Boot With modules-load.d and Set Options in modprobe.d
Load a kernel module at every boot with /etc/modules-load.d and set its options in /etc/modprobe.d; the file formats, ordering, initramfs and how to verify.
Everything you need to level up your coding skills.

Load a kernel module at every boot with /etc/modules-load.d and set its options in /etc/modprobe.d; the file formats, ordering, initramfs and how to verify.

getauxval reads the kernel's auxiliary vector: page size, CPU features, secure-mode flag, random bytes and the executable name, without parsing /proc.

Package an out-of-tree kernel module with DKMS: write dkms.conf, add, build and install, rebuild on kernel upgrades automatically and sign for Secure Boot.

Update ESP32 firmware over HTTPS with esp_https_ota: partition table, certificate, the one-call and advanced APIs, and testing with a local server.

Compare a module's vermagic string with uname -r using modinfo to see why insmod says Invalid module format, and what the version magic and CRC checks protect.

The global environ is the NULL-terminated array behind getenv. Loop over it to list every NAME=value entry, split entries safely and avoid the stale envp trap.

Pass parameters to a Linux kernel module with module_param: types, permissions, MODULE_PARM_DESC, insmod and modprobe.d usage, and /sys/module values.

Hand control from a bootloader to a Cortex-M application safely: validate the vector table, quiesce peripherals, set VTOR and MSP, and avoid the usual crashes.

insmod loads one .ko by path, and modprobe loads by name with dependencies from modules.dep and modprobe.d. See how each works, what fails and which to use.

The kernel copies argc and argv onto the new process's stack on execve, then startup code hands them to main. See the layout and measure it with a program.

Write, build and load your first Linux kernel module in C: the init and exit functions, MODULE_LICENSE, a Makefile and insmod, with the exact dmesg output.

Install the Optiboot bootloader on an ATmega328P with an ISP programmer once, set the boot fuses, then upload sketches over a serial cable with avrdude.
We send one email when a new post is published. No spam.