The sbf_flash link has been updated; the new version adds a few interesting new features.
sbf_flash -rThis will read the CDT from the phone, displaying the names and locations of each codegroup on flash.
sbf_flash -x file.sbfExtract codegroups from sbf file; files will be named according to codegroup, eg: CG30.img
sbf_flash -r -x file.sbfExtract codegroups from sbf file, name according to CDT information.
sbf_flash -r --recovery file.sbfRead the CDT, flash only the recovery codegroup from file.sbf.
sbf_flash -r --recovery recovery.img file.sbfSame as above but writes the contents of recovery.img to recovery instead of using the sbf. (sbf file only used for ramloader)
Notes
The -r option must be specified before any options involving the CDT. The "--recovery" can be any name shown in the CDT, optionally followed by data which overrides the sbf contents; in other words you can write arbitrary data to any location on the flash -- be careful.
Download