From owner-freebsd-arm@FreeBSD.ORG Mon Jun 15 19:45:48 2015 Return-Path: Delivered-To: freebsd-arm@hub.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 D3266F9 for ; Mon, 15 Jun 2015 19:45:48 +0000 (UTC) (envelope-from perretcantonim@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::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 81D5922B for ; Mon, 15 Jun 2015 19:45:48 +0000 (UTC) (envelope-from perretcantonim@gmail.com) Received: by wgbhy7 with SMTP id hy7so43845543wgb.2 for ; Mon, 15 Jun 2015 12:45:46 -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=OiNceiOnKylgS7skA0+DGxKS0HrzgiGt34X3mDGDvOc=; b=CcmKoBcaypPJ8Orp06Yt0iE7dSAGqiMmDurSyWZiqK111hGYk1m0RiO1XFk04zNp83 xwhZ5HWl651eq0ZD4MKmy/yoMggh+fYgT1Dw2/40U2XlWZnvmvB5vUtAlloa7LebYVbJ lxJwl5F/NiqwW8AQYyQUJjwQVhyCFfBH0xh8knFtYWkfYFi+eE5zi3M9mxbSGDO9dwQ9 1iJEETeLzjaJv1p+2vmiIhrg9OT1mKk6M1qzL/G2g2/qPL2awvbtSV85kw947MmujlXt +uP+zlYdu1fnbqbmBTWspbf3FCXTB2aBHqE+EVBc/BwWuhbllO/pRRZqKg2EVLEnW62A OsBw== MIME-Version: 1.0 X-Received: by 10.194.248.168 with SMTP id yn8mr32887238wjc.7.1434397546761; Mon, 15 Jun 2015 12:45:46 -0700 (PDT) Received: by 10.27.179.3 with HTTP; Mon, 15 Jun 2015 12:45:46 -0700 (PDT) Date: Mon, 15 Jun 2015 16:45:46 -0300 Message-ID: Subject: There have been some big changes in Newbus in CURRENT? From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= To: freebsd-arm@freebsd.org 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, 15 Jun 2015 19:45:48 -0000 Hi! First of all sorry if this question is too silly, but there have been some big changes in Newbus in CURRENT? I ask this because I was using a "custom" DTS and a driver that I made, happily on a FreeBSD-10.1.0 image I built, on the ZedBoard platform. But now I created a new FreeBSD image with CURRENT; I use the exact same DTS and driver, but the probe() routine of my driver is never called when I load it; so my driver never gets attached to my device. Thanks in advance for your patience! Matias PS: Just in case, here are some details: * The system is: FreeBSD zedboard 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r283900: Thu Jun 4 07:44:32 ART 2015 root@efn.uncor:/usr/obj/arm.armv6/usr/src/sys/ZEDBOARD arm * This is how I built the image: cd /usr/src svn checkout http://svn0.us-west.freebsd.org/base/head svn update make TARGET_ARCH=armv6 KERNCONF=ZEDBOARD buildworld buildkernel * This is the drivers probe routine: static int p3_probe(device_t dev) { device_printf(dev, "Probe routine"); if (!ofw_bus_is_compatible(dev, "zedBSD,p3")){ device_printf(dev, "Not compatible!"); return (ENXIO); } device_set_desc(dev, "p3_device"); device_printf(dev, "Compatible!"); return(BUS_PROBE_SPECIFIC); } * This the DTS node: /* AXI General purpose #0 from PL: */ M_AXI_GP0@40000000 { device_type = "soc"; compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x40000000 0x3fffffff>; /* MY NODE */ p3: p3@1200000 { compatible = "zedBSD,p3"; reg = <0x1200000 0xFFFF>, <0x27000000 0xFFFF>; interrupts = <61>; interrupt-parent = <&GIC>; }; }; * And I load the driver with: kldload ./p3.ko