i'm stuck in osdeving
i'm stuck in osdeving
I would like to continue OSdeving but to do that I need to be able to load executables, but i need ~4 things that I don't want to do ( because i cant figure out what is wrong ) , these include:
my floppy driver: http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
my FAT driver: http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
and i need to change my compile script, so instead of makeboot it puts my kernel on a FAT floppy disk image. : http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
also to boot my kernel of the FAT disk i will need to fix my bootloader: http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
I hate to say just look at the code and fix it, but thats realy what i need now, hope you help!
thx!
my floppy driver: http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
my FAT driver: http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
and i need to change my compile script, so instead of makeboot it puts my kernel on a FAT floppy disk image. : http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
also to boot my kernel of the FAT disk i will need to fix my bootloader: http://lemonos.cvs.sourceforge.net/lemo ... iew=markup
I hate to say just look at the code and fix it, but thats realy what i need now, hope you help!
thx!
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
I'm not the type to start working for you like that. You can however take parts of my code:
browse my source tree and take what you want. I hope something there helps you with your quest.
I dont have a working floppy driver. However, you can use grub, your own bootloader and the like to load a FAT formatted ramdisk. I consider floppies too troublesome to make half your system dependent on it...my floppy driver:
I have a 2-stage FAT-based bootloader (public domain). I apparently didnt bother to comment it as properly as most of my code so you'll have to figure out yourself what everything's good for. ATM it boots /stage3.bin, and loads /stage4.bin and /*.mos into a ramdisk, then jumps to the kernel at 0x80000. (Stage 1, Stage 2)My FAT driver
I have a makefile which does that for me (by typing make install)and i need to change my compile script, so instead of makeboot it puts my kernel on a FAT floppy disk image.
browse my source tree and take what you want. I hope something there helps you with your quest.
GRUB is a pretty good bootloader and handles FAT among several other filesystems just fine. Floppies, harddrives, network boot... anything will do. Gets you to protected mode as well for free.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
well i figured out how to make a FAT image with my kernel, now i need to modify my bootsector to read kernel.sys from the image, and no GRUB, why write your own bootsecter when theres GRUB - why right your own OS when theres Linux? i like to learn, sorry for saying it so plainly it's just every one tells me to use GRUB
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
People are recommending GRUB because it sorta suits you..GLneo wrote:well i figured out how to make a FAT image with my kernel, now i need to modify my bootsector to read kernel.sys from the image, and no GRUB, why write your own bootsecter when theres GRUB - why right your own OS when theres Linux? i like to learn, sorry for saying it so plainly it's just every one tells me to use GRUB
As for:
You just contradicted yourself.. You just asked people to write code for you..GLneo wrote:i like to learn, sorry for saying it so plainly it's just every one tells me to use GRUB
Here are somethings that I found with just a quick search. I hope they help.
http://www.mohanraj.info/josh3.jsp and
http://www.nondot.org/~sabre/os/article ... otProcess/
http://www.mohanraj.info/josh3.jsp and
http://www.nondot.org/~sabre/os/article ... otProcess/
For the bootsector, have you tried john Fine's:
http://my.execpc.com/~geezer/johnfine/bootf02.zip
It loads from FAT to 1mb, sets up pmode and even paging before jumping. if you throw out the page code, you should get some free bytes for error handling or clean-ups.
i also think you should get the floppy driver working with only one 1.44 mb fdd before expanding it.
http://my.execpc.com/~geezer/johnfine/bootf02.zip
It loads from FAT to 1mb, sets up pmode and even paging before jumping. if you throw out the page code, you should get some free bytes for error handling or clean-ups.
i also think you should get the floppy driver working with only one 1.44 mb fdd before expanding it.