FS#9330 - patch for openBSD support for ipodpatcher
The following patches will allow someone running openBSD to run ipodpatcher. This is my first pass at these patches, so they cannot be integrated without some problems.
A few outstanding questions remain:
1) should I use /dev/sd0c or /dev/rsd0c?
2) why do byteorder(3) functions exist in fat32format.c?
3) how do the developers want to handle disk geometry?
I ask the last question because my patch overwrites the existing ioctl with what works for openBSD, rather than separate it out. And the patch doesn't fully use what is available in struct disklabel. I plan to re-write this one.
The fat32format.diff comments out byteorder(3) functions. The ipodio-posix.diff converts the file to openBSD disk geometry. The ipodpatcher.diff corrects the device used.
I have only tested the patches above for ipodpatcher on iPod nano 1st gen.
This task depends upon