From nobody Mon Dec 18 18:44:20 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 4Sv7z93ylbz53d3L for ; Mon, 18 Dec 2023 18:44:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (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 4Sv7z84Crbz3DNG for ; Mon, 18 Dec 2023 18:44:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702925073; bh=QDJYxByl4hOQD1vssDHl3sNc/3aWashhb52Men1Z+w0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=KlEO5luGLb4gAiLTawWl6kPxu5NhwUKOqkSUcvVqI9Cu5lWn5tw214wB7WsQerNN6CDTdYBsg/bkFHx0jhiUhdDCMxG5vnb2cdD95XzR5CrWTBS5NuorOMQd0p4wG8HG054lbKL0b7CWjdtiIy3h6xHrfaxQeXKljFJ/9UUWlXNty6ci23j05ztGIbW2hvywzWmbL5g3nE4LZ2Aac4zmwjU86/FY2p735lBXVUmaQEy8/ZkvYL8PcWkmGCIZ+VUlwepCjTYVkKmgFNOCuCSxKX5hmGtTZ1Q0ng4RQKM6z4eE1KPReatyOijoO97o/Wy6PIBKBL62bXRyyj+WQYhKrg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1702925073; bh=Sg2Qd2v5Y/u05xtvQtuQCrZiq7W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2RL.SEf6eqi72XoYVdVLznuYHlpct4Zjfn_ARUNh31NofXpYJyedInovV46vhAWF1cTH9Jm isHK6eFC9mYSe.hrhDXFuPeRVxc_CXesRNUU519tuvrv3GFEHCZL2zDVvf.yTgk8C.b86fVwLkJ5 H9ultdWCat5spPz2ihg1Qviu9Z3QcQPTskOL7W5dhFB2uZT4ObP9LonFT2pfy.Rgvvseaau0ZJYK x0XYhZUEiDn2sD7owJTfGdg.fxWHqByDktsGrZsP9I_k_a0c65YjRfIj8MzCEZFmb0anPpLulIxa CyHdXKiw2oN461n0ChPY_e00S3s2FyXIHfkQfcm0Nqxxy3HcCxjv_EQTuGp1HIuwMSJAdo8.A9_q D1HBJVSTenNSfoxbJA_OlKTvvfcB.z75M3UwD_aX64wqXAoqUCy04LgHEGy49a1xGt8Xj9ZRCw5I Hu5KFVsP.W9i5HKyvSgJ4_dGsdB0tb.1Jq1SC8AzPJEizfe3hcQncGKSmyWbXljA6pAs6MMjUg6g _7Bt4GNJoWvv.6QaQ4u111qgVCpb14R2SOBVSM9hFd43iw9TjmjiXqliy3wk_RIE_vMl4dKno4g- - X-Sonic-MF: X-Sonic-ID: be45a664-6a4b-47df-9432-40d90adce063 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Mon, 18 Dec 2023 18:44:33 +0000 Received: by hermes--production-gq1-6949d6d8f9-ghhkt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9984605b2120fad599367e16a8728077; Mon, 18 Dec 2023 18:44:32 +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 \(3774.300.61.1.2\)) Subject: Re: u-boot-nanopi-r5c [Was: Re: 14-BETA5 panic on rk3566] From: Mark Millard In-Reply-To: <04c04e63-cfe2-4fa6-b6c3-615b6ae8a3d6@omnilan.de> Date: Mon, 18 Dec 2023 10:44:20 -0800 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <6DCACFA0-0377-4D6F-804A-CF5CEC8918DB@yahoo.com> References: <2CE509A2-AECF-4562-A080-589AC7888F21@edc.ro> <20231012184430.952dd9d5a26c97ee225c9e77@bidouilliste.com> <5211ad65-5289-4776-b839-7c681de77bf4@omnilan.de> <20231215165640.78bab647c883368b8fc9c34e@bidouilliste.com> <04c04e63-cfe2-4fa6-b6c3-615b6ae8a3d6@omnilan.de> To: Harry X-Mailer: Apple Mail (2.3774.300.61.1.2) 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:36647, ipnet:98.137.64.0/20, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Sv7z84Crbz3DNG On Dec 18, 2023, at 10:22, Harry wrote: >=20 > On 12/15/23 16:56, Emmanuel Vadot wrote: >> U-Boot also doesn't support the DRAM controller so we also need an >> external blob from rkbin. >> That's the main reason I haven't done ports for u-boot on rk356x so >> one have to compile u-boot themselve. >> It can be simply done like any other u-boot targets and only needs = two >> env variable : >> export BL31=3D/path/to/rkbin/bin/rk35/rk3568_bl31_v1.43.elf >> export >> ROCKCHIP_TPL=3D/path/to/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.18.bin >=20 > Thanks! I'm happy that - besides the ddr_CLOCK - it matches what I = came up with so far :-) > I'm trying to understand what happens with the help of this: > http://opensource.rock-chips.com/wiki_Boot_option > The attached diff (updates sysutils/linux-rkbin = (g20190719->g20230726), sysutils/u-boot-master (2020.07->2023.10) and = adds sysutils/u-boot-nanopi-r5c) > allows me to build u-boot, supposedly supporting R5C(rk3568). > After putting these onto SD-card with > dd = if=3D/.chroot/build.FreeBSD-14/usr/local/share/u-boot/u-boot-nanopi-r5c/id= bloader.img of=3D/dev/da1 seek=3D8 bs=3D4k conv=3Dsync > dd = if=3D/.chroot/build.FreeBSD-14/usr/local/share/u-boot/u-boot-nanopi-r5c/u-= boot.itb of=3D/dev/da1 seek=3D2048 bs=3D4k conv=3Dsync > my nanopi-R5C boots from eMMC instead of SD. > I downloaded a NANOPI-R5C_EFI.itb elsewhere. > I can get the TianoCore port booting... > But I'm missing the part, where ubldr, the FreeBSD post-u-boot-loader, = is supposed to take over - and how... > I simply created a freebsd-ufs partition and put /boot along with a = loader.conf onto it, which works using the foreign TianoCore port, but = not my newly created u-boot. >=20 > What am I missung after dd'ing? > Any hints appreciated! FYI: ubldr is no longer part of the standard/typical way of booting = these days, at least for armv7 (and aarch64): = https://cgit.freebsd.org/ports/commit/sysutils/u-boot-master?id=3D0d6e5081= eb00 reports (back in mid-2021): QUOTE author Emmanuel Vadot 2021-05-11 18:27:14 +0000 committer Emmanuel Vadot 2021-05-11 20:22:54 +0000 commit 0d6e5081eb0080c4703f1c5cc69c34f38d9149b7 (patch) . . . sysutils/u-boot-*: Remove ubldr support We have been using loader.efi on armv7 for a long time now. Remove = support for booting with ubldr and the needed patches that were never = upstreamed. While here add CONFIG_EFI_GRUB_ARM32_WORKAROUND=3Dy in the = Fragment as it's needed to have the cache flushed for us when loader.efi = is started. END QUOTE Any documentation indicating sny ubldr involvement likely predates that change. > -harry >=20 > P.S.: sysutils/u-boot-nanopi-r5c/Makefile is wrong in the diff = attached, the I used the commented nanopi-r5c-rk3568_defconfig! = evb-rk3568_defconfig is a leftover... >=20 > =3D=3D=3D Mark Millard marklmi at yahoo.com