[Prism54-users] Trouble compiling with 2.6-test9

Michael Bienia michael@vorlon.ping.de
Sun, 2 Nov 2003 22:48:34 +0100


On 2003-11-02 10:11:03 -0800, Jim Mack wrote:
> I am trying to compile the drivers into the kernel and keep getting the
> following errors while compiling:
> 
> drivers/built-in.o(.text+0x90ddd): In function `init_module':
> : multiple definition of `init_module'
> kernel/built-in.o(.text+0x17b68): first defined here
> ld: Warning: size of symbol `init_module' changed from 3 in
> kernel/built-in.o to 116 in drivers/built-in.o
> drivers/built-in.o(.text+0x8c6c8): In function `isl38xx_upload_firmware':
> : undefined reference to `request_firmware'
> drivers/built-in.o(.text+0x8c76e): In function `isl38xx_upload_firmware':
> : undefined reference to `release_firmware'
> make[1]: *** [.tmp_vmlinux1] Error 1
> make: *** [all] Error 2
> 
> I have tried the 10-31 and 11-01 kernel patches, but neither seem to help.
> Has anyone seen this before? What am I doing wrong?

Make sure you have
CONFIG_HOTPLUG (Bus options -> Support for hot-pluggable devices) and
CONFIG_FW_LOADER (Device Drivers -> Generic Driver Options -> Hotplug
firmware loading support) enabled.
I've build the prism54 driver as a module which was a good decision
because I've some problems with loading the module at system start (but
the module loads fine when the system has completed booting).
And don't forget to mount sysfs else the firmware upload will fail.

Michael