Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Off-Topic discussions about science, technology, and non Debian specific topics.
Message
Author
User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#1 Post by pylkko »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#2 Post by Head_on_a_Stick »

Thanks pylkko!

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

http://www.lowrisc.org/about/
deadbang

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#3 Post by pylkko »

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: 1802
Joined: 2014-11-06 19:02

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

#4 Post by pylkko »

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
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#5 Post by debiman »

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
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#6 Post by pylkko »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#7 Post by Head_on_a_Stick »

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 :)
deadbang

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#8 Post by pylkko »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#9 Post by Head_on_a_Stick »

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 :)
deadbang

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#10 Post by pylkko »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#11 Post by Head_on_a_Stick »

SiFive have just announced two new Linux-capable designs:
The U7 Series features SiFive’s highest-performance RISC-V Linux-capable application processor. The U7 core has a superscalar 8-stage pipeline with support for virtual memory, enabling the most demanding 64-bit RISC-V applications such as Edge Compute, Big-Data Analytics and 5G Base Stations.
https://www.sifive.com/cores/u74 & https://www.sifive.com/cores/u74-mc

And Phoronix has news of a Chinese variation on the RISC-V theme:

https://www.phoronix.com/scan.php?page= ... -Last-Arch
deadbang

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#12 Post by pylkko »

If those cores are put into a board by someone (maybe already next year?), then perhaps that board will drop the price of the HiFive board

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#13 Post by Head_on_a_Stick »

Off-topic for this thread but what are your thoughts on POWER9?

Raptor have just announced their Blackbird system:

https://wiki.raptorcs.com/wiki/Blackbird

The price should be almost reasonable and the makers are claiming that the board is blob-free and fully open.
deadbang

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#14 Post by pylkko »

This is definitely welcome. The RISC-V products to date are low end performancewise (and energy use also). But POWER9 implementations out there are pretty high performance like more for a datacenter. This new Raptor that you mention (didn't know about it, thanks) apparently is attempting to solve the problem by creating a lower performance version that might be in the price range acceptable for a "home users". The prices really need to go down before it starts to get intetesting. RISC-V prices will come down.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#15 Post by pylkko »

Also, it appears that RISC-V is going to be collaborating with Linux foundation:

https://www.linuxfoundation.org/the-lin ... hitecture/


Also, this is an interesting development. Once it was announced that RISC-V ISA is going to be under a liberal license allowing proprietary extension to the ISA and hardware designs that are not open, many cynical people claimed that this is what would indeed happen for 100% certainty. However, western digital open's it's own design (SweRV Core and SweRV Instruction set):
To further accelerate open standard interfaces and RISC-V processing architectures, Western Digital offers three open-source innovations designed to support both internal RISC-V development efforts as well as those of the growing RISC-V ecosystem.
https://www.westerndigital.com/company/ ... ons#risc-v

Furthermore, many people have noted that it is not possible to make a 100% free and openly described board because the board need other devices than just the CPU like GPU or ethernet controllers and thigns. So, it is itneresting to notice that there is a open gpu project also going on:

http://libre-riscv.org/3d_gpu


also:
The Libre RISC-V M-Class is a RISC-V chip that is libre-licensed to the bedrock. It is a low-power, mobile-class, 64-bit Quad-Core SoC at a minimum 800mhz clock rate, suitable for tablet, netbook, and industrial embedded systems. Full source code and files are available not only for the operating system and bootloader, but also for the processor, its peripherals and its 3D GPU and VPU.
https://www.crowdsupply.com/libre-risc-v/m-class

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#16 Post by pylkko »

IT appears that other players in the game are starting to realize that an open ISA will be a big thing. MIPS announces that they will open their ISA:

https://www.phoronix.com/scan.php?page= ... ource-2019

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#17 Post by Head_on_a_Stick »

Interesting blog post:

Building a RISC-V PC

The author uses Fedora but I think Debian testing/unstable can be made to work.

Here is a github repository (also linked in the blog post) that contains all the drivers needed to get the HiFive board working with kernel 4.19-rc2:

https://github.com/westerndigitalcorpor ... C-V-Linux/
deadbang

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#18 Post by Head_on_a_Stick »

New mini-ITX board from SiFive using their U740 64-bit multi-core RISC-V processor:

https://www.sifive.com/boards/hifive-unmatched

This is a more affordable replacement for the old "Unleashed" board and has M.2 slots for an NVMe drive & wireless card along with an x16 PCIe slot.

Product brief: https://sifive.cdn.prismic.io/sifive/c0 ... sed%29.pdf

EDIT: just by way of comparison the functionality is about the same as the old Unleashed board plus the expansion board, which together retailed for ~$3,000. The Unmatched board has an expected price of $665.
deadbang

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

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

#19 Post by LE_746F6D617A7A69 »

http://forums.debian.net/viewtopic.php? ... zi#p623106 (4 years ago)

RISC-V is designed for a purpose - the thing is that only very few people know what the purpose is ...
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#20 Post by pylkko »

You had an argument with nearly everyone on this forum. Then, I remember that you had a bigger one with somebody and left saying that you will never come back, Tomazzi.

Post Reply