First you will have to run an executable (probably elf not dol but dont quote me on that) that will install bootmii. After that, boot 2 will run unsigned code.
However, you bring up an interesting point. Can said unsigned code be a boot.dol(/.elf) in the root of the SD card?
Unfortunately, I dont have the answer to that ATM.