Hay Thanks Jtd.
Actually I am kernel newbies. I am cross compiling 2.6.35 for mips based devised which has Debian lenny 5.0 on it from ubuntu 11.04 host using mipsel-linux-gcc-3.4.4. I may be wrong. I have tried what you said. Following is the o/p for this.
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -u update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic
( I think this has updated the initramfs for my ubuntu host)
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -c -k 2.6.35-1-686 update-initramfs: Generating /boot/initrd.img-2.6.35-1-686 grep: /boot/config-2.6.35-1-686: No such file or directory WARNING: missing /lib/modules/2.6.35-1-686 Device driver support needs thus be built-in linux image! WARNING: Couldn't open directory /lib/modules/2.6.35-1-686: No such file or directory FATAL: Could not open /lib/modules/2.6.35-1-686/modules.dep.temp for writing: No such file or directory
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -c -k 2.6.35 update-initramfs: Generating /boot/initrd.img-2.6.35 grep: /boot/config-2.6.35: No such file or directory WARNING: missing /lib/modules/2.6.35 Device driver support needs thus be built-in linux image! WARNING: Couldn't open directory /lib/modules/2.6.35: No such file or directory FATAL: Could not open /lib/modules/2.6.35/modules.dep.temp for writing: No such file or directory
On 25 October 2011 20:17, jtd@mtnl.net.in wrote:
On Tuesday 25 Oct 2011 19:22:50 Pravinkumar Chavan wrote:
Hay thanks.
First Happy Diwali to you.
When I was compiling the kernel I got error
/opt/linux-2.6.35/scripts/gen_initramfs_list.sh: Cannot open '/opt/linux-2.6.35/usr/initramfs.cpio' make[1]: *** [usr/initramfs_data.cpio] Error 1 make: *** [usr] Error 2
I have the compiled version of 2.6.28. so I in menuconfig for 2.6.35 i
have
given initramfs.cpio path of 2.6.28 and compiled the kernel.
But in 2.6.35/usr/ I dont have initramfs (which contain the init and
other
files required to device bootup) filesystem which is present in 2.6.28
So I copied the finitramfs to 2.6.35/usr/ and again compiled. but no luck with that image as well.
Do I need to create initramfs for this kernel or have to found way to create the initramfs.cpio so that I can boot the kernel without the
2.6.28
initramfs.cpio?
Let's back track a little. initramfs-tools is a standard tool in any base install. I am surprised that it is missing. It means that your install is possibly not ok. What distro do you use? My comments are solely for debian (and should be valid for it's derivatives).
Install initramfs-tools the proper way using apt or aptitude.
If you need any module which is not compiled into the kernel until you can mount root, then you definetly need initramfs. Otherwise you dont. Framebuffer (usually) comes much later, so you maynot require initramfs to reach a shell.
( I dont have clue how can I generate the file.)
man update-initramfs