0
点赞
收藏
分享

微信扫一扫

基于ubuntu的嵌入式开发环境

笙烛 2022-04-26 阅读 61

基于ubuntu的嵌入式开发环境


声明:部分内容参考自网络,如有侵权请联系笔者删除。

1.更新系统源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get update

参考自: https://blog.csdn.net/zy1049677338/article/details/86005806.

2.更新novatek的环境

sudo apt-get install build-essential 
sudo apt-get install mtd-utils vim squashfs-tools gawk cmake cmake-data liblz4-tool libmpc3 libstdc++6
sudo apt-get install device-tree-compiler android-tools-fsutils texinfo 
sudo apt-get install u-boot-tools bison
sudo apt-get install libbison-dev flex libc6-dev
sudo apt-get install libncurses5-dev
sudo apt-get install lib32ncurses5  libncurses5:i386 libgl1-mesa-dev 
sudo apt-get install g++-multilib 
sudo apt-get install mingw-w64 tofrodos lib32z1 
sudo apt-get install libssl-dev zlib1g-dev

3.安装OPENCV

sudo apt-get install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg.dev libtiff4.dev libswscale-dev libjasper-dev

4.更新VIM配置

https://www.cnblogs.com/sench/p/vim.html

ubuntu16.04 vim记忆上次编辑的位置

5.虚拟终端路径太长的问题

6.安装nfs和tftp服务器

6.1 安装nfs服务



sudo apt install nfs-kernel-server


cat /etc/exports
/tftpboot *(rw,sync,no_root_squash,no_subtree_check)

mkdir /var/nfs;
mount -t nfs -o nolock 192.168.21.127:/opt/novatek-sdk/na51068_linux_sdk/code/hdal/samples/output /var/nfs
cd /var/nfs/;

mount -t nfs -o nolock 192.168.21.127:/tftpboot /mnt/nfs
cd /mnt/nfs/;

6.2 安装tftp服务

0.安装tftp-server

sudo apt-get install tftpd-hpa #(服务器端)
sudo apt-get install tftp-hpa #(客户端,如果不需要可以不安装)

1.配置TFTP服务器

sudo vim /etc/default/tftpd-hpa

将原来的内容改为:

TFTP_USERNAME="tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_DIRECTORY="/tftp" # ‘/tftp’为自定义的服务器目录名,需要设置权限,sudo chomd 777 -R  /tftp
TFTP_OPTIONS="-l -c -s"

2.重新启动TFTP服务

sudo service tftpd-hpa restart

7.安装ntpdate

apt-get install ntpdate

8.配置profile,主要是交叉编译器

9.ubuntu默认的是dash, 需要手动执行命令将dash改为bash.

sudo dpkg-reconfigure dash

10.安装其他的工具

apt-get install git
apt-get install lzop
举报

相关推荐

0 条评论