From nobody Sat Nov 16 15:11:06 2024 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 4XrHQl04qbz5dTTG for ; Sat, 16 Nov 2024 15:11:11 +0000 (UTC) (envelope-from nenos@protonmail.com) Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) (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 "protonmail.com", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XrHQk4xCQz47rf; Sat, 16 Nov 2024 15:11:10 +0000 (UTC) (envelope-from nenos@protonmail.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1731769868; x=1732029068; bh=t4ohlLwaL/gWkckn5CWJj6e7TpXqMj0RDBLbKY7sMtg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=qybmQ5JhiMg83rvPRpvUhDK8iORGLmWYOoFpE3Qt97C7XGr57fWcr9UG8InrGALMb G34AdtAPp/YPcju5k79EkL38cUwkQXzQJQJgVtj5EIIiad7PS2ZeAfAyyS2jQeYN2w MLGnIBsVnwaI73r2yz0LG87fcDjfFEm/KnnY/2edL+Oyh2ICgD1qMHRhRTNd/DNxmF vF0qVO4aC5KdUGfgFwrOKS6vSs+NtgVy5DxBlP7tRCeUHLdmL8NeRc8FqoLq/ShFYi H5QdhOf2stWbLPjzja3IZJpCAOk4bx1YygfZFkTffBha1anmFkRvEpfzvwReKq2qKH lIVAh19RB7wQw== Date: Sat, 16 Nov 2024 15:11:06 +0000 To: "tuexen@freebsd.org" , "asomers@freebsd.org" From: nenos Cc: "thj@freebsd.org" , "freebsd-riscv@freebsd.org" Subject: Re: Help wanted improving Rust support for RISC-V Message-ID: In-Reply-To: <0408D5F2-C44C-4000-941C-244B3BBC6C2A@freebsd.org> References: <0408D5F2-C44C-4000-941C-244B3BBC6C2A@freebsd.org> Feedback-ID: 8468933:user:proton X-Pm-Message-ID: 217d84ed248281ef5624456666dd05c3185f28f3 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: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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:62371, ipnet:185.70.40.0/24, country:CH] X-Rspamd-Queue-Id: 4XrHQk4xCQz47rf X-Spamd-Bar: ---- I can loan you my VisionFive 2 SBC for an extended period if that would hel= p. Just send me a good mailing address, and I can ship it on Monday. -Nate -------- Original Message -------- On 11/16/24 9:44 AM, wrote: > > On 16. Nov 2024, at 15:26, Alan Somers wrote: > > > > > > > > On Sat, Nov 16, 2024, 2:21=E2=80=AFAM Tom Jones wrot= e: > > > > > > 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 t= o > >> 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 direc= t > >> access. > >> > >> Can anybody on this list help me get some access? > > > > I can=E2=80=99t help with scaleway, it sounds like an interesting choi= ce. > Hi Alan, > neither can I... Depending on the resources you are willing to spend, > https://eu.mouser.com/ProductDetail/SiFive/HF105-001?qs=3DImq1NPwxi75JBw= 6ulD0quQ%3D%3D > might be an option. > =20 > Best regards > Michael > > > > 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 und= erwhelming. > > > > You don=E2=80=99t mention qemu, is there some reason you can=E2=80= =99t start there? > > > > - Tom > > > > I haven't had good luck with using qemu-user-static to emulate armv7. > =20 > =20 >