This program written in assembler (mips) recognizes some partitions. To test this, you can use QEMU (or any emulator that supports system boot).