Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2016 17:26:47 -0400
From:      Lee D <embaudarm@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Can't compile ukbd into the kernel, or load it with kldload
Message-ID:  <CANC_bnMf4-N3WjXwj2rROhgzFarP9Jn03tZLG5f0i0V=a-F9CQ@mail.gmail.com>
In-Reply-To: <29fc92d8-b177-591d-620f-1876a136709a@selasky.org>
References:  <CANC_bnMA6e5k58qSv9%2B0s0u10500dJRenn_rQ4fkJixBg2zdug@mail.gmail.com> <29fc92d8-b177-591d-620f-1876a136709a@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 18, 2016 at 3:48 AM, Hans Petter Selasky <hps@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANC_bnMf4-N3WjXwj2rROhgzFarP9Jn03tZLG5f0i0V=a-F9CQ>