Find the answer to your Linux question:
Results 1 to 10 of 10
how can i boot my kernel .bin file with QEMU? i tried Code: qemu-img convert /boot/myKernel.bin -f cow myKernel.img which worked, but then when i tried Code: qemu -dummy-net myKernel.img ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    9

    QEMU


    how can i boot my kernel .bin file with QEMU?

    i tried
    Code:
    qemu-img convert /boot/myKernel.bin -f cow myKernel.img
    which worked, but then when i tried
    Code:
    qemu -dummy-net myKernel.img
    but that doesn't do anything. i also tried
    Code:
    qemu -dummy-net -nographic xbos.img
    that freezes the konsole.

    is it possible to compile my kernal as a disk image or do i have to convert it somehow?
    note: i'm not trying to boot a linux kernel, its a kernel that i'm making myself

  2. #2
    Just Joined!
    Join Date
    Apr 2005
    Posts
    9
    anyone, anything?

  3. #3
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    I did a Google search on qemu.
    I am not going to pretend to understand this this subject. Acc ording to this link, only certain OS's are supported.

    http://fabrice.bellard.free.fr/qemu/

    Check the FAQ on that site.

    Sorry I couldn't be of more help.

    This site will probably be of help.

    http://m2.dad-answers.com/qemu-forum/
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Apr 2005
    Posts
    9
    i figure that since it is an emulator, and all it does is execute the machine code, it should be able to work with most OSes, especially a tiny kernel like mine, which all it does right now is write to the screen...

  6. #5
    Just Joined!
    Join Date
    Oct 2004
    Location
    Warsaw, Poland
    Posts
    87
    Quote Originally Posted by littlewing
    i figure that since it is an emulator, and all it does is execute the machine code, it should be able to work with most OSes, especially a tiny kernel like mine, which all it does right now is write to the screen...
    Maybe you should try pure bochs instead?

  7. #6
    Just Joined!
    Join Date
    Apr 2005
    Posts
    9
    i tried bochs but couldn't get that to work either.

    does anyone know how to convert a .bin file to .img?

  8. #7
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Did you try that QEMU forum link I gave you?
    It seems they would be more knowledgeable about QEMU and your problem than us.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  9. #8
    Just Joined!
    Join Date
    Apr 2005
    Posts
    9
    yeah i tried it thanks, i'm waiting for a reply

  10. #9
    Just Joined!
    Join Date
    Oct 2011
    Posts
    1
    I made a surport for another CPU ,and I want to test its instructions .How can I do it? I compiled a program qemu-system-XXX, so I want to test instruction ,and want to know I made it right or wrong.

  11. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by zhufeng View Post
    I made a surport for another CPU ,and I want to test its instructions .How can I do it? I compiled a program qemu-system-XXX, so I want to test instruction ,and want to know I made it right or wrong.
    Hi and Welcome !

    This thread is very. I would suggest you to start a new thread.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •