aic94xx: update BIOS image from user space.
PATCH 1/1 aic94xx: update BIOS image from user space.
1. Create a file "update_bios" in sysfs to allow user to update bios from user space.
2. The aic94xx BIOS image file can be downloaded from web site "http://www.adaptec.com/en-US/downloads/bios_fw/bios_fw_ver?productId=SAS-48300&dn=Adaptec+Serial+Attached+SCSI+48300" and copy the BIOS image into /lib/firmware folder.
3. The aic994xx will accept "update bios_file" and "verify bios_file" commands to perform update and verify BIOS image .
For example:
Type "echo "update asc483c01.ufi" > /sys/devices/.../update_bios"
to update BIOS image from /lib/firmware/as483c01.ufi file into HBA's flash memory.
Type "echo "verify asc483c01.ufi" > /sys/devices/.../update_bios"
to verify BIOS image between /lib/firmware/asc48c01.ufi file and HBA's flash memory.
4. Type "cat /sys/devices/.../update_bios" to view the status or result of updating BIOS.
drivers/scsi/aic94xx/aic94xx_hwi.h +3 -0
@@ -72,6 +72,7 @@u8 manuf;u8 dev_id;u8 sec_prot; +u8 method;u32 dir_offs; };
@@ -216,6 +217,8 @@struct dma_pool *scb_pool;struct asd_seq_data seq;/* sequencer related */ +u32 bios_status; +const struct firmware *bios_image; };/* ---------- Common macros ---------- */
drivers/scsi/aic94xx/aic94xx_init.c +182 -0
220 lines not on this page · raw message
drivers/scsi/aic94xx/aic94xx_sds.c +441 -1
451 lines not on this page · raw message
drivers/scsi/aic94xx/aic94xx_sds.h +168 -0
168 lines not on this page · raw message