Adding disk firmware programming capability to camcontrol

Nima Misaghian nmisaghian at
Thu Nov 17 17:16:21 UTC 2011

I have updated the patch according to feedbacks I received. The main modification was to warn the user and ask for confirmation before downloading a firmware image. A -y option has been added that suppresses the confirmation-- the same as the one for the format command.

The new patch is against HEAD and could be downloaded from:

Reviews/suggestions are greatly appreciated.

Nima Misaghian 
nmisaghian at

> -----Original Message-----
> From: crodr001 at [mailto:crodr001 at] On Behalf Of Craig
> Rodrigues
> Sent: Thursday, November 03, 2011 10:06 PM
> To: Nima Misaghian
> Cc: freebsd-current at
> Subject: Re: Adding disk firmware programming capability to camcontrol
> On Fri, Oct 28, 2011 at 1:47 PM, Nima Misaghian
> <nmisaghian at> wrote:
> > Hi,
> >
> > I have got code developed by Andre Albsmeier that is capable of
> > programming firmware of hard drives from several vendors and  turned
> > it into a camcontrol command.
> +1
> I took a look at your patch and it looks great.  I have worked on a
> storage product before where there
> was a requirement to reprogram the firmware of hard drives.  On tha
> product,
> proprietary Windows tools had to be used.  It would have been nice to
> be able to use camcontrol in FreeBSD.
> I think the patch is fine in its current form.  Very few "regular
> users" need to reprogram hard drive firmware.
> It is a special administrative operation.
> --
> Craig Rodrigues
> rodrigc at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fwdownload.diff
Type: application/octet-stream
Size: 18521 bytes
Desc: fwdownload.diff
Url :

More information about the freebsd-current mailing list