Page 1 of 1

Raspberry Pi Bare Metal - File I/O???

Posted: Mon Jun 10, 2013 3:40 am
by leejbaxter
Hi folks,

I'm aiming to create an OS for the Raspberry Pi designed for creating and playing retro-style games. I've had experience with filesystems when I created a couple of first-stage bootloaders for the x86 platform, so I understand that I'll need to read/write blocks from/to the SD card in order to read/write files. The question is, how do I do this with the SD card on the Pi? I'm one of those who would rather learn the basics and write their own drivers, rather than pinching code from somewhere else. If anybody could point me in the right direction, I'd greatly appreciate it!!!

Thanks in advance!

Re: Raspberry Pi Bare Metal - File I/O???

Posted: Mon Jun 10, 2013 4:35 am
by dozniak
Write SD-MMCIO driver.

Check out https://github.com/jncronin/rpi-boot for an example.