没有引导程序启动过程中发现 [英] No bootloader found on bootable medium

查看:261
本文介绍了没有引导程序启动过程中发现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前用的mkisofs,DD和组装播放。我创建了简单的bootloader:

I'm currently playing with mkisofs, dd and assembly. I've created simple bootloader:

BITS 16
;-------------------
;SIMPLE BOOTLOADER
;-------------------
start:
    mov ax, 0x07C0
    mov ds, ax

    mov si, welcmsg
    call printstr

    mov ah, 0Eh
    mov al, 65
    int 10h

    cli;
    hlt;    

printstr:
    pusha
    mov ah, 0Eh
    .loop:
        mov al, byte [ds:si]

        cmp al, 0
        jz .end
        int 10h

        inc si
        jmp .loop
    .end:
        popa
    ret
;-------------------
;DATA
;-------------------
welcmsg: db "Welcome!", 0x0D, 0x0A, 0
;-------------------
;FILL
;-------------------
times 510-($-$$) db 0
dw 0xAA55

我使用NASM编译在Linux上。编译成功后,我复制了512字节的内容.bin文件和我粘贴它与空Okteta十六进制编辑器.IMG文件。

I've compiled it on linux using NASM. After successful compilation I copied content of 512 byte .bin file and I pasted it to empty .img file with Okteta hex editor.

dd if=/dev/zero of=boot.img bs=512 count=2880

然后我用的mkisofs创建.iso文件。

Then I used mkisofs to create .iso file.

mkisofs -U -D -floppy-boot -b  boot.img -c boot.catalog -hide boot.img -hide boot.catalog -V "test" -iso-level 3 -L -o test.iso content

我加入这个.iso映像虚拟机设置,我开始了。
我的问题是面对VirtualBox的错误消息:

I have added this .iso image to virtual machine settings and I started it. Face of my problem is VirtualBox error message:

FATAL: No bootable medium found.

有谁知道我做错了,我怎么可以让它工作吗?请帮助。

Does anybody know what am I doing wrong and how can I make it working? Please help.

推荐答案

下面是别人谁是致力于开发对<一个引导程序href=\"http://stackoverflow.com/questions/4690300/how-to-make-an-bootable-isonot-cd-or-flash-drive-for-testing-your-own-boot-loa\">SO.你可能想看看 OSDev 更多的想法,它从无到有一种与构建社区挂钩乡亲。至于为什么你的努力不开机,我不知道是否有你需要检查的使用VirtualBox作为一个引导程序测试环境。正如我以前说过,你做了一个很好的开始,一切顺利。干杯!

Here is someone else who was working on developing a bootloader on SO. You might want to check out OSDev for more ideas, and hook up with a community of build it from scratch kind of folks. As for why your effort doesn't boot, I wonder if there is something that you need to check out Using Virtualbox as a bootloader testing environment. As I said before, you've made a great start, all the best. CHEERS!

这篇关于没有引导程序启动过程中发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