Fedora kernel rpmbuild query
Hi List, I do the following on Fedora kernel src rpm : (1) rpm -ivh kernel-xxx.rpm (2) Go to ~/rpmbuild/SPECS dir (2) rpmbuild -bp kernel.specs --nodeps then in the ~/rpmbuild/BUILD/ dir I get kernel-xxx dir where in there are two source dir - (1) linux-xxx A (2) vanilla-xxx B Why are these two dir created - How do I use the configuration file /boot/config-xxx to build vmlinuz and initrd image ? Which dir A or B sould I use for building ? -- Shraddha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Fedora kernel rpmbuild query
Hi Shraddha, Please find my comments below, On Wed, Dec 26, 2012 at 1:35 PM, Shraddha Kamat sh200...@gmail.com wrote: Hi List, I do the following on Fedora kernel src rpm : (1) rpm -ivh kernel-xxx.rpm (2) Go to ~/rpmbuild/SPECS dir (2) rpmbuild -bp kernel.specs --nodeps then in the ~/rpmbuild/BUILD/ dir I get kernel-xxx dir where in there are two source dir - (1) linux-xxx A (2) vanilla-xxx B Why are these two dir created - How do I use the configuration file /boot/config-xxx to build vmlinuz and initrd image ? Directory B is vanilla kernel source which is standard kernel source. This is a same source which is available on kernel.org Directory A is actually for source which has been modified by user. In this case it will have patches from FEDORA above standard kernel from kernel.org. To build vmlinuz and initrd image copy /boot/config-xxx to Directory A (linux-xxx) and run sudo make oldconfig then follow normal compilation steps Which dir A or B sould I use for building ? You should be using directory A -- Shraddha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Thanks, Pritam ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Fedora kernel rpmbuild query
On Wed, Dec 26, 2012 at 1:35 PM, Shraddha Kamat sh200...@gmail.com wrote: Hi List, I do the following on Fedora kernel src rpm : (1) rpm -ivh kernel-xxx.rpm (2) Go to ~/rpmbuild/SPECS dir (2) rpmbuild -bp kernel.specs --nodeps then in the ~/rpmbuild/BUILD/ dir I get kernel-xxx dir where in there are two source dir - (1) linux-xxx A (2) vanilla-xxx B Why are these two dir created - How do I use the configuration file /boot/config-xxx to build vmlinuz and initrd image ? Which dir A or B sould I use for building ? i dunno why you are doing these things, all these look hard path. this is what i do: take new kernel from ftp.kernel.org or git.kernel.org. make defconfig make -j10 make modules_install make install there are some gliches to it, say you have to select the filesystems correctly like if you have ext2, in .config enable CONFIG_EXT2_FS=y or what ever the filesystem currently you have. and your ethernet driver (as of now compile the ethernet drivers as modules) (make menuconfig then networking then ethernet ) same with the wireless drivers too, (make menuconfig then networking then wireless ) the names i mentioned may change but please go through google once posting here :) thanks, -- Shraddha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Fedora kernel rpmbuild query
On Wed, 2012-12-26 at 14:29 +0530, Pritam Bankar wrote: Hi Shraddha, Please find my comments below, On Wed, Dec 26, 2012 at 1:35 PM, Shraddha Kamat sh200...@gmail.com wrote: Hi List, I do the following on Fedora kernel src rpm : (1) rpm -ivh kernel-xxx.rpm (2) Go to ~/rpmbuild/SPECS dir (2) rpmbuild -bp kernel.specs --nodeps then in the ~/rpmbuild/BUILD/ dir I get kernel-xxx dir where in there are two source dir - (1) linux-xxx A (2) vanilla-xxx B Why are these two dir created - How do I use the configuration file /boot/config-xxx to build vmlinuz and initrd image ? Directory B is vanilla kernel source which is standard kernel source. This is a same source which is available on kernel.org Directory A is actually for source which has been modified by user. In this case it will have patches from FEDORA above standard kernel from kernel.org. To build vmlinuz and initrd image copy /boot/config-xxx to Directory A (linux-xxx) and run sudo make oldconfig then follow normal compilation steps Which dir A or B sould I use for building ? You should be using directory A Sure, I guessed so and did this only, but just to confirm I posted in the list It worked ! Thank you very much for you reply! -- Shraddha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Thanks, Pritam ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Fedora kernel rpmbuild query
On Wed, 2012-12-26 at 14:50 +0530, devendra.aaru wrote: On Wed, Dec 26, 2012 at 1:35 PM, Shraddha Kamat sh200...@gmail.com wrote: Hi List, I do the following on Fedora kernel src rpm : (1) rpm -ivh kernel-xxx.rpm (2) Go to ~/rpmbuild/SPECS dir (2) rpmbuild -bp kernel.specs --nodeps then in the ~/rpmbuild/BUILD/ dir I get kernel-xxx dir where in there are two source dir - (1) linux-xxx A (2) vanilla-xxx B Why are these two dir created - How do I use the configuration file /boot/config-xxx to build vmlinuz and initrd image ? Which dir A or B sould I use for building ? i dunno why you are doing these things, all these look hard path. this is what i do: take new kernel from ftp.kernel.org or git.kernel.org. make defconfig make -j10 make modules_install make install I am not building upstream kernel - this is a kernel supplied by the distro with custom patches. there are some gliches to it, say you have to select the filesystems correctly like if you have ext2, in .config enable CONFIG_EXT2_FS=y or what ever the filesystem currently you have. and your ethernet driver (as of now compile the ethernet drivers as modules) (make menuconfig then networking then ethernet ) same with the wireless drivers too, (make menuconfig then networking then wireless ) the names i mentioned may change but please go through google once posting here :) Thank you very much for you reply. thanks, -- Shraddha ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies