You are not logged in.

#1 2009-05-23 21:57:52

jlimon
Member
Registered: 2009-05-05
Posts: 35

/lib/firmware conflicts with custom kernel

Hi, I followed the Wiki's guide to ABS building of a custom kernel. Normally I wouldn't care too much if it was maintained by pacman or not, but sadly it HAS to be for the nvidia driver to properly work (and probably my wireless driver's firmware package too..)

It built fine and made the package, but when I go to install it I get file conflicts from kernel26-firmare in /lib/firmware

Do I just disable all kernel firmware in menuconfig and let the kernel26-firmware package handle that?


Favorite Software:
Openbox3 - Mutt - Vim - GNU Screen

Offline

#2 2009-09-07 10:41:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,598
Website

Re: /lib/firmware conflicts with custom kernel

I too have this problem using a custom kernel I build via makepkg.  I had to add the force flag when installing to overwrite the stock arch firmware items.  Probably not the right thing to do.  Maybe others will reply with the right answer.

Last edited by graysky (2009-09-07 10:42:08)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2009-09-07 10:59:01

D-Locked
Member
Registered: 2008-08-22
Posts: 33

Re: /lib/firmware conflicts with custom kernel

You can check out how some other custom kernels handle this situation.
http://aur.archlinux.org/packages/kerne … 1/PKGBUILD

In this particular example,

rm -fr ${pkgdir}/lib/firmware

Offline

#4 2009-09-07 11:02:33

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: /lib/firmware conflicts with custom kernel

Yes, they remove /lib/firmware, but what if I'm using 2.6.31-rc all the time and while upgrading to 2.6.30-5-ARCH wich I don't boot at all messes up with my /lib/firmware. My solution was to back up /lib/firmware, update then replace /lib/firmware with the custome one I've backed up...

Offline

#5 2009-09-07 11:53:19

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: /lib/firmware conflicts with custom kernel

If you build your own kernels, you need either to remove the firmware dir in the package (like the official PKGBUILD does) or uninstall the kernel26-firmware package (I do the latter).

Combuster: there's nothing 'custom' about the firmware in your own kernel build, if you don't remove it in the PKGBUILD. Of course they might be differences between kernel versions but in general I don't think that's such a big deal it will break anything...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2009-09-07 12:00:55

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: /lib/firmware conflicts with custom kernel

Isn't kernel26-firmware required by kernel26, if I pacman -Rd it could it potentialy make trouble with future kernel upgrades?

I feared that because I almost always run and test the rc kernels (I compile it in the oldfashioned style from kernel source tarball, no abs, aur etc) it could brake something but I think u'r right, possibilities are minimal...

Last edited by combuster (2009-09-07 12:03:35)

Offline

#7 2009-09-07 13:05:44

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: /lib/firmware conflicts with custom kernel

I just build one package including the kernel, modules and firmware. But then again, I haven't got the official kernel26 on my system at all. If you keep kernel26 alongside your own builds with different versions, then conflicts might arise (you might get firmware mismatches (newer kernels requiring newer versions of e.g. wireless firmware) but those can be easily discovered by checking dmesg - and they're few and far in between.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2009-09-07 13:22:41

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: /lib/firmware conflicts with custom kernel

Please B, because I never boot with arch kernel26, is it safe to just pacman -R kernel26 ???

I'll try it now big_smile

:: glibc: requires kernel-headers>=2.6.30.5

I can't remove kernel-headers, I could Rd it but... Please advise smile

Last edited by combuster (2009-09-07 13:25:31)

Offline

#9 2009-09-07 13:38:19

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: /lib/firmware conflicts with custom kernel

kernel-headers isn't related to the kernel26 and kernel26-firmware packages (although the name would make you think otherwise). A lot of packages need kernel headers to build on so that's one of the reasons why it's a split out package. You need to keep it.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#10 2009-09-07 13:41:06

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: /lib/firmware conflicts with custom kernel

Ty B...

Offline

#11 2009-09-07 14:18:41

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: /lib/firmware conflicts with custom kernel

You could also replace kernel26-firmware with kernel26-firmware-git. Usually firmware files aren't removed in newer snapshots, they only add new ones. Thus it is quite save to replace it with a newer snapshot.

Offline

Board footer

Powered by FluxBB