flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Bochs and a few questions |
Author |
|
roticv 04 Apr 2005, 00:13
1) I think bochs is a horrible tool. lol
2) You write to the first sector of your floppy, but the bios will load your boot loader to the address 0x7c00h and start from there. |
|||
04 Apr 2005, 00:13 |
|
joao_foscarini 04 Apr 2005, 00:20
roticv wrote: 1) I think bochs is a horrible tool. lol Heh.. I prefer to use bochs then having to reboot my computer to test everything I do. I know, but how do I write to the first sector of the floopy? is there any program for Linux to do it? I've done it before on Windows, but I don't remember what program I used... |
|||
04 Apr 2005, 00:20 |
|
crc 04 Apr 2005, 01:09
Try this to copy the bootsector to the file (change the word 'bootsector' to the name of your bootsector file):
Code: dd if=bootsector of=/dev/fd0 |
|||
04 Apr 2005, 01:09 |
|
crc 04 Apr 2005, 01:15
Quote: 00000000000e[ ] No romimage to load. Is your bochsrc file loaded/valid? That implies that there's a problem with your bochsrc file. Maybe wrong paths to the bios.bin and vgabios.bin files. |
|||
04 Apr 2005, 01:15 |
|
joao_foscarini 04 Apr 2005, 01:37
Thanks.
Uhh.. about that problem, I downloaded the source code and runned ./configure && make && make install. I use Ubuntu Linux.. I might as well download from the Synaptic Package Manager... Okay. I just did... now when I run, I get Quote: 00000000000i[ ] installing x module as the Bochs GUI How do I 'define' it? and that error still there. Hmm... my bochsrc file: Quote: config_interface: textconfig I don't see any bios.bin decleared... hmm... |
|||
04 Apr 2005, 01:37 |
|
Endre 04 Apr 2005, 12:25
joao_foscarini wrote: I don't see any bios.bin decleared... hmm... That's the problem. You may look at /usr/local/share/..., since install path prefix is usually /usr/local by default. Bochs also has a little program (I don't remember its name now, and I'm not at home currently, but you will certainly find it) which makes an empty FD/HDD image file. You can copy (with dd) your bootsector program into it and have bochs boot from it. If you want to copy/delete files (other than bootsector) to/from this image file just mount it as loop device (man mount). |
|||
04 Apr 2005, 12:25 |
|
joao_foscarini 05 Apr 2005, 20:32
Endre wrote:
Hmm... What is the little program that does that? and how exactly do I copy my bootsector program into it? |
|||
05 Apr 2005, 20:32 |
|
crc 06 Apr 2005, 22:46
Quote: romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000 That would be the equivilent of bios.bin. On your system it's called BIOS-bochs-latest. |
|||
06 Apr 2005, 22:46 |
|
Endre 09 Apr 2005, 12:42
Quote: What is the little program that does that? and how exactly do I copy my bootsector program into it? Its name is bximage. It's an interactive and easy to use tool. With this program you can create, for example, a floppy image, that you can copy your bootsector program to (assumed your bootsector program is my_boot.bin and your floppy image file is floppy.img) as follows: Code: dd if=my_boot.bin of=floppy.img bs=512 conv=notrunc Code: mount floppy.img /mnt/floppy -t msdos -o loop Code: dd if=floppy.img of=/dev/fd0 bs=512 |
|||
09 Apr 2005, 12:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.