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

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
leejbaxter
Member
Member
Posts: 25
Joined: Sat Jan 15, 2011 8:40 pm

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

Post 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!
Lee.J.Baxter - Designer of CHAOS (Cybernetic Hivemind Adaptive Operating System)
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

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

Post by dozniak »

Write SD-MMCIO driver.

Check out https://github.com/jncronin/rpi-boot for an example.
Learn to read.
Post Reply