Subject: Re: Link failure - custom kernel with if_rum defined
To: None <paul@whooppee.com>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 05/07/2007 02:53:00
On Sun, 6 May 2007 15:41:27 -0700 (PDT)
Paul Goyette <paul@whooppee.com> wrote:

> Sources updated via CVS at "Sun May  6 21:34:35 UTC 2007"
> 
> Kernel config file contains
> 
>    	rum*            at uhub? port ?
> 
> Got the following errors:
> #      link  LAPPY/netbsd
> /usr/obj/tooldir/x86_64/i386/bin/i386--netbsdelf-ld -Map netbsd.map
> --cref -T /u
> sr/src/sys/arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o
> netbsd ${
> SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
> if_rum.o: In function `rum_init':
> if_rum.c:(.text+0x1b73): undefined reference to `firmware_open'
> if_rum.c:(.text+0x1b86): undefined reference to `firmware_get_size'
> if_rum.c:(.text+0x1b93): undefined reference to `firmware_malloc'
> if_rum.c:(.text+0x1bc0): undefined reference to `firmware_read'
> if_rum.c:(.text+0x1bcd): undefined reference to `firmware_close'
> if_rum.c:(.text+0x1ca5): undefined reference to `firmware_free'
> if_rum.c:(.text+0x1ccf): undefined reference to `firmware_free'
> if_rum.c:(.text+0x1fd6): undefined reference to `firmware_free'
> if_rum.c:(.text+0x229a): undefined reference to `firmware_close'
> *** [netbsd] Error code 1
> 1 error
> 
> nbmake: stopped in /usr/obj/objdir/i386/sys/arch/i386/compile/LAPPY
> 
> I'm not sure why sys/dev/firmload.c (which seems to be where those 
> routines get defined) isn't getting included...

Can you please try this patch:

Index: files.usb
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/files.usb,v
retrieving revision 1.74
diff -b -u -r1.74 files.usb
--- files.usb   13 Mar 2007 13:51:53 -0000      1.74
+++ files.usb   7 May 2007 00:51:52 -0000
@@ -261,7 +261,7 @@
 attach ral at usbdevif with ural
 file   dev/usb/if_ural.c               ural
 
-device rum: ether, ifnet, arp, wlan
+device rum: ether, ifnet, arp, wlan, firmload
 attach rum at usbdevif
 file   dev/usb/if_rum.c                rum

-- 
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish