News for hackers. Stuff that matters.
Re:RISC-V OS using Rust: Filesystems by FullyFunctional on Tuesday May 12, 2020 @06:04PM (#23160552)
The Kendryte is pretty limited in many ways, not least that it's permanently limited to 8 MiB of DRAM (AFAIK).

The most interesting route is using an FPGA. There are many examples of running RISC-V softcores on FPGAs (for example, Berkeley's RocketChip) and many boards that support a decent amount of memory (even beyond 1 GiB).

Re:RISC-V OS using Rust: Filesystems by pavehawk2007 on Tuesday May 12, 2020 @06:21PM (#23160756)
I tried some of SiFive's evaluation cores. They limit you quite a bit unless you pay. Furthermore, many of the FPGAs worth their salt were quite expensive. The K210 in the MaixBit form is only $20, and it comes with a camera and LCD. For hobbyists, I think it's a good compromise.

I looked at the Xilinx FPGAs--the ones SiFive recommends, but they're quite pricey.

Which FPGAs had you had luck with?

Re:RISC-V OS using Rust: Filesystems by pcein on Tuesday May 12, 2020 @11:55PM (#23163317)
I haven't used them myself, but these boards look awesome, and they are supported by an end-to-end open source toolchain:

1. https://www.crowdsupply.com/1bitsquared/icebreaker-fpga 2. https://www.crowdsupply.com/radiona/ulx3s 3. https://groupgets.com/campaigns/710-orangecrab

Re:RISC-V OS using Rust: Filesystems by fluffything on Wednesday May 13, 2020 @06:58AM (#23165607)
I was looking at getting this Maixduino kit since it appears to be the cheapest solution that satisfies my constraints (RISCV core + WiFi):

https://www.seeedstudio.com/Sipeed-Maixduino-Kit-for-RISC-V-...

I'm not sure what's the status of programming these from Rust. I suppose that you will probably need to build your own toolchain that links the Seeedstudio libraries.

Re:RISC-V OS using Rust: Filesystems by pavehawk2007 on Wednesday May 13, 2020 @10:05AM (#23166978)
RISC-V has their own supported toolchain. You can get it here: https://github.com/riscv/riscv-gnu-toolchain.git

With Rust, you can do what I did with my OS. It can compile out of the box. The kendryte has a "BSP" (base support package) that is essentially a minimal OS, but it is written in C.

Re:RISC-V OS using Rust: Filesystems by fluffything on Wednesday May 13, 2020 @11:15AM (#23167659)
Yeah, I was thinking more about what to do with the OS afterwards. That board has lots of things on it, including wifi, so I'll probably would like to use some of that.

It would be unfortunate to have to re-implement the wifi driver in Rust, but I suppose I'll just have to link parts of the C toolchain instead, creating Rust wrappers, etc.

Re:RISC-V OS using Rust: Filesystems by FullyFunctional on Thursday May 14, 2020 @11:44PM (#23188676)
Well, FPGA are more flexible but cost more than a cheap microcontroller that is true. There are way too many good options, but to pick one with a fantastic community: ULX3S