Can't compile ukbd into the kernel, or load it with kldload

Lee D embaudarm at gmail.com
Thu Aug 18 21:26:49 UTC 2016


On Thu, Aug 18, 2016 at 3:48 AM, Hans Petter Selasky <hps at selasky.org>
wrote:

> On 08/18/16 04:58, Lee D wrote:
>
>> Hi Everyone,
>>
>> I am trying to get a USB keyboard working on FreeBSD arm, for Zynq.
>>
>> My problem is that trying to "kldload ukbd" gives me this error:
>>
>>         link_elf: symbol genkbd_get_fkeystr undefined
>>
>> When I try to compile ukbd into the kernel, using "device ukbd" in my
>> config file, I get an undefined reference error for that symbol and a
>> bunch
>> of others.
>>
>> The functions I need seem to be defined in src/sys/dev/kbd/kbd.c.  But I
>> can't seem to get that file to compile.  "device kbd" in my kernel
>> configuration file gives me a "device "kbd" is unknown" error.
>>
>> Does anyone know how I can get src/sys/dev/kbd/kbd.c to compile as part of
>> my kernel?
>>
>
> Hi,
>
> The following line in conf/files says that if you add "vt", "sc" or "ukbd"
> device options to the kernel config, kbd.c will be compiled.
>
> conf/files:dev/kbd/kbd.c                        optional atkbd | pckbd |
> sc | ukbd | vt
>
> --HPS
>
>
Thanks for pointing out that file, that is a very useful thing to know
about.

I tried adding "vt" to my config and I was able to get ukbd to compile into
the kernel.

Lee


More information about the freebsd-arm mailing list