From nobody Fri Sep 29 17:22:15 2023 X-Original-To: riscv@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 4Rxxx40X1lz4vBJb for ; Fri, 29 Sep 2023 17:22:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rxxx369tvz4bpR for ; Fri, 29 Sep 2023 17:22:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696008135; a=rsa-sha256; cv=none; b=UnELO0rkbM7SHlEUU7ldnEGzrUMZO4fBuGfBI7RSeyoMz4lj3OGOv0EnIGH++iCXlgXXkv 5uy7B34GWUrPRS4ZQ4kNqgrBTj26T0alHmdAAdmYr94ZCzlC0F3af4HavGLf4rcvTJpmLz /pbusMFMkST9wDcaQedZJLv+2KPganPC5KWV6t/DO2zAFEehCAb9R4+B2bOcTjLbmD9B6z H519IEiQoOeX4iwMkYaB/QPGxhGWvhUBN9bdyOsk1G3hRSgrpRcNOL9ueysQMDCkKwA+o6 J8SZxSWM7IPjfO0OhLVqTXgHTmeOd69+7GuPoR99cfHlZaWIyAn4pAQO9aVpMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696008135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=08W88E9XyLaLGn7BV/CZQVfFjZMPCpH7ys8j6PJVDRE=; b=e6IZupVzy0sucpARBrFpfK60vjiuV6OBo7nCTLjjRl4k3j+6ZWh37W+7VKcTQ1Eoq1eWZJ 54s1sMjpIX9RgJdL0Oh3ffrlbWU7zB2z/2ctnBRK5CRu/1+YzKZZoinR/UymXI+YTZau3N xgxa3gHHNZ16O6JSlDsqOxmyxO6+70KgYT8zP7mZ98J22MWR/HtknfwFOYejjJoTKK0rAu 1rAL0voT7CAMSjnt5HsW9klRjWkln4diTCtkpIfh9Z6OWdd/xfz0P6ehFizZU6HXywbB3x zTYJ0ZGil5DI6gV5Sn/tOBNFx00rAxfS+EwOnaZOJoCh72CFQC9hX2+MSBFegw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rxxx35GTwz1Bsh for ; Fri, 29 Sep 2023 17:22:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38THMFgJ034235 for ; Fri, 29 Sep 2023 17:22:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38THMF0a034234 for riscv@FreeBSD.org; Fri, 29 Sep 2023 17:22:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 273438] PANIC: memory modified after free on relatively idle riscv -CURRENT Date: Fri, 29 Sep 2023 17:22:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dgilbert@eicat.ca X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273438 --- Comment #5 from dgilbert@eicat.ca --- (In reply to Ruslan Bukin from comment #4) This is ZFS-root, so I can't easily disable ZFS. Another crash ... almost identical signature just occurred. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Oct 10 01:03:01 2023 X-Original-To: freebsd-riscv@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 4S4Hj15ZHkz4wqHr for ; Tue, 10 Oct 2023 01:03:49 +0000 (UTC) (envelope-from csgordon@fastmail.com) Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) (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 4S4Hj029YPz4HtX for ; Tue, 10 Oct 2023 01:03:48 +0000 (UTC) (envelope-from csgordon@fastmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fastmail.com header.s=fm2 header.b=H2FameTk; dkim=pass header.d=messagingengine.com header.s=i60c149f6.fm2 header.b=COyFv1uo; spf=pass (mx1.freebsd.org: domain of csgordon@fastmail.com designates 66.111.4.230 as permitted sender) smtp.mailfrom=csgordon@fastmail.com; dmarc=pass (policy=none) header.from=fastmail.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 59F375803A7 for ; Mon, 9 Oct 2023 21:03:47 -0400 (EDT) Received: from imap53 ([10.202.2.103]) by compute2.internal (MEProxy); Mon, 09 Oct 2023 21:03:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1696899827; x=1696900427; bh=artM/nh2WnASwVb2KxBKzYup5 uS3WiMiSC7O3/niFMM=; b=H2FameTk7Jttl3uds/DyvohqmZKwZjjZ7zyEgMLKO KVCP3OSnaibhEOlJ6JGF/6V6mbi+LRzc2m3e1gKF6adSuH0HGmWDTAsgfNTAHQGv 2LfQFqyzPfqtKgNlYEFgozlbzSAquwZH3ouPLePyiIWUG9UUzM/f/YKTNETtSgGH 4WIuYgjSVMDIPBS9vVngl8FlmRlch7M0VL2YIcpHqjgAuR0YwrmqurkgN5kTchVL zkACWHT44LKhNWa8X7h6XoG7tkV6B9rOnr987XB0BkEt6ljzQVoonl+IsU8gNsaL Kl87uPWJCVIYpgD39ynOZ1gaLpCMNK4H2Qb3yr3dJwOew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=i60c149f6.fm2; t=1696899827; x=1696900427; bh=artM/nh2WnASwVb2KxBKzYup5uS3WiMi SC7O3/niFMM=; b=COyFv1uoYNFT3t7CgK4bELN2b3X2vPA2D//g1vsQoZEnXcUH n1NL4z+OSLZSs5K3ik3qC2fGnr/ek7nn6EqzX+9TMjGO7tRr5L22wg9ApOqyqkYw khd3oXHVpDjbLkoiuZY069MCIEFEIPVwXJlndkyEXNIrvD+pVr9e5rRYgoJrjYMb XzKS3AIqcz+CqbLMcHbPY2zOVKv/ppbnPQh/T4j+1dIKp/CR7/u4f+ENBQjDs1Mz lMW8DSeyCAKCwZwZZeVZHGG+I6EFQMntOvl7lVIoRfgeJCXeqExwfW+ESgTrtrnb mcpeltIGXNzYFw3DgenjkuWsOUsbRO30iyvZCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheeggdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtreerre ertdenucfhrhhomhepfdevohhlihhnucfurdcuifhorhguohhnfdcuoegtshhgohhrugho nhesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeevkeevleefgfekue euveekkeffgefgieffteekhfeutdelheefudeluedugfegteenucffohhmrghinhepfhhr vggvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegtshhgohhrughonhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i60c149f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id EFBAA3640066; Mon, 9 Oct 2023 21:03:46 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-Id: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> Date: Mon, 09 Oct 2023 21:03:01 -0400 From: "Colin S. Gordon" To: freebsd-riscv@freebsd.org Subject: StarFive VisionFive 2 support Content-Type: multipart/alternative; boundary=dc7dac991daf42e5959246ab060235ac X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.89)[-0.891]; DMARC_POLICY_ALLOW(-0.50)[fastmail.com,none]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.230]; R_DKIM_ALLOW(-0.20)[fastmail.com:s=fm2,messagingengine.com:s=i60c149f6.fm2]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.230:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; FREEMAIL_ENVFROM(0.00)[fastmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[fastmail.com]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[fastmail.com:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org] X-Rspamd-Queue-Id: 4S4Hj029YPz4HtX --dc7dac991daf42e5959246ab060235ac Content-Type: text/plain Hi, I've been looking at support for the StarFive VisionFive 2 off and on for the last few weeks, using the OpenBSD support as a reference. Recently it was recommended to me that I check here whether anyone else was working on this before I got too far, to avoid duplicating and work. The core of the support is the JH7110, which is also what's used in Pine64's Star64 and PineTab-V. I got the micro SD and eMMC working today with a temporary hack (I hard-coded a frequency because the clock-related potions of the DTBs for this board omit things FreeBSD expects; updating that code is next) and a local fix to build mmcsd as a module (I reported https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274388). Is anyone else working on support for any of these JH7110 devices? I'm having fun and happy to keep chugging along on my own, but if anyone else is already working on this perhaps I can focus on support for distinct parts of JH7110 support. -Colin --dc7dac991daf42e5959246ab060235ac Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi,

I've been looking at support for the StarFive Vis= ionFive 2 off and on for the last few weeks, using the OpenBSD support a= s a reference. Recently it was recommended to me that I check here wheth= er anyone else was working on this before I got too far, to avoid duplic= ating and work.

