Re: firmware discussion

看板DFBSD_kernel作者時間15年前 (2010/05/04 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/17 (看更多)
Matthew Dillon <dillon@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
文章代碼(AID): #1Btrpr29 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1Btrpr29 (DFBSD_kernel)