From nobody Thu Oct 28 23:53:29 2021 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 193F118363C3 for ; Thu, 28 Oct 2021 23:53:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-22.consmr.mail.ne1.yahoo.com (sonic303-22.consmr.mail.ne1.yahoo.com [66.163.188.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HgMpD6Zjlz3p6b for ; Thu, 28 Oct 2021 23:53:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635465214; bh=FDfXuE8A4EsKOgolKABu1P/erUpNVODCwBunoAd13h4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=kjz+dTFFrGP4MjqfV72I/noEeWt6wp664uYg05ClrOTm5qPF968lByC4C0F4oiYYSLN8EmJefZqNaqgj6Iue+rehwB4wMdDjdX1Vb+xlO5xJS1WQPT4XgWSw+vPzZ/UbYfRiGj8s93bO+vh38AttEBxoPJqJ/7depDZw13M7Y6tsbo+hSeZoaaSM4/Yf/CrzT22/nyCl0XFdz4At3oYfrmrITZynOFB44Jf6KNfajNKr4gkW9EgxhyDNlNLicDU32BPD96TZXolRWQJoraNpk9DdDO5vz4zOVoCEnv/ZqXzcWUn06OwUFm68Jwzwq2V0bA0KyxWagYKOPOTxmG5CWQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635465214; bh=XmZuZjBIh0X/o5rcAZrl1KBRsQTkTxL7liFZY0HyfsK=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=nXVhBRai/ZtfQInQfOJ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SFhFJe7Tk0sYpgTZaCBEm0s1cXN9CtZp582BGgpEFszH4bWmx1gtzHWoKJDveHsbDb6qsIWY MqaNbRdqVocMYOiLEzVU6aN3N1mBgv7jOMIuFP59ARcw7LyEH5FjTaGUEp24vtwYMMXegnGKmZOX QNxt7ZwK26RhJNHwZ0L8gdCi.YtXesK4k_tNO.amU3oFX.GTcjgPmT1MY8wsvrPAF7Ae4yVeJlvD MLK7iJX1h5Ycw8QmbhYRXiBP1b6qFuQiwPclOOtTThFZ.uwxJgz8rMvlA4k6.c3jyqzP_Bx6RwNN uIleSWnBi4XVN4eL1067dafDLqrMpA5GgDeC_M8vD.r1VR36rHl0cZ4lPFH9KIXlpAk8wdEXnfhI 97F0vPP5KE7VToqVrjCj9fE23Dkpyde847vNB8K3LL81QMpfjsSkWliXF9I7JAszyNVFsODJnOsx ui.2drW2D59wcL4B5xOHkzdrkkMBoUff9q9Af48MYksCm1IeCFAREIIxIlpElFidVlgBHo75_0Oj 22azS.Jx2kfB7Y5Byoi_mbA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Thu, 28 Oct 2021 23:53:34 +0000 Received: by kubenode550.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID a91a703acdce3fccf8a2d4dc1f6729fc; Thu, 28 Oct 2021 23:53:30 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Troubles booting Pi2 from USB using bootcode.bin method In-Reply-To: <7AC0733A-3FC9-4FA6-A6D7-0689A8ACB4CA@yahoo.com> Date: Thu, 28 Oct 2021 16:53:29 -0700 Cc: Free BSD , freebsd-ports@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: <20211025034332.GA8398@www.zefox.net> <20211027162852.GA16010@www.zefox.net> <41C0A656-D898-4381-BB81-034D54CA04A0@yahoo.com> <02806205-6685-41FD-B2D1-415C82FBCF92@yahoo.com> <20211028191635.GA19540@www.zefox.net> <7AC0733A-3FC9-4FA6-A6D7-0689A8ACB4CA@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HgMpD6Zjlz3p6b X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=kjz+dTFF; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 66.163.188.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.163.188.148:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[66.163.188.148:from]; NEURAL_HAM_SHORT(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Oct-28, at 15:21, Mark Millard wrote: > On 2021-Oct-28, at 12:16, bob prohaska wrote: > >> To make a clean start on this thread I've turned on the UART >> for bootcode.bin per Mark's instructions and done a few boot >> attempts with the USB2 and USB3 mechanical disks, singly and >> in unison. >> >> The bootlogs are in >> http://www.zefox.net/~fbsd/rpi2/bootproblems/ >> >> An immediate curiosity is that on the first try, booting >> with the USB3 device alone worked. I didn't record that >> output, unfortunately. > > Hmm. Too bad. > >> The second attempt failed, as expected, >> and is recorded in bootlog-fail. The third attempt booted both >> USB2 and USB3 disks together, recorded in bootlog.success. > > The two logs do not have the same set of dtdebug messages > for loading bcm2709-rpi-2-b.dtb . This is long before > u-boot.bin is loaded and so is during the RPi* firmware > time frame not u_Boot or FreeBSD;s loader or FreeBSD's kernel > or FreeBSD's world. > > From this I infer that there are two different msdosfs's > wtith differing content on the 2 drives and when both > drives are in place . > > You have not reported on the following for either drive's > msdosfs : > > # strings ???/start.elf | grep "VC_BUILD_" > > Another thing of interest would be something like (both > msdosfs mounts): > > # diff -rq ... ... > > in order to see what files have distinctions on the > two media. A diff of the two config.txt files would be > relevant (no -q involvement). > > >> I'm trying to build u-boot-rpi2 and will try to update the USB3 >> disk with it once complete. >> >> The actual boot sequence using bootcode.bin is still a bit hazy: >> Is it microSD/dos -> USB/dos ->USB/freebsd ? >> > > Based on the log file for success the ordering is > > bootcode.bin from the microsd card > config.txt (also re-read multiple times later, not listed) > start.elf > fixup.dat > bcm2709-rpi-2-b.dtb > overlays/mmc.dtbo > cmdline.txt (if it exists) > u-boot.bin > efi/boot/bootarm.efi > efi/freebsd/loader.env > /boot/defaults/loader.conf > /boot/device.hints > /boot/loader.conf > /boot/loader.conf.local > /boot/boot/kernel > /boot/kernel/fi.lemon.ko > /boot/kernel/umodem.ko > FreeBSD world > > > However the failing one has the following involved > (I omit various lines): > > . . . > Loading 'bcm2709-rpi-2-b.dtb' to 0x100 size 0x6879 > Unknown dtparam 'pwr_led_gpio' - ignored > dterror: no symbols found > dtdebug: /__overrides__ node not found > Unknown dtparam 'uart0_clkrate' - ignored > dtdebug: Opened overlay file 'overlays/mmc.dtbo' > brfs: File read: /mfs/sd/overlays/mmc.dtbo > dterror: not a valid FDT - err -9 > . . . > > That seqeunce makes no mention of: "using platform 'bcm2835'" > and the like. An example is: "found override pwr_led_gpio". > > Again, all this looks like tehre are two msdosfs involved and > the two are not the same by content. > Another possibility is that you have more in the microsd card's msdosfs than just bootcode.bin so that that microsd card might be the source of alternative files. (That makes up to 3 media that might be sources of files.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)