The core of the support is = the JH7110, which is also what's used in Pine64's Star64 and PineTab-V. = I got the micro SD and eMMC working today with a temporary hack (I hard-= coded a frequency because the clock-related potions of the DTBs for this= board omit things FreeBSD expects; updating that code is next) and a lo= cal fix to build mmcsd as a module (I reported https://bu= gs.freebsd.org/bugzilla/show_bug.cgi?id=3D274388).

Is anyone else working on support for any of these JH7110 device= s? I'm having fun and happy to keep chugging along on my own, but if any= one else is already working on this perhaps I can focus on support for d= istinct parts of JH7110 support.

-Colin
=
--dc7dac991daf42e5959246ab060235ac-- From nobody Tue Oct 10 01:52:22 2023 X-Original-To: freebsd-riscv@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 4S4JnJ5jZfz4wtnj for ; Tue, 10 Oct 2023 01:52:36 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4JnJ5H6zz4M8S for ; Tue, 10 Oct 2023 01:52:36 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-59f82ad1e09so64925777b3.0 for ; Mon, 09 Oct 2023 18:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1696902756; x=1697507556; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QazVOA+bqouw3Ci6ArYmu7AWrh/MRSMP44ZlMM7M15c=; b=g4Vl3IddWEa4Lai+895h2Q+NFE5jpzHhmUfWKpLzmfrukEWIKNvj6PTDNA8/Ge5SYY wDsQYyijFfewZw25leULuOSln+UleBGbvyce2o6YkT9RNNEjLEvoa2lYgpP6o3TkBumO oFyEl6W170uX55PaZPbp81/0pmzTiBGqRYwz2i3X2O/j/A7EBMRw9nCbUJJ8dU70vpVJ rKfoEkuAendNkqcJZv07NiyLReoAcxPckQB+Ws+83xeeoyv9sSbdh+8llEm6uVy3SNvx NlkVajFozQLy5T//W5BPFr7eUVG11kmZeMW+p+Gf8XDgIpo378D1rkyrlq1tio5mVUWq Zv+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696902756; x=1697507556; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QazVOA+bqouw3Ci6ArYmu7AWrh/MRSMP44ZlMM7M15c=; b=e9jAz69qQn7waigWh/ep8iXBBMB2T1fHLSc+FD0Xxxcy9YCHyThy6qe2Dx2srVNPOW gnZdK55vymD6hmlm9EMu9EnsOk16JoqWyZpik0X9OeRtwQqoU/bYphitbXMIhIiU1Ian 4l9ojs2hk+cJxwTVsodTsf22qDuoNrlQP7HlIQ0ADQB1RsIOHVT1oiIGoiu+Uf4SLoG2 FYj18BDSTJgtGGTyP5E+94VAY5+FqypOzlfHqPNEuNYE+e0kFkLoz0MiKYrThjvA1YvZ W6Xa0iP7YYzmNAdCRbWfUVgcTdSg69DtTx3UJASdCpc8BV/Dibk1EZSz3UrgPnB/NvoK nmzA== X-Gm-Message-State: AOJu0YwM+cxIH9FWI5lOdo79Wy1jKMDrYx7aa9ouipq9gNF8WuEHKORA 6fgJRT7GNmwZ0OqerbsAbbYO0R2mGiEA3NMq/bM= X-Google-Smtp-Source: AGHT+IFPUw7BQx4Zaz4t+HUUdJX7D86dnym6h88YWTvdVTTnq2/DhbC5RpSR2XoazE61EUeXbMB8EQ== X-Received: by 2002:a81:4f95:0:b0:5a7:b819:648f with SMTP id d143-20020a814f95000000b005a7b819648fmr1563974ywb.4.1696902755719; Mon, 09 Oct 2023 18:52:35 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id u17-20020a81a511000000b0059af9f2ee68sm3993203ywg.66.2023.10.09.18.52.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 18:52:34 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5a7ab31fb8bso10505917b3.1 for ; Mon, 09 Oct 2023 18:52:34 -0700 (PDT) X-Received: by 2002:a81:5405:0:b0:573:30c8:6e1d with SMTP id i5-20020a815405000000b0057330c86e1dmr16899134ywb.44.1696902754527; Mon, 09 Oct 2023 18:52:34 -0700 (PDT) List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> In-Reply-To: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> From: Tomek CEDRO Date: Tue, 10 Oct 2023 03:52:22 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: StarFive VisionFive 2 support To: "Colin S. Gordon" Cc: freebsd-riscv@freebsd.org, robn@despairlabs.com, "Lee, Lup Yuen" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4S4JnJ5H6zz4M8S On Tue, Oct 10, 2023 at 3:03=E2=80=AFAM Colin S. Gordon wrote: > I've been looking at support for the StarFive VisionFive 2 off and on for= the last few weeks, using the OpenBSD support as a reference. Recently it = was recommended to me that I check here whether anyone else was working on = this before I got too far, to avoid duplicating and work. Your posts are famous Colin :-) https://discuss.systems/@csgordon/110969847755944311 After I got my VisionFive2 board in January I have tried FreeBSD boot method presented by Rob (CC) on GitHub but it was sllllllooow and no drivers were available except for UART pins. Did not go any further but I will be more than happy to help testing :-) https://github.com/robn/freebsd-vf2 https://forums.freebsd.org/threads/freebsd-on-visionfive2-board-with-risc-v= -rv64gc-starfive-jh7110-soc.87757/ My friend Lup Yuen Lee (CC) is porting NuttX RTOS to JH7110 and already made tons of discoveries that are all documented.. you may join forces and share discoveries to make both NuttX and FreeBSD/OpenBSD fully available on that new amazing RISC-V platform :-) https://www.hackster.io/lupyuen/rtos-on-a-risc-v-sbc-star64-jh7110-apache-n= uttx-2a7429 https://lupyuen.github.io/articles/release https://www.youtube.com/watch?v=3D6vQ-TXXojbQ Have fun :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Tue Oct 10 06:49:15 2023 X-Original-To: riscv@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 4S4RMb6KJ3z4wFxk for ; Tue, 10 Oct 2023 06:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4RMb5Bttz4nfL for ; Tue, 10 Oct 2023 06:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696920555; a=rsa-sha256; cv=none; b=ighOqNRf5e2d4+MgSOs1N9N9usXiFd2/q0VIFTb3psPABEZCjyI7blkQfLIGyEZLNp5k59 z7EaMeVaczTKQzOVAvqPbheNpcc09cC2c3T9XYBImWmzs6eZ/jPULja8pcNY8rdjt/p23r 5u68v+5tCfsMGI4TwGKFcTKSnqGi3C850yhJF4ZLCgMn4LLpESixKKvutHd2Ry0Eb5EVBD kdoJ97JCsvBGD/gY78SCERI2RtLjMvOFQGjB35KwjJ83xfwLz/Y/WqVHtGeCdHbX4hOtrC RAiGv7OmV7NKwTOegmdhw5VTzZl/4+0pRoslrCjUir+NUcY/XcWIedSl6c9qHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696920555; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=stqxU8s70ovEgO4UvG+ThLZVVYIKAd91Fv4ykUlLdcI=; b=THZNeKWxFjxbqq0FtzUaS+UIFqh37y5pbGVvqXqjGEUQ+LZNLzpghdj7LGCtJ8trwzWY2+ n0bb4f4eSzTUtMsPdFMcj4AVY9NHolcr7eDqHlnvWTbVrkE4GAa2Ioi/U4+HES7VGE5nUQ I8tTVlO2CpP+jqep9jn22L+17LLyKkOnhGmsB4M6oJWNb4drbBsIFzT9/ZO4MNxlpLvTbq wH+VesYvoM5GmZCaBXETYhXVhHjYYYdyadayKLMVsDu2bbGvdpTb333f4/K7/5peGz+eJD UXi4m8OZ7Nk2iKFEcBP1sogyZiS/XueT/Tv22a8HVsk5IqQWHfGO9yCVzAMJqg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S4RMb4HDCzD23 for ; Tue, 10 Oct 2023 06:49:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39A6nF6U061927 for ; Tue, 10 Oct 2023 06:49:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39A6nFdf061926 for riscv@FreeBSD.org; Tue, 10 Oct 2023 06:49:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 274388] Several modules declare dependency on non-existent 'g_flashmap' kmod Date: Tue, 10 Oct 2023 06:49:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_file_loc cc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274388 Graham Perrin changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |riscv@FreeBSD.org URL| |https://github.com/csgordon | |/freebsd-starfive2/commit/9 | |5e24f536ddd4bde5f3b441c5e3a | |45a5a0acc49d CC| |grahamperrin@gmail.com Status|New |Open --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Oct 10 06:50:14 2023 X-Original-To: riscv@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 4S4RNk44Skz4wGDT for ; Tue, 10 Oct 2023 06:50:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4RNk2rZrz4nhQ for ; Tue, 10 Oct 2023 06:50:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696920614; a=rsa-sha256; cv=none; b=xB1ghhVieDmpehT33KEi6FLzZw+Lvd2+geJGVk5yv4+b2PiiAe+f+6F4cfAX5zXvVM/zFL JJIz6HahW7Df34eccqHVVVTOBwFmK0eRWOIaudnIINKMSeE/scodrB54vFK6PjPmT27cvy bownYIQzRzL/h4N0BVARCAsYrzZowxMKw3/KBiH4VO4E8WXNyYV/ryHi/9RHRRkuqegJ8g laZR/rg8buSjlglDehGC/1+QWyiZn4t3TIq0f3r9Z3eHDozvjaitSN0+1d9MlJ/e2dqPX5 hvaq9NyM0JWn+nf5CKpGR8s9dbU1+BjGiv0WqYwBXnaFiZQwC6nYi8w8MnYYNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696920614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=szr6wQrOWEAgVfS5CeebgJWAXX4R+Su77s32bHiOycs=; b=O8YvhjN0tc0M6UalSm4orRVp2EaITJgLWT95tKFEmNQzzlvR//8wVIJgj9me2tJN/DwCy2 LJtORzHgZMDh5nWghnm1Gm0D24K6Td626IJS0DvgukfdXhg66lQ+nx2NLRhNQSWfXQo8Hl Na+Dj98VLrdi2oUsy8+1+RI6H1SFR5NY9id5VKebeFz60tkknOPR5sSzlpytNOGA6I3tPg NAPTiOXUpiYmc/zamg3XmQaA0ZeCC8fLFMa38eccdlyZghB9M0FkfHLfIAOPme3eKfLito iWw2GdfjJ/6sYrcP8ltEgGydYSsT90ydXT2StOUiSR6PuT7VAPeSrA73sSYJhg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S4RNk1wRYzD7C for ; Tue, 10 Oct 2023 06:50:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39A6oEfg062495 for ; Tue, 10 Oct 2023 06:50:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39A6oE7l062494 for riscv@FreeBSD.org; Tue, 10 Oct 2023 06:50:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 274388] Several modules declare dependency on non-existent 'g_flashmap' kmod Date: Tue, 10 Oct 2023 06:50:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: grahamperrin@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274388 Graham Perrin changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|riscv@FreeBSD.org |bugs@FreeBSD.org --- Comment #1 from Graham Perrin --- Sorry,=20 > platform-independent. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Oct 10 11:43:50 2023 X-Original-To: freebsd-riscv@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 4S4YvZ3k2Lz4wdR2 for ; Tue, 10 Oct 2023 11:43:54 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4YvY6vRfz3bSf for ; Tue, 10 Oct 2023 11:43:53 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1696938230; x=1697543030; i=jsihv@gmx.com; bh=0dCPB0uP5Wddp/l1zEKUiUJT1uk73Vy+WSCYDaF3zdU=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=j2Bcvi/DfDkas68eyKYPdiZ6cnl+MeU4tO3UwV+34YtataXrcAsUYw2tyGFeATEJGq4nIvBv1v/ U4Hr2EiH3aluuEA9dU4wSPl2GSrTYZUBAvDWsjKU8AjYGmVXAPDFBvwvLmfhdy77Dc5nB0iwYfPel WqLpEJKNDE2zQF9J11RcCntcJYA3SX3JG6gLdApOmJAug912dQ9QBX3LVL4QeHiW9rAKGQN5A7yI7 1Hb1+POBE8FDosX3i7llJYYubFihQ23+UDBU5NdMNA5EgxJbFbYf3x3/cpZz/x1FjAbGonjvW7qyx FVR1kT6OgKsXODbjosV2aWCLcCjqbkFAs+eA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [80.221.188.206] ([80.221.188.206]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 10 Oct 2023 13:43:50 +0200 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: "Colin S. Gordon" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: text/plain; charset=UTF-8 Date: Tue, 10 Oct 2023 13:43:50 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:WIHjlaeH8fqptCZqBxl4QGwrJ5caP5H7q8208iiiOOTA4c1LZFK1BykpzqxydG7b/L9u9 9JadSvJdIfPhheseTIoI7QhAzhhAS3qb3E08YZiUWIeWtISWKQrPCQkxGtATmX5SmtFTrzy+iRMi Fvvt7+FF1+3DxKZnHL3s3VyMRO9IPCDPjkzW8upTb0SYuP2ksLrJzQKCP94fB9zboGjgYAtgAgMj SDND90Ss2LltbJiRDxQMuYmSx963aCKrNaeu79vaEWV9z3/1a7z2YjYDGb4T+HbQqZ38GdptIdfO Fc= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:oNh21GsZe1Y=;nuLZjxLpIEpSk0sVbTD8VmbQHKU n6RG2vDi5BwZRf+H1sOl0Ju/DggKGHcffr2RLEY+NMDS0EV6L4rYREGP/hHuCDKEzFX6GP+F2 9kqbZ1hbKMNrgsZqc+KU+Co8Oen19q+SI2+ZFZSZN/87+Kxx/3m0X8b5Rq8JtlN1+v+etQByG lZCvB1wOroCorq93SyUGcI0HAqB0rgvFrWloF33y8h5IaPrpDifKSKpJDeO80//SDIDtGoAp6 A2Z2qtEFuTVbhNhEKQlQEYID7ixpB3vl7rmD5ZGR/ssWXnH7VOGRL1U8kklP9ubpphgGyjeUL VBNKK5ZS2jT5cuPw81UxIEXpc1CoJRZ2baFHFS61ce5taQp3QQmAe5P0kaJ7BrdMZqZ47TmR4 93nL8uXw1TDP0y44EpctVOa1r7JuiPpQdFwFpXl8SihR/T1MyP4ot5TpSnDFACtaUwD3mA1J9 A9n690Smm2flkh/PcbF7pDCcyjg3Sn18Ro4SYWcobLsvqyeD89CX8dvME7bATQplqOkWcoLTz vTs5q3T6V48FG52FSikUf6zvxOsIQ4LmmpZZquiX2jjnvMIGekf+YoDuw8wWl3sg0IekDk66e TfGm8kHS3SqYf7LWOHWpTEGey6HXDRxNHl/uOBqGkRNR86vgOBa/DDYdWsUOPSDeoRswcs4fz LMQDCcickNuBrxvMg2tDTCf5yuk7N9xFP5mWk6J23/6JBfcCuny7a14viyNgIHF0pK22TbQCp Xrej24xloBUxX7wCqL3NZ/n7QvbqQoM+rx13vxQFOxzG544bNRwpsIIpzsTPFdDfZkKH13LCx lKCQL4I5FslXpQw6k+m0r1vQ== 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:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4S4YvY6vRfz3bSf On Tue, Oct 10, 2023 at 3:03=E2=80=AFAM Colin S=2E Gordon wrote: >I've been looking at support for the StarFive VisionFive 2 off and on for= the last few weeks, using the OpenBSD support as a reference=2E Recently i= t was recommended to me that I check here whether anyone else was working o= n this before I got too far, to avoid duplicating and work=2E I've had JH7110's FreeBSD support as my project to learn kernel developmen= t=2E Here is my github repository: https://github=2Ecom/jsihvola/freebsd-src/ I have written preliminary drivers for GPIO, reset and clock gen and now it boots=2E (Unfortunately I wasn't aware of M=2E Horne's DMA fix for MMC and spent ar= ound a=20 month fixing it by myself (I only should have gone through his old Github= =20 repository more carefully=2E=2E=2E)) For last weeks I've been working with Ethernet driver (gmac4 devices are= =20 supported in FreeBSD (/sys/dev/eqos) but JH7110 needs more code=2E=2E=2E) Being busy with all this stuff I haven't _yet_ inspected Robn's Github=20 repository, but I'm aware of it=2E So be free to use my codes=2E And I hope we can communicate for a more=20 coordinated JH7110 development effort=2E -Jari Sihvola -- jsihv@gmx=2Ecom la_mettrie @libera la_mttrie @EFNET From nobody Tue Oct 10 14:08:43 2023 X-Original-To: freebsd-riscv@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 4S4d7B1lvJz4wpM1 for ; Tue, 10 Oct 2023 14:09:10 +0000 (UTC) (envelope-from csgordon@fastmail.com) Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) (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 4S4d796cV1z4NGT for ; Tue, 10 Oct 2023 14:09:09 +0000 (UTC) (envelope-from csgordon@fastmail.com) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id EFDD32B0023A; Tue, 10 Oct 2023 10:09:06 -0400 (EDT) Received: from imap53 ([10.202.2.103]) by compute2.internal (MEProxy); Tue, 10 Oct 2023 10:09:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1696946946; x=1696947546; bh=fw DuVotmuP2tbq3wQDcctY/q4Nxe5C8094EsNsmqmmA=; b=lPlO3cuHzO7qk18fbH SrkuJaLL+8KFOEwKexA97b1NhVEeEETiYSLrFeQL8b6IAvVN/zLBIimEjs2XUPFV yUwiibN5nUr1q34CL6gSGeyTdXREW1aHRB4XWcojHJHGkvxNnq/IQMq5PpNOZYBb vIMv3j5n5Da9Pl2JHBtWOTUFGfIk1JpBNlMy29xQULNtFflo3ylV9ipBF/x37zep tL+nU+6NWsm7G1rglx3n8xFWA7z0/A4waKlZZJ5q/JqmHUwAhi5YGayntrN33QUm d/URBZz8yIwYug+C+xRuLDnd539P0TKxpJCHpMXJgyZHB92igAPTdO5ZlhoaUK0M IYlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=i60c149f6.fm2; t=1696946946; x=1696947546; bh=fwD uVotmuP2tbq3wQDcctY/q4Nxe5C8094EsNsmqmmA=; b=coF2wgbn/Trs70ay7GJ IhKqbEcDgeMijxExqSqRRPD6dGYIl0yLJ3PRzVTl8YgfR4yKNjGPs10YqLqp29dn 1xg7nz+cfauFMcaKJh+FahBk3uxlVKnGSNUVPeGD/uK122ULjmIgcZYv9trsaFIk uAiW4fGEuqhMRpZq2UiP3vuMinmMmmwt/1rgRv9RhM2pjDJYnUAjFYW75bAwlcrq +BcvMHwbxY5MLEnyqi7Gp9wguZ0Pd8wGD4Z53XfRuUlCJWO0oH51CC9dFWxP7Wli pp9V3yeEp3APWCLob07aIB4F8bvkloqhLJUViOoPuWjy0zGhfRu1vC5TOfDCLuIA Xog== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheehgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughrpefofgggkfgjfhffhffvvefu tgesrgdtreerreerjeenucfhrhhomhepfdevohhlihhnucfurdcuifhorhguohhnfdcuoe gtshhgohhrughonhesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpefg teejgeegffduleegjeehvedvffegvedtfffgffetvdefgedtleffffejfedvieenucffoh hmrghinhepghhithhhuhgsrdgtohhmpdguihhstghushhsrdhshihsthgvmhhspdhfrhgv vggsshgurdhorhhgpdhhrggtkhhsthgvrhdrihhopdhgihhthhhusgdrihhopdihohhuth husggvrdgtohhmpdgtvggurhhordhinhhfohenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegtshhgohhrughonhesfhgrshhtmhgrihhlrdgtoh hm X-ME-Proxy: Feedback-ID: i60c149f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B266F3640066; Tue, 10 Oct 2023 10:09:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-Id: <1455fbf5-c56e-4584-887d-f8edbe66724c@app.fastmail.com> In-Reply-To: References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> Date: Tue, 10 Oct 2023 09:08:43 -0500 From: "Colin S. Gordon" To: "Tomek CEDRO" Cc: freebsd-riscv@freebsd.org, robn@despairlabs.com, "Lee, Lup Yuen" Subject: Re: StarFive VisionFive 2 support Content-Type: multipart/alternative; boundary=d9ad1932acc949c5a779f8dcf6c04a3b 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:29838, ipnet:64.147.123.0/24, country:US] X-Rspamd-Queue-Id: 4S4d796cV1z4NGT --d9ad1932acc949c5a779f8dcf6c04a3b Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks for the references! I've actually been using a modified version o= f Rob's script so far to test additional kernels --- I have the script p= ause partway through so I can installkernel with DESTDIR set to what end= s up as the uzip root. But now that I have (super-hacky) access to the e= MMC, I'm hoping to experiment with installing to eMMC and self-hosting (= though still using the serial console for now), using ZFS boot environme= nts to iterate faster than cycling through repeatedly rebuilding and re-= burning the sd card (the card I've been using is starting to fail, too := -D). Should make debugging the mismatches between the StarFive DTBs and = the clock-related properties FreeBSD expects to find much faster (right = now the biu and ciu clocks for the mmc devices aren't found by FreeBSD d= ue to those mismatches, and it's deeper than just a missing property). I'm also aware of Lup's exceptionally detailed posts, which cover a lot = of information without me needing to browse the NuttX code --- licensing= is one reason why I'm currently focusing on porting OpenBSD's driver's,= I'm trying to avoid relying on non-BSD-licensed code references. I foun= d some of the overview of the RISC-V architecture and privilege levels e= specially illuminating. And to be clear OpenBSD already runs pretty nicely on the VisionFive2 (h= ttps://gist.github.com/csgordon/74658096f7838382b40bd64e11f6983e), Mark = Kettenis wrote and/or extended drivers to support many of the devices, i= ncluding PCIe, USB, and the NICs, with help from a couple others (none o= f whom were me). The only thing they're currently missing for a self-con= tained system is working support for video out (via proper display drive= r or UEFI framebuffer). -Colin On Mon, Oct 9, 2023, at 21:52, Tomek CEDRO wrote: > On Tue, Oct 10, 2023 at 3:03=E2=80=AFAM Colin S. Gordon wrote: > > I've been looking at support for the StarFive VisionFive 2 off and o= n for the last few weeks, using the OpenBSD support as a reference. Rece= ntly it was recommended to me that I check here whether anyone else was = working on this before I got too far, to avoid duplicating and work. >=20 > Your posts are famous Colin :-) >=20 > https://discuss.systems/@csgordon/110969847755944311 >=20 >=20 > After I got my VisionFive2 board in January I have tried FreeBSD boot > method presented by Rob (CC) on GitHub but it was sllllllooow and no > drivers were available except for UART pins. Did not go any further > but I will be more than happy to help testing :-) >=20 > https://github.com/robn/freebsd-vf2 >=20 > https://forums.freebsd.org/threads/freebsd-on-visionfive2-board-with-r= isc-v-rv64gc-starfive-jh7110-soc.87757/ >=20 >=20 > My friend Lup Yuen Lee (CC) is porting NuttX RTOS to JH7110 and > already made tons of discoveries that are all documented.. you may > join forces and share discoveries to make both NuttX and > FreeBSD/OpenBSD fully available on that new amazing RISC-V platform > :-) >=20 > https://www.hackster.io/lupyuen/rtos-on-a-risc-v-sbc-star64-jh7110-apa= che-nuttx-2a7429 >=20 > https://lupyuen.github.io/articles/release >=20 > https://www.youtube.com/watch?v=3D6vQ-TXXojbQ >=20 >=20 > Have fun :-) >=20 > --=20 > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >=20 --d9ad1932acc949c5a779f8dcf6c04a3b Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks for= the references! I've actually been using a modified version of Rob's sc= ript so far to test additional kernels --- I have the script pause partw= ay through so I can installkernel with DESTDIR set to what ends up as th= e uzip root. But now that I have (super-hacky) access to the eMMC, I'm h= oping to experiment with installing to eMMC and self-hosting (though sti= ll using the serial console for now), using ZFS boot environments to ite= rate faster than cycling through repeatedly rebuilding and re-burning th= e sd card (the card I've been using is starting to fail, too :-D). Shoul= d make debugging the mismatches between the StarFive DTBs and the clock-= related properties FreeBSD expects to find much faster (right now the bi= u and ciu clocks for the mmc devices aren't found by FreeBSD due to thos= e mismatches, and it's deeper than just a missing property).

I'm also aware of Lup's exceptionally detailed posts, = which cover a lot of information without me needing to browse the NuttX = code --- licensing is one reason why I'm currently focusing on porting O= penBSD's driver's, I'm trying to avoid relying on non-BSD-licensed code = references. I found some of the overview of the RISC-V architecture and = privilege levels especially illuminating.

A= nd to be clear OpenBSD already runs pretty nicely on the VisionFive2 (ht= tps://gist.github.com/csgordon/74658096f7838382b40bd64e11f6983e), Mark K= ettenis wrote and/or extended drivers to support many of the devices, in= cluding PCIe, USB, and the NICs, with help from a couple others (none of= whom were me). The only thing they're currently missing for a self-cont= ained system is working support for video out (via proper display driver= or UEFI framebuffer).

-Colin

On Mon, Oct 9, 2023, at 21:52, Tomek CEDRO wrote:
On Tue, Oct 10, 2= 023 at 3:03=E2=80=AFAM Colin S. Gordon wrote:
> I've be= en looking at support for the StarFive VisionFive 2 off and on for the l= ast few weeks, using the OpenBSD support as a reference. Recently it was= recommended to me that I check here whether anyone else was working on = this before I got too far, to avoid duplicating and work.
=
Your posts are famous Colin :-)

<= div>https://discuss.systems/@csgordon/110969847755944311


After I got my VisionFive2 board in= January I have tried FreeBSD boot
method presented by Rob= (CC) on GitHub but it was sllllllooow and no
drivers were= available except for UART pins. Did not go any further
bu= t I will be more than happy to help testing :-)

