From nobody Tue Dec 19 17:22:03 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 4Svk5X2Vw9z54bGJ for ; Tue, 19 Dec 2023 17:22:08 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (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 4Svk5W1LJVz3TgZ for ; Tue, 19 Dec 2023 17:22:06 +0000 (UTC) (envelope-from freebsd@omnilan.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd@omnilan.de designates 2a00:e10:2800::a130 as permitted sender) smtp.mailfrom=freebsd@omnilan.de; dmarc=none Received: from mh0.gentlemail.de (mh0.gentlemail.de [IPv6:2a00:e10:2800:0:0:0:0:a135]) by mx0.gentlemail.de (8.15.2/8.15.2) with ESMTP id 3BJHM1JY051491; Tue, 19 Dec 2023 18:22:01 +0100 (CET) (envelope-from freebsd@omnilan.de) Received: from [10.100.100.54] (unknown [217.110.88.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id C5FEE64A; Tue, 19 Dec 2023 18:22:01 +0100 (CET) Message-ID: Date: Tue, 19 Dec 2023 18:22:03 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: u-boot-nanopi-r5c [Was: Re: 14-BETA5 panic on rk3566] https://personalbsd.org/images Content-Language: en-US To: "Fred G. Finster" , freebsd-arm@freebsd.org Cc: "fredfinster58@gmail.com" References: <43691d67-3d00-e8d5-f917-fbb2963454cc@thegalacticzoo.com> From: Harry In-Reply-To: <43691d67-3d00-e8d5-f917-fbb2963454cc@thegalacticzoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.27 / 15.00]; URL_IN_SUBJECT(1.00)[personalbsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.980]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:61157, ipnet:2a00:e10:2800::/38, country:DE]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[gmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; DMARC_NA(0.00)[omnilan.de]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Svk5W1LJVz3TgZ X-Spamd-Bar: -- On 12/16/23 04:30, Fred G. Finster wrote: >> ... > Hary,  I can see you are testing and setting up a build environment > for the Nano Pi R5C SBC.   Look at Sleep Walkers work over at > https://personalBSD.org   and Telegram Group t.me/personalbsd > > https://personalbsd.org/images/FreeBSD-aarch64-14.0-CURRENT-NanoPi-R5C-20230522.img.xz > > Hello Fred, thanks, I stumbled across this resource before purchasing R5C, which I considered as my insurance for having an easy onboarding, I thought - the download is 404 these days and I couldn't find a copy out there. > Give this image a test run on your hardware NanoPi r5c.   Then read > register settings and save.  See what settings and values (ie binary > blobs NOT LOADED ) exist in your kernel boot image.  Then modify your > own sources and build another new image again. > Chat with SleepWalker and maybe get a working build environment? > ExtroWerk user, was porting FreeBSD to a GeniaTech RK3566 SBC board. > https://t.me/PersonalBSD/11146  I see ExtroWerk was asking me to build > an image for him. > https://extrowerk.com/2023-10-30/Geniatech-XPI-3566-ZERO-SBC.html > https://github.com/extrowerk > > > > Yes, Harry, I want to see you successfully build a FreeBSD kernel from > source to run and execute on the NanoPi r5c single board computer.  Ie > Get all the "little ducks in a row." Stacking downloaded images in the correct order with correct offset worked - I can boot cross-compiled FreeBSD-14-aarch64 kernel+world from such a SD-card.  But the TianoCore port I found produces incorrect ACPI tables - e.g the eMMC controller is only accessible if I disable ACPI and load a DTB via loader.conf. My goal was to understand the arm-SoC boot process, at least to some degree, and having the ability to compile all the necessary blobs myself - otherwise I would need to choose a vendor who officially supports FreeBSD - which is none afaik, meaning I'd need to deploy a different operating system for my project. Either vendor supported or code available.  Tinkering with dubiously acquired 'images' isn't feasible for me. Is the complete u-boot port obsolete these days?  As far as I understand, there's no UEFI support and since ubldr was canceled. Is there really no way to boot FreeBSD aarch64 with self-compiled ingredients? (at least with only including the bl31_dram blob) I will have a look in src/release for the aarch64 platform, but I thought deploying the boot firmware was more straight forward - especially since there's plenty of doc's claiming that u-boot is all you need... It's hard to identify outdated docs - which is the majority, if not all I found so far... Thanks, -harry