From owner-freebsd-arm@freebsd.org Mon Jul 6 05:45:03 2015 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 C0E54994BE5 for ; Mon, 6 Jul 2015 05:45:03 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (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 9A09D3C3F for ; Mon, 6 Jul 2015 05:45:03 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by pdbep18 with SMTP id ep18so99442541pdb.1 for ; Sun, 05 Jul 2015 22:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=L+qjva1+N+ICoyELAQmF2LASjtaYyZfm+suu6fiDGhs=; b=CQgO0mB+TYwdwJwNye4x6iUZ4MKsnlyfzGeDq+BLhpbE+yiv1DRJzR4voTRlWb7E3d eYkV6wSXWMvl2vhROCIxiRoMbEcYGHC7JPqHvRMdcZbSnhMYL0lnjSw4Hbf3QACY4l3n G9TQUzC6y2P8+bI8x36gQEk1KWRM2KkYDMVhTAFK23vt5FLnBOi83kJUVFMTbYwOyU7A o35WvWeroJzn0XpRZe8UhjuRZJJYUBkVwfII1m6JdPFOe3tgFVcl0hExfHe32cBvMQxG 1Nm3wZ1qzCVEXXwgf10NZkfhoqeLwKzruQwljV1tyZSnDSGaQX3zJ2HgP0UTu2v0QELc fRCg== MIME-Version: 1.0 X-Received: by 10.68.88.33 with SMTP id bd1mr75254918pbb.124.1436161503012; Sun, 05 Jul 2015 22:45:03 -0700 (PDT) Received: by 10.66.144.195 with HTTP; Sun, 5 Jul 2015 22:45:02 -0700 (PDT) Date: Sun, 5 Jul 2015 22:45:02 -0700 Message-ID: Subject: make a simple device driver From: Russell Haley To: freebsd-arm Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2015 05:45:03 -0000 Hello again, I'm still waiting to get my hands on my hummingboard but I started to look into device drivers by following the handbook. I have done the following on a source listing for CURRENT: 1) Created folder called echo_driver under /usr/src/sys/dev 2) Created new file called echo_driver.c with the code pasted from this handbook page: https://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-char.html 3) created a make file with these contents: SRCS= echo_driver.c KMOD= echo_driver .include as per the Handbook https://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-kld.html when I run make under /usr/src/sys/dev/echo_driver I get the following error: make: don't know how to make auto.obj.mk. Stop make: stopped in /usr/src/sys/dev/echo_driver I tried drilling through the makefile dependencies as best as I understood it and saw that /usr/src/share/mk contains the BSD make files (good to know!) and in the file auto.obj.mk is the first file in Makefile. Any help would be great. Thanks, Russ