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
Create a custom filesystem/communicate hdd.
-
- Member
- Posts: 97
- Joined: Tue Mar 10, 2015 10:08 am
Create a custom filesystem/communicate hdd.
Last edited by JulienDarc on Tue Aug 11, 2015 8:53 am, edited 1 time in total.
Re: Create a custom filesystem.
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?
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?
-
- Member
- Posts: 97
- Joined: Tue Mar 10, 2015 10:08 am
Re: Create a custom filesystem.
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?
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?
-
- Member
- Posts: 97
- Joined: Tue Mar 10, 2015 10:08 am
Re: Create a custom filesystem/communicate hdd.
Ok I got it.
I found my answers in some articles on osdev. I will try to do something with that knowledge.
Thanks again!
I found my answers in some articles on osdev. I will try to do something with that knowledge.
Thanks again!