[mythtv-users] ATI remote with FC2 / mythtv 0.16 after Jarod's guide

David George david at thegeorges.us
Tue Oct 19 12:25:55 UTC 2004


On 10/19/2004 3:32 AM, Michael T. Dean wrote:

> Mercury Morris wrote:
>
>> On Mon, 18 Oct 2004 12:22:08 -0400, David George 
>> <david at thegeorges.us> wrote:
>>  
>>
>> OK.  make bzImage seems reasonable.  In lieu of going thru
>> the huge Kernel-Rebuild-Guide, I'm trying to stumble thru a
>> Kernel Compilation guide from the local Linux Users Group.
>> It has helped me before, but that was for 2.4 kernels.
>>
>> I started with the following steps, and the last one listed is
>> well under way.
>>
>> make dep
>> make clean
>> make bzImage 1>>rept
>> More later.
>>  
>>
> The build procedure for Linux 2.6 has changed rather significantly.  I 
> use***:
>
> make mrproper 2>&1 | tee mkmrlog &&
> make menuconfig
> make 2>&1 | tee mklog &&
> make modules_install 2>&1 | tee mkmodlog
> cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.8.1
> cp System.map /boot/System.map-2.6.8.1
> ln -sf System.map-2.6.8.1 /boot/System.map
>
> Note that there's no make dep (done automatically) and no make 
> bzImage--all 2.6 kernels use bzip2 compression.  Also, the "make 
> mrproper" is (still) very important, but note that it *will* remove 
> your ".config" file--so make sure you keep a backup copy elsewhere if 
> you want to reuse the configuration information.
>
Nice, you also use logging. 

In Mercury's case he was asking how to get just the ati_remote module 
built without having to completely compile his own kernel.  We found 
that he couldn't just take the Fedora sourcecode rpm and do a make 
modules on it so I suggested make bzImage before the make modules just 
to get the kernel built in case there were prerequisites.

For the uninitiated following this thread that want to learn about 
building kernels, the last three lines (the cp's and ln) can be replaced 
by 'make install'.  make install also has the nice ability to 
automatically add your kernel to the grub.conf for those running grub.  
It doesn't automatically switch grub to boot this new kernel by default 
though (which is wise until you test it).

Also, heed Mike's warnings about make mrproper, both being necessary and 
removing your .config.  Whenenver I change my .config I also make a copy 
in kernel.config so that it will survive a mrproper.

--
David


More information about the mythtv-users mailing list