Riocore setup from scratch for dummies

More
2 years 1 month ago #309138 by epineh
Hi everybody, as the name suggests this is a guide for people wanting to install and start playing around with Riocore.
For those that don't know anything about Riocore you can read through the original thread :

www.forum.linuxcnc.org/18-computer/49142...d-on-fpga-ice40-ecp5

This guide is aimed at people that aren't linux guru's, that want to have a try at this awesome LinuxCNC software/hardware and that might struggle like I did...for weeks...to install it and get it going.

Credit to meister, the guy behind it all, he has done an impressive job of getting all this going.

Another credit to ColdTurkey, his idea of using the LinuxCNC live install to setup software/hardware in the Remora thread is what I based my approach on, this way everybody has the closest starting point possible.

This guide will focus on getting everything going for the Gowin Tang Nano FPGA, and meister's Tangoboard, once you have this going you can select other FPGA's and boards as you wish. You will most likely need to change the FPGA programming side of things with other FPGA's.

OK lets begin...
This is for a normal PC, I will have a look at a Raspberry Pi install sooner or later hopefully.
Download and install the latest live install of Linuxcnc, then open a terminal

sudo apt install git
open firefox, skip all start steps, start browsing, google search gowin eda
open page, (first link for me) create account, only email and password required
once logged in, select support, then Gowin EDA Home, then Download Gowin EDA
select software for Linux tab
select the one that says education, (click over to the right)
  (at the time of writing this it is the 7th option down)
open File system, navigate to Downloads, right click and select extract to
click on the little folder icon and select Home then extract
go to the folder in file system, right click rename folder to gowin
    its easier to type out later
open terminal, enter these one at a time :  
git clone github.com/multigcs/riocore.git
sudo apt install python3-pip
sudo apt install python3-yaml
sudo apt install python3-graphviz
sudo apt install openfpgaloader
sudo apt install python3-pyqtgraph

That last one takes a while to install

Now we setup the USB programming :
in terminal still,
cd gowin/Programmer/bin
once you are in that folder type and enter :
sudo ./Gowin_USB_Cable_Installer.sh
sudo make

reboot machine

open terminal

type and enter :
export PATH=$PATH:home/your_user_name/gowin/IDE/bin

in my case my user account is "me" so I type:

export PATH=$PATH:/home/me/gowin/IDE/bin
export PATH=$PATH:/home/me/riocore/bin

change to the riocore directory
cd riocore

now type
PYTHONPATH=. bin/rio-setup riocore/configs/Tangoboard/config.json

This should get you up and running, now there is lots to learn about setting up a machine but hopefully this will take the heartache out of starting.

Now things can be a little weird, I believe the Tang Nano needs to be plugged in at reboot, sometimes it won't flash properly, I cannot honestly say I have got it 100% sorted but if anybody finds a better solution we can edit this to suit.

Good luck
Russell.

Please Log in to join the conversation.

More
2 years 1 month ago #309536 by kzali
Hi
Oliver has made some .deb packages, presumably, to setup the reqiured tool chains and packages. Any instructions on usage for us dummies and does the package take away some of the steps defined above?

Please Log in to join the conversation.

More
2 years 1 month ago #309542 by meister
I would prefer the route described above,
it's easier to always be up to date via git.

The most complicated part of the installation is the toolchain, which has to be installed manually. Everything else is just copy paste

Please Log in to join the conversation.

More
2 years 1 month ago #309544 by kzali

I would prefer the route described above,
it's easier to always be up to date via git.

The most complicated part of the installation is the toolchain, which has to be installed manually. Everything else is just copy paste
Agreed just a pull and there you go.  Thanks.

Please Log in to join the conversation.

More
2 years 1 month ago #309851 by meister
the quick gowin install way without login :)

Code:
mkdir -p /opt/gowin cd /opt/gowin wget "https://cdn.gowinsemi.com.cn/Gowin_V1.9.9.03_Education_linux.tar.gz" tar xzvpf Gowin_V1.9.9.03_Education_linux.tar.gz rm -rf Gowin_V1.9.9.03_Education_linux.tar.gz export PATH=$PATH:/opt/gowin/IDE/bin/  

Please Log in to join the conversation.

More
1 year 9 months ago #318844 by Dima
Hi. I am just learning LinuxCNC. I followed all the instructions, but encountered the following problem: after entering `PYTHONPATH=. bin/rio-setup riocore/configs/Tangoboard/config.json`, I get the message "ACCESS DENIED". When I add `sudo` before the command, I get the message "COMMAND NOT FOUND". What should I do? I installed the latest version of LinuxCNC today, and there were no errors in the previous steps.

P.S. I apologize, I am not very good at English and I am using a translator.

Please Log in to join the conversation.

More
1 year 9 months ago #319446 by epineh
Hi Dima, even though I wrote this "how to" I would recommend using the docker method of installing :

github.com/multigcs/riocore/blob/main/DOCKER.md

It makes life a lot easier, just use the linuxcnc debian live install operating system, sounds like you already have it installed. It should work without issue, I have tried using Ubuntu and Kali linux but they have problems running the docker setup.

Russell.

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum