[RISC-V][Linux]嵌入式 riscv64 开发环境搭建

0 , 首先换源,要不然前面的过程会很浪费时间,推荐阿里源, Ubuntu Mate 18.04

可以参考我的另一篇文章。
[Linux]Ubuntu 20.04换阿里源

1, 基本工具

sudo apt-get install gcc gcc-riscv64-linux-gnu \
vim git build-essential kernel-package fakeroot bison flex \
automake autoconf libtool make python3-distutils pkg-config libglib2.0-dev \
libncurses5-dev libncursesw5-dev libpixman-1-dev \
device-tree-compiler zlib1g-dev libssl-dev

2,exvim

git clone https://github.com/exvim/main
cd main/
sh unix/install.sh
sh unix/replace-my-vim.sh
sudo apt-get install ctags id-utils cscope silversearcher-ag

在下面目录里,把默认的ex工程样式改为nerdtree样式:
~/.vim/bundle/ex-vimentry/autoload/vimentry.vim
在这里插入图片描述

3,chrome

4,zsh+oh-my-zsh

sudo apt-get install -y zsh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s $(which zsh)

5,串口工具

sudo apt-get install minicom ckermit
vim ~/.kermrc

填入以下内容

set line /dev/ttyUSB0
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5

6,删除自带软件

sudo apt-get purge libreoffice-common firefox
sudo apt-get purge totem rhythmbox empathy brasero simple-scan aisleriot cheese transmission-common	

你可能感兴趣的:(RISCV,linux,vim)