Jump to content
  • Advertisement
Sign in to follow this  
francoisdiy

Trying to Compile a New Linux Kernel for Debian

This topic is 3405 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This was like a week ago, but I was trying to compile a new kernel (2.6.x) or something like that. So I went through all of the steps to compile it and then I rebooted but I got a message: Kernel Panic - Cannot mount to unknown block (0, 0) So what did I miss? Do I need to do something with init_rd?

Share this post


Link to post
Share on other sites
Advertisement
The best way to compile a kernel for a Debian distro is to download the kernel source package from your distro's source repository and use dpkg-buildpackage, just like with any other software. After all, it's just software.

Don't forget you may need to update your modules on your rootfs.

Share this post


Link to post
Share on other sites
Have a look at the "kernel-package" package, which provides make-kpkg. That tool allows you to build Debian packages from "fresh" kernel source. Remember to build the initrd image (--initrd option to make-kpkg).

There is an issue with more recent installations preventing the initrd image to be properly created: Debian bug #528373

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!