Page 1 of 1

Create a custom filesystem/communicate hdd.

Posted: Tue Aug 11, 2015 7:53 am
by JulienDarc
Hello,

I read the articles about the custom bootloader and custom filesystem.
My goal is not to create a complex file system. Actually, quite the contrary.

Even simpler than FAT, for a very specific need (think just putting datas with some offsets that my code knows).

Type of devices : ssd, sata.

So, I should only get the address of the hard drive from the device tree, and memcpy to it at the offset I wish? that simple?

Thanks

Julien

Re: Create a custom filesystem.

Posted: Tue Aug 11, 2015 8:26 am
by iansjack
I'm not quite sure that I understand what you are talking about. What "device tree" do you mean?

You need to write a driver for your disk drive; the whole drive isn't memory mapped, just its control registers. The filesystem only determines how the data is organized on the disk. Or have I completely misunderstood your question?

Re: Create a custom filesystem.

Posted: Tue Aug 11, 2015 8:44 am
by JulienDarc
Iansjack,

My question was not clear, I admit it :) i corrected the title

So, I want to store some data on my hard drive. With a custom filesystem. But I am not sure if I understood the underlying correctly.
I would like to code the least possible (not reinventing the wheel <-> driver).

I guess I will have to use the driver the maker has made for the hard drive I use and adapt it to my OS (not a problem).

So, the only thing I have to do is to download the driver and start working with it? (because it knows how to communicate with the device).

Is it something else that will/may bother me in the process?

Re: Create a custom filesystem/communicate hdd.

Posted: Tue Aug 11, 2015 9:51 am
by JulienDarc
Ok I got it.
I found my answers in some articles on osdev. I will try to do something with that knowledge.

Thanks again!