From owner-freebsd-arm@freebsd.org Thu Aug 18 07:44:39 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59EAFBBE514 for ; Thu, 18 Aug 2016 07:44:39 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20CEA134E for ; Thu, 18 Aug 2016 07:44:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B52991FE022; Thu, 18 Aug 2016 09:44:29 +0200 (CEST) Subject: Re: Can't compile ukbd into the kernel, or load it with kldload To: Lee D , "freebsd-arm@freebsd.org" References: From: Hans Petter Selasky Message-ID: <29fc92d8-b177-591d-620f-1876a136709a@selasky.org> Date: Thu, 18 Aug 2016 09:48:59 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 07:44:39 -0000 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