antmicro / netv2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mithro/netv2-soc
NeTV2 SoC based on LiteX
This project forked from mithro/netv2-soc
NeTV2 SoC based on LiteX
_ __ _______ _____ ____ _____ / |/ /_/_ __/ | / /_ |___/ __/__ / ___/ / / -_) / | |/ / __/___/\ \/ _ \/ /__ /_/|_/\__/_/ |___/____/ /___/\___/\___/ Copyright 2016-2018 / EnjoyDigital NeTV2 SoC based on LiteX [> Getting started ------------------ 1. Install Python3 and your vendor's software 2. Obtain LiteX & Cores ecosystem: Get litex_setup.py from: https://github.com/enjoy-digital/litex/ python3 litex_setup.py init install 3. Build the design and load it: python3 make.py build python3 make.py load or flash [> Status --------- NeTV2: UART: OK ETHERNET: OK SDCARD: OK PCIe: OK DDR3: OK HDMI_OUT_0: UNTESTED HDMI_IN_0: UNTESTED HDMI_OUT_1: UNTESTED HDMI_IN_1: UNTESTED [> Contact ---------- E-mail: [email protected]
Submodule git URL https://git.llvm.org/git/compiler-rt/ is out of date within the LiteX git submodule.
Replication instructions:
git clone -b v4l2 [email protected]:antmicro/netv2.git
cd netv2
git submodule update --init --recursive
Generates the following errors:
fatal: repository 'https://git.llvm.org/git/compiler-rt/' not found
fatal: clone of 'https://git.llvm.org/git/compiler-rt' into submodule path
'netv2/litex/litex/soc/software/compiler_rt' failed
Failed to clone 'litex/soc/software/compiler_rt'. Retry scheduled
Cloning into 'netv2/litex/litex/soc/software/compiler_rt'...
fatal: repository 'https://git.llvm.org/git/compiler-rt/' not found
fatal: clone of 'https://git.llvm.org/git/compiler-rt' into submodule path 'netv2/litex/litex/soc/software/compiler_rt' failed
Failed to clone 'litex/soc/software/compiler_rt' a second time, aborting
Submodule path 'migen': checked out 'b1b2b298b85a795239daad84c75be073ddc4f8bd'
Failed to recurse into submodule path 'litex'
Because of this error the following error is generated upon make gateway/build
:
INFO:SoC:--------------------------------------------------------------------------------
make[1]: Entering directory 'netv2/build/software/libcompiler_rt'
make[1]: *** No rule to make target 'umodsi3.o', needed by 'libcompiler_rt.a'. Stop.
make[1]: Leaving directory 'netv2/build/software/libcompiler_rt'
This is confusing and I would say does more harm than good.
Once I set IP=locahost, login-$user and put my own key in allowed, I could get past it. but working that out (twice now) was a pain.
When I engage a new project (like this) I install a fresh OS and try to only install what is needed.
I am using a Pi to do the programming, so I need to scp the bitstream there and run things there, which I don't think is at all what this describes, leading to even more confusion.
Existing makefile targets assume that you have a separate testing Linux PC that has NeTV2 board plugged in and that it can be reached via SSH from your development PC.
...
Building and loading kernel module:
1. Setup enviroment:
export IP_ADDR "<test PC IP address>"
export LOGIN "<test PC ssh username>"
There should be documentation telling what needs to be installed in order to build.
I have worked out what is needed for Debian. This might be good enough for now as it is most of what anyone on any OS needs to know. If you want to support all equally, you might like this:
https://gitlab.freedesktop.org/CarlFK/gst-build/-/blob/master/distro-deps.sh
or here are my notes:
sudo apt install \
build-essential virtualenv linux-headers-$(uname -r) libtinfo5 \
software-properties-common \
gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
v4l-utils
sudo apt-add-repository --update 'deb http://ftp.debian.org/debian testing main'
sudo apt install gcc-riscv64-unknown-elf
sudo apt-add-repository --remove --update 'deb http://ftp.debian.org/debian testing main'
git clone --branch=v4l2 --recurse-submodules https://github.com/antmicro/netv2.git
For others may want to point them to:
wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz
tar xvf riscv64-unknown...
export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14/bin
I haven't figured out what package is needed for
could not set property "video-sink" in element "fpsdisplaysink0" to "ximagesink"
so I removed video-sink="ximagesink" which may be just fine.
for Vavado, I would put a link to:
https://github.com/timvideos/litex-buildenv/wiki/Xilinx-Vivado
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.