USB support ...

peter bartoli peter at alphafight.net
Mon Sep 22 12:13:55 PDT 2003


On Monday, September 22, 2003, at 09:01  AM, John-Mark Gurney wrote:
> have you rerun configure?

You mean config, right?  Yes, I did.

I played around with it a little more last night / early morning and  
figured out that it was only the ukbd device that seemed to create  
problems.  I was able to successfully build so long as I left this  
option commented out.

Here's more of my shell session ...

<from vi>
# USB support
#device         uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
#device         ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
#device         ulpt            # Printer
#device         umass           # Disks/Mass storage - Requires scbus  
and da0
device          ums             # Mouse
# USB Ethernet
#device         aue             # ADMtek USB ethernet
#device         axe             # ASIX Electronics USB ethernet
sasquatch: 201 lines, 7125 characters.
sasquatch16# config !$
config sasquatch
Kernel build directory is ../compile/sasquatch
Don't forget to do a ``make depend''
sasquatch17# cd ../compile/sasquatch/
sasquatch18# make depend
rm -f .olddep
if [ -f .depend ]; then mv .depend .olddep; fi
make _kernel-depend
if [ -f .olddep ]; then mv .olddep .depend; fi
rm -f .newdep
make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES |   
MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O -pipe  -Wall  
-Wredundant-decls -Wnested-externs -Wstrict-prototypes   
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual   
-fformat-extensions -std=c99  -nostdinc -I-  -I. -I../../..  
-I../../../dev -I../../../contrib/dev/acpica  
-I../../../contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common  
  -mcmodel=medlow -msoft-float -ffreestanding
../../../dev/usb/ukbd.c:44:21: opt_kbd.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/sys/sparc64/compile/sasquatch.
*** Error code 1

Stop in /usr/src/sys/sparc64/compile/sasquatch.

> You probably need to, as opt_kbd.h exists in src/sys/conf/options, and  
> so configure would create it for you if you reran it.

Actually, it didn't exist there (this is 5.1-RELEASE, by the way), as  
you can see, and it only existed after the config.

sasquatch20# find /usr/src -name opt_kbd.h -print
/usr/src/sys/sparc64/compile/sasquatch/modules/usr/src/sys/modules/ 
ukbd/opt_kbd.h
sasquatch21# ls -l  
/usr/src/sys/sparc64/compile/sasquatch/modules/usr/src/sys/modules/ 
ukbd/opt_kbd.h
-rw-r--r--  1 root  wheel  27 Sep 22 00:52  
/usr/src/sys/sparc64/compile/sasquatch/modules/usr/src/sys/modules/ 
ukbd/opt_kbd.h
sasquatch22# more !$
more  
/usr/src/sys/sparc64/compile/sasquatch/modules/usr/src/sys/modules/ 
ukbd/opt_kbd.h
#define KBD_INSTALL_CDEV 1

So I tried this ...

sasquatch25# ln -s  
/usr/src/sys/sparc64/compile/sasquatch/modules/usr/src/sys/modules/ 
ukbd/opt_kbd.h /sys/sparc64/compile/sasquatch/opt_kbd.h

... and the make depend worked, but the make failed.

sasquatch27# make
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs  
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline  
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.  
-I../../.. -I../../../dev -I../../../contrib/dev/acpica  
-I../../../contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common  
  -mcmodel=medlow -msoft-float -ffreestanding -Werror   
../../../dev/usb/ukbd.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs  
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline  
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.  
-I../../.. -I../../../dev -I../../../contrib/dev/acpica  
-I../../../contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common  
  -mcmodel=medlow -msoft-float -ffreestanding -Werror  config.c
touch hack.c
cc  -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../../conf/newvers.sh sasquatch
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs  
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline  
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I.  
-I../../.. -I../../../dev -I../../../contrib/dev/acpica  
-I../../../contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common  
  -mcmodel=medlow -msoft-float -ffreestanding -Werror  vers.c
linking kernel
ukbd.o: In function `ukbd_match':
ukbd.o(.text+0x20): undefined reference to `kbd_get_switch'
ukbd.o: In function `ukbd_attach':
ukbd.o(.text+0xb0): undefined reference to `kbd_get_switch'
ukbd.o(.text+0x17c): undefined reference to `kbd_attach'
ukbd.o: In function `ukbd_detach':
ukbd.o(.text+0x1d4): undefined reference to `kbd_find_keyboard'
ukbd.o(.text+0x1dc): undefined reference to `kbd_get_keyboard'
ukbd.o(.text+0x1f0): undefined reference to `kbdsw'
ukbd.o(.text+0x1f4): undefined reference to `kbdsw'
ukbd.o(.text+0x20c): undefined reference to `kbd_detach'
ukbd.o(.text+0x224): undefined reference to `kbdsw'
ukbd.o(.text+0x228): undefined reference to `kbdsw'
ukbd.o: In function `ukbd_resume':
ukbd.o(.text+0x274): undefined reference to `kbd_find_keyboard'
ukbd.o(.text+0x27c): undefined reference to `kbd_get_keyboard'
ukbd.o(.text+0x288): undefined reference to `kbdsw'
ukbd.o(.text+0x290): undefined reference to `kbdsw'
ukbd.o: In function `ukbd_intr':
ukbd.o(.text+0x2cc): undefined reference to `kbdsw'
ukbd.o(.text+0x2d0): undefined reference to `kbdsw'
ukbd.o: In function `ukbd_init':
ukbd.o(.text+0x574): undefined reference to `kbd_init_struct'
ukbd.o(.text+0x5e4): undefined reference to `kbd_set_maps'
ukbd.o(.text+0x6d8): undefined reference to `kbd_register'
ukbd.o: In function `ukbd_term':
ukbd.o(.text+0x840): undefined reference to `kbd_unregister'
ukbd.o: In function `ukbd_timeout':
ukbd.o(.text+0x8cc): undefined reference to `kbdsw'
ukbd.o(.text+0x8d0): undefined reference to `kbdsw'
ukbd.o: In function `ukbd_read_char':
ukbd.o(.text+0x1348): undefined reference to `genkbd_keyaction'
ukbd.o: In function `ukbd_ioctl':
ukbd.o(.text+0x168c): undefined reference to `genkbd_commonioctl'
ukbd.o: In function `ukbd_driver_load':
ukbd.o(.text+0x1b04): undefined reference to `kbd_add_driver'
ukbd.o(.text+0x1b18): undefined reference to `kbd_delete_driver'
ukbd.o(.data+0x2e8): undefined reference to `genkbd_get_fkeystr'
ukbd.o(.data+0x2f8): undefined reference to `genkbd_diag'
*** Error code 1

Stop in /usr/src/sys/sparc64/compile/sasquatch.

-peter



More information about the freebsd-sparc64 mailing list