From nobody Sun Apr 10 20:15:30 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 150B71A862A2 for ; Sun, 10 Apr 2022 20:15:31 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc3Bq06dJz3Hcm; Sun, 10 Apr 2022 20:15:31 +0000 (UTC) (envelope-from mhorne@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649621731; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T1I+r2KnJqq/58zGEHOo+JGl75mlaWxznyVwp+lT6B4=; b=ym4YTMi4YAlXEv3oJnN77eRti5TaDWTplYYNtgeqaMW6NVg0rOT69BlKf2j4WQwoQk72et nQd/AMqAWE/j/M+ljALpogfFy9tgsUCWvuxkDP0HR6ld5gAApxQl1o8B+UtrgO1aiE4wrZ 8NJsxbz9OOMtdaKW/7I4nVYyxU9MZ/xUUCwZNB8Dtcm+mj2tH5DvbgUHpmpX4yBrSk2spM +S76F+i49lUwqJFQNNaIJ5ld3N9VIB4MaoB32W6tGmHToOG6dftyBiKxeJWPrjVJa0TJME NC7Vrkfn7aoZ12Yclv21mOMcuo5saAmNtD1fNs6YmGWMj9u2LFM2NpnSqr0KDw== Received: from [192.168.1.106] (host-71-7-134-180.public.eastlink.ca [71.7.134.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id B228528361; Sun, 10 Apr 2022 20:15:30 +0000 (UTC) (envelope-from mhorne@freebsd.org) Message-ID: <9b07e4bd-2b77-bab3-6844-e2e2873f582d@freebsd.org> Date: Sun, 10 Apr 2022 17:15:30 -0300 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [armv7] dtb specified with FDT_DTS_FILE in kernconf not built when using release.sh Content-Language: en-CA To: Matteo Riondato , freebsd-arm@freebsd.org References: <20220410195816.k6qvkagroudas634@host-ubertino-mac-24f5a28a9493.wired.10net.amherst.edu> From: Mitchell Horne In-Reply-To: <20220410195816.k6qvkagroudas634@host-ubertino-mac-24f5a28a9493.wired.10net.amherst.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649621731; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T1I+r2KnJqq/58zGEHOo+JGl75mlaWxznyVwp+lT6B4=; b=B4J5K2V788SjQzvcb6HAXIiTbaafgI95jfAawe3bZP22ryiMxZxElwg9z+1fb3KcWlCCTe Gojr58vRyn9Ys2enyKP8AipPMRqSWbt7vHOjbtvmJ/z0LoI8w8nwiJpgUx9AOgS0NZrQ/P 7A5g0KeS3wzZ9osP9E1PvEPkXhZ7OmZXSsu+3TdcPul24TbyzFhyzOq45ri4iM+Jlw2i/t 2X6X1n036pQW4nQdV2KbodjH+XyO2xC0jdgF71RJNMpNpZAFTTjFspIKn2UDMWUcUWn2yw AfMRoesPANBc9i6Tm98dBnvRio1uGUXIzG944fd/ACI3nj8EiGlrMyHF9JMS2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649621731; a=rsa-sha256; cv=none; b=gUyD081rMtby3R5Y+rsiTuFRtm50HbThHc0jgvw4GATTniZ0SgQ5lMf/kj7HnK+Wt1Hd2R 62lQMyulfehPJElbiRz02jDestgnsA+rB/A04rIGwpZFljZMrCu80MTwk4TBAY8VCTKnrm 4IPY1EgA83xi7XBKGTeusCqi6Mcyd9IM3PNx6p3Zt8zHm1kaOTWAr7xiRg1pp9zHUfKthk JYobvOA3y7HuuKAU7pqZUTCp0H5yaRMCg+jejawtmEav7qAqW13/tggfkbVznqaXg5dR+6 ItevNMj/YNn3HeS/uUvCYz/ZAaV3a2pzu8hsIqZ2r8fC+YwCaiagKyQjFl5d/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 1700 Lines: 50 On 4/10/22 16:58, Matteo Riondato wrote: > Hi, > > I'm trying to cross-build (from amd64) a custom -CURRENT armv7 image for > my beaglebone enhanced using the release(7) method with a custom > release.conf script, which I wrote starting from release/arm/GENERICSD. > > The only customization that I want to include is to use the appropriate > dtb compiled from the dts files for this board. I thought I could > achieve this goal by having "makeoptions FDT_DTS_FILE=..." in my > kernconf, but the dtb does not seem to be compiled in the chrootdir, not > to say installed, the image. > > The kernconf is the following: > > include GENERIC > include "../../conf/std.nodebug" > ident   GENERIC-ND-BBE > makeoptions FDT_DTS_FILE=am335x-sancloud-bbe.dts > I believe this option is used to embed a static DTB in the kernel binary, not to have it compiled as part of the build. What you most likely want instead is: makeoptions MODULES_EXTRA+="dtb/am335x" This line is already included as part of the GENERIC config. However, you will need to modify sys/modules/dtb/am335x/Makefile to include the sancloud variant that you are interested in. Cheers, Mitchell > My release.conf script has a custom buildenv_setup() function to cp the > above kernconf to the /usr/src/sys/arm/conf/ directory of the chroot, > and the dts to /usr/src/sys/dts/arm of the chroot (from what I could > infer, that is the correct path for the dts, but please let me know if > that's not the case). > > I don't see the compiled dtb anywhere in the chroot, nor an error > message or a warning that it failed to build, and it is not in the image > either. > > What am I missing? > > Thanks, > Matteo