PZ7020-StarLite PYNQ 환경 세팅

KiJungKong·2024년 8월 3일
0
post-thumbnail

PZ7020-StarLite_ZYNQ7010-20-15_Xilinx FPGA Evaluation Kit_Product_Puzhi Electronic Technology (Shanghai) Co. , Ltd (puzhitech.com)

# 설치 폴더 만들기
mkdir -p ~/tools
cd ~/tools

# 패키지 리스트 업데이트
sudo apt update

# GCC 13 설치
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
echo "Installing GCC 13..."
sudo bash -c '
UBUNTU_VERSION=$(lsb_release -cs) && \
echo "deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu $UBUNTU_VERSION main" | \
    tee /etc/apt/sources.list.d/ubuntu-toolchain-r-test.list && \
echo "deb-src https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu $UBUNTU_VERSION main" | \
    tee -a /etc/apt/sources.list.d/ubuntu-toolchain-r-test.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8EC952E2A0E1FBDC5090F6A2C277A0A352154E5 && \
apt update && \
apt-get install gcc-13 g++-13 -y'

# GCC 13을 기본 컴파일러로 설정
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13

# CMake 빌드에 필요한 도구들 설치
echo "Installing build tools for CMake..."
sudo apt install make ninja-build gettext unzip curl -y

# CMake 설치
# https://cmake.org/download/
echo "Installing CMake..."
wget https://github.com/Kitware/CMake/releases/download/v3.29.7/cmake-3.29.7.tar.gz
tar -xzvf cmake-3.29.7.tar.gz && rm cmake-3.29.7.tar.gz
cd cmake-3.29.7
./bootstrap --parallel=$(nproc) && make -j$(nproc) && sudo make install

# 추가 유틸리티 설치
echo "Installing additional utilities..."
sudo apt install npm fonts-nanum zsh -y

# Node.js 설치
echo "Installing Node.js..."
sudo npm install -g n
sudo n 17
hash -r

# npm 전역 설정
echo "Configuring npm..."
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile

# Neovim 설치
echo "Installing Neovim..."
cd ~/tools
git clone https://github.com/neovim/neovim
cd neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo -j$(nproc)
sudo make install
profile
공기정

0개의 댓글

관련 채용 정보