The first Linux-ready, 64-bit RISC-V SoC

If it doesn't relate to Debian, but you still want to share it, please do it here

The first Linux-ready, 64-bit RISC-V SoC

Postby pylkko » 2017-10-05 16:46

Some people on this forum might find this interesting, as there have been some discussions here about RISC-V, the open instruction set, and possible real (future) processors based on it.

So far there have only been micro-controller type cips that only run bare metal code (no OS). So SiFive have announced that they will be releasing a chip that can run Linux. But if I remember correctly, the Linux port isn't ready yet, but the developers are aiming at 4.15. GCC is already ported. Nevertheless, these chips are appreantly already available, even though they will firstly only be directed at companies that want to use them in products. They claim that a dev board for the general public will be out in 2018. I really wonder if the Raspberry pi foundation will go with this, especially since ARM was sold from their town to owners in was it Japan and I have understood that the new owners want to keep hiking up the license fees.

https://www.sifive.com/posts/2017/10/04 ... x-support/
User avatar
pylkko
 
Posts: 1327
Joined: 2014-11-06 19:02

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby Head_on_a_Stick » 2017-10-06 17:17

Thanks pylkko!

There is also lowRISC but it looks like SiFive have beaten them to it:

http://www.lowrisc.org/about/
User avatar
Head_on_a_Stick
 
Posts: 7900
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby pylkko » 2017-10-06 18:04

The lowRISC project claimed that they would come out with a board in 2017, but given that there has been no news from them, I am fairly sure they cannot get anything on the market before this SiFive board. SiFive are also producing their own microcontroller and the Arduino cinque processor, so they are have some real experience under their belt now. Still I think that the lowRISC community is interesting, particularly in that they aim to make a version that is entirely open (as the license allows for partially proprietary design).

This is almost bizarre but the Debian wiki is really up to date on this issue (gotta be a first):

https://wiki.debian.org/RISC-V wrote:Status Log

2017-10-05

Version 9 of the kernel upstreaming patchset has been posted to LKML on 2017-09-26. As planned after v8, it has been split into an architecture-core and a driver patchset. The RISC-V architecture maintainer has a kernel.org account now, which is a prerequisite for getting the patches into linux-next, but the actual inclusion into linux-next is still pending as the linux-next maintainer has announced that updating the linux-next tree will be on hold during the whole of October 2017.


So, in other words, a linux capable version of the processor is ready, whereas linux for the processor is not and apparently will not be for some time...
User avatar
pylkko
 
Posts: 1327
Joined: 2014-11-06 19:02

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby pylkko » 2017-11-21 04:50

Apparently the pull request was accepted by Linus Thorvalds and kernel 4.15 will support RISC-V.

Request
http://lkml.iu.edu/hypermail/linux/kern ... 04263.html

Linus
http://lkml.iu.edu/hypermail/linux/kern ... 06026.html
User avatar
pylkko
 
Posts: 1327
Joined: 2014-11-06 19:02

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby debiman » 2017-11-21 17:30

the price is exquisite:
http://dt.iki.fi/stuff/riscvsoc.png
unfortunately.
like organic gin and sustainable clothing, only for those who can afford it.
User avatar
debiman
 
Posts: 2814
Joined: 2013-03-12 07:18

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby pylkko » 2017-11-21 18:20

I don't have enough experience to say what core IP price should be, but they suggest on their site that it is less expensive than other competitors. But I believe there was a post on this forums where ARM licenses were said to start at 10 million USD... and ARM Holdings also asks for royalties on top!

Considering that their microcontroller board costs €59 and that their Field-programmable gate array board for this is 99, I'd guess that the linux dev board would be in the 50-150 USD price range... but we'll see.

https://en.wikipedia.org/wiki/Semicondu ... perty_core
User avatar
pylkko
 
Posts: 1327
Joined: 2014-11-06 19:02

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby Head_on_a_Stick » 2018-01-16 06:44

Future Electronics has announced the launch of the Avalanche development board, powered by Microsemi’s PolarFire field programmable gate array (FPGA) and shipping with a pre-loaded RISC-V CPU core.

https://abopen.com/news/future-ships-av ... sc-v-core/

AT £132.98 it's almost reasonably priced and it is completely protected against both Meltdown and Spectre :)
User avatar
Head_on_a_Stick
 
