cvs commit: src/sys/modules/iwi Makefile src/sys/dev/iwi
if_iwi.c if_iwireg.h if_iwivar.h
Warner Losh
imp at bsdimp.com
Mon Nov 21 11:41:46 PST 2005
> Not taking one side or the other... Can we use a common
> tool to convert firmware to a kld? Just pass it the
> symbol name or whatever else you need?
The answer is 'it depends'...
> I guess this makes the assumption that most firmware consists
> of just one object file.
The object files vary somewhat as to what is in the file. Some are S
records in text format, while otherrs are COFF or some other format in
binary form. I had assumed that each driver would want to parse
things out into a useful form in the conversion program to keep the
kernel portion as small as possible. This is inharently driver
dependent.
However, if we wanted to have a raw bits into the kernel conduit, then
we could have a tool, so long as it handled an arbitrary number of
files. Many drivers have a 'primary' and a 'secondary' firmware to
load. But presenting an array to the driver, or having the driver
load multiple files is a way around this.
Having the kernel loader be able to load arbitrary files would be even
better...
Warner
More information about the freebsd-arch
mailing list