flat assembler
Message board for the users of flat assembler.

flat assembler > Projects and Ideas > Formatted virtual media image creator !

Author
Thread Post new topic Reply to topic
Gilles



Joined: 25 Oct 2004
Posts: 24
Hi guys !

I'm planning to develop a virtual media image (files) creator program with theses characteristics (evolutive):

1) A Command line tool
-can be include in a compilation process using "makefile"

2) virtual media option are:
- Floppy (1.44MB)
- Cdrom (including bootable)
- Hard drive (sparse one) :
- Vmdk (from vmware)
- Vhd (from virtual pc)

3) Format option are :
- Fat12 for floppies
- Fat16 and Fat32 for harddrive
- Iso9660 for Cdrom

4) Creation + format + file injection -> All these done in one step.

5) Targets:
- Os developper,
Could be useful for kernel testing purpose ...
- Virtual machine user (vmware,vpc ...).

6) Written entirely in assembler using FASM Smile

7) Source code on demand only.

Do you think this tool could help ?

Give me your opinions.
Post 27 Feb 2007, 15:38
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7108
Location: Slovakia
too much work... it will take few years Wink
Post 27 Feb 2007, 16:01
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
tantrikwizard



Joined: 13 Dec 2006
Posts: 142
I think bochs is more useful for OS development than VMWare or Virtual PC as it has a built in debugger. My makefile pretty much performs these steps during a build. 'make all' compiles the boot segment, second stage loader and kernel then injects the boot sector and copies the loader and kernel to a floppy. 'make debug' does the same and launches bochs in debug mode for testing. The only thing I dislike about this method is the use of http://www.winimage.com to inject the 2nd stage loader and kernel into the floppy image as WinImage is a windows program and requires several 'OK' mouse clicks to finish the process. There is a port of MTOOLS for windows but it lacks the ability to inject a file into a floppy image. Short of writing a utility to do this I may as well just keep clicking 'OK' and let winimage insert the files in the image. Is anyone aware of a windows or dos app that can insert files in a FAT12 floppy disk image using command line switches that doesn't require user interaction?
Post 27 Feb 2007, 17:54
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Gilles



Joined: 25 Oct 2004
Posts: 24
tantrikwizard wrote:
Short of writing a utility to do this I may as well just keep clicking 'OK' and let winimage insert the files in the image. Is anyone aware of a windows or dos app that can insert files in a FAT12 floppy disk image using command line switches that doesn't require user interaction?

With this reflection you've pointed out one of the reason why I've decided to develop this tool. No more 'OK' all you'll have to do will be:
Prepare a very simple config file where you'll
- select the desire format (FileSystem=FAT12 for exemple),
- list the files to inject (sources)
- list the destination of theses files (new path) into the image.

It'll also be a window console application.
Post 27 Feb 2007, 19:02
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1904
Quote:
develop a virtual media image (files) creator program


Cool. Smile Very useful.

Quote:
A Command line tool


Cool.

Quote:

2) virtual media option are:
- Floppy (1.44MB)
- Cdrom (including bootable)
- Hard drive (sparse one) :
- Vmdk (from vmware)
- Vhd (from virtual pc)


Confused What about standard .IMG files ? I never use wmdk/whd, only
QEMU and BOCHS, both free and open source and working in DOS Wink

Quote:

6) Written entirely in assembler using FASM


Wink

Quote:
7) Source code on demand only.


At least freeware ?

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 28 Feb 2007, 00:01
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Cool idea, i would use it, hobby OS dev, could use it to load from NTFS partions.
Heres how it could work, you could have a fat32 image file (made with your program), stored on there NTFS XP partion, than a special loader could load the image from there ntfs partion to there hobby OS and use it like a virtual FS, than write it back at the end.
This way you could write a much simpler NTFS driver.
You could use a loader like the one i posted here:
http://www.osdev.org/phpBB2/viewtopic.php?t=12850
Post 28 Feb 2007, 00:58
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2310
Location: Usono (aka, USA)
tantrikwizard, there are a few DOS tools that allow changing a FAT12 image file, so definitely try them all (since some are buggy):

  • extract (cmdline, actually a dual MZ/PE .EXE, freeware from WinImage dude) -- list, extract (w/ or w/o paths), inject, show boot sector info
  • shsufdrv (w/ NASM src, this is kinda buggy but seems to work ONLY in pure DOS (recent FreeDOS kernel worked for me, but DR-DOS didn't, MS-DOS supposedly works though) if you use the accompanying shsurdrv 3000k,g to make a RAM disk, copy the image file to that, then do shsufdrv /f:fdstd144.img,h /w and then h: and do whatever.
  • Img2 (extract or add to HD-Copy, VGA-Copy/uncompressed, raw images)
  • TurboImage (access disk images as drive, w/ .ASM src) or look a Garbo's other /diskutil/ files
  • others I didn't list here that may prove useful: http://www.fdos.org/ripcord/rawrite/


Gilles, check out ATV's UNIMG.ZIP. (I tried unsuccessfully to find smiddy's BOOTFAT8.ZIP, so you'll have to search for it yourself.)


Last edited by rugxulo on 04 Mar 2007, 19:16; edited 1 time in total
Post 01 Mar 2007, 01:17
View user's profile Send private message Visit poster's website Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Very interesting....
Post 01 Mar 2007, 12:58
View user's profile Send private message Reply with quote
Gilles



Joined: 25 Oct 2004
Posts: 24
Hi,
The first version of the command line tools is available !
It's is Baron.
You can read about it at http://www.gerisoft.net

Ps:Could someone explain to me how I can write a post visible only to fasm register members ? (by the way is it possible ?). Question

Gilles
Post 17 Apr 2007, 10:48
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Cool, its good that theres coders out there, that make app to support OS Dev's, thanks.
Post 17 Apr 2007, 16:48
View user's profile Send private message Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
Here is a link to a good freeware stand alone floppy image utility...

http://www.woundedmoon.org/win32/floppyimage.html

_________________
New User.. Hayden McKay.
Post 17 Apr 2007, 18:19
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1604
Location: Ukraine
check this floppy image project also: http://board.flatassembler.net/topic.php?p=28735#28735
Post 18 Apr 2007, 04:54
View user's profile Send private message Visit poster's website Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
The problem with useing FAT images for your own operating systems is that it is illegal under the terms of the microsoft FAT file specification. We 'the programmer' are only allowed to code drivers, uitilties etc... for FAT file system.

This is why linux uses the EXT2 file system!

_________________
New User.. Hayden McKay.
Post 18 Apr 2007, 05:50
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
Quote:

This is why linux uses the EXT2 file system!

ehemm, I think that Linux uses such filesystems for another good reasons.
Post 18 Apr 2007, 12:57
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Hayden wrote:
The problem with useing FAT images for your own operating systems is that it is illegal under the terms of the microsoft FAT file specification. We 'the programmer' are only allowed to code drivers, uitilties etc... for FAT file system.

This is why linux uses the EXT2 file system!


I think you will find that the fat file sys, is not patented, it's the add on's that are, eg: the LFN ext, so you can use fat12 OK, not sure about fat16, but not fat32, also if you live in Germany, your OK, as they chucked as case out of court.
Post 18 Apr 2007, 14:56
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.