Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9215577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:14:04+00:00 2026-06-18T02:14:04+00:00

I have compiled linux kernel 2.6.39 already, and I would like to simulate it

  • 0

I have compiled linux kernel 2.6.39 already, and I would like to simulate it in BOCHS.Then, How to boot from this compiled kernel in BOCHS?
I have an idea that make a boot .ISO file .But I do not know how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:14:05+00:00Added an answer on June 18, 2026 at 2:14 am

    Bochs seems to lack the ability of directly booting an executable, so you should create a virtual disk disk image first (tutorial). Then you can setup the image as a loop device with kpartx:

    # kpartx -a image.img
    

    This will create loopNp1 under /dev (with N depending on the used loop devices, usually 0).
    Now you can format and mount it:

    # mkfs.ext4 /dev/loopNp1
    # mount /dev/loopNp1 /mnt
    

    You can then copy your kernel image (zImage, bzImage or similar) into /mnt/boot.
    To make it work, however, you will need also a bootloader. You can easily install grub (if you are already using it on your system) with

    # grub-install --boot-directory=/mnt/boot /dev/loopN
    

    You will also need a grub.cfg like

    set timeout=0
    set default=0 # Set the default menu entry
    
    menuentry "Linux" {
       linux /boot/zImage
       boot
    }
    

    Place it under /mnt/boot/grub. Now we are done, umount everything, add to your bochsrc a line like

    ata0-master: type=disk, path=image.img, mode=flat, cylinders=0, heads=0, spt=0, translation=auto

    (note: in some cases you may need to manually specify CHS values) and it should work (well, at least until it tries to run init – but that is a different question).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have compiled my application on Linux (Intel) machine using this command gcc –g
I have encountered the strange problem, that linux c++ compiler includes the files from
I have compiled my kernel(linux-3.6.6) with success in the debian linux version(12.04).(LinuxPraxis ->is the
I have compiled the Linux kernel source for android. After building the source i
I am in a big problem ..i have compiled my c files using linux
I have a following problem: I compiled my application on Linux Ubuntu 9.10 using
I have a piece of C++ code (compiled with g++ under a GNU/Linux environment)
I have a program written in C++, on Linux, compiled with -g. When I
I am making a project that should compile on Windows and Linux. I have
I have compiled a .NET application using Any CPU option. This .NET application uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.