Adding disk firmware programming capability to camcontrol

Nima Misaghian nmisaghian at
Tue Nov 22 15:47:44 UTC 2011


Sorry for the late reply. As I mentioned in the man page, the fwdownload command currently only supports SCSI disks.

"fwdownload: Program firmware of the named <<SCSI>> device using the image file provided."

We have added firmware download command to atacontrol at work, for which I have attached a patch against 8.2 to this email.

The format of the command is similar to the camcontrol counterpart:

atacontrol fwdownload <device_name> <path_to_image_file>

But ultimately we would like to add the support to program ATA/SATA disks to camcontrol as well.

Nima Misaghian
nmisaghian at

> -----Original Message-----
> From: owner-freebsd-current at [mailto:owner-freebsd-
> current at] On Behalf Of Pegasus Mc Cleaft
> Sent: Sunday, November 20, 2011 9:55 AM
> To: freebsd-current at
> Cc: andre at; Nima Misaghian
> Subject: Re: Adding disk firmware programming capability to camcontrol
> Hi Nima,
> 	I have tried your latest patch against current, but I am having
> difficulty
> getting it to work. I was wondering, is this feature limited to SCSI
> drives?
> I have been trying it against my SATA drives but it looks like it is
> failing
> on issuing a TUR.
> IE:
> feathers# camcontrol fwdownload ada5 -f JP0NB3MA.BD -s -v
> Running in simulation mode
> camcontrol: Device is not ready
> (pass5:ahcich4:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
> (pass5:ahcich4:0:0:0): CAM status: CCB request was invalid
> Firmware download failed
> I have tried issuing a TUR to all my drives to see if it was controller
> or
> drive specific, but all of them return the same error (The drives are
> Seagate,
> Hitachi and WD).
> What am I doing wrong?
> Ta
> Peg
> _______________________________________________
> freebsd-current at mailing list
> To unsubscribe, send any mail to "freebsd-current-
> unsubscribe at"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atacontrol.diff
Type: application/octet-stream
Size: 5495 bytes
Desc: atacontrol.diff
Url :

More information about the freebsd-current mailing list