From nobody Sat Dec 16 03:30:21 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 4SsWnG5QgZz54SyV for ; Sat, 16 Dec 2023 03:30:26 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao101.oxsus-vadesecure.net (mta-131b.oxsus-vadesecure.net [135.148.117.229]) (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 4SsWnF62kQz4bJ5 for ; Sat, 16 Dec 2023 03:30:25 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=webcom.xion.oxcs.net header.s=mail1 header.b="eLSJN/s1"; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 135.148.117.229 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; arc=pass ("oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1"); dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com ARC-Seal: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1702697422; cv=none; b=JUCJoBeR62lUGJY7l2xRAtPiIvADAEkDTj0Dbp5hPLle8rNpmF/nbtPocmqGuE+yinB9xNqdPF+k+xsGxsjQXy9JoljvjWW5h62OgOia50fEZwfT02mMEOTF9L7Vp9EUaRx/YvAneMfYvzEfNr2UTM46R/2aYSEC8Pi8stwv+p7og1hMENQHvKQ+cGit9uzzPQx/K/vg3JicFNJ6Q8pLJQZo9yvwGyrh9kJhHBU26eJFVtHQXvQRm+s1dno/t2mV4LBY+mM/t8IU8Phw1Z/msfhlJyf+OInekcXDWspSJu6rJJIeFhWXXChTY6DJN/B5etUUczdmY4VXU+N7G4XJQg== ARC-Message-Signature: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1702697422; c=relaxed/relaxed; h=from:reply-to:subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to:references:list-id:list-help:list-unsubscribe:list-subscribe:list-post:list-owner:list-archive; bh=P1tcSe82QqmbNWxRh2u/RYsPiy7tWThGm7TegPpMqfU=; b=CIW8VKFDdRQOiU3JV/LgATtwo8Wc6xiZQAuEhSWcvZ+MJuItkH8RTo2ZMoeFISH4NPpKXF4xrKEmnf54DEY3qoNojuEm/TU0E80yi9e8ZVoy7zl2/lSCDTYZ36hLzIzQ33lKzZLZBcEQngHUeFKVgdGK5Chfkh9mAU9nVg1QLZ1b1QOrZdouRtETWKEA7BcidXTJr+jHn0Fnq1k3lOCW8SSuw2MR69SDhkEN3YBl8TPj1NxWVZbC5dhuProaw6h5pFoFUsu0gQA8lhPNvwVawwloyLw3beYckoOvRFToyGP3ZrVOyLQcWxWzrNFiYr36nqgLQUXV4Nkv94ozkKiC2Q== ARC-Authentication-Results: i=1; DKIM-Signature: v=1; a=rsa-sha256; bh=P1tcSe82QqmbNWxRh2u/RYsPiy7tWThGm7TegP pMqfU=; c=relaxed/relaxed; d=webcom.xion.oxcs.net; h=from:reply-to: subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc: in-reply-to:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=mail1; t=1702697422; x=1703302222; b=eLSJN/s1LC4vp7M9i4I7CL4WGsvD0zDgNqMbMYBNV KdNdybhLGYmWnmccc6V8pT8KkOfw+qOiuuM/7tXUeXSUgHb/5V/VSE0J3SWFFFmkjRpWC+p c/Zc2ALqk+r5vBIIdnzI4phF1bRLAkfF5STTq1HNIwGkmGTf3Kc3+rRWQ49z3s8sC+xzCDF iGNVhOgQnzpIEU24xb0LJUqjcfY3/XofoWp+GONOuKzlor1ppHtzhO8PPi8r3uFlmQvZCa7 9z2WjiL8gfU0wBit3WQxjtPKcb8Bv/2fa0/UOUASxwF1xuFND+AY/d18amerqQEtjjVXDcj kDOpHJ3iPOSdVAYeg== Received: from proxy-10.proxy.cloudus.ewr.xion.oxcs.net ([76.14.239.229]) by oxsus1nmtao01p.internal.vadesecure.com with ngmta id ccf7ba60-17a13248b7ad78e6; Sat, 16 Dec 2023 03:30:22 +0000 To: freebsd-arm@freebsd.org Cc: "fredfinster58@gmail.com" From: "Fred G. Finster" Subject: Re: u-boot-nanopi-r5c [Was: Re: 14-BETA5 panic on rk3566] https://personalbsd.org/images Organization: Kliktel.co Message-ID: <43691d67-3d00-e8d5-f917-fbb2963454cc@thegalacticzoo.com> Date: Fri, 15 Dec 2023 19:30:21 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_ALLOW(-1.00)[oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1]; URL_IN_SUBJECT(1.00)[personalbsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; FAKE_REPLY(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_DKIM_ALLOW(-0.20)[webcom.xion.oxcs.net:s=mail1]; R_SPF_ALLOW(-0.20)[+ip4:135.148.117.228/30]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[135.148.117.229:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[webcom.xion.oxcs.net:+]; HAS_ORG_HEADER(0.00)[]; ASN(0.00)[asn:16276, ipnet:135.148.0.0/17, country:FR]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com] X-Rspamd-Queue-Id: 4SsWnF62kQz4bJ5 X-Spamd-Bar: -- > From: Emmanuel Vadot > Date: Fri, 15 Dec 2023 15:56:40 UTC > > Hi, > > On Fri, 15 Dec 2023 12:06:02 +0100 > Harry wrote: > >> On 10/12/23 18:44, Emmanuel Vadot wrote: >> >> can this be merged to 14-STABLE >> >> /sys/dev/iicbus/pmic/rockchip/rk8xx_clocks.c >> >> this seems to cause a panic >> >> clkidef.name = (nclks = 2) ? clknames[0] : "clk32kout1"; >> >> >> > It's a bit too late tbh, also I don't consider rk356x stable even in >> > 15-CURRENT, so this will be merged in stable/14 at some point but for >> > now if you want to run on rk356x please use 15-CURRENT. >> >> >> Hi Emmanuel, >> >> thanks for your great FreeBSD contributions! Highly appreciate the >> Porting-FreeBSD-to-a-new-ARM-Board publication too! > > Thanks. > >> Quick question - I'm new to arm/u-boot, but some FreeBSD src & ports >> experience here... >> >> In u-boot-2023.10 there's (master/)configs/nanopi-r5c-rk3568_defconfig >> added. >> Simply copy'n'paste the ports/sysutils/u-boot-nanopi-r4s to >> u-boot-nanopi-r5c isn't enough... (after updating u-boot-master from >> 2023.07 to 2023.10, done that) >> >> I don't understand sysutils/atf-master resp. sysutils/atf-rk3399. >> Simply creating new rk3568 slave ports doesn't work since PLAT rk3568 >> isn't implemenmted upstream... I guess I would have to adjust >> sysutils/u-boot-nanopi-r5c to get rid of the AT-F dependency first... but > > Yes upstream TF-A doesn't have rk356x support right now so we have to > use the ones provided at https://github.com/rockchip-linux/rkbin > >> You mention running 15-CURRENT on rk356x >> >> How to boot? >> >> Would highly appreciate links - I'm currently trying to deploy >> FriendlyELEC R5C here - I could successfully start 14-stable, but just >> by try'n'error metgod, gluing lots of different loader blobs onto >> SDcard. I need to learn a lot, so I'm trying to do it a little bit >> smarter than try'n'error... >> >> >> Thanks in advance, >> >> -harry >> >> > > 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=/path/to/rkbin/bin/rk35/rk3568_bl31_v1.43.elf > export > ROCKCHIP_TPL=/path/to/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.18.bin > > Cheers, > > -- > Emmanuel Vadot 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 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." like binary blobs, makefiles, KERNCONF=GENERIC-NANOPIR5C . Best of luck to you, Harry. -- Fred Finster GhostBSD-Arm64.blogspot.com t.me/ghostbsd Telegram Channel GhostBSD.org website