Posts: 7900
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby pylkko » 2018-02-09 20:12

Head_on_a_Stick wrote:
Future Electronics has announced the launch of the Avalanche development board, powered by Microsemi’s PolarFire field programmable gate array (FPGA) and shipping with a pre-loaded RISC-V CPU core.

https://abopen.com/news/future-ships-av ... sc-v-core/

AT £132.98 it's almost reasonably priced and it is completely protected against both Meltdown and Spectre :)


But that is FGPA...

https://en.wikipedia.org/wiki/Field-pro ... gate_array



There is now, however, a true (linux capable) RISC-V board, https://www.sifive.com/products/hifive-unleashed/

RISC-V is growing massively as many large players like Seagate have started to use it and manucdacture it in the billions. Howver, as far as I know this is the only linux-capable full cpu that exists. That is, not a microcontroller type of thing or a FGPA dev board. linux 4.15 now also supports RISC-V straingt out of the box, although there are basically no kernel modules for peripherals
User avatar
pylkko
 
Posts: 1327
Joined: 2014-11-06 19:02

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby Head_on_a_Stick » 2018-08-22 05:28

SHAKTI have now joined the fray:
The SHAKTI project is building a family of 6 processors, based on the RISC-V ISA. We will also develop reference SoCs for each class of processors, which will serve as an exemplar for that family. While the primary focus of the team is architecture research, these SoCs will be competitive with commercial offerings in the market with respect to area, power and performance.

It looks like they are investigating the more powerful (multi-core, high TDP) implementations of the RISC-V ISA, in contrast to the power efficient offerings from SiFive :)
User avatar
Head_on_a_Stick
 
Posts: 7900
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: The first Linux-ready, 64-bit RISC-V SoC

Postby pylkko » 2018-09-16 18:32

Interestingly, they suddenly got a lot of criticism for not having free source code for all hardware initialization earlier this year. On one of the threads on this issue we discussed this here, but I forget which one. That is, that even if the ISA is completely open and can be audited (no hardware backdoors for example), many computers and "dev boards" depend on some proprietary, non-free low level hardware initialization software. This is why the raspberry pi is considered "severely flawed" by the FSF (it cannot boot without a blob). It turns out Sifive had a similar problem. Here is the post by Coreboot dev Ron Minnich where he compares it to any ARM board because

https://mail.coreboot.org/pipermail/cor ... 86977.html

I wasn't surprised by this. However, what did surprise me was that shortly after this they managed some how to make (at least some part) of the code open source.

Micheal Larabel writes:

The code for initializing the DDR controller was not open-source and SiFive believed they could not open-source it. The good news is that SiFive has discovered they will be able to open-source it.


They have since then put the bootloader code here:

https://github.com/sifive/freedom-u540-c000-bootloader

So, AFAIK this is the only computer that you can buy and boot with 100% open source code and also have a publically descried instruction set architecture so that you could in theory make the processor your self at home (if that was really something you wanted to do). They still use "closed hardware" parts on the board (like ethernet) but the code appears to be open. The price is a bit steep though. (1000 USD, even though the performance and the 8 GB RAM are on another level compared to most other ARM boards. OK, there is also POWER, but those cost 10x more and probably have all the same problems if not more.

Here are some news from the Debian port

2018-09-13

A fix for the broken initrd handling in the Linux kernel has been committed to the upstream kernel git repository and will be part of the 4.19rc4 release. First versions of a patchset to support the qemu RISC-V "virt" board in u-boot have been posted to the upstream u-boot development list.

2018-08-21

The last driver bits required for booting the mainline kernel to userland on a qemu "virt" machine have been merged during the Linux 4.19 merge window. It is now possible to build a working kernel directly from upstream git without any additional patches. Please note that this currently only works for a "static" kernel, i.e. without initrd. Initrd support requires an additional patch that is planned to go upstream later in the 4.19 development cycle.

2018-08-04

Debian 9.5 has been released on 2018-07-14 and dak now accepts packages with riscv64 in their control file. As a result, a number of essential packages have been moved from the "unreleased" to the "unstable" suite and it is now possible to use debootstrap to create a "minbase" riscv64 chroot.

https://wiki.debian.org/RISC-V
User avatar
pylkko
 
Posts: 1327
Joined: 2014-11-06 19:02


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable