From nobody Sat Nov 16 18:49:37 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 4XrNH33ggDz5dgnS for ; Sat, 16 Nov 2024 18:49:51 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XrNH31cgqz4Y98; Sat, 16 Nov 2024 18:49:51 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5cfbaf3d88dso56859a12.3; Sat, 16 Nov 2024 10:49:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731782989; x=1732387789; 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=WV9IKvMxX+JOgfcQd92of50hUthXSuJyxOhqlbt89hA=; b=w5MfpNC9UaA62nv8Fw8hFmfsPiUMNg2WxPYqJaMDsLQe5crELv/G6Xoo+cLlJFNMOf YjIBD8nk4HUjhR6r8vZtxImQTORt+VPWydgQJKRpPbR6aUFDdviaEUPrS5rY26B/c/8I u6PdPEK6bVlX4XqnUub8lJPwX49ohjiPXFhC26XQo9vzRfHsFHw4paMxh5zNwrk7lByz D+Q42LMg/jQ40qpbzD+xE5Jfm6PaXw9QBKUHM3TsBitTeE/ucDgi8kGxBpnMBY87p0+I bR+QNESfMddIPd5tMms4HMW2/K9sFCh3K33ZIRELss3WCMo75m/8GaDhCeaQq6XaEwBE x0Jg== X-Forwarded-Encrypted: i=1; AJvYcCVSHgr0dGSKfP7QJflzFJwuVCysI6QN4RhiaRoq6k2DEoHnogol608CaWthVcfLHE2Fa40DMrqUf8+23Rd5@freebsd.org, AJvYcCXg3Frd8YpyQJwjnX831WzUx0aIqKvwkaO2k9z5kIaVw1iVKEWvFdm82N1mwGlf0q7skyjv@freebsd.org X-Gm-Message-State: AOJu0Yw1RfAiIoaf5xQb25cZ6n+zqTs0m/+QO9GX7DFXlb9LAOXHaY5M O5c1BSOGoSmHFfNw3mpuDm+D2APFnb/4M2zn7Si53FRMu4UypYKvsNX65KDMfVbBKdgRiMopGul ynaSnw5amVhUU+snNcROTazIRnMtdiw== X-Google-Smtp-Source: AGHT+IEim4mBsS4L7gf1kUKCPY0fCCcxC+f3tQBefO0E6693vQvDit0q7ynmu8M1OIUknVjXPxGftsuYx5+m2GV3ij8= X-Received: by 2002:a05:6402:13c4:b0:5cf:14fa:d24d with SMTP id 4fb4d7f45d1cf-5cf8fd2c8b2mr8753522a12.22.1731782989129; Sat, 16 Nov 2024 10:49:49 -0800 (PST) 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 References: <0408D5F2-C44C-4000-941C-244B3BBC6C2A@freebsd.org> In-Reply-To: From: Alan Somers Date: Sat, 16 Nov 2024 11:49:37 -0700 Message-ID: Subject: Re: Help wanted improving Rust support for RISC-V To: nenos Cc: "tuexen@freebsd.org" , "thj@freebsd.org" , "freebsd-riscv@freebsd.org" 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:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4XrNH31cgqz4Y98 X-Spamd-Bar: ---- That's a very generous offer, and I'll take you up on it if I can't find an option that doesn't involve moving actual stuff around the planet. I'm trying QEMU right now, but it's painfully slow. And I've inquired with Scaleway too. -Alan On Sat, Nov 16, 2024 at 8:11=E2=80=AFAM nenos wrote: > > I can loan you my VisionFive 2 SBC for an extended period if that would h= elp. 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 wr= ote: > > > > > > > > > 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 risc= v 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, u= se > > >> 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 kn= ow > > >> 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 dir= ect > > >> access. > > >> > > >> Can anybody on this list help me get some access? > > > > > > I can=E2=80=99t help with scaleway, it sounds like an interesting ch= oice. > > Hi Alan, > > neither can I... Depending on the resources you are willing to spend, > > https://eu.mouser.com/ProductDetail/SiFive/HF105-001?qs=3DImq1NPwxi75J= Bw6ulD0quQ%3D%3D > > might be an option. > > > > Best regards > > Michael > > > > > > I have no idea of the current state of easily and affordable availab= le hardware. The visonfive 2 might be a good choice, there has been a lot o= f 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 u= nderwhelming. > > > > > > 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= . > > > > > >