From owner-freebsd-toolchain@freebsd.org Mon Sep 11 08:48:59 2017 Return-Path: Delivered-To: freebsd-toolchain@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 AB1C2E23865 for ; Mon, 11 Sep 2017 08:48:59 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-10.reflexion.net [208.70.210.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 560C577B1E for ; Mon, 11 Sep 2017 08:48:58 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 8836 invoked from network); 11 Sep 2017 08:48:51 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 11 Sep 2017 08:48:51 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.2) with SMTP; Mon, 11 Sep 2017 04:48:51 -0400 (EDT) Received: (qmail 16635 invoked from network); 11 Sep 2017 08:48:51 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 11 Sep 2017 08:48:51 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id E4374EC86EF; Mon, 11 Sep 2017 01:48:50 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Missing in action during arm64/aarch64 builds: no pine64_plus.dtb to be found from buildkernel, installkernel, or u-boot-pine64 From: Mark Millard In-Reply-To: <20170911095641.616658985e7148a88f6c03a7@bidouilliste.com> Date: Mon, 11 Sep 2017 01:48:49 -0700 Cc: FreeBSD Toolchain , freebsd-arm , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170911095641.616658985e7148a88f6c03a7@bidouilliste.com> To: Emmanuel Vadot , Tim Kientzle X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 08:48:59 -0000 On 2017-Sep-11, at 12:56 AM, Emmanuel Vadot = wrote: > On Sat, 9 Sep 2017 16:35:11 -0700 > Mark Millard wrote: >=20 >> The context here is head -r323246 amd64 -> arm64/aarch64 >> cross build activity. >>=20 >> =46rom installkernel : >>=20 >> # find /usr/obj/DESTDIRs/clang-cortexA53-installkernel/ -name "*.dtb" = -print >> #=20 >>=20 >> =46rom buildkernel : >>=20 >> # find /usr/obj/cortexA53_clang/arm64.aarch64/ -name "*.dtb" -print >> #=20 >>=20 >> =46rom installing u-boot-pine64 : >>=20 >> # ls -lTd /usr/local/share/u-boot/u-boot-pine64/* >> -rw-r--r-- 1 root wheel 125 Sep 6 00:49:44 2017 = /usr/local/share/u-boot/u-boot-pine64/README >> -rw-r--r-- 1 root wheel 505940 Sep 6 00:49:43 2017 = /usr/local/share/u-boot/u-boot-pine64/u-boot-sunxi-with-spl.bin >>=20 >>=20 >> As stands the file must be manually produced. >=20 > Since the latest update of u-boot-pine64 the dtb is included in = u-boot. > U-Boot loads it and pass it to boot1.efi. Cool . . . Trying: # mv /boot/efi/dtb/pine64_plus.dtb /boot/efi/dtb/no_pine64_plus.dtb # shutdown -r now does reboot just fine. As does: # rm -fr /boot/efi/dtb # shutdown -r now A cold boot also boots into the kernel. So no .dts or .dtb is needed for the Pine64+ 2GB . For reference after this: # mount /dev/label/PINE642GAroot on / (ufs, NFS exported, local, noatime, = soft-updates, nfsv4acls) devfs on /dev (devfs, local, multilabel) /dev/label/PINE642GAboot on /boot/efi (msdosfs, local, noatime) # find /boot/efi /boot/efi /boot/efi/startup.nsh /boot/efi/EFI /boot/efi/EFI/BOOT /boot/efi/EFI/BOOT/bootaa64.efi /boot/efi/System Volume Information /boot/efi/System Volume Information/WPSettings.dat I have no clue if this hidden dtb contributes to the USB problem(s) or not: . . . cryptosoft0: NULL mp in getnewvnode(9), tag crossmp Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on = usbus0 uhub_attach: getting USB 2.0 HUB descriptor = failed,error=3DUSB_ERR_SHORT_XFER device_attach: uhub0 attach returned 6 usbus0: Root HUB problem, error=3DUSB_ERR_NO_ROOT_HUB mmcsd0: 32GB at mmc0 = 50.0MHz/4bit/65535-block . . . My old -r308??? context not only could use usb devices but had the root file system on a USB SSD. But modernizing made plugged in USB devices not show up. >> crochet goes to the trouble to have logic to >> build and install pine64_plus.dtb (based on >> arm64/pine64_plus.dts ). Looks like crochet does not need to produce the .dtb . It is not even clear that if a dtb/pine64_plus.dtb exists that it is used for anything. >> Is pine64_plus.dtb required for the likes of >> Pine64+ 2GB's? Now answered as: no. >> If yes: should it be automatically >> built and installed someplace for arm64/aarch64 >> builds (even if more manual steps are required to >> have the final placement on the Pine64 media)? =3D=3D=3D Mark Millard markmi at dsl-only.net