firmware discussion

Johannes Hofmann johannes.hofmann at gmx.de
Mon May 3 16:27:03 PDT 2010


Matthew Dillon <dillon at apollo.backplane.com> wrote:
>    Well, the DFly kernel has some very easy-to-use file access functions
>    ala fp_open() and friends (see kern_checkpoint.c for a use case), so
>    accessing the firmware file directly is easy enough.

I thought about writing a generic firmware module using the new
FreeBSD API which reads firmware files from a certain directory
using fp_open().
However, it seems that available firmware images need to be announced
with firmware_register() to make them available, so I would need some
sort of opendir() in kernel to scan the firmware directory and
register the available files with firmware_register().
Alternatively we could adjust subr_firmware.c to trigger a file read
attempt in case the requested image has not yet been registered.

Cheers,
Johannes





More information about the Kernel mailing list