=



My friend Lup Yuen Lee (CC) is= porting NuttX RTOS to JH7110 and
already made tons of dis= coveries that are all documented.. you may
join forces and= share discoveries to make both NuttX and
FreeBSD/OpenBSD = fully available on that new amazing RISC-V platform
:-)



https://www.youtube.com/watch?v=3D6vQ-TXXojbQ


Have fun :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


--d9ad1932acc949c5a779f8dcf6c04a3b-- From nobody Tue Oct 10 14:22:39 2023 X-Original-To: freebsd-riscv@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 4S4dRC0FBpz4wqMp for ; Tue, 10 Oct 2023 14:23:03 +0000 (UTC) (envelope-from csgordon@fastmail.com) Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4dRB5Wl9z4Pm4 for ; Tue, 10 Oct 2023 14:23:02 +0000 (UTC) (envelope-from csgordon@fastmail.com) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id CA61A2B00127; Tue, 10 Oct 2023 10:23:01 -0400 (EDT) Received: from imap53 ([10.202.2.103]) by compute2.internal (MEProxy); Tue, 10 Oct 2023 10:23:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1696947781; x=1696948381; bh=qp wsnD/cuAmdeUiKh54AaJecrxr+I1rJRUeU/zhYqRs=; b=RrsWKMAFvY/KFWVNLB rR6ZLVMY74WjANdjZZQgDHYdXGbVpgun5ukuBZWE1fxk52oXwrcOtH17UJs2oZgx oOgKG3wONVjLdoCx42IRoScr5Dd9/yk9gD8h42uAKvaO9lZ/JvXj5D4uqVbeU98D 53R3r3XiJofrwDZg2CudBr+1xQyGVNqijEhU/DDM9FVQvLrfIQXKfw792jQ7P+38 gI55EaOWLTmhACk/qVim78MOZvofZQS05D7euaaUWVp326Hw9TLxSfF/L4Lpmed1 lZUfWSdvNASPIo0HI9aUhrr58QvIKUryechzHWqa+zo/RxW0UhIpanVNJDfuSdsJ mCDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=i60c149f6.fm2; t=1696947781; x=1696948381; bh=qpw snD/cuAmdeUiKh54AaJecrxr+I1rJRUeU/zhYqRs=; b=aVru7FnPRc4O2m2+h7H ilhG4Y9oSVsoHEzsF4nl2/YbzmmZtz5VeaIPGwb2pz6jVCGQBkGdvnZK0d83uoaJ Y/J8/bAVti5Mm2vjOzU/8EKNJbe9yZnT6ZtsFZ5p5jJH0BhgD02Xagz+WyZ0YCMc jYE10yXpldSyfdieqKDfx/kb0dHmioe4oR/j/I8kXU725JEABrD3nlr/p2IMhURj rFTzJiyibxUtS9gWqtS+bHd7qIKG3w5apv48/7rqIaFDtMs3F9oxZ1tMB37iDrei C4qcDp1Unj3ciR6XB7feEOECGGebAM3phAI3K0LUK5IYWae0mlhMfdGVLp5PtOeY DgA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheehgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsegrtderreerreejnecuhfhrohhmpedfveholhhi nhcuufdrucfiohhrughonhdfuceotghsghhorhguohhnsehfrghsthhmrghilhdrtghomh eqnecuggftrfgrthhtvghrnhepgffgtdetheeghfevgfeftdevvdekfedvgeeugeejudei geevledvteegheeggfdvnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegtshhgohhrughonhes fhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i60c149f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id EEA8E3640069; Tue, 10 Oct 2023 10:23:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-Id: <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> In-Reply-To: References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> Date: Tue, 10 Oct 2023 09:22:39 -0500 From: "Colin S. Gordon" To: "JMT Sihvola" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: multipart/alternative; boundary=65b2f5a2657247728ae76e4743e95f81 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:29838, ipnet:64.147.123.0/24, country:US] X-Rspamd-Queue-Id: 4S4dRB5Wl9z4Pm4 --65b2f5a2657247728ae76e4743e95f81 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Jari, That's awesome work!=20 I see some GPL and MIT license headers in your current changes, which I'= m trying to avoid, but I'll gladly build on some of the BSD-licensed cha= nges. It looks like I did at least partly duplicate your work with the d= wmmc driver (https://github.com/csgordon/freebsd-starfive2/commit/fd72e1= e25f5b29ed991d4417c458607d4dbc1b50#diff-d360fe7dc1bc197a1617d90236841797= 881672100cd60e466bacfd60c1dcc3b4), which I mostly adapted from one of th= e existing drivers. I'll also take a look at M. Horne's code, I wasn't = aware of that myself. Robn's repository is a way to repackage FreeBSD's RISC-V release images = to use a uzip-compressed memory disk to boot while it lacked support for= SD card --- it looks like your branch no longer needs it, and I'm optim= istic mine will also work (going to try an install to eMMC after this em= ail). It doesn't have any actual driver support beyond serial (though us= ing the live system to poke at the hardware has been very useful to me). -Colin On Tue, Oct 10, 2023, at 06:43, JMT Sihvola wrote: > On Tue, Oct 10, 2023 at 3:03=E2=80=AFAM Colin S. Gordon wrote: > >I've been looking at support for the StarFive VisionFive 2 off and on= for the last few weeks, using the OpenBSD support as a reference. Recen= tly it was recommended to me that I check here whether anyone else was w= orking on this before I got too far, to avoid duplicating and work. >=20 > I've had JH7110's FreeBSD support as my project to learn kernel develo= pment. >=20 > Here is my github repository: > https://github.com/jsihvola/freebsd-src/ >=20 > I have written preliminary drivers for GPIO, reset and clock gen > and now it boots. >=20 > (Unfortunately I wasn't aware of M. Horne's DMA fix for MMC and spent = around a=20 > month fixing it by myself (I only should have gone through his old Git= hub=20 > repository more carefully...)) >=20 > For last weeks I've been working with Ethernet driver (gmac4 devices a= re=20 > supported in FreeBSD (/sys/dev/eqos) but JH7110 needs more code...) >=20 > Being busy with all this stuff I haven't _yet_ inspected Robn's Github=20 > repository, but I'm aware of it. >=20 > So be free to use my codes. And I hope we can communicate for a more=20 > coordinated JH7110 development effort. >=20 > -Jari Sihvola >=20 > -- > jsihv@gmx.com > la_mettrie @libera > la_mttrie @EFNET >=20 --65b2f5a2657247728ae76e4743e95f81 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Jari,

