Discussion:
Filesystem Driver
(too old to reply)
Fail Laif
2020-09-08 20:18:02 UTC
Permalink
I've been working in an os and i have the basics down:
Interrupts (ISR, and IRQ)
Keyboard (Hooked up to the interrupts)
Basic Shell (Two commands)
Memory Allocation (malloc, and calloc)
Basic C standard library (printf, scanf, uint32_t, etc)

But, now that I've got a basic shell, I want to get a basic filesystem going, so i can have a basic interpreter or elf32 executables or something. I've done research on filesystems using an osdev.org article, and I've decided i want a fat32 implementation. Can i please have resources on making a fat32 driver implementation or maybe some of your own implementations?
Kerr-Mudd,John
2020-09-09 09:07:41 UTC
Permalink
Post by Fail Laif
Interrupts (ISR, and IRQ)
Keyboard (Hooked up to the interrupts)
Basic Shell (Two commands)
Memory Allocation (malloc, and calloc)
Basic C standard library (printf, scanf, uint32_t, etc)
But, now that I've got a basic shell, I want to get a basic filesystem
going, so i can have a basic interpreter or elf32 executables or
something. I've done research on filesystems using an osdev.org
article, and I've decided i want a fat32 implementation. Can i please
have resources on making a fat32 driver implementation or maybe some
of your own implementations?
Issat you, Bill Cunningham?
--
Bah, and indeed, Humbug.
James Harris
2020-09-09 16:49:23 UTC
Permalink
Post by Fail Laif
Interrupts (ISR, and IRQ)
Keyboard (Hooked up to the interrupts)
Basic Shell (Two commands)
Memory Allocation (malloc, and calloc)
Basic C standard library (printf, scanf, uint32_t, etc)
But, now that I've got a basic shell, I want to get a basic filesystem going, so i can have a basic interpreter or elf32 executables or something. I've done research on filesystems using an osdev.org article, and I've decided i want a fat32 implementation. Can i please have resources on making a fat32 driver implementation or maybe some of your own implementations?
There's a couple of outline examples at

https://wiki.osdev.org/FAT#Programming_Guide

Well done on what you've got so far. :-)
--
James Harris
Fail Laif
2020-09-09 21:54:03 UTC
Permalink
Post by James Harris
Post by Fail Laif
Interrupts (ISR, and IRQ)
Keyboard (Hooked up to the interrupts)
Basic Shell (Two commands)
Memory Allocation (malloc, and calloc)
Basic C standard library (printf, scanf, uint32_t, etc)
But, now that I've got a basic shell, I want to get a basic filesystem going, so i can have a basic interpreter or elf32 executables or something. I've done research on filesystems using an osdev.org article, and I've decided i want a fat32 implementation. Can i please have resources on making a fat32 driver implementation or maybe some of your own implementations?
There's a couple of outline examples at
https://wiki.osdev.org/FAT#Programming_Guide
Well done on what you've got so far. :-)
--
James Harris
Thanks!
muta...@gmail.com
2020-09-10 06:39:27 UTC
Permalink
Post by Fail Laif
I've done research on filesystems using an osdev.org article,
and I've decided i want a fat32 implementation. Can i please
have resources on making a fat32 driver implementation
or maybe some of your own implementations?
There is a full FAT12/16/32 implementation, including
long filename support, available as part of PDOS, here:

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/fat.c

The code is public domain, explicit notice, so you may
use it in your own project regardless of what license
you choose or whether it is commercial or not.

Probably no reason to reinvent the wheel.

What I don't have is a working boot sector for FAT32.
Only the FAT12/16 boot sector works. The FAT32
version I have is here:

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/fat32.asm

But it needs to be debugged.

Another thing you should consider doing is using
the rest of PDOS as a base, rather than starting
from scratch, as the whole thing is public domain,
including the C library.

BFN. Paul.

Continue reading on narkive:
Loading...