Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2024 07:26:22 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        Tom Jones <thj@freebsd.org>
Cc:        Alan Somers <asomers@freebsd.org>, freebsd-riscv@freebsd.org
Subject:   Re: Help wanted improving Rust support for RISC-V
Message-ID:  <CAOtMX2g838YdPnfL2Jo31jHNTnoPC_RpxC6M2de5pvquO=cnCA@mail.gmail.com>
In-Reply-To: <fca8a77e-99b2-4615-a7d3-1dae4d2d3565@app.fastmail.com>
References:  <CAOtMX2iUfMktVkYrnc5ufQ460PpnqG2YP2DYmavAoDQz%2BOWk9g@mail.gmail.com> <fca8a77e-99b2-4615-a7d3-1dae4d2d3565@app.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000006ee1c606270878d8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 16, 2024, 2:21=E2=80=AFAM Tom Jones <thj@freebsd.org> wrote:

>
>
> On Fri, Nov 15, 2024, at 23:47, Alan Somers wrote:
> > I want to improve the state of Rust on FreeBSD in general, and RISC-V
> > in particular.  My plan is:
> >
> > * Assemble a corpus of crates heavy on OS stuff (like Nix and Tokio)
> > and ensure that their tests pass on Riscv FreeBSD.
> > * Update libc's ABI to FreeBSD 12, finally eliminating the need for
> > COMPAT_11 on riscv to run Rust programs.
> > * Ensure that the corpus of crates still passes their tests.
> > * Convince the libc maintainers to use the FreeBSD 12 ABI, for riscv
> only.
> > * After a full Rust release cycle (at least 6 weeks), and maybe two,
> > if there are no reports of breakage, and if Poudriere looks good, use
> > that as justification to raise libc's ABI for all architectures.
> >
> > But in order to do any of this, I need access to riscv hardware.  A
> > virtual instance at Scaleway[^1][^2] would be ideal, but I don't know
> > if FreeBSD can run there.  Has anybody tried it?  Failing that, I
> > would need to either acquire some hardware myself, or borrow access to
> > somebody else's.  Or, convince some other developer to do the work
> > himself.  But I won't be able to help very much if I don't have direct
> > access.
> >
> > Can anybody on this list help me get some access?
>
> I can=E2=80=99t help with scaleway, it sounds like an interesting choice.
>
> I have no idea of the current state of easily and affordable available
> hardware. The visonfive 2 might be a good choice, there has been a lot of
> work in the year since I last tried it.
>
> https://adventurist.me/posts/00315
>
> It=E2=80=99s probably still the easiest to get hold of if a little underw=
helming.
>
> You don=E2=80=99t mention qemu, is there some reason you can=E2=80=99t st=
art there?
>
> - Tom
>

I haven't had good luck with using qemu-user-static to emulate armv7.

>

--0000000000006ee1c606270878d8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sat, Nov 16, 2024, 2:21=E2=80=AFAM Tom Jones &lt;<a=
 href=3D"mailto:thj@freebsd.org">thj@freebsd.org</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Fri, Nov 15, 2024, at 23:47, Alan Somers wrote:<br>
&gt; I want to improve the state of Rust on FreeBSD in general, and RISC-V<=
br>
&gt; in particular.=C2=A0 My plan is:<br>
&gt;<br>
&gt; * Assemble a corpus of crates heavy on OS stuff (like Nix and Tokio)<b=
r>
&gt; and ensure that their tests pass on Riscv FreeBSD.<br>
&gt; * Update libc&#39;s ABI to FreeBSD 12, finally eliminating the need fo=
r<br>
&gt; COMPAT_11 on riscv to run Rust programs.<br>
&gt; * Ensure that the corpus of crates still passes their tests.<br>
&gt; * Convince the libc maintainers to use the FreeBSD 12 ABI, for riscv o=
nly.<br>
&gt; * After a full Rust release cycle (at least 6 weeks), and maybe two,<b=
r>
&gt; if there are no reports of breakage, and if Poudriere looks good, use<=
br>
&gt; that as justification to raise libc&#39;s ABI for all architectures.<b=
r>
&gt;<br>
&gt; But in order to do any of this, I need access to riscv hardware.=C2=A0=
 A<br>
&gt; virtual instance at Scaleway[^1][^2] would be ideal, but I don&#39;t k=
now<br>
&gt; if FreeBSD can run there.=C2=A0 Has anybody tried it?=C2=A0 Failing th=
at, I<br>
&gt; would need to either acquire some hardware myself, or borrow access to=
<br>
&gt; somebody else&#39;s.=C2=A0 Or, convince some other developer to do the=
 work<br>
&gt; himself.=C2=A0 But I won&#39;t be able to help very much if I don&#39;=
t have direct<br>
&gt; access.<br>
&gt;<br>
&gt; Can anybody on this list help me get some access?<br>
<br>
I can=E2=80=99t help with scaleway, it sounds like an interesting choice. <=
br>
<br>
I have no idea of the current state of easily and affordable available hard=
ware. The visonfive 2 might be a good choice, there has been a lot of work =
in the year since I last tried it. <br>
<br>
<a href=3D"https://adventurist.me/posts/00315" rel=3D"noreferrer noreferrer=
" target=3D"_blank">https://adventurist.me/posts/00315</a><br>;
<br>
It=E2=80=99s probably still the easiest to get hold of if a little underwhe=
lming. <br>
<br>
You don=E2=80=99t mention qemu, is there some reason you can=E2=80=99t star=
t there?<br>
<br>
- Tom<br></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"a=
uto">I haven&#39;t had good luck with using qemu-user-static to emulate arm=
v7.</div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex">
</blockquote></div></div></div>

--0000000000006ee1c606270878d8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2g838YdPnfL2Jo31jHNTnoPC_RpxC6M2de5pvquO=cnCA>