Page 1 of 1

Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 3:11 pm
by mooseman
Hi all -

As mentioned in a thread elsewhere I've been creating makefiles for the OSDev tutorial code that I've obtained from the Brokenthorn site. However, when booting, the second-stage of the boorloader is not being found. By this, I mean that the "Preparing to load operating system" message in stage2.asm is not being displayed. ( I use Qemu for testing. )

So, I want to get a floppy-disk image for stage2 of demo1 - an image created by using the "partcopy" utility.
If I can get that image I can compare it (using a hex editor) with the image created by my makefile and find out where the differences are. I can then alter the makefile accordingly to then (hopefully) create an identical image.
(I'm running Linux so the partcopy utility won't work on my system(.

Is it Neon who worked on the OSDev series? If he could post an image either to this forum or to the "resources" directory on the Brokenthorn site (maybe here ) -
http://www.brokenthorn.com/Resources/De ... o1/Stage2/

- that would be great! That should be a big help in getting things running.

Bye for now -
- mooseman

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 9:13 pm
by neon
Hello,

We uploaded an image file to compare with here. Note that files in this directory may be moved. The image contains the installed boot record ("stage 1") and stage 2 copied. Note the way we use PartCopy is to merge it with the existing Bios Parameter Block (BPB). However, due to the the structure of 1.44M floppy devices being well defined, you can actually get away with just defining the BPB directly in the code and writing the boot sector in one pass.

If needed, please feel free to provide us a copy of your current image file and we can analyze it at our end. It may also be helpful to provide instructions on how you are currently building and formatting the image.

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 10:44 pm
by mooseman
neon wrote:Hello,

We uploaded an image file to compare with here. Note that files in this directory may be moved.
[/quote

Great! Thanks very much for doing that, neon. :)
neon wrote: The image contains the installed boot record ("stage 1") and stage 2 copied. Note the way we use PartCopy is to merge it with the existing Bios Parameter Block (BPB). However, due to the the structure of 1.44M floppy devices being well defined, you can actually get away with just defining the BPB directly in the code and writing the boot sector in one pass.

If needed, please feel free to provide us a copy of your current image file and we can analyze it at our end. It may also be helpful to provide instructions on how you are currently building and formatting the image.
Ok. I've attached two images - the floppy images for stage 1 and stage 2. I've also attached the two makefiles that I use - one for each stage.

(EDIT) - Strange - I can't see the attachments. Weird...... :(

Ah - found the problem - the forum wasn't allowing the file types. I've renamed them - I've tested the floppy images and they still "partly work" (but they don't get to stage 2).

- Andy (mooseman)

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 11:05 pm
by mooseman
Hi -

I can't attach the floppy images as the forum software isn't allowing me to. So, maybe you can give me an email address to send them to?

Cheers -
- Andy

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 11:15 pm
by neon
Hello,

We provide our email through the site. The preferred address is neon6000 [at] aol [dot] com. It is interesting that the forum software is not allowing it though, I know it used to...We will check over your makefiles but please feel free to send us an email and we will check it here.

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 11:20 pm
by neon
Hello,

We actually recommend using a loopback device following the instructions in the Wiki here. They should work for the series. When you mount the device, you should be able to use cp to copy stage 2.

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 11:30 pm
by mooseman
neon wrote:Hello,

We provide our email through the site. The preferred address is neon6000 [at] aol [dot] com. It is interesting that the forum software is not allowing it though, I know it used to...We will check over your makefiles but please feel free to send us an email and we will check it here.
Hi again -

Thanks for that! I'll send them off to you now.
Bye for now -

- Andy

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Wed Jan 06, 2016 11:32 pm
by mooseman
neon wrote:Hello,

We actually recommend using a loopback device following the instructions in the Wiki here. They should work for the series. When you mount the device, you should be able to use cp to copy stage 2.
Ahhhhh..... interesting..... I hadn't seen those instructions. Thanks for letting me know of that page.
I'll try that out and see how things go. Looks like a very good and detailed page.

- Andy

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Thu Jan 07, 2016 12:24 am
by neon
Hello,

You sent us two image files - you should only have one. Both of the images are mountable, however have a clean root directory (which suggests no attempt was made to copy any files) and does not contain any boot code except the default one installed by mkfs. In other words, both the images are effectively blank - has no stage 1 nor stage 2.

Try the instructions we linked you to above - please let us know if there are any problems with it.

Re: Need a floppy image from Brokenthorn Demo1 Stage2

Posted: Thu Jan 07, 2016 12:47 am
by mooseman
neon wrote:Hello,

You sent us two image files - you should only have one. Both of the images are mountable, however have a clean root directory (which suggests no attempt was made to copy any files) and does not contain any boot code except the default one installed by mkfs. In other words, both the images are effectively blank - has no stage 1 nor stage 2.
Ahhh....... not good.......
neon wrote: Try the instructions we linked you to above - please let us know if there are any problems with it.
Will do. I'll do that tomorrow as I'm quite tired now......
Thank you very much for your help!
- Andy