Boot Flat Binary

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Boot Flat Binary

Post by Nathan »

Hello,
I want to know from people here that have more knowledge on this are than me, as I've already tried to search at Google for "Boot+Flat+Binary", I didn't got anything good. Anyway, I've already tried BootProg, but I was having problems to write the boot sector, as the program included said that my floppy was a FAT16, not FAT12(I think this because Windows XP don't show the floppy's as FAT12, only FAT16). Then I'm needing something like BootProg, or better, if someone could send me a BootProg pre-configured floppy image. :)

Best Regards,
Nathan Paulino Campos
User avatar
Andr3w
Member
Member
Posts: 76
Joined: Tue Jun 09, 2009 4:09 am
Location: Somewhere

Re: Boot Flat Binary

Post by Andr3w »

How do you create your floppy images? VFD?
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Boot Flat Binary

Post by Nathan »

VFD, but I've tried with a physical floppy too, and I got the same error. :(
M2004
Member
Member
Posts: 65
Joined: Sun Mar 07, 2010 2:12 am

Re: Boot Flat Binary

Post by M2004 »

Maybe this example helps you a bit?

http://board.flatassembler.net/topic.php?t=6529

Regards
Mac2004
User avatar
Combuster
Member
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:

Re: Boot Flat Binary

Post by Combuster »

Several problems here:
1: Trying only one google query is not enough. You have to be more specific if you get unrelated results. Also, you have (once again) not searched the wiki: link and link
2: You are asking a stupid question: You imply that Bootprog is the only viable option, in line of "How do i use paintbrush to print a word document"
3: You created two threads with the same question.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Boot Flat Binary

Post by Nathan »

mac2004 wrote:Maybe this example helps you a bit?

http://board.flatassembler.net/topic.php?t=6529

Regards
Mac2004
But I can use a Pascal program compiled as *.COM as the secondary binary?
M2004
Member
Member
Posts: 65
Joined: Sun Mar 07, 2010 2:12 am

Re: Boot Flat Binary

Post by M2004 »

I think yes, but I haven't tested it with .com programs.

You need to adjust the bootloader to jump to .com start instead of the current start address.
That should do the trick. You are by all means welcome to adjust the code to suit your needs. :)

regards
Mac2004
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Boot Flat Binary

Post by Nathan »

When I tried to write the second file(using your Assembly one), what I got was this:

Code: Select all

C:\> partcopy k.bin 0 2200 test.img 200
Failed to read source at offset C6D
What I need to do?
M2004
Member
Member
Posts: 65
Joined: Sun Mar 07, 2010 2:12 am

Re: Boot Flat Binary

Post by M2004 »

Hi!

In case of your secondary file being something like 3181 bytes (c6d in hex):
You can ignore the error message, because the partcopy
is just complaining that there's no more data to be read in the source file.


2nd problem that I can see: What is your destination drive?
Writing to floppy A: should be like:

Code: Select all

partcopy k.img 0 b0000 -f0 200
regards
Mac2004
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Boot Flat Binary

Post by Nathan »

I got this error for both commands(first one and the second):

Code: Select all

Divide error
What is wrong now? :cry:
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: Boot Flat Binary

Post by quok »

Nathan,

As combuster pointed out, you have opened two threads on this very same topic. Again, as combuster pointed out, you've not searched the wiki, or google, at all. If you had done that, you'd notice quite a few wiki articles and many links off google that go over how to create bootable disks, and how to replace bootsectors on disks.

You seem to generally want to be spoonfed everything, and don't seem able or willing to do any kind of troubleshooting or debugging for yourself. That really needs to change, or you won't make it here at all, or even as a programmer anywhere.
Locked