From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 19:15:23 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2B18FA3 for ; Fri, 6 Mar 2015 19:15:23 +0000 (UTC) Received: from mail-qc0-x233.google.com (mail-qc0-x233.google.com [IPv6:2607:f8b0:400d:c01::233]) (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 8BDA05E5 for ; Fri, 6 Mar 2015 19:15:23 +0000 (UTC) Received: by qcwb13 with SMTP id b13so15280157qcw.12 for ; Fri, 06 Mar 2015 11:15:22 -0800 (PST) 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=snvnTQbXuuMW8d7bNw6rWza5PfjKbN/0L1Wq4kVUEOc=; b=ZDm41UAydukOQ7Yah0jq4Q0cStR4AOGX9aG/OaP3z1hZKrE38JZSuMBMV1xmW8GEuF 3xJzhihkz9PAma6mWpMk4Cfz02/es/3PSvrqC9EsvTI8sIi6+2k9atGWWmCeMkJpdL8G GJb/SuA/Ab4g50QmJ8ZueZRjbLazeXdSSRCcFa1kKnw4WdPtNQXFuJxUeiAdYsyyDWfF WgIXsYlD0wOH1O42rGcso6LMqLeqoGs7uooaacjCoYrnb6GdfI6ZpyFb06nEpI0Qszsi VFvT2E4D0m45hfDxOboUURgC1E6MEyRaGBvvAANg/AA/iTO7DSmGu9WPjS986HGdLEKB +Faw== MIME-Version: 1.0 X-Received: by 10.140.234.131 with SMTP id f125mr12473523qhc.36.1425669322814; Fri, 06 Mar 2015 11:15:22 -0800 (PST) Received: by 10.140.37.82 with HTTP; Fri, 6 Mar 2015 11:15:22 -0800 (PST) Date: Fri, 6 Mar 2015 16:15:22 -0300 Message-ID: Subject: load a driver during autoconfiguration From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 19:15:23 -0000 Hello! I just wrote a simple newbus driver that works just fine when I load it manually with kldload(8). Now I'd like the system to load it automatically at boot time. I've already added the corresponding node on the dts file. So my questions are: Can I just place the driver under some directory so that the system can probe it during auto-configuration? Or do I need to re-compile the whole kernel for this? In that case where should I place my sources before compiling? Thank in advance. Regards, Matias.-