ARM嵌入式学习笔记 - 搭建环境
安装交叉编译工具arm-2009q3
sudo mkdir /usr/local/arm
sudo cp arm-2009q3.tar.bz2 /usr/local/arm
cd /usr/local/arm
sudo tar -xvf arm-2009q3.tar.bz2
将路径加入环境变量
vim ~/.bashrc
export PATH=$PATH:/usr/local/arm/arm-2009q3/bin
source ~/.bashrc
安装库文件、JDK
cp /mnt/hgfs/vm-share/Android_JDK.tar.gz ./
tar -xvf Android_JDK.tar.gz
apt-get install libgl1-mesa-dev-lts-xenial
apt-get install libswitch-perl
apt-get install u-boot-tools
vim /etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu trusty main universe
sudo apt-get update
sudo apt-get upgrade
cd /root/Android_JDK/jdk6
./install-sun-java6.sh
cd /root/Android_JDK
./install-devel-packages.sh
Ubuntu16.04.7搭建tftp服务器
sudo apt-get install xinetd
sudo apt-get install tftp tftpd
sudo vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/tftpboot/
disable = no
per_source= 11
cps = 100 2
flags = IPv4
}
sudo mkdir /var/tftpboot
sudo chmod -R 777 /var/tftpboot
sudo /etc/init.d/xinetd restart
搭建nfs服务器
sudo apt-get install nfs-kernel-server
sudo vim /etc/exports
/home/minilinux/ *(rw,sync,no_root_squash)
sudo systemctl restart portmap
sudo systemctl restart nfs-kernel-server
在客户端执行挂载命令
mount -t nfs -o nolock 192.168.1.131:/home/minilinux /mnt/nfs
本文来自博客园,作者:GreeneGe,转载请注明原文链接:https://www.cnblogs.com/greene/p/15835167.html