The BBII monitor expects the boot track to be SD, even on a DD disk. Thus a 5.25" boot disk will have a SD track 0 with 18 sectors and the rest of the tracks are 9 sectors DD with 512 bytes/sector. CBIOS does the deblocking.
The CBIOS can handle 256/512/1024, but I chose 512 as that seemed to be what my PC writing the disks could handle reliably. In fact at 250kb MFM it would produce disks that were readable on the BB, but not on the PC, 300kb were readable on the PC.
So I wrote a program that created a dummy IMD file with the above parameters, verified that the disk written had the sectors in the right place, as read by the BBII monitor.
Then wrote a SYSGEN/PUTSYS program that takes an empty infile, a cpm.com file and created an IMD image, with CBIOS and CPM on the correct sectors.
It now loads CBIOS and CP/M, but then exits to the monitor, so I have to dig a bit more.