Re:A tiny RISC-V MCU board selling for $3
by exabrial on Thursday January 02, 2020 @04:31PM
(#21940059)
We just had an article on HN yesterday saying there were no cheap RISC-V board available... and here we are!
[ Parent
| on HN ]
Re:A tiny RISC-V MCU board selling for $3
by Gladdyu on Thursday January 02, 2020 @04:36PM
(#21940133)
The issue was that there wasn't a cheap riscv board that supported the privileged section of the ISA (so you can run an OS on it). This, being a microcontroller, doesn't either.
Re:A tiny RISC-V MCU board selling for $3
by freeopinion on Thursday January 02, 2020 @07:12PM
(#21941495)
The Reference Manual claims "Machine (M) and User (U) Privilege levels support" on page 22.
Probably not the kind of privileges discussed yesterday.
Re:A tiny RISC-V MCU board selling for $3
by Taniwha on Thursday January 02, 2020 @07:42PM
(#21941726)
yup, for linux you want M/S/U modes at least (kernel runs in S) and page table table support of course
Re:A tiny RISC-V MCU board selling for $3
by p0llard on Friday January 03, 2020 @04:03AM
(#21944371)
I was under the impression you could get away with using Machine mode for both the SBI and the Kernel?
Sv39 paging is the major requirement as you point out.
Re:A tiny RISC-V MCU board selling for $3
by Taniwha on Friday January 03, 2020 @07:35AM
(#21945359)
Machine mode runs without the MMU, linux really needs an MMU to do kernel stuff too (including stuff like copyin/copyout)
There is actually quite a bit of work going on in Linux without MMU. Check Linux Plummers conference RISC-V track for example.
Re:A tiny RISC-V MCU board selling for $3
by Taniwha on Friday January 03, 2020 @08:08PM
(#21952017)
Yeah that's why I said "really needs", there are cut down versions that will run without an MMU, it's not really the mainline Linux though - I've worked with MMUless kernels in the past, it's not a lot of fun (and I started porting V6/V7 for base and bounds swapping machines)