Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2023 09:22:39 -0500
From:      "Colin S. Gordon" <csgordon@fastmail.com>
To:        "JMT Sihvola" <jsihv@gmx.com>, freebsd-riscv@freebsd.org
Subject:   Re: StarFive VisionFive 2 support
Message-ID:  <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com>
In-Reply-To:  <trinity-2e0070c2-eb6e-4934-ac6b-78688009c627-1696938230097@3c-app-mailcom-bs01>
References:  <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <trinity-2e0070c2-eb6e-4934-ac6b-78688009c627-1696938230097@3c-app-mailcom-bs01>

next in thread | previous in thread | raw e-mail | index | archive | help
--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

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Jari,<br></d=
iv><div><br></div><div>That's awesome work! <br></div><div><br></div><di=
v>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 (<a href=3D"https://github.com/csgordon/freebsd-starfive2/=
commit/fd72e1e25f5b29ed991d4417c458607d4dbc1b50#diff-d360fe7dc1bc197a161=
7d90236841797881672100cd60e466bacfd60c1dcc3b4">https://github.com/csgord=
on/freebsd-starfive2/commit/fd72e1e25f5b29ed991d4417c458607d4dbc1b50#dif=
f-d360fe7dc1bc197a1617d90236841797881672100cd60e466bacfd60c1dcc3b4</a>),=
 which I mostly adapted from one of the existing drivers.&nbsp; I'll als=
o take a look at M. Horne's code, I wasn't aware of that myself.<br></di=
v><div><br></div><div>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).<br></div><div><br></div><div>-Colin<br></div><div=
><br></div><div>On Tue, Oct 10, 2023, at 06:43, JMT Sihvola wrote:<br></=
div><blockquote type=3D"cite" id=3D"qt" style=3D""><div>On Tue, Oct 10, =
2023 at 3:03=E2=80=AFAM Colin S. Gordon wrote:<br></div><div>&gt;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.<br></div><div>=
<br></div><div>I've had JH7110's FreeBSD support as my project to learn =
kernel development.<br></div><div><br></div><div>Here is my github repos=
itory:<br></div><div><a href=3D"https://github.com/jsihvola/freebsd-src/=
">https://github.com/jsihvola/freebsd-src/</a><br></div><div><br></div><=
div>I have written preliminary drivers for GPIO, reset and clock gen<br>=
</div><div>and now it boots.<br></div><div><br></div><div>(Unfortunately=
 I wasn't aware of M. Horne's DMA fix for MMC and spent around a&nbsp;<b=
r></div><div>month fixing it by myself (I only should have gone through =
his old Github&nbsp;<br></div><div>repository more carefully...))<br></d=
iv><div><br></div><div>For last weeks I've been working with Ethernet dr=
iver (gmac4 devices are&nbsp;<br></div><div>supported in FreeBSD (/sys/d=
ev/eqos) but JH7110 needs more code...)<br></div><div><br></div><div>Bei=
ng busy with all this stuff I haven't _yet_ inspected Robn's Github&nbsp=
;<br></div><div>repository, but I'm aware of it.<br></div><div><br></div=
><div>So be free to use my codes. And I hope we can communicate for a mo=
re&nbsp;<br></div><div>coordinated JH7110 development effort.<br></div><=
div><br></div><div>-Jari Sihvola<br></div><div><br></div><div>--<br></di=
v><div><a href=3D"mailto:jsihv@gmx.com">jsihv@gmx.com</a><br></div><div>=
la_mettrie @libera<br></div><div>la_mttrie @EFNET<br></div><div><br></di=
v></blockquote><div><br></div></body></html>
--65b2f5a2657247728ae76e4743e95f81--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7f59abe7-11ee-4efe-9688-28e5722fec9a>