From nobody Tue Oct 04 08:25:17 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 4MhW3m6hcnz4V5lT for ; Tue, 4 Oct 2022 08:25:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-54.consmr.mail.gq1.yahoo.com (sonic308-54.consmr.mail.gq1.yahoo.com [98.137.68.30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhW3l6Py2z3CBS for ; Tue, 4 Oct 2022 08:25:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664871920; bh=UnFfARwjmJz4GXpME+pFyw/Tg5OL3uOPiNsnk/z5enc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=EHVmF5UBfu3KNd218jxtubKNv0TfHfqGFUy0tK0A9J0L9xj4Y65YfY428GZcOD7+wOq78SsxRuSmTU+rB9nbKrWaXTBkct2ORCGvbGa5cHMPzn7HCqlrluASxt8VykjW9BB9H2AtaE+JL5M6YL418m6LwhwbKhUJMMMVmB27ODC5RVnc+CrKQaVRbg4Wgi7Ts3PEZl0JgrFUj0Zvd/ccFzCNx/3QNZAziLlDpp+p/SR/0rj9AqCtT953nvXB7pfTPv/+9vpDXJFluhUYb/GVxZloWFqQ4hN2BRdVTETpf2k8uaoSZWtmXp84KXMIRnA8hQ2hxLrc+iUcQ95iFrKgQw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664871920; bh=OR2UnzbPU7GsCaKiwy/aczmNIPOd85lI4iTgrszaINg=; h=X-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C5OIcl9lzj5R1drd.aRHScVuWEgiTH9Modt4JBYXdIlhmwRXLTCSuy gJntdtCO0OCcQK9dcZPiGbsp4n4yi9CF27TUg7Ani9EvQLfdvD3ISV3y3Mn1fcY4.65zjj37J.xp aFtyWcS8rOijt7CGvTpXqtog3sfPCT5bimHuw2zGrezrvKi1g0GciFKnhv2codEV1oDm9oCvPQBe 1VT6R9qyOKfEylprEN4fla7zIbD7zOei4rixZWxdrSjCi0evkvsJuA__IDGtEDXYjmW8RAcQiLwB 4Q7FqzKC19ibNcwNGNL8OVNsEqJL9kFTjOK1iBceEjyexQJwZWLcZC4M7cTNB6b2pJjZ3oGxce6t lTCow0BOiAdbFRyaPrmFN9x_WyGQhWxlcN9hyYQoOwehr2M7bv55yPfOLM6TObBndUIPnZBhhjve tAezUxZ1X1q9tuAeBjsk8czLBdAM7yBlhSqxhAwIiRnE0uGyjWORWTnw4aI2vEtMux887coWYlQc tkVW1Obx6Xx0o4ra9VbHG610DrPLRxYuYU.1jRr.MHULqhip8WoAThPclzZQdMSKs.N4awB7w_F2 b460- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Tue, 4 Oct 2022 08:25:20 +0000 Received: by hermes--production-gq1-94b89944-5szfq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID dd7b9fb9c31a4796032812e733de92ac; Tue, 04 Oct 2022 08:25:17 +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 16.0 \(3696.120.41.1.1\)) Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: <62F8D709-BBC3-41C4-B1A9-939B2001BA52@yahoo.com> Date: Tue, 4 Oct 2022 01:25:17 -0700 Cc: Klaus K??chemann , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1DE565E3-3906-4C53-83C8-EBC20A4E3C95@yahoo.com> References: <20221001193033.GA98348@www.zefox.net> <46226720-D867-4AD3-9559-A4365FAC28C4@yahoo.com> <6DB88FC9-629C-43E6-9673-32640FC547F7@yahoo.com> <20221002182049.GA2255@www.zefox.net> <5FFDAA6A-AD8C-4E40-A2EB-4082E5086679@googlemail.com> <38DFEB91-AC60-4FD1-8088-95B0A06C5E5D@yahoo.com> <20221003004624.GA3381@www.zefox.net> <20221004001857.GA7109@www.zefox.net> <62F8D709-BBC3-41C4-B1A9-939B2001BA52@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MhW3l6Py2z3CBS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=EHVmF5UB; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.30 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.30:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[googlemail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N I found a configuration that gets the RPi3 EDK2 and FreeBSD combination to have the serial console working. You can try booting and operating via the RPi3 EDK2 UEFI materials. However, microsd cards should still not be mounted/used from a FreeBSD that has been booted via RPi3 EDK2. Bluetooth is disabled as part of getting a working serial console. I ended up with a RPi3 EDK2 microsd card for use in booting that has: # mount -onoatime -tmsdosfs /dev/da3s1 /mnt # find /mnt -print /mnt /mnt/RPI_EFI.fd /mnt/bootcode.bin /mnt/config.txt /mnt/fixup.dat /mnt/start.elf /mnt/Readme.md /mnt/bcm2710-rpi-3-b-plus.dtb /mnt/bcm2710-rpi-3-b.dtb /mnt/bcm2710-rpi-cm3.dtb /mnt/firmware /mnt/firmware/Readme.txt /mnt/firmware/brcmfmac43455-sdio.txt /mnt/firmware/brcmfmac43455-sdio.bin /mnt/firmware/brcmfmac43455-sdio.clm_blob /mnt/firmware/LICENCE_bin+clm_blob.txt /mnt/firmware/brcmfmac43430-sdio.clm_blob /mnt/firmware/brcmfmac43430-sdio.txt /mnt/firmware/brcmfmac43430-sdio.bin /mnt/firmware/LICENSE_txt.txt /mnt/overlays /mnt/overlays/disable-bt.dtbo All but the 2 "overlays" lines are based on the content of: = https://github.com/pftf/RPi3/releases/download/v1.37/RPi3_UEFI_Firmware_v1= .37.zip disable-bt.dtbo is a copy of one from a RPi* firmware used for booting FreeBSD on RPi*s. It is not in the .zip file. I adjusted config.txt to indicate to use the disable-bt.dtbo : # more /mnt/config.txt arm_64bit=3D1 disable_commandline_tags=3D2 disable_overscan=3D1 enable_uart=3D1 uart_2ndstage=3D1 armstub=3DRPI_EFI.fd device_tree_address=3D0x1f0000 device_tree_end=3D0x200000 # # Local addition(s): dtoverlay=3Ddisable-bt (The file has a carriage returns at the end of each line. Some editors show such characters as ^M . The characters could be deleted if desired.) I'll note that the firmware/* content is likely of no use for FreeBSD at this point but I did not remove it. It should be okay to not have it present. I'll note that the output from "uart_2ndstage=3D1" does not actually display during the boot sequence. (Sent to the wrong internal UART, as if dtoverlay=3Ddisable-bt had not been used, from what I understand.) Using that microsd card in the RPi3B should try to boot. The EFI prompt will timeout and continue to the next stage (so far as it is successful, anyway). If it all works, it will get to the "login: " prompt. I'm not familiar with what the error reporting would be like if it also has troubles with your equipment. You hit the return key to explicitly continue at the EFI prompt. The Escape key can be used instead to get into the menu system for controlling the UEFI settings. If it gets far enough, the UEFI will try to find the EFI/BOOT/* on your USB media's msdosfs. If found, it will then load the FreeBSD loader and then start it --and things would then be back in familiar territory. The above actually boots via a default setting that likely should be replaced. The related menu/field nesting is: Device Manager Raspberry Pi Configuration Advanced Configuration System Table Selection Picking just Devicetree instead, then saving, and then exiting the nested menus via a sequence of Escape key presses, until back to the initial display, one can then select Reset and it will start over based on the new setting. The save actually updates an area in the RPI_EFI.fd file. (The issue is that the ACPI information is odd: Microsoft specific, not standard. So if the ACPI information is used things are possibly not complete/correct.) =3D=3D=3D Mark Millard marklmi at yahoo.com