[Angstrom-devel] Kernel modules build/install issues, was: Re: Fwd: ipaq h4100 bluetooth and wifi issues

Koen Kooi k.kooi at student.utwente.nl
Tue Sep 11 14:25:39 CEST 2007


Quoting Paul Sokolovsky <pmiscml at gmail.com>:

> Hello Daniel,
>
> Tuesday, September 4, 2007, 1:39:07 AM, you wrote:
>
>
> []
>
> > On the bluetooth side of things I am still getting a "segmentation fault"
> > when I try to load the h4000_bt.ko module.  Any ideas?  I have attached the
> > output of dmesg to this email.  Here is my configuration:
>
>   The attachment didn't get thru, but it is the same "module already
> loaded" error you reported before, right? Well, I finally seem to
> have understood where it comes from.
>
>   When kernel config in OE changes, it could happen that some
> driver goes from "modular" to "builtin" state. In other words, there
> used to be a package for that module but now it's not needed. However,
> the older package is still in deploy dir. If such a module is
> RRECOMMENDed somewhere, it will go into image, and then have a chance
> to be loaded. As all those symbols are already defined in kernel,
> there's a small (yet harmless) kaboom.
>
>   So, on each kernel recipe rebuild (and only then), one needs to
> manually remove (or move to morgue dir to be more correct) all
> previous kernel module packages:
>
> rm tmp/deploy/glibc/ipk/h4000/kernel-module-*
>
>   Again, this should happen only if kernel is to be rebuilt, not
> unconditionally before any image rebuild.
>
> > ipaq - h4100
> > version - Linux version 2.6.21-hh12 (koen at bitbake) (gcc version 4.1.2) #1
> > PREEMPT Tue Aug 28 02:58:07 CEST 2007
>
>   And this means that this issue happens on official Angstrom build
> server too,

think about feed servers as well and you'll start to understand that all those
random defconfig changes should have more thought behind them

> with noone to do cleanups manually, of course. Koen,
> Richard, any ideas how to automate it? Do we speak about adding a
> pre-package task which would fish in deploy dir?

no

> Would this be ok?

no

> (But hardly any other choice of course.)

educating people that change defconfigs more often than they change socks?



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Angstrom-distro-devel mailing list