From nobody Mon Nov 06 10:06:22 2023 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 4SP6Sm73Xkz506lQ for ; Mon, 6 Nov 2023 10:06:32 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SP6Sm3QVbz4RP6 for ; Mon, 6 Nov 2023 10:06:32 +0000 (UTC) (envelope-from mad@madpilot.net) Authentication-Results: mx1.freebsd.org; none Received: from mail (mail [IPv6:fd5c:5351:d272::3]) by mail.madpilot.net (Postfix) with ESMTP id 4SP6Sd1lqJz6gtt; Mon, 6 Nov 2023 11:06:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject:date:date :message-id:received; s=bjowvop61wgh; t=1699265183; x= 1701079584; bh=ewffs/4vfxV54wRK0zK56Ktk2IdOw/YfAUTcWC+Hfs0=; b=M NcbtcWqnsVTyfbS9DqJblQd9paep+SfropE2EO9rPhp69nynKCFXE8Iz7UehoeEZ CSLLo99y+OoP0SIOvT0QgcGgv3N4uQB7vI+YyJ34J6dChz7uWA5TdMgBXv2Tanuy 1WAamtoAEXSOQA+zDe7TgfCl26hlzjZcqnQ14by0+0+8PlKYQOe8nNS5Xk+oYG9/ vQakSYuFS9PgncRhHoUbFZg3OMeqRbLgzHDzJsHb+KndO+1g0EPenVsYq+9Ik27Z BfjK/t2bpXU8pjuVjPzT07p3IkYiDYR4hUu1/LTccIJvAGCaI1B4x0qLkKXOt5CB 3pDXys1Zv4RKTNQuMCaog== Received: from mail.madpilot.net ([IPv6:fd5c:5351:d272::3]) by mail (mail.madpilot.net [IPv6:fd5c:5351:d272::3]) (amavisd-new, port 10026) with ESMTP id OIwmpX9M9OS1; Mon, 6 Nov 2023 11:06:23 +0100 (CET) Message-ID: <9036ce5f-f3b8-4c83-a569-aa4d86436e6b@madpilot.net> Date: Mon, 6 Nov 2023 11:06:22 +0100 Subject: Re: NanoBSD on Raspberry Pi3 To: Brian Scott , freebsd-arm References: <07f36861-caf4-458a-8ddc-6c73a4a09755@bunyatech.com.au> <89e45166-8d87-4050-b9f7-00469187005c@madpilot.net> Content-Language: en-US, it From: Guido Falsi Autocrypt: addr=mad@madpilot.net; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNHkd1aWRvIEZhbHNpIDxtYWRAbWFkcGlsb3QubmV0PsLAeAQTAQIAIgUCT4b6XQIbAwYL CQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQGuaGDlbL0pOWigf/YVTVf3+ZRnzeGP7CjGV1 Wrrxzjc8h8W64NZasV0XLHGFjl5MYwtm9jJ9gbL8Ubtqstey7lYpjOk2fG6YDhY5eptWCpR6 1QqYrioukhCfKbodSk6PnIZcx719nJVK2P7ihdFEN78TavpBwqIf9hGEcKkMpbRFQv1mYvXD hKVwQGY+8bkH/a/pAWmIyD4qMfKCMurH5DexxEt5SYWu5BB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T9fxVUTJe6wIvDLQrQEjrQD/h1FMhfcLhAqsndltRd6DPvTKeMd/6VAxn0 hkoBKhEy5LkWjM9CHppu+bBkQ91/kj2uJQSXO8euonwHHS3c+6N2i2H7I0emcHGu07wuRB2t Dnw/RLBxohffdPZT2kbxuG7lhVHzwVDw5DRwSw8GkOdy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE] X-Rspamd-Queue-Id: 4SP6Sm3QVbz4RP6 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 On 05/11/23 12:05, Brian Scott wrote: > > On 5/11/2023 8:13 pm, Guido Falsi wrote: >> On 05/11/23 04:04, Brian Scott wrote: >>> >>> One of the keys to doing the dual system in my case has been to >>> create a loader.env file telling the loader which partition to boot. >>> >>> # more EFI/freebsd/loader.env >>> rootdev=disk0s3a >>> >> >> Thanks a lot! This made it boot successfully! >> >> Obviously the boot spilled a bunch of errors, most just because I'm >> testing not connected to the network and the configuration expects >> networking to be available, but this is just a test. >> >> Really thanks a lot, this piece of information never turned out in any >> searches I did and I did not notice it in any man page/README etc. >> >> In fact I think this should be documented, if it is not already. Do >> you know if it is already in some manual page or readme or at least >> the wiki? If not I think it should be described in loader.efi(8), I'd >> like to propose a patch to this effect. Maybe also add a note in our >> wiki in the arm and/or uefi pages. >> >> Have you got some pointer to some documentation elsewhere about this >> so I can write an informed paragraph for the man page about this? > I found it a couple of years ago after a lot of searching. No idea where > I found it even though I normally try to keep notes. It would be nice to > see some doco on it. I created a code review to update loader.env(8) man page. I really did the bare minimum there, but it would be better than nothing anyway: https://reviews.freebsd.org/D42476 >> >>>> >>>> I have reworked my scripts to replicate how the official release >>>> images are made in structure. (copying a lot from src/release) >>>> >>>> I got t the point where loader_lua.efi (renamed as the standard >>>> `/EFI/BOOT/bootaa64.efi` in the fat partition) loads, looks like it >>>> is scanning disks but then says: >>>> >>>> ERROR: cannot open /boot/lua/loader.lua: no such file or directory. >>> The loader.env should be read by the bootaa64.efi program. >> >> Yes this was the key to making it work. Maybe if I used a gpt >> partition scheme it would have worked OOB, while mbr requires this >> kind of help. Not sure if it is worth using gpt or could cause even >> more issues though. > As I understand it, the RPi firmware requires MBR partitioning. Haven't > confirmed it recently but it does limit what you can do with nanobsd. I see. Well I have no special preference for EFI over MBR as long it gets the system booting properly, so I'll stay with MBR. -- Guido Falsi