[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] insmod: Not configured to support old kernels



Hi David,

I would also suggest checking the compiled driver with "/sbin/modinfo
test.ko", just to be sure it was compiled against the right kernel.
modinfo is from the developer machine modutils and should be already in
place.

By the way, I think it may be an issue with my build system, but I had
to change a line in
PetaLinux/tools/linux-i386/microblaze-uclinux-tools/bin/microblaze-uclinux-ld:
- exec $LINKER "$@"
+ exec $LINKER "$@" -melf32microblaze
to be able to compile a kernel module in PetaLinux.

Just my 2 cents suggestion.

Thanks for all your interest and support!
Giulio

Il giorno lun, 27/04/2009 alle 17.53 +1000, Wendy Liang ha scritto:
> Hi David,
> 
> You user configurations looks find. Should not enable "insmod: Pre 2.1
> kernel modules" nor "insmod: 2.1 - 2.4 kernel modules"
> 
> On the kernel side, "CONFIG_MODULES" and "CONFIG_MODULE_UNLOAD" should
> be enabled. (From your kernel configuration, you have done it.)
> 
> It looks like you have your own platform and I am not sure whether you
> have changed the kernel.
> 
> So, please:
> 1. Check whether you're using the latest petalinux source;
> 2. Use standard platform configuration files as a starting point such
> as the configuration files of platform "S3DSP1800A-Rev1-edk101".
> 3. If the module loading functions work properly, change the
> configurations to fit your requirements.
> 
> Regards,
> Wendy
> 
> On Mon, Apr 27, 2009 at 9:48 AM, David Wong <davidikwong@xxxxxxxxx>
> wrote:
>         
>         Hi Wendy,
>         
>         Thanks for help. Yes that was exactly what I did - choose only
>         `insmod:2.6 and above kernel modules` but un-select supporting
>         older kernels.
>         
>         This is what I did:
>         ----------------------------------------------------------
>         y insmod
>         y insmod: lsmod
>         y insmod: modprobe
>         y insmod: rmmod
>         n insmod: Pre 2.1 kernel modules
>         n insmod: 2.1 - 2.4 kernel modules
>         y insmod: 2.6 and above kernel modules
>         n insmod: Model version checks
>         n insmod: Support tainted module checking with new kernels
>         n insmod: load in kernel memory
>         n insmod: Add module symbols to kernel symbol table
>         n insmod: Enable load map (-m) option
>         ----------------------------------------------------------
>         
>         After receiving your email I did 2 builds to progressively
>         turn on the options. Still I get the same error "insmod: Not
>         configured to support old kernels" even after turning on all 3
>         options to support Pre 2.1, 2.1 - 2.4 and 2.6 and above kernel
>         modules.
>         
>         Can you recommend a config options? Thanks a lot.
>         
>         
>         David
>         
>         
>         
>         
>         ___________________________
>         microblaze-uclinux mailing list
>         microblaze-uclinux@xxxxxxxxxxxxxx
>         Project Home Page :
>         http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>         Mailing List Archive :
>         http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>         
>         
> 

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/