Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Driver firmware binaries - location opinions?: (4 Items)
   
Driver firmware binaries - location opinions?  
Hiya.  Just thought I'd toss this out for discussion.

I'm writing a new network driver, and it has some
fairly large (100+ kbytes) firmware binaries which
must be downloaded by the driver during initialization.

Question: where should these firmware binaries
be located?

One option is to put them into the driver .so which
is nice & neat wrt packaging & version control, but
this bloats the driver unnecessarily consuming ram.

Second option to to have them as external files
but this creates packaging & versioning hassles.

Opinions on the above?  Creative suggestions for 
other options?

--
aboyd   www.PoweredByQNX.com
Re: Driver firmware binaries - location opinions?  
On Fri, Jan 11, 2008 at 10:48:31AM -0500, Andrew Boyd wrote:
> Hiya.  Just thought I'd toss this out for discussion.
> 
> I'm writing a new network driver, and it has some
> fairly large (100+ kbytes) firmware binaries which
> must be downloaded by the driver during initialization.
> 
> Question: where should these firmware binaries
> be located?
> 
> One option is to put them into the driver .so which
> is nice & neat wrt packaging & version control, but
> this bloats the driver unnecessarily consuming ram.
> 
> Second option to to have them as external files
> but this creates packaging & versioning hassles.
> 
> Opinions on the above?  Creative suggestions for 
> other options?

As a data point, wpi already loads from a file as we can't
ship its firmware.

# io-pkt -dwpi firmware=/fullpath/to/firmware

-seanb
Re: Driver firmware binaries - location opinions?  
Andrew Boyd wrote: 

Hiya.  Just thought I'd toss this out for discussion. 

I'm writing a new network driver, and it has some 
fairly large (100+ kbytes) firmware binaries which 
must be downloaded by the driver during initialization. 

Question: where should these firmware binaries 
be located? 

One option is to put them into the driver .so which 
is nice & neat wrt packaging & version control, but 
this bloats the driver unnecessarily consuming ram.

As long as the firmware was alone in a page aligned region you could unmap
it after use, I guess.




Second option to to have them as external files 
but this creates packaging & versioning hassles.

This allows for firmware updates though.




Opinions on the above?  Creative suggestions for 
other options?

I think it should be in the driver, but with the option for reading it from
an external file.  The best of both worlds...




-- 
aboyd   www.PoweredByQNX.com <http://www.PoweredByQNX.com>;  

_______________________________________________ 
Networking Drivers 
http://community.qnx.com/sf/go/post4226
<http://community.qnx.com/sf/go/post4226>;  


-- 

cburgess@qnx.com <mailto:cburgess@qnx.com>; 
Re: Driver firmware binaries - location opinions?  
I agree with Colin. Have it in included in the driver, but if possible, free up the RAM after downloading the firmware 
to the hardware. Give an option to load the firmware from an external file.

Cheers,


Malte