0
I have ubuntu 10.04 running on VMware on a windows host. I am learning linux device drivers programming. So in the process, I was trying to set up a linux source tree and build and load a custom kernel. I made the two .deb packages (custom kernel) and installed them using dpkg (http://www.howtoforge.com/kernel_compilation_ubuntu_p2). Then when I rebooted, it says : kernel panic, unable to mount root fs on unknown-block(0,0). Please guide what should I do ?
My system has GRUB2.
Also please tell which is the best linux distribution to learn linux device drivers programming. I am finding Ubuntu somewhat difficult as most of the tutorials that I am finding on internet for building kernels are written for generic linux but Ubuntu has a different way. There is not much help available.
1Did you create an initramfs for the new kernel? Without this it might not have all the modules it needs to boot your system. – cdhowie – 2011-01-07T23:43:02.487
I am a newbie. I did not create that. Whatever was mentioned on that page http://www.howtoforge.com/kernel_compilation_ubuntu_p2, I did that. I think .deb package has the initrm file
– pineapple – 2011-01-07T23:44:53.930Deb kernel packages do not contain initramfs files, because these are usually built per-system as part of the install/upgrade process. Have a look at
man mkinitramfs
and try creating one for the new kernel. – cdhowie – 2011-01-07T23:46:39.943Could you recommend a simple linux distro which I can use easily for my purpose. I am stuck for a long time just for building up the kernel and still not succeeded – pineapple – 2011-01-07T23:49:39.753
There is no "best" distribution. You pick the one that is suited for the task, unless you have already chosen one based upon appeal. – None – 2011-01-08T17:05:38.030
I share your opinion that Ubuntu does not strike as a serious development platform (after all serving beginners with desktop systems is what they try to do); their components are often outdated as a result. When it comes to the "top five" distros (as determined by distrowatch.org), I can vouch for Fedora, openSUSE and (currently) Debian-6 meeting the requirements for serious developers. – None – 2011-01-08T17:08:17.420
Well, you should be able to work with distro-agnostic tutorials (the mass of them that you seem to have an aversion to), even on Unbunt. After all, that is the point of being generic. It's not like you are required to make distro-specific binary packages. – None – 2011-01-08T17:09:31.710