Problem compiling custom kernel

David Wolfskill david at catwhisker.org
Sat Jan 9 14:38:20 UTC 2021


On Sat, Jan 09, 2021 at 02:33:58PM +0000, Filippo Moretti wrote:
> I tried to compile my custom kernel but I did get the following error,I enclose the beginning of dmesg output.So far I could always build kernel STING.I did switch to git and previously I could build it without issues.sincerelyFilippo
> 
> ...
> --- kernel.full ---linking kernel.full
> ld: error: undefined symbol: hid_is_keyboard
> >>> referenced by ukbd.c:957 (/usr/src/sys/dev/usb/input/ukbd.c:957)
> >>>               ukbd.o:(ukbd_probe)
> ld: error: undefined symbol: hid_is_mouse
> >>> referenced by ukbd.c:958 (/usr/src/sys/dev/usb/input/ukbd.c:958)
> ....

Looks as if you need some of these:

g1-55(12.2-S)[2] tail sys/amd64/conf/GENERIC
device          evdev                   # input event device support
device          uinput                  # install /dev/uinput cdev

# HID support
options         HID_DEBUG               # enable debug msgs
device          hid                     # Generic HID support
options         IICHID_SAMPLING         # Workaround missing GPIO INTR support
#device         usbhid                  # USB transport support.
#device         hidbus                  # HID bus (required by usbhid/iichid)
#options        USBHID_ENABLED          # Prefer usbhid to other USB drivers
g1-55(12.2-S)[3] 


FWIW, I find it useful to construct my custom kernel configurations
by starting with "include GENERIC", then adjust from there.

Peace,
david
-- 
David H. Wolfskill                              david at catwhisker.org
"I want him to resign. I want him out. He has caused enough damage."
 - Senator Lisa Murkowski (R-AK)

See https://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210109/d057dc76/attachment.sig>


More information about the freebsd-current mailing list