That's awesome work!

I see some GPL and MIT license headers in your current changes, which = I'm trying to avoid, but I'll gladly build on some of the BSD-licensed c= hanges. It looks like I did at least partly duplicate your work with the= dwmmc driver (https://github.com/csgord= on/freebsd-starfive2/commit/fd72e1e25f5b29ed991d4417c458607d4dbc1b50#dif= f-d360fe7dc1bc197a1617d90236841797881672100cd60e466bacfd60c1dcc3b4),= which I mostly adapted from one of the existing drivers.  I'll als= o take a look at M. Horne's code, I wasn't aware of that myself.

Robn's repository is a way to repackage FreeBSD's = RISC-V release images to use a uzip-compressed memory disk to boot while= it lacked support for SD card --- it looks like your branch no longer n= eeds it, and I'm optimistic mine will also work (going to try an install= to eMMC after this email). It doesn't have any actual driver support be= yond serial (though using the live system to poke at the hardware has be= en very useful to me).

-Colin

On Tue, Oct 10, 2023, at 06:43, JMT Sihvola wrote:
On Tue, Oct 10, = 2023 at 3:03=E2=80=AFAM Colin S. Gordon wrote:
>I've be= en looking at support for the StarFive VisionFive 2 off and on for the l= ast few weeks, using the OpenBSD support as a reference. Recently it was= recommended to me that I check here whether anyone else was working on = this before I got too far, to avoid duplicating and work.
=
I've had JH7110's FreeBSD support as my project to learn = kernel development.

Here is my github repos= itory:

<= div>I have written preliminary drivers for GPIO, reset and clock gen
=
and now it boots.

(Unfortunately= I wasn't aware of M. Horne's DMA fix for MMC and spent around a 
month fixing it by myself (I only should have gone through = his old Github 
repository more carefully...))

For last weeks I've been working with Ethernet dr= iver (gmac4 devices are 
supported in FreeBSD (/sys/d= ev/eqos) but JH7110 needs more code...)

