Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have download bochs 2.6 sourcecode and installed with gdb-stub configuration. I would like to debug linux-kernel 1.0 or 2.0 or 3.0 which sourcecode downloaded from http://www.kernel.org/ with gcc and Bochs. How to compiled the kernel sourcecode and debug it?

share|improve this question

Better configure for User Mode (Linux running as a normal user process). BOCHS is painfully slow, and you still have a kernel in charge that you can't look into easily.

BTW, kernels like 1.0 won't manage UM Linux (that came much later), and I don't know if 2.0 handled it either.

If you want simple, you should perhaps look at Xv6, a V6 Unix (as in Lyon's book) ported to ANSI C.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.