Hello,

We use our own kernel source (official linux 3.8.13 plus a drivers) and build 
openwrt for x86 and powerpc 85xx.
Now the modules generated for powerpc don't load. When trying to insmod, then 
the kernel message (e.g.)
  xt_LOG: no symbol version for module_layout
is issued on the console.

I tracked that down to the generation of the *.mod.c files: When I am at the 
top level of the kernel which
was just fully built (make vmlinux), and do the following:
   rm vmlinux System.map
   make modules
the *.mod.c files that are generated are invalid: their
   static const struct modversion_info ____versions[]
is empty. However
   rm vmlinux System.map
   make
generates valid *.mod.c files, and the modules *do* load later.

The removal of vmlinux and System.map comes from openwrt commit d6ce92de580 of 
Wed Apr 25 22:26:40 2007,
where the commit message says:
  add workaround for occasional kernel module build failures related to kernel
  config changes

Can anyone shed some light on this? Why is that apparently no problem with x86? Do we need special openwrt kernel patches so that make modules produces correct modules even in the absence of vmlinux?



--
Nils Rennebarth
Software developer

bintec elmeg security GmbH

Mönchhaldenstraße 28
D-70191 Stuttgart
Germany

Tel: +49-711-900600-64
Email: nils.renneba...@bintec-elmeg.com
www: www.bintec-elmeg.com

Location: Nuremberg, Local Court Nuremberg, HRB 25481<br>
Managing Director: Bernd Büttner

--------------------------------
The information contained in this e-mail has been carefully researched,
but the possibility of it being inapplicable in individual cases cannot
be ruled out. We therefore regret that we cannot accept responsibility
or liability of any kind whatsoever for the correctness of the
information given. Please notify us if you discover that information is
inapplicable.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to