From nobody Thu Oct 28 22:21:55 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 282D718307E9 for ; Thu, 28 Oct 2021 22:22:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-21.consmr.mail.ne1.yahoo.com (sonic315-21.consmr.mail.ne1.yahoo.com [66.163.190.147]) (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 4HgKmX6jzfz4qlj for ; Thu, 28 Oct 2021 22:22:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635459717; bh=C5tzM9BptuIk0iCp4Jc++OwzKotXGTSxLaXeQxbQZtg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=pTsND1Po6ThHyotg3UpaIIGGBMe9n6Vw8xIdphgfJUBN83qRNeLP8QNlT7VteEUMv22zesaBWzV1yGsH6BhabXm4ome3qN08/7yhp6p08disH6gBrYFfa0c9HxALxaSay5Dpg3Aehy7wo2aOiRVghg6zh6AP98vzimR3DoN2S13xFabUSfiTE+P9r7oizObUqykY/BsFRL58z4fBxEI03Av72Z8/oLQPl/Yj6Q1/C+7ujYpy/JU8LCGr5uVz4c1xn6X7AL4x/JqEF34kPnS1UKmLH7w4/3oBBPLGGR5spzK4s5AIeKk4SSaYlmQ//DSphVmUdjaoWHnrPBMnLjXY+w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635459717; bh=11ds2qvmIkVbmurpLRuL2hO6W6K2D1K3zRdRG0VgfUr=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=OHsfcPA+G2EdJHGckvFT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xhWYv9lS2pb_XC6MJePn7TxCLeCXtGRBdG_ImGIBobCnJ0xLCjLd3ewlDZ_8L1 wjOWAa1DsZfBK_1oaDcJBz6s60xzYDe4lHNKuMLnYxX9.ZlVQsT_4seHsGs4k54ebvQFACOzJQcD 6TvKvf6i3LnJWyT8iyE3y_9bBP4AWTmWqJs1S7awOvYD_dqrpxz_uTgE1N1M6LxsRKHJN_klvHdy WEJTn8Tj.li5E.D5.BcUdorRRqB92mLKLIz20MYlDxx4p8xke43.MpXCr8c0K_t8xAKQy8Of38jP 8mTbPXnAczVS43TiRAB.nWYL6VHjqOLZnPD577MNjlNjWN5YlhYCISDUv8K9OTRU6ZxlMPD1qKJZ a8hNM5ueGtCOvViYXCyH9MLXD1_P3TErDmUwfMBkZyw4uFTzRBIJwKrvxU55j2zo4AJeptO93A9_ 1Izp86n6IZqGPJcgn6sHhWkosXB5XzRl7qOVUCGAKrZOUNg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Thu, 28 Oct 2021 22:21:57 +0000 Received: by kubenode540.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7634d3b9d11bfcbc3538e4cbe38a1cae; Thu, 28 Oct 2021 22:21:56 +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: <20211028191635.GA19540@www.zefox.net> Date: Thu, 28 Oct 2021 15:21:55 -0700 Cc: Free BSD , freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7AC0733A-3FC9-4FA6-A6D7-0689A8ACB4CA@yahoo.com> 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> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HgKmX6jzfz4qlj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N 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. >=20 > The bootlogs are in > http://www.zefox.net/~fbsd/rpi2/bootproblems/ >=20 > 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. =46rom 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.=20 >=20 > The actual boot sequence using bootcode.bin is still a bit hazy: > Is it microSD/dos -> USB/dos ->USB/freebsd ?=20 >=20 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. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)