There's official instructions for flashing R4I-B9S into NDS mode on the official website
Basically, you download the .firm and .bin files from there,put them on your SD card, then run it as a luma payload.
After this, you download the R4I-3DS firmware off the same website, and it works...