From owner-freebsd-arm@freebsd.org Thu Aug 18 21:26:48 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 E402DBBF971 for ; Thu, 18 Aug 2016 21:26:48 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-qt0-x22b.google.com (mail-qt0-x22b.google.com [IPv6:2607:f8b0:400d:c0d::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9EC01100B for ; Thu, 18 Aug 2016 21:26:48 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-qt0-x22b.google.com with SMTP id x25so2877472qtx.2 for ; Thu, 18 Aug 2016 14:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=N4TdjZphcYbCURecWetgQ9RUei1fbiePENPcWEy+aJ0=; b=ZcEdJt+tLQl0eQ4U+5RVKuvDMtNyL7rCGQT8SlsqxUDHVg/uoVxV6GsaBH+z313mBF YULy6l68hxQJFMwq6Ox21YorshRV2a1cgtA4CsXWM0/PoQNi4UyPQGRNyndOu5cYSy9B r2C6vx9nWWkpnXu6qE8LiW8sYZ7phpEo5Mf2M4fTrbai/EKCuEiwzQQs2PC6cU2nVooY vl6CfCv0tSNn13qPGOPWapcH0nWTR8MPueLU4PnK7WblpRs9pcMoP2ujgOKEa5hs4Pmd EVPGX0iLq7z6dyL2cxzZloKeS4tgsAreJ5HHKfM1pTUBhpUScFSB/1zKZTBOg+fyaVJl vrJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=N4TdjZphcYbCURecWetgQ9RUei1fbiePENPcWEy+aJ0=; b=cym9bTSjReJ/nzVlQ6wyVKNrH5yJoOJEEwRuwDlgN1G7muJ4M2q6sMfpJdV3mVrwoL F00B2lTDWSmiv8W+4WD4jLVHtoMXY05Qov+ThBkUd0FDzEzr5l0mhfGjfAyxjEpvwKFQ CHt5YZ4iK7hESt9C2YTdnFhNiu4fHs/1eUcctLsM16nRos71JPFqKMKgGEV3K3Dy1eBx iYUSC4kuB0Omsopq9YkvFIlHjkLxM+vp2wEPUBYcL3LjAtEi4UJJAUfgV5H9fZcTYarC LHwG1BoIC6A19ZjwICu+9s0sN2WA/FOv9n/T2+XVYmHUz8vWVKz1h6QcggR14aLovujM rr7Q== X-Gm-Message-State: AEkooutmVTwoxmq2Kyc0qMHfZ7fOdMC/O8mcRYZ2IMjecY2Hd7Jf5ohaE242VIYHpmSQjQGj/KeOOnniMBcL2Q== X-Received: by 10.200.35.44 with SMTP id a41mr4940583qta.25.1471555607799; Thu, 18 Aug 2016 14:26:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.42.247 with HTTP; Thu, 18 Aug 2016 14:26:47 -0700 (PDT) In-Reply-To: <29fc92d8-b177-591d-620f-1876a136709a@selasky.org> References: <29fc92d8-b177-591d-620f-1876a136709a@selasky.org> From: Lee D Date: Thu, 18 Aug 2016 17:26:47 -0400 Message-ID: Subject: Re: Can't compile ukbd into the kernel, or load it with kldload To: Hans Petter Selasky Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 21:26:49 -0000 On Thu, Aug 18, 2016 at 3:48 AM, Hans Petter Selasky 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