Errors in booting a new image built
Hi All, I am trying to setup linux development environment. I did the following steps to get my first work environment. 1. Used my Laptop Dell Inspiron N5030 : (Pentium R Dual Core T4500) 2. Downloaded Ubuntu 10.10 and installed with partition options given by Ubuntu. Now its a dual boot operating system. 3. Installed Git and pulled the source code using instructions at http://linux.yyz.us/git-howto.html#download_first_time (git pull git:// git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git ) 4. Now did make config ( let the default options take except for selecting processor type) 5. Now I built the kernel using 'make -j8 bzImage 6. Copied the image to /boot/newkernel 7. Updated the /boot/grub/grub.cfg to take another menu entry , image pointing to /boot/newkernel. 8. Removed initrd - which should be specific to distributions. When I boot this image , I get an error saying can not open root device.( https://picasaweb.google.com/sadasiva.reddy/KernelError?authkey=Gv1sRgCOLo_o... ) Could any one please guide me how to setup this root file system or any thing else that I need to do to be able to boot this kernel that I build. Appreciate your help in this regard. I understand that my knowledge or initial groundwork is not a lot. Pardon my ignorance as I am a new starter to the Linux Kernel world. Thanks, SADA
On Sun, Feb 27, 2011 at 11:03 PM, SADA SIVA REDDY S <sadasiva.reddy@gmail.com> wrote:
Hi All, I am trying to setup linux development environment. I did the following steps to get my first work environment.
Removed initrd - which should be specific to distributions.
You seems to have a wrong idea of what initrd is. initrd is a initial ram disk file system that is mounted before your root file system and contains drivers compile as a module that are needed to mount your real root filesystem. This is needed if your kernel doesn't have built-in support for the partition being mounted in / A good explanation is found here: http://www.ibm.com/developerworks/linux/library/l-initrd.html
When I boot this image , I get an error saying can not open root device.( https://picasaweb.google.com/sadasiva.reddy/KernelError?authkey=Gv1sRgCOLo_o...)
Could any one please guide me how to setup this root file system or any thing else that I need to do to be able to boot this kernel that I build.
The problem seems to be that your kernel doesn't have support for your filesystem (or it has support has a kernel module but because you don't have an initial ramdisk that module can't be loaded) You have to either compile your kernel with buil-in support for your filesystem or create an initrd with: cd /boot/ && update-initramfs -c -k newkernel An excelent book on Linux kernel configuration and building is Greg's KH "Linux kernel in a nutshell" http://www.kroah.com/lkn/ Best regards, -- ----------------------------------------- Javier Martínez Canillas (+34) 682 39 81 69 PhD Student in High Performance Computing Computer Architecture and Operating System Department (CAOS) Universitat Autònoma de Barcelona Barcelona, Spain
Hi Sada On Sun, Feb 27, 2011 at 10:03 PM, SADA SIVA REDDY S <sadasiva.reddy@gmail.com> wrote:
Hi All, I am trying to setup linux development environment.
You could also try Robert P J Day's excellent guide to this (which uses Ubuntu as an example): http://crashcourse.ca/introduction-linux-kernel-programming/lesson-1-buildin... I use this formula I picked up from his course on my Ubuntu boxes and it's always worked for me: $ make then $ sudo make modules_install $ sudo make install $ sudo update-initramfs -c -k 2.6.35-crash+ $ sudo update-grub Replace 2.6.35-crash+ with the name of your kernel. BTW if you want to sign up for Robert's course I can recommend it as I found it very helpful. Although many of the lessons (like this kernel installing one) are free (thanks Rob). I can second Javier's recommendation of "Linux kernel in a nutshell" which is really a little manual for making and customizing a kernel (not a guide to the kernel itself as the title suggests). It'll help you cut out a lot of the crud you don't need in your config and possibly also help you discover some stuff you didn't know about that you _do_ want. Cheers Julie
participants (3)
-
Javier Martinez Canillas -
julie Sullivan -
SADA SIVA REDDY S