Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Friends, I successfully build the 2.6.21 under fedora 7. I like to debug the kernel under Bochs. I build the Bochs under fedora 7 with gdbstub enabled. With bochs ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    10

    kernel debug under bochs


    Hi Friends,

    I successfully build the 2.6.21 under fedora 7. I like to debug the kernel under Bochs. I build the Bochs under fedora 7 with gdbstub enabled. With bochs tools, I can create "img" file and partition it as Linux/minix . But how to transfer the built kernel into this "img" file? I means how to let the kernel start it?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Aug 2007
    Posts
    3

    Try LILO or GRUB

    Quote Originally Posted by xuedan View Post
    Hi Friends,

    I successfully build the 2.6.21 under fedora 7. I like to debug the kernel under Bochs. I build the Bochs under fedora 7 with gdbstub enabled. With bochs tools, I can create "img" file and partition it as Linux/minix . But how to transfer the built kernel into this "img" file? I means how to let the kernel start it?

    Thanks

    You must have a loader first .

    Place the image into a disk where the loader can find it .

    eg: place the image in the rootfs and edit the menu.lst if
    grub.

    (wish you can understand my poor english)

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Posts
    10

    How to create root system?

    I happen to realize I must create the root system so that kernel can find the residence. But how to create the root system?

    Thanks

  4. #4
    Just Joined!
    Join Date
    Aug 2007
    Posts
    3
    Quote Originally Posted by xuedan View Post
    I happen to realize I must create the root system so that kernel can find the residence. But how to create the root system?

    Thanks
    1: use bximage command to make a hard disk image
    2: use mke2fs command to make ext2/ext3 filesystem on
    the image
    3: creat some directorys and files like "/bin" "/etc/rc" ,etc.

    Then you can use the loader to load the kenel on the disk image.
    hope it can work.

    Good luck!

    Tell me when you get it.

    (forgive my poor english )

  5. #5
    Just Joined!
    Join Date
    Aug 2007
    Posts
    10

    Fail to install grub on image created by bximage

    I still have trouble of installing grub on the image HD created by bximage.

    I install it but no response when booting it.

    Is there any advice?

    Thanks

Posting Permissions

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