LinHES Forums
http://forums.linhes.org/

Building a custom kernel for 6.04
http://forums.linhes.org/viewtopic.php?f=25&t=22074
Page 1 of 1

Author:  tjc [ Sun Mar 27, 2011 2:14 am ]
Post subject:  Building a custom kernel for 6.04

Maybe I've just been battling hardware problems too long today and have gone stupid, but my searches are coming up blank on how to build a custom kernel under R6. I need a kernel that is compatible with 6.04 but which doesn't have the r8169 NIC driver built-in.

This provided me with some of the bits needed: http://knoppmyth.net/phpBB2/viewtopic.php?t=19849 but when I tried to use makepkg -o to get the source it spewed up an error after downloading the source for kernel26 (from kernel26-2.6.28.5-5.src.tar.gz):
Quote:
==> ERROR: Integrity checks (md5) differ in size from the source array

Can anybody point me to some more recent directions or provide the necessary clues?

Or maybe even just tell me how to disable that driver and let the system pick another one that works better...

Author:  bigtoedsloth [ Sun Mar 27, 2011 3:19 am ]
Post subject: 

I think that might be a makepkg error, rather than a compile error. Your PKGBUILD file has a source line and a md5sums line. It sounds like that error might mean that the number of entries in the md5sums line is different to the number in the source line.

Author:  tjc [ Sun Mar 27, 2011 8:16 am ]
Post subject: 

Spot on! Guess I was too stupid, it didn't even occur to me to google.

So now the question becomes, why is the package broken when it's the version # (kernel26-2.6.28.5-5.src.tar.gz) from the core-testing repo that matches the installed kernel, and where do I get a good one?
Code:
[root@black2 ~]# pacman -Qs kernel26
local/kernel26 2.6.28.5-5 (base)
    The Linux Kernel and modules
local/nvidia-173xx 173.14.25-1
    NVIDIA drivers for kernel26, 173xx branch.
local/zd1211-firmware 1.4-2
    Firmware for the in-kernel26 zd1211rw wireless driver

Author:  christ [ Sun Mar 27, 2011 8:42 am ]
Post subject:  Re: Building a custom kernel for 6.04

tjc wrote:
Or maybe even just tell me how to disable that driver and let the system pick another one that works better...

Have you looked at removing with either modprobe -r or rmmod? And inserting with modprobe.

You could test with that and then modify the modules on boot.

Personally I would build my own driver only rather than an entire kernel and use the above tools.

Author:  tjc [ Sun Mar 27, 2011 8:52 am ]
Post subject: 

My best current information is that the r8169 driver is built into the kernel and not a module. My attempts to remove and blacklist it assuming that it was a module got me nowhere.

Author:  christ [ Sun Mar 27, 2011 9:04 am ]
Post subject: 

tjc wrote:
My best current information is that the r8169 driver is built into the kernel and not a module.

I was afraid of that. You know, you may just be better off inserting a compatible NIC rather than creating a custom kernel. I bet you have one laying around but I don't know if you have the spare slots.

Author:  tjc [ Sun Mar 27, 2011 9:27 am ]
Post subject: 

I do have a spare PCI NIC card, but it's only an old 100Mbps one, and the one PCI slot that isn't blocked by the video card is already spoken for.

On the driver front, I looked at the version in 2.6.28 versus the working one in 2.6.37 and it's been completely overhauled. The newer one is ~25Kb smaller and still supports more cards.

Author:  nbdwt73 [ Sun Mar 27, 2011 9:36 am ]
Post subject: 

tjc, take a look at this post - it may be similar

http://mysettopbox.tv/phpBB2/viewtopic.php?t=19448

Author:  tjc [ Sun Mar 27, 2011 9:40 am ]
Post subject: 

It is. That's what lead me to the source of the problem, unfortunately the fix described there no longer applies. As far as I can tell the posters were using R5.5 not R6.xx.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/