Bei= ng busy with all this stuff I haven't _yet_ inspected Robn's Github = ;
repository, but I'm aware of it.

So be free to use my codes. And I hope we can communicate for a mo= re 
coordinated JH7110 development effort.
<= div>
-Jari Sihvola

--
= la_mettrie @libera
la_mttrie @EFNET


--65b2f5a2657247728ae76e4743e95f81-- From nobody Tue Oct 10 15:16:17 2023 X-Original-To: freebsd-riscv@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 4S4fck0x6gz4wtbb for ; Tue, 10 Oct 2023 15:16:22 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4fcj4b8cz4Vwk for ; Tue, 10 Oct 2023 15:16:21 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1696950977; x=1697555777; i=jsihv@gmx.com; bh=AjrnQSnF8ynjIRnILcTNAprS+k9Rken2w0TISmFYEO4=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=EKFcGG5hovmuI0W1suaONEplZq5hVI9pTzzUGZjlt2zJbb3qFz2cOkOBFQLO0ANMkWXOreBu46E gGAyq8BnYByoKJHg9HRVT3dPkwCLYd4CQbq4zLR5TxrgLvo3xty2JF0wUgAQQCy3cEeDhEODfg3SS j+7UF3OnrHwgNCUGJ9uuN1toKpN1Gp8mbA5D8Dyd28fFbh5TcpQa85qOvoCqs17QPy9quY1RbbDYm XXvoNB8MnkGguhWgq5+1RssBud5cnAVKdi/y/yQZjh6x1xSMT2dWwwlXenQ2fjseh5MwNfZ1c6yQ7 qiYyl7HwaNtznpmtNpFzk/PQJkF6ipvgjtFQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [80.221.188.206] ([80.221.188.206]) by web-mail.gmx.net (3c-app-mailcom-bs09.server.lan [172.19.170.177]) (via HTTP); Tue, 10 Oct 2023 17:16:17 +0200 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: "Colin S. Gordon" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: text/plain; charset=UTF-8 Date: Tue, 10 Oct 2023 17:16:17 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hiez6ejIGnAcmrHO/SPR4/ifsfpD5tupbB226iGR3qsR0DWAGhnRVZxeGcegrIstgnrtY AcLyPYYU+eIIuygCtBqdvjdq8NV7En5FxIBUWt4K2GTAFs+nWj3u7vt2OO7WuQMIr6d0AoYm2JX2 qakXqr92KDxDvKgomm4G2pmW4IBN75f1h/Uou4S6DELnegcHR7urxvwpGkKZdD9MOzpmirWBiQj4 0+Uyatv2LSbLGRVqBzEqRksQPQahgJTufRysXcAKicgMYnCs8K95WEO/zPqNyP9Mk6TI42RFBdQh 7Q= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:m1jcqyC3FVI=;IaT3Ph9j/u2zMeKj3xcyaKyLkvs 5EWWd+D1lteBpwZFn1JETxhC/L3pVaGx3FL7w0k9/Jt4fmGaGpXz6/9QotRFPICJ4L/Ab0Dig wM48tsbx2ZJG1e5ugVkXzfA423WiZ92x+UZMuw9lseTCZWFHZUjyE0EujXfxr0q8gio1CE6Cg 1dgcyEmBh587badl7QwDIy8Mg6OGjVqZey20WlT8QVKE23/GXM9I8H1WD9FRY8eR0+7Bnk6jR UcJbYVnOcwDZOG9uGL0qRHHKSvpRwImbP/FzMZZMaE66xXaTpgBPzzJbe7EQ62/gZbwUStbFv jgRe3zHhVzs3VLL3k9kRTQGkFKxfZPKPQF3HSWVRlX7Zdrlrr22vau9oBBIJdFUe0dHay8yxY 26ghdqnHQH4RTy9A60RAavDS/gKmUWNNnK8ILzV50z4aKfQtrARi01Uw/jr7R7Lf6DIY4kJN1 +r2Q/dqUg19LxrZRxD1Uve+zKNUbEqwBEsS9ZxYbVUXpxbRCggMjoW/UxU9dfhWOV77lzeVzs /33p2KBkmT+m/MFPqgNuQ56t3/mCCz/jolUk1t3FxqMSGE1zQyHwqHE52ERSXgZVF768Iw/aR X+ygfFWV03vbMptUmCP4ZhhxrHkmK/qdWi5WiUIkn1mi3QPMySdQoe4711Q766JG97qxn6pFv 09lopb/hR8SqraQ5VNPH5/nscaUEzpdpgRT2UkDpAoaMm3UNrVEK/5Mxs9egjVHx9y991fyW3 ZcY7vKscfSggFdXb3cgtGfRAHMiKEkIuB/bPQ8HC+2Tjky3vQV1WP00Dh4opBkP4LTpxcSnwN yK6P65Yjet3iCZVEnMulRAO1kbGH4oc3C2AhGpum1AlfY= 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:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4S4fcj4b8cz4Vwk Colin S=2E Gordon wrote: >I see some GPL and MIT license headers in your current changes, which I'm= trying to avoid, but I'll gladly build on some of the BSD-licensed changes=2E So far I've not quite grasped what is FreeBSD's stance on this issue=2E Some of my question on IRC have gone unanswered but I've got a picture that some dual-licensed files are used as such=2E I myself extracted some of the most important header code and used it under MIT license (naturally giving credits to the original author)=2E Colin S=2E Gordon wrote: >It looks like I did at least partly duplicate your work with the dwmmc dr= iver(https://github=2Ecom/csgordon/freebsd-starfive2/commit/fd7 >00cd60e466bacfd60c1dcc3b4 [github=2Ecom]), which I mostly adapted from on= e of the existing drivers=2E=C2=A0 I'll also take a look at M=2E Horne's co= de, I wasn't aware of that myself=2E Oddly enough, for me MMC didn't require any additional code beyond offerin= g=20 clocks, (maybe the reset driver) and fixing that DMA bug which was=20 initially reported here: https://reviews=2Efreebsd=2Eorg/D34118 =2E=2E=2Eand which I re-reported here: https://bugs=2Efreebsd=2Eorg/bugzilla/show_bug=2Ecgi?id=3D273694 I don't recall having any issues with biu and ciu clocks, so I'm not sure what that is about=2E -Jari From nobody Tue Oct 10 17:03:08 2023 X-Original-To: freebsd-riscv@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 4S4j0N2HfSz4x36k for ; Tue, 10 Oct 2023 17:03:32 +0000 (UTC) (envelope-from csgordon@fastmail.com) Received: from wnew4-smtp.messagingengine.com (wnew4-smtp.messagingengine.com [64.147.123.18]) (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 4S4j0N0GVqz4flK for ; Tue, 10 Oct 2023 17:03:32 +0000 (UTC) (envelope-from csgordon@fastmail.com) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 239FD2B001E4; Tue, 10 Oct 2023 13:03:30 -0400 (EDT) Received: from imap53 ([10.202.2.103]) by compute2.internal (MEProxy); Tue, 10 Oct 2023 13:03:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1696957409; x=1696958009; bh=kO wko5x15tZj9RS0lI9Hw4CzT8BuQ/J86zBd/KMms5Q=; b=aXY8FLlt2MMcbHYzug yB3hIfR1Id5mcIFBHRaO4NMerks7QMFLAYHRnagjhFF5Wr4oMrZgv8daYlB0Qic3 uKnu8xKGj556kBSuCW0bqNA+YGo2rYN2LV6bpjZrQVKUAH06Q1QK1oZCLXoEEIhx /lzE8wBLkH1Sd+otMNYE+mH2wkPrjKSMnLQTjkEVtcMLXL1YjO+gbu+urtFfewjB 9JiCpCdZoBMu8pUYcp16Fa7czKsjQNZQ8/darpvzXi+VqC7iTFE0hoKzdBHc8mFT nM/QtpSisBsLsgfQHex74onXRfpfSizrsbCBd0lTmBiwp9muRUXeflba5TzKCh1S Rtkg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=i60c149f6.fm2; t=1696957409; x=1696958009; bh=kOw ko5x15tZj9RS0lI9Hw4CzT8BuQ/J86zBd/KMms5Q=; b=KtKAZRjriECBJntpdao GMR9G4Pu9BQo779DkOHmZsC8o88N3YzPUMyMKJFPrDohbNxP9eqADhtcgg6ZUjSg k5ZBCjhvkOe3nf4oeqEUoiLet3Z8w2dTj2eg8+yBGJWXxm2AZN5O5yDGRJRzsyhc rf69VP6q1Fy37H8SgPgWrQRSg/AhsiuW/fSKyL3056CXOlgZIviMuSKg8cj+NUuK kT841DWv5O1RzE1fkliEZ9cM/OcY/NULIGrponuxfCKaD6GwCd21FJS8Owd9QQIg OerR6Wqb2wlaIyLVmEjq8X6iOKKjQdF1glxOfxrM3HpMfHB5VDdsOeUZPpdaiFYC /8g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheehgddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreertdenucfhrhhomhepfdevohhl ihhnucfurdcuifhorhguohhnfdcuoegtshhgohhrughonhesfhgrshhtmhgrihhlrdgtoh hmqeenucggtffrrghtthgvrhhnpeefueefteektdefgeegudetieegtdfgffdvhfejieej veelgffgudegjedtheeiueenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhfrhgvvg gsshgurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheptghsghhorhguohhnsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i60c149f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2AC703640066; Tue, 10 Oct 2023 13:03:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-Id: <6c0ddf11-b9c9-4861-affc-7f21e82df755@app.fastmail.com> In-Reply-To: References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> Date: Tue, 10 Oct 2023 12:03:08 -0500 From: "Colin S. Gordon" To: "JMT Sihvola" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: multipart/alternative; boundary=45102aa67e8d43f5a0e4bf4e18079fc8 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:29838, ipnet:64.147.123.0/24, country:US] X-Rspamd-Queue-Id: 4S4j0N0GVqz4flK --45102aa67e8d43f5a0e4bf4e18079fc8 Content-Type: text/plain I agree some clarity on the licensing issue would be nice. It seems clear that GPL-only licensed code isn't allowed in the kernel, but if MIT-licensed code (and dual-licensed including an MIT option) is then that would simplify things greatly. I currently don't have proper clock support, though it looks like that part of your work is under BSD, so I'll grab that rather than writing my own from scratch. I haven't hit the DMA bug you noted yet, but I also haven't really done much with the filesystem yet (in particular, I haven't done much *writing* to the disk yet, just basic tests, and haven't built install media yet --- bsdinstall fails for me currently because it can't create files it wants in a read-only memory disk). I guess the other operative question is: which dtb are you using? I see you have one checked in --- where did it come from? OpenBSD for a while only supported one particular dtb which was *not* one of the ones from the StarFive public releases on Github, and I've been working with the one that I know works for OpenBSD. I can trace lookup failure for the biu and ciu clocks through to a missing property in the dtb I'm using (#clock-names) and then to some kind of misinterpretation I haven't debugged yet when I manually add that property to the mmc nodes. -Colin On Tue, Oct 10, 2023, at 10:16, JMT Sihvola wrote: > > Colin S. Gordon wrote: > >I see some GPL and MIT license headers in your current changes, which I'm trying to avoid, but I'll gladly build on some of the BSD-licensed > changes. > > So far I've not quite grasped what is FreeBSD's stance on this issue. > Some of my question on IRC have gone unanswered but I've got a picture > that some dual-licensed files are used as such. I myself extracted > some of the most important header code and used it under MIT > license (naturally giving credits to the original author). > > Colin S. Gordon wrote: > >It looks like I did at least partly duplicate your work with the dwmmc driver(https://github.com/csgordon/freebsd-starfive2/commit/fd7 > >00cd60e466bacfd60c1dcc3b4 [github.com]), which I mostly adapted from one of the existing drivers. I'll also take a look at M. Horne's code, I wasn't aware of that myself. > > Oddly enough, for me MMC didn't require any additional code beyond offering > clocks, (maybe the reset driver) and fixing that DMA bug which was > initially reported here: > https://reviews.freebsd.org/D34118 > > ...and which I re-reported here: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273694 > > I don't recall having any issues with biu and ciu clocks, so I'm not > sure what that is about. > > -Jari > > --45102aa67e8d43f5a0e4bf4e18079fc8 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I agree so= me clarity on the licensing issue would be nice. It seems clear that GPL= -only licensed code isn't allowed in the kernel, but if MIT-licensed cod= e (and dual-licensed including an MIT option) is then that would simplif= y things greatly.

I currently don't have pr= oper clock support, though it looks like that part of your work is under= BSD, so I'll grab that rather than writing my own from scratch. I haven= 't hit the DMA bug you noted yet, but I also haven't really done much wi= th the filesystem yet (in particular, I haven't done much *writing* to t= he disk yet, just basic tests, and haven't built install media yet --- b= sdinstall fails for me currently because it can't create files it wants = in a read-only memory disk).

I guess the ot= her operative question is: which dtb are you using? I see you have one c= hecked in --- where did it come from? OpenBSD for a while only supported= one particular dtb which was *not* one of the ones from the StarFive pu= blic releases on Github, and I've been working with the one that I know = works for OpenBSD. I can trace lookup failure for the biu and ciu clocks= through to a missing property in the dtb I'm using (#clock-names) and t= hen to some kind of misinterpretation I haven't debugged yet when I manu= ally add that property to the mmc nodes.

-C= olin

On Tue, Oct 10, 2023, at 10:16, JMT Si= hvola wrote:

Colin S. Gordon wrote:
>I see some GPL= and MIT license headers in your current changes, which I'm trying to av= oid, but I'll gladly build on some of the BSD-licensed
cha= nges.

So far I've not quite grasped what is= FreeBSD's stance on this issue.
Some of my question on IR= C have gone unanswered but I've got a picture
that some du= al-licensed files are used as such. I myself extracted
som= e of the most important header code and used it under MIT
= license (naturally giving credits to the original author).

Colin S. Gordon wrote:
>It looks like I= did at least partly duplicate your work with the dwmmc driver(https://githu= b.com/csgordon/freebsd-starfive2/commit/fd7
>00cd60= e466bacfd60c1dcc3b4 [github.com]), which I mostly adapted from one of th= e existing drivers.  I'll also take a look at M. Horne's code, I wa= sn't aware of that myself.

Oddly enough, fo= r me MMC didn't require any additional code beyond offering 
clocks, (maybe the reset driver) and fixing that DMA bug which w= as 
initially reported here:

...and which I re-reported here:

I don't recall having any issues with biu and= ciu clocks, so I'm not
sure what that is about.
=

-Jari



--45102aa67e8d43f5a0e4bf4e18079fc8-- From nobody Tue Oct 10 17:46:59 2023 X-Original-To: freebsd-riscv@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 4S4jyc4G2Zz4x5Xs for ; Tue, 10 Oct 2023 17:47:04 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4jyc0fF5z3GSQ for ; Tue, 10 Oct 2023 17:47:03 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1696960019; x=1697564819; i=jsihv@gmx.com; bh=dcrrlzhDTuLP3rNHXXRjgnK7N568EKlPMesF4rKaurc=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=coseKqXjIJBxpf1zaFKy+tVnbQZhbHeg+60WChBuCeCa0F0N/wRsDG/iKaWSdmtELEimR9dKagE Ee3H5KjHhVsiHISJ5pA3RAWGc4kbVcqUPPIrAQJiv5VywyYdrC+XcxUBX+QpHZavoKvrXPfG9Fve5 2gT6Cv7iX+47lHSCNy/NmGHr/ra1Lv4rqWL4qLrnXFMaaOa2UIHpqwC/5cM6HEhFvGJImgD3HRSxV 71rUzlOzhj9+RqUgSLour/lo5t/DnRpmw8aRlJa52c/x4C/A1YMRsU+gooLZzeOq24pJ6aG538v0s 2S4YT+JhcSt2xkfRP8brAvmT4nQiJaUFYpqw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [80.221.188.206] ([80.221.188.206]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Tue, 10 Oct 2023 19:46:59 +0200 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: "Colin S. Gordon" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: text/plain; charset=UTF-8 Date: Tue, 10 Oct 2023 19:46:59 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <6c0ddf11-b9c9-4861-affc-7f21e82df755@app.fastmail.com> References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> <6c0ddf11-b9c9-4861-affc-7f21e82df755@app.fastmail.com> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:aB3gRWCcRL/BWGNV+4EXDO3HgFnTZ1E0MreNSI9Bg0f4/mgrk93dzq0V9VUcZRYzETWpF 8ImR7tmc3OJDmNZurDEMDxP8vXXiapE4gwxLLHI8vXg2EhPSPDVn9cyTtSK366nhSRjM/w3YWPid ghHgVcvSRWbv0Chw36SSDAOpAUgQe17s4uQbEgqIyXxcX7pQkD/X1jkkBme+XhjFXpTJMNMqjCP5 uEPul3T0Gi38ofqkcA+QmqCKGaq0qsNx6/Tm0AtHa/g1H4EHvzL7S0EMTpjWyagx3cI71DW774tV +I= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:NYtqyHdlPiY=;6Bd+gwpQaqkTTo7XHsy3knWepqA LtxfThGAl3ptM3SnlvavylL6NZMbK9U5T4sBOR26eG22Oups8EXENgAZPe8sa1DFGIPX2Jhfq G+IwdkSZRg8WiDJ+JLoyou/GxhLzVwjZkEQGuMr6EJOsMByyS/zdcZ+STe1zzTCq92IygFL1U djjOL7u5s85401Jjba8L5sW2v8a7iGAErJwXEuH6t9utcHGDk7t2kOf5S451sbjBSTiu+7JWL AqGZjuleqrT1HWw2oY23cCu76nQTfuULDBjKtp1UgiYFeqq0G3XQ1J+kTl9EUmjr3Zu7c9ZPR m1AgpQPZAlo7ig86EyODE1hoXHVGvbMuVR658pRDRNPHtSWf+U0ZWcRSwfdT2a9NkxRHedjhY b/unl/0VUiGUn8Xr0yrcJjZdWckqBHatcLgKhMuLB/t69wDwnM/A/iGNbCO5ckG9v4vL4YYM8 Ep58TxfJ8SeIYTn/KOenVrvjrcx8yEWARYpb9J+Tt/kPWcCBpXG4iEBuO72PqW3OiVnYlT6qZ 1Q1NiIsqF30MJLOfUJ7KFC40aI82gj+WkOH+rHP4xH7MN40RIkpTQNMqm9wzObJrDxoFq5kPR qQGK6StIxgJPWLMZUAM4uYyB7ftFUtT8JL+TV/cMzIIOSqk+M9tsx6006T0u9Opj+jQLgCeow c61nIM/X2+Y1LoOVXBaFNT9jkZSywoTbIwGeNWDYOrxJJgK8EQuMC+vEjqvJDJj7JpixVx7B5 6FqLqHXVaQpJaFjjVTkX2Tio8Q7RVBTtGIOW6zAnIBdd9ThenNgw63aHg6ZVLwSAHsG7OuBOR P0PhMcxYe2xUN8KzP0F6Up4w== 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:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4S4jyc0fF5z3GSQ On Tue, Oct 10, 2023, Colin S=2E Gordon wrote: >I agree some clarity on the licensing issue would be nice=2E It seems cle= ar that GPL-only licensed code isn't allowed in the kernel, but if MIT-lice= nsed code (and dual-licensed including an MIT option) is then that would si= mplify things greatly=2E Even GPL-only licensed code seems to be used=2E For instance a file sys/arm64/rockchip/rk3568_combphy=2Ec refers to sys/contrib/device-tree/include/dt-bindings/phy/phy=2Eh =2E=2E=2Ethough this is probably not desirable at all This is one reason why I've assumed being able to use MIT licensed files might be fine enough for headers=2E >I currently don't have proper clock support, though it looks like that pa= rt of your work is under BSD, so I'll grab that rather than writing my own = from scratch=2E I haven't hit the DMA bug you noted yet, but I also haven't= really done much with the filesystem yet (in particular, I haven't done mu= ch *writing* to the disk yet, just basic tests, and haven't built install m= edia yet --- bsdinstall fails for me currently because it can't create file= s it wants in a read-only memory disk)=2E The DMA bug was met already during the initialization of MMC in the boot= =2E But it is dependent on factors related to memory usage, so it's possible that alternative implementations avoid it (=2E=2E=2Ethough it may surface later= )=2E M=2E Horne's bug report I linked includes details about the issue=2E >I guess the other operative question is: which dtb are you using? I see y= ou have one checked in --- where did it come from? OpenBSD for a while only supported one particular dtb which was *not* one of the ones fr= om the StarFive public releases on Github, and I've been working with the one that I know works for OpenBSD=2E I can trace lookup failure f= or the biu and ciu clocks through to a missing property in the dtb I'm using (#clock-names) and then to some kind of misinterpretation I have= n't debugged yet when I manually add that property to the mmc nodes=2E The DTB I use is from Starfive's github (devel branch)=2E As far as I have understood, using DTB files from other projects is OK (and dts files are permissively licensed) =E2=80=93 but again, I'm not sure what the prevaili= ng=20 practices are=2E (there are different DTBs for different revisions of JH7110) I learned it myself hard way during my efforts with JH7100 that switching to the latest DTB available may fix bugs=2E (I tried to parse a DTB file by myself from Starfive's dts files but it turned out that FreeBSD's dtc program had some syntactical features=20 missing and could not do that=2E As far as I recall some developers=20 reported the issue forward) -Jari From nobody Tue Oct 10 17:57:56 2023 X-Original-To: freebsd-riscv@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 4S4kCQ6N0Zz4x5qC for ; Tue, 10 Oct 2023 17:58:10 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4kCQ4gRJz3GkH for ; Tue, 10 Oct 2023 17:58:10 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5a2536adaf3so73238767b3.2 for ; Tue, 10 Oct 2023 10:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1696960689; x=1697565489; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XaMD4oVsCTwE6PQorS6GGU4FTMMn9XntGNnK2gh4Qwo=; b=E5qwv1FKY4uaF+vLWfmv34zYPySXOEBUmQoyvmn0WQbR/hEeHRxJzX52LSL+y3Mceb 3KoBZjafVzmEyhkCGvU4KjurSLNg1cxphPQyvbDCLPy29ksvoOcqgu6sv+WBO0C7OiEK qYZlUzVoZBZFlztLD4HL+HIgmQS3DCEBVPNyqLA7gH4YClPBvCqqubZcaxvw/vxUlNkL F4AoSlAsH0I3/vOBRK8o48pZZ/21/8odez0Sd5hrLDLGzwycDrjosOuhlvWTlWm9ENv1 BXmr7HrqZ60smsLEbE00Olr5hrdkYCtJ8hMJ40dRwQbihqHbPnlM0SGYkAMtXkD/JgFp FGgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696960689; x=1697565489; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XaMD4oVsCTwE6PQorS6GGU4FTMMn9XntGNnK2gh4Qwo=; b=jJ1XQ06VzCoUGYks5HTuNOeepCBBsREQ2S/Ph58xgWnU+SkPx4PBppGmANfMSySkhe zNftQcfEwe54Wez6hmG+JWNOCQbOjJRy6PGTvBi5sroJ7KH2TKrIVQ0t7cZ0drOQeX2m jOeVIasFi9fDWfO5CcMdoZZcW5F5xqUa3zALydxZZTohfzfq1IbiL7WKBHmEn9FXmXLz k+QdDeeRuA9r0XviunRMkvhnG42N/C0QNE5XMc7QrOJOzmxOszYKvHI2FYWGSNV3h6qZ /kYzOfezWSRdR8vg504Y7E5PJuavMfguoaibSI2Bze0XD3rINj0dZ2MQBPfiGUK8NEsL LG9g== X-Gm-Message-State: AOJu0YxhGQKVxu6DM7QUH9A5XwmKay6mldlhtNXo63rBJp44smsafO99 wlkSOR+HJHhsET4809ApNj1lrwlkYW28jQcppCQ= X-Google-Smtp-Source: AGHT+IHxQq6u/giUZSdqkjcO/JxqxuTgIXuELmt3RkgJ3gQkf7sqXZ+Pkd3mNOD268WZy3SpNAsnEQ== X-Received: by 2002:a81:5bd5:0:b0:58a:83cd:115d with SMTP id p204-20020a815bd5000000b0058a83cd115dmr16753317ywb.50.1696960689440; Tue, 10 Oct 2023 10:58:09 -0700 (PDT) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id s67-20020a815e46000000b0059b50f126fbsm4579941ywb.114.2023.10.10.10.58.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 10:58:09 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5a7b3d33663so19291517b3.3 for ; Tue, 10 Oct 2023 10:58:08 -0700 (PDT) X-Received: by 2002:a81:c24a:0:b0:589:f995:eb9f with SMTP id t10-20020a81c24a000000b00589f995eb9fmr20612537ywg.45.1696960688576; Tue, 10 Oct 2023 10:58:08 -0700 (PDT) List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <1455fbf5-c56e-4584-887d-f8edbe66724c@app.fastmail.com> In-Reply-To: <1455fbf5-c56e-4584-887d-f8edbe66724c@app.fastmail.com> From: Tomek CEDRO Date: Tue, 10 Oct 2023 19:57:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: StarFive VisionFive 2 support To: "Colin S. Gordon" Cc: "freebsd-riscv@FreeBSD.org" , robn@despairlabs.com, "Lee, Lup Yuen" Content-Type: multipart/alternative; boundary="0000000000000a5fcc0607607375" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4S4kCQ4gRJz3GkH --0000000000000a5fcc0607607375 Content-Type: text/plain; charset="UTF-8" Folks did you try to play with JTAG in order to upload kernel intro RAM and boot? :-) OpenOCD states initial support for RISC-V Debug Spec 0.13. Without Smart Debug Probe that supports RISC-V it could be slower than current loading from SD card though. Just curious :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info --0000000000000a5fcc0607607375 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Folks did you try to play with JTAG in order to upload ke= rnel intro RAM and boot? :-)

O= penOCD states initial support for RISC-V Debug Spec 0.13.

Without Smart Debug Probe that supports R= ISC-V it could be slower than current loading from SD card though.

Just curious :-)

--
Ce= DeROM, SQ7MHZ, http://www.tomek.ced= ro.info
--0000000000000a5fcc0607607375-- From nobody Wed Oct 11 08:07:02 2023 X-Original-To: freebsd-riscv@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 4S552z5THTz4x4Ns for ; Wed, 11 Oct 2023 08:07:07 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S552z23Rjz3cSQ for ; Wed, 11 Oct 2023 08:07:07 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1697011622; x=1697616422; i=jsihv@gmx.com; bh=FkazfohzO2aAotMGr2tRv6o5ss48cyNhV5kPqQdGdkY=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=hXmFJrFU9Va5TURZw+frpFOFiXKALK/YtbHunXLvMedcAQCvPDqR5213HtVSL/kPbYKy3r3i+Vu yrzjZP8YipogpTkBCXgmoSPoPgAmuBOsAa/APa9m9OGFb3XtWIxTni5Zd5u3GrztUBhWovghFA4N3 MKkDJwg9G4xZbG7KFnrioHHV/CWj8YNS41+RgEaGuPJ9leJCh2o7W72u6+bwIkwGawem8z6V3cRx8 8o4P5Pg4tKUhLjzPljVAqZuUFcDj15dNZ/XFG13J5ss2Yfigh3I4/Vcr+2QOR4DtbOv0bnhWr7ojF 8oJRraBCNCu+jsEOrxkAy1Y3+Y+gExh6zKSA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [80.221.182.102] ([80.221.182.102]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Wed, 11 Oct 2023 10:07:02 +0200 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: "Colin S. Gordon" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: text/plain; charset=UTF-8 Date: Wed, 11 Oct 2023 10:07:02 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <6c0ddf11-b9c9-4861-affc-7f21e82df755@app.fastmail.com> References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> <6c0ddf11-b9c9-4861-affc-7f21e82df755@app.fastmail.com> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:l3JK6DfQYApHup1OobJTNDBgmjNhDFrM3OeI7CumcaDdtPZ2iS47wTcAGlioExJu7ssx7 7vzbLYKMBydrunZVNxeLizOaihYzGpuNnny6peQVO4qYl4Wx/CDObZElXDM10hibAsqE70ysxjrC Z4DV+MfVEBrz0wbs40KCYdmO2vkf14WA/0vI3Ecx9whO/tyUht0RxOy7Yo2jvSchccFEGdbZjFYW Pyo+qQ3plRhL8RSnoODcQPQ6+/axgCBndREc0ulo/dMW331xEBFkWyCkZ4HzgSuGOA69tB7BxT5E Zk= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:kRfoydd7qyQ=;U3h9NuCVpOupQkLxM/NWFqEhxGL fe96ie5pu02wk4QMVmIvrA+k7X5JA7CnniCAm3jXKa9UGA3iYi0sT41hhGNlNAVHvh13oQdrR IU4BuDHhdUYOQHOZ9Lb+L2wVYKo9BMJ5IhUThFaXrJzC8NYUwL+WZHdBACAVSICJxYCgLKZMi cUtbwDDkduOcgx/vCAtbcP+R6fta/gpyvulaaTAr2i5TG5Sfr4fxRbtqPVIZWNmEzgaSdQcQf SytqpJYxxdaLrb7CxW7gMoU2TvuDq3T8QYjN66BB6ksr9y7pmPPPIn6d2AIKxvo/ydhNIlHKK mAeMPkUDWaz1RLuIqE8my0f9KZygZ+SirSuoRkVmruVhgoxs+/uxJc11yAkIB3Hbmj1y6crTJ V7Ua5qaOeLxlcAHoKdleOp7C/CsPbOfaVULiTOdN88fQ24wxrPY5VFwf/0m/XcGqvuUb/tcfA XoD8IUHx4cfwBlKEIZJ4ZnFf3in5SAW+pNYwhedWVf/jmpZku2HS+z2igZU/ytiBma2wQQGjt GNiRLhMjulA90Wt9MPa0Q26WCaIU8SstSR71zkqYc6sg0wUKOtlMwHrzEk5H+3+1P+ZPaARc4 vdGS11PlChJBgnagU+/xlkKPNwIXiKbKoWOac2RV2ucYczNm2KvRta3DrorcXwIA8X4jmSi9C 7yQ0v8ly8ZrwBXkxTqT0TujEq7kIJdur10N5+f9sq3DWdkccTNp0vRb7lOTM9p2sZig9nmSEq OzzFkWWZzafGqX8gKyKLau08sukoxKfMOLq7TXfGnk7l7a+5QxDP1RPTOZd4BqwH7v/ut/bXb JSaYvNmHTxiC1xzhG8X8O5jQ== Content-Transfer-Encoding: quoted-printable 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:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4S552z23Rjz3cSQ On Tue, Oct 10, 2023, Colin S. Gordon wrote: >I agree some clarity on the licensing issue would be nice. Okay, I got an explicit clarification for the licensing issue from an experienced FreeBSD developer: Using GPL/MIT licensed headers is fine though they may have to be placed eventually in "contrib" directories. Also, it was clarified that FreeBSD uses DTB files (or maybe rather dts files) from other projects. So this is fine as well. No need to write them from the scratch. (this was told in a discussion on an IRC channel, I can show you logs in a private message if you request it) -jari From nobody Wed Oct 11 17:51:13 2023 X-Original-To: freebsd-riscv@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 4S5L1M3jBGz4wTCP for ; Wed, 11 Oct 2023 17:51:35 +0000 (UTC) (envelope-from csgordon@fastmail.com) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (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 4S5L1M0NpQz4P3N for ; Wed, 11 Oct 2023 17:51:35 +0000 (UTC) (envelope-from csgordon@fastmail.com) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 3394258018C; Wed, 11 Oct 2023 13:51:34 -0400 (EDT) Received: from imap53 ([10.202.2.103]) by compute2.internal (MEProxy); Wed, 11 Oct 2023 13:51:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1697046694; x=1697047294; bh=Fu HDewbVH9eMLHNfAqWEtlDwBvSBbST/YuDktWn2dic=; b=gKNshG9yXuGa1JMlnh YTocBzzjOm1oTnD7u2+EdJedZl2d1OoHlsqTxfroiGCt601E6OhdWg1M51kLLbvD p2un4T6b6qUhpm5qBw/7lr/4fNpbmecrrUV+pZFQRhzN9cLBfz+EGTzNj+zRoLCW O16ugYd12NaT5vzY3MWBapDdy3w3OnKOTi0q1oDzhEHOmCRQgLbB5x7Pc1y6o8c/ C4mFbhLoOg6bf+z9m2K7Vm9rrGj3vYQCv8bSVc+QOoerHLgvwKOzy92eGbnBGJ6X bcVIDkK5LWyeZWBCGiWk1EnUzoOATKyZ/X1v5JaaSSh1rN4OVWgkHLlmeYoXU7fW zEVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=i60c149f6.fm2; t=1697046694; x=1697047294; bh=FuH DewbVH9eMLHNfAqWEtlDwBvSBbST/YuDktWn2dic=; b=JOtC128X7+Xpqik9oK2 i/SLNvwZrb2OAJrSVRxlVxy/UyySP/6RvTt46LLtlqkM9wy0gWNKwBZPOsXdQjX6 wHtMy8UYVau7ctTdFr3qax6mJYs7k6MUAAyYPjqQhV8rNQKct7U5yu83aCMBV/68 8MRI98lY3iD3hEkwk4DjoXn/lv66DH6R8x1cT0Z/AqfkWP6iDLd+CAkc8+OME/wD 7jVfTj80A6HK3hKIjRLQ3uomFpyJf/qfXiFtJfMpi3dbLJGMPhHbsuBtlYI99Jxl ZKKToHM3w8NhOQnq1ZDfYMZ3OHu7csLlZ7zrvnym49NodEN/rV7rXoJi7cO4B0rr /9g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheekgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsegrtderreerredtnecuhfhrohhmpedfveho lhhinhcuufdrucfiohhrughonhdfuceotghsghhorhguohhnsehfrghsthhmrghilhdrtg homheqnecuggftrfgrthhtvghrnhephfetleetgfdutdfhueeivdeiheejtdehlefhteeu ledvffeivdegffeffeegteelnecuffhomhgrihhnpegtvggurhhordhinhhfohenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegtshhgohhrugho nhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i60c149f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id AD37F3640066; Wed, 11 Oct 2023 13:51:33 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-Id: In-Reply-To: References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <1455fbf5-c56e-4584-887d-f8edbe66724c@app.fastmail.com> Date: Wed, 11 Oct 2023 12:51:13 -0500 From: "Colin S. Gordon" To: "Tomek CEDRO" Cc: "freebsd-riscv@FreeBSD.org" , robn@despairlabs.com, "Lup Yuen Lee" Subject: Re: StarFive VisionFive 2 support Content-Type: multipart/alternative; boundary=14c89338958c44b2becf7e73c4fe3f16 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:19151, ipnet:66.111.4.0/24, country:US] X-Rspamd-Queue-Id: 4S5L1M0NpQz4P3N --14c89338958c44b2becf7e73c4fe3f16 Content-Type: text/plain I personally don't have any JTAG equipment, but happened to have a USB TTL cable lying around. At this point, both Jari and I have working SD access, and I just managed to do a successful UFS install to eMMC and got a booting system, so at this point I think local-style development over serial is actually workable! I initially tried a ZFS install, and while installation succeeded, the eMMC (hardware) module started throwing errors when booting from the resulting ZFS root. It's possible Jari's clock support might fix that, I'll have to try later. I don't have a spare eMMC module lying around to see if it's just the physical module. -Colin On Tue, Oct 10, 2023, at 12:57, Tomek CEDRO wrote: > Folks did you try to play with JTAG in order to upload kernel intro RAM and boot? :-) > > OpenOCD states initial support for RISC-V Debug Spec 0.13. > > Without Smart Debug Probe that supports RISC-V it could be slower than current loading from SD card though. > > Just curious :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info --14c89338958c44b2becf7e73c4fe3f16 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I personally do= n't have any JTAG equipment, but happened to have a USB TTL cable lying = around.  At this point, both Jari and I have working SD access, and= I just managed to do a successful UFS install to eMMC and got a booting= system, so at this point I think local-style development over serial is= actually workable!

I initially tried a ZFS= install, and while installation succeeded, the eMMC (hardware) module s= tarted throwing errors when booting from the resulting ZFS root. It's po= ssible Jari's clock support might fix that, I'll have to try later. I do= n't have a spare eMMC module lying around to see if it's just the physic= al module.

-Colin

<= div>On Tue, Oct 10, 2023, at 12:57, Tomek CEDRO wrote:
Folks did = you try to play with JTAG in order to upload kernel intro RAM and boot? = :-)

OpenOCD state= s initial support for RISC-V Debug Spec 0.13.

Without Smart Debug Probe that supports RIS= C-V it could be slower than current loading from SD card though.

Just curious :-)

--14c89338958c44b2becf7e73c4fe3f16--