CF Card boot sector

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
User avatar
GAT
Member
Member
Posts: 75
Joined: Wed Nov 30, 2011 9:51 pm
Contact:

CF Card boot sector

Post by GAT »

I am setting up my OS for an embedded device.
I need to find a boot sector for a Compact Flash card for this device.
I tried the boot sector I use for my OS normally, but since it is written for a floppy drive it failed to work.
Any ideas?
d3: virtualizing kernel in progress
https://github.com/WizardOfHaas/d3/
User avatar
Yoda
Member
Member
Posts: 255
Joined: Tue Mar 09, 2010 8:57 am
Location: Moscow, Russia

Re: CF Card boot sector

Post by Yoda »

CF cards are usually partitioned and have FAT32 system. Of course boot sector from floppy (FAT12) will not suit CF cards.
I didn't get, what is you purpose. Do you want to boot your own OS from CF card or just make it readable by your OS?
Yet Other Developer of Architecture.
OS Boot Tools.
Russian national OSDev forum.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: CF Card boot sector

Post by VolTeK »

GAT wrote: I am setting up my OS for an embedded device.
I need to find a boot sector for a Compact Flash card for this device.

Well, i was actually guessing he wanted to eat it, but i guess i was wrong.
User avatar
GAT
Member
Member
Posts: 75
Joined: Wed Nov 30, 2011 9:51 pm
Contact:

Re: CF Card boot sector

Post by GAT »

I want to boot my OS from the card.
d3: virtualizing kernel in progress
https://github.com/WizardOfHaas/d3/
User avatar
Yoda
Member
Member
Posts: 255
Joined: Tue Mar 09, 2010 8:57 am
Location: Moscow, Russia

Re: CF Card boot sector

Post by Yoda »

Then you first need to write MBR code, and after that FAT32 boot code.
If you are writing OS from scratch and for x86 architecture, you may try to use my boot tools: http://goncharov.pp.ru/en/osboot.htm
Yet Other Developer of Architecture.
OS Boot Tools.
Russian national OSDev forum.
Post Reply