Issue #3044 has been updated by sucan...@fit.cvut.cz.
I have the tool finished. During the work I discovered a mistake I made. In the asm_2100.h file there are two variants of firmware image for the same device. When I was processing the file I concatenated both variants to one image. Which variant is compiled depends on if USE_SMALLER_2100_FIRMWARE is defined or not. The solution I would like to implement is to generate two images (one for each variant) and place the conditional selection to the sys/dev/disk/isp_pci.c to the isp_pci_attach() function where the decision which image to get by firmware_get() is made. Could it be done in this way? sepherosa wrote: > Hmm, I wanted to mean, the tool could be isp specific. Take an isp > firmware header file, and > convert it to uu file. The tool does not need to be generic; it is > only used by us to sync other BSD's isp firmware. ---------------------------------------- Submit #3044: isp: Unify firmware handling with the rest of the system. http://bugs.dragonflybsd.org/issues/3044#change-13171 * Author: sucan...@fit.cvut.cz * Status: In Progress * Priority: Normal * Assignee: swildner * Category: * Target version: ---------------------------------------- Hello, these patches convert firmware binary data from C arrays in a header files to uuencode .uu files. Byte order of the firmware image is little-endian. As far as DragonFly BSD supports only little-endian architectures it's ok. But in case of a big-endian architecture the byte order must be changed before firmware is processed by the isp driver. They also move the .uu images to a sys/contrib/dev/isp. The first part concerns these firmwares: isp_1040, isp_1040_it, isp_1080, isp_1080_it, isp_12160, isp_12160_it, isp_2100, isp_2200, isp_2300 and isp_2322. The second part concerns these firmwares: isp_2400, isp_2400_multi, isp_2500, isp_2500_multi. The division is needed because a size of a single patch must be less than 5 MB for the bugtracker to accept. ---Files-------------------------------- 0001-isp-Unify-firmware-handling-with-the-rest-of-the-sys.patch (3.47 MB) 0002-isp-Unify-firmware-handling-with-the-rest-of-the-sys.patch (4.02 MB) -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account