
Load Device Firmware From a Driver With request_firmware
Load a firmware blob in a Linux 6.12 driver with request_firmware, validate it, copy it to the device, release it, and use the async variant for early probes.
Tag
255 posts

Load a firmware blob in a Linux 6.12 driver with request_firmware, validate it, copy it to the device, release it, and use the async variant for early probes.

Chain RP2040 DMA channels with chain_to so one starts as the other finishes, and use a control channel to rotate through a list of buffers without the CPU.

Drive a PWM channel from a Linux 6.12 consumer driver with devm_pwm_get, struct pwm_state and pwm_apply_might_sleep, plus the device tree binding.

Write a Linux 6.12 RTC driver with rtc_class_ops, read_time and set_time using 64-bit time, range limits, and test it with hwclock and sysfs.

Stream continuous data on an STM32 with circular DMA, process each half buffer on the half-transfer and complete events, and detect a missed deadline.

Write a Linux 6.12 watchdog driver with watchdog_device and watchdog_ops, handle the timeout and nowayout options, and see it through /dev/watchdog and wdctl.

Write a Linux 6.12 LED class driver with led_classdev, brightness_set_blocking, max_brightness and triggers, and see it appear under /sys/class/leds.

Write a Linux 6.12 input driver for a GPIO button: devm_input_allocate_device, capability bits, a threaded IRQ, debounce, and events visible to evtest.

Request, configure and drive GPIO lines from a Linux 6.12 platform driver with devm_gpiod_get and the descriptor API, including active-low handling.

Run a web server on an ESP32 with esp_http_server in ESP-IDF v5.4: register GET and POST handlers, embed an HTML file and return JSON.

Package ESP-IDF code as a reusable component: folder layout, idf_component_register, idf_component.yml dependencies and sharing it.

Write a PCI driver for QEMU 9.2's educational edu device on Linux 6.12: ID check, liveness register, factorial engine and interrupt, with the register map.