So I've been trying to write a little bootloader myself (for fun and education). So far I've completed a bootloader (or rather "bootable program") which behaves exactly like MSDOS. Then when I tried to implement more stuff, I exceeded 512 byte limit. I decided to expand my tiny OS. I've moved on to writing sth like a 2 stage bootloader where stage 2 behaves as the main kernel so I would have more than 512 bytes.
I've written the first stage of my bootloader. Almost. I got the idea of jumping to the sector where the stage 2 is located to execute it, but the problem is, I'm using a FAT32 USB instead of those floppy images that everyone is writing codes and tutorials for.
My question will be very childish: How can I load stage2.bin using stage1.bin, in a FAT32 filesystem?
So far this failed to help me: Loading second stage of a bootloader