Tutorial About BootProg?

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Tutorial About BootProg?

Post by Nathan »

Hello,
I was wondering if someone could make a tutorial about how to use and install BootProg, because I'm having a lot of programs when trying to install it to the boot sector, the program used to write the data to the floppy, keeps saying that my floppy has a FAT16 partition, not FAT12, but I think this is because I'm using Windows XP. :cry:

Best Regards,
Nathan Paulino Campos
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: Tutorial About BootProg?

Post by Combuster »

Why should we make a tutorial on something that does not work?

Edit: I tried to verify your complaints: Windows is not broken. In fact, using bootprog to read the bootsector yields the correct result. Which brings us to the other point: WTF are you using a DOS application
"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: Tutorial About BootProg?

Post by Nathan »

Combuster wrote:Why should we make a tutorial on something that does not work?

Edit: I tried to verify your complaints: Windows is not broken. In fact, using bootprog to read the bootsector yields the correct result. Which brings us to the other point: WTF are you using a DOS application
Hmm, then I'm going to try by using VMWare emulating MS-DOS 6.22...
User avatar
Andr3w
Member
Member
Posts: 76
Joined: Tue Jun 09, 2009 4:09 am
Location: Somewhere

Re: Tutorial About BootProg?

Post by Andr3w »

You are crazy. Use BFI.
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: Tutorial About BootProg?

Post by gravaera »

Hi:

Nathan, I think the video in this link will be useful to you. It's not long either; just fourteen seconds. Please take the time to watch it.

Title:"The most inspiring thing ever said..."
http://www.youtube.com/watch?v=bVVsDIv98TA

--All the best,
gravaera.
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
bobmorton
Posts: 1
Joined: Sun Sep 05, 2010 5:29 pm

Re: Tutorial About BootProg?

Post by bobmorton »

gravaera wrote:Hi:

Nathan, I think the video in this link will be useful to you. It's not long either; just fourteen seconds. Please take the time to watch it.

Title:"The most inspiring thing ever said..."
http://www.youtube.com/watch?v=bVVsDIv98TA

--All the best,
gravaera.
Lolz. I like it.

But Nathan just try to do what qandrew's said, use BFI.
Bob Morton
I'm reviewing my post and hoping to finish my blog today.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Tutorial About BootProg?

Post by Nathan »

bobmorton wrote:
gravaera wrote:Hi:

Nathan, I think the video in this link will be useful to you. It's not long either; just fourteen seconds. Please take the time to watch it.

Title:"The most inspiring thing ever said..."
http://www.youtube.com/watch?v=bVVsDIv98TA

--All the best,
gravaera.
Lolz. I like it.

But Nathan just try to do what qandrew's said, use BFI.
qandrew wrote:You are crazy. Use BFI.
Just one question: What is BFI?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Tutorial About BootProg?

Post by Solar »

Valid question, I admit. My first couple of Google attempts turned up empty, too. But a couple of clicks later:

http://www.nu2.nu/bfi/ - a floppy image tool. I assume that's what qandrew meant.
Every good solution is obvious once you've found it.
User avatar
Andr3w
Member
Member
Posts: 76
Joined: Tue Jun 09, 2009 4:09 am
Location: Somewhere

Re: Tutorial About BootProg?

Post by Andr3w »

Solar wrote:Valid question, I admit. My first couple of Google attempts turned up empty, too. But a couple of clicks later:

http://www.nu2.nu/bfi/ - a floppy image tool. I assume that's what qandrew meant.
Yes, you are right.
I also want to add that there's a stub BFI with links too. :)


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

Re: Tutorial About BootProg?

Post by Nathan »

I've done it using BFI, but now after BOCHS boot it up, I got this error:

Code: Select all

prefetch: getHostMemAddr vetoed direct read, pAddr=0x000a5c00
I've done it using this:

Code: Select all

C:\> bfi -f=test.img -o=BOOTABLE.EXE -b=BOOT16.BIN
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: Tutorial About BootProg?

Post by f2 »

Nathan wrote: I've done it using this:

Code: Select all

C:\> bfi -f=test.img -o=BOOTABLE.EXE -b=BOOT16.BIN
You need to specify the path of the directory which must contain all files that should be included in the floppy image.
BTW, is BOOT16.BIN a FAT16 boot sector? If yes, that's wrong. FAT12 is better suited for floppies.
Nathan wrote: that my floppy has a FAT16 partition, not FAT12
Never seen a floppy with partitions. Well, it's possible, but I'm not sure if Windows recognizes that.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: Tutorial About BootProg?

Post by Nathan »

What I got now was this:

Code: Select all

C:\>bfi -f=test.img -o=STARTUP.BIN -b=BOOT12.BIN path C:\
FindFirstFile() failed
Error code 0x3: The system can not find the path specified


C:\>
I've tried with sub-directories, other drives, but I got the same error. :cry:
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: Tutorial About BootProg?

Post by f2 »

Nathan wrote:

Code: Select all

C:\>bfi -f=test.img -o=STARTUP.BIN -b=BOOT12.BIN path C:\
Replace "path" by the name of the directory.
Example:

Code: Select all

C:\>bfi -f=test.img -o=STARTUP.BIN -b=BOOT12.BIN binaries
"binaries" is the name of the directory which contains all files to include in the image.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
Post Reply