Page 1 of 1

EXT2fs loader? Getting user input from keys, etc

Posted: Fri Sep 13, 2002 10:43 pm
by AlanO
Hello, I have a few questions:

1) how could I (in C or C function with ASM) get the users input on my shell? IE: like a get() or something

2) is there a working ext2fs bootloader? or a fat that would work on a hdd?

3) how would you go about loading another program off of the disk in either FAT or EXT2fs.

thank you so much for your help in advanced. This is an awesome board :)
Alan

Re:EXT2fs loader? Getting user input from keys, etc

Posted: Fri Sep 13, 2002 11:14 pm
by K.J.
1) how could I (in C or C function with ASM) get the users input on my shell? IE: like a get() or something

You need to have a keyboard driver coded and working first, then a function that gets keys from the keyboard driver.

2) is there a working ext2fs bootloader? or a fat that would work on a hdd?

GRUB works with most filesystems out there including FAT and ext2.

3) how would you go about loading another program off of the disk in either FAT or EXT2fs.

I'm assuming this is in PMode... You will need a floppy/hd driver, and then you need to phrase the filesystem to find out where the file(s) are and then copy them off the floppy into memory.

K.J.