You are not logged in.


#1 2005-02-20 18:30:01

raysad
New member
Registered: 2005-02-20
Posts: 6
PM

Floppy disk access

In what version of BOS do you plan on having BOS be able to access a Floppy drive, and when can we look forward to that.

Offline

 

#2 2005-02-20 19:10:47

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Floppy disk access

I am planning to include it in the next release, but for it to actually be usefull I would aslo have to include full FAT12 and user program support.
So maybe all this comes in the next version, and maybe not.
Problably it will just be able to read any sector and then display it on the screen as ASCII or hex.
I also have alot of things to sort out with interfaces for devices, drivers and programs.

/ Christoffer

Offline

 

#3 2005-02-28 12:37:48

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Floppy disk access

This sparks some questions in my own mind as I write my own code. I am currently working out the details to go to protected mode. I have initiated flat-real in order to probe memory and do few minor OS initializations. I want to be able to install and uninstall device drivers at will. This leads to a chicken before the egg syndrome, I think, if I am not over analyzing it. I need device drivers for video (text mode mainly, at this stage) and the keyboard. I would prefer not to have them integrated into my main kernel, but currently they are. I also want to incorperate file access for FAT filesystems. BTW, I haven't yet implemented a memory manager either, so I realize this needs to come first. So, is it feasible to, or has anyone done this, have a device manager that loads (default) device drivers after one has already gone into protected mode? To me this means having a low level floppy controller driver already, which I'm trying to avoid being a part of the kernel. I suppose I could use flat-real mode (I've only experimented with probing memory (works quite nicely on my test machines)) and use the BIOS to call the disk access routines. But is that a dorky way to implement it (read unprofessional, or wierd)?

I'd be interested your thoughts.


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#4 2005-02-28 12:59:12

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Floppy disk access

Well, to keep the kernel neat I will have to fix interfaces for devices and drivers soon. But the chicken&egg syndrome makes it hard to have drivers as separate files if you don't have any way of loading 'em.. sad

I guess that I would have to include some standard drivers into the kernel for it to function, or I could write a better bootloader (with second stage loading), which would make it possible to load more then one file (basic drivers) before calling the kernel.

AS for MM, I haven't got into any position where I needed it. smile
I will problably wait with that until I can load and run user programs.

The best solution to all of this (as far as I can see right now) is to:
a) Write a bigger and better bootloader which saves all BIOS data you need (MM map, VESA info etc), loads the basic drivers and the kernel, then jumping to the kernel.
b) Use GRUB.. sad
c) Start the kernel in 16-bit/unreal mode for the initiation and then switch to 32-bit before starting the shell/doing other things..

I wouldn't recommend you to stay in unreal mode becasue of the beloved BIOS ints.. wink
Yeah, that would be unprofessional.. smile

/ Christoffer

Offline

 

#5 2005-02-28 13:07:53

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Floppy disk access

BTW: With option c) on my list you can quite easy switch between 16- and 32-bit in the kernel when you feel like cheating with BIOS ints.
Dex4u does this in DEX, a switch to 16-bit, change video mode, and back to 32-bit.. And it's not even slow.. wink

/ Christoffer

Offline

 

#6 2005-02-28 17:14:46

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Floppy disk access

Well, selection a) is a possibility, since currently I am doing what you're doing, within my kernel, all the setup stuff (not reuseable code either, one time use). My boot loader loads the kernel from FAT12 floppy, and I suspect I can just as easily change that to a boot loader, then load the kernel. I'll ponder this some more...

b) Grub, isn't that a worm of some type? lol Seriously, that would also mean redesigning the current path I've already gone down, and I want to avoid that if possible.

I think I will probably run with option c) since this seems to be the easiest to implement in my current stage of development. I'm about to implement my Memory Manager just after I test memory mapping (nearly done) in the next couple of weeks.

Thanks for your insight. cool


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#7 2005-02-28 22:18:43

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Floppy disk access

Offline

 

#8 2005-03-02 03:22:10

crc
New member
Registered: 2005-02-27
Posts: 2
PM

Re: Floppy disk access

b) Use GRUB.. sad

GRUB isn't that bad. It can actually save a lot of headaches  8)

Offline

 

#9 2005-03-02 07:43:12

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Floppy disk access

I didn't mean it like that. I plan to support GRUB.. But it isn't as fun as doing it yourself... wink

Offline

 

#10 2005-03-02 12:52:59

smiddy
Active member
Registered: 2005-02-15
Posts: 183
PM

Re: Floppy disk access

crc wrote:

b) Use GRUB.. sad

GRUB isn't that bad. It can actually save a lot of headaches  8)

I don't mean to put it down either...

As bubach points out, I like the intellectual stimulation of knowing how to do it myself. Even if I do it in an unprofessional (less engineering savy) way. wink


- [color=red]s[/color][color=blue]m[/color][color=red]i[/color][color=blue]d[/color][color=red]d[/color][color=blue]y[/color]

Offline

 

#11 2005-03-05 21:55:15

Dex4u
Active member
Registered: 2005-02-19
Posts: 132
PM

Re: Floppy disk access

Dex4u kernel is loaded by bootprog ( which is a bootloader, that loads a exe or com file from floppy), i am planing on making my own ver, which will have a menu to load CLI or GUI, there will also be other option, all this will be done in realmode before moving to pmode.

Offline

 

#12 2005-03-06 16:04:08

bubach
Administrator
From: Trollhättan, Sweden
Registered: 2005-02-15
Posts: 367
PM  Website

Re: Floppy disk access

The floppy code I got from Dex4u is now almost intergrated into BOS.. :-)

Offline

 

 

Board footer

Powered by PunBB
BOS homepage © Copyright 2005 Christoffer Bubach
Strict XHTML and valid CSS.