参考:http://blog.csdn.net/u013457167/article/details/77887705
petalinux 2015.4&& 2016.2安装指南
参考:http://blog.csdn.net/u013457167/article/details/77914069petalinux 2017.2安装指南
1.需要Ubuntu16 的64版本
2.
PetaLinux工具安装不能用Root账号!
3.确保当前Shell是bash
选择NO
sudo dpkg-reconfigure dash
4.安装库http://blog.csdn.net/u013457167/article/details/77914069 全部;
http://blog.csdn.net/u013457167/article/details/77887705:
sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 lib32stdc++6
(一段话命令:
(sudo apt-get install tofrodos iproute2 gawk gcc git make xvfb net-tools libncurses5-dev tftpd zlib1g-dev zlib1g-dev:i386 libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev screen pax gzip tar lib32z1 lib32ncurses5 libbz2-1.0:i386 lib32stdc++6)
)
#安装petalinux时出现警告,提示No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution,需要安装下面3个库,记得root权限
apt-get install tftpd tftp openbsd-inetd
gedit /etc/inetd.conf
#在文件中增加以下内容
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftproot
#保存并退出
mkdir /tftproot
chmod 777 /tftproot
/etc/init.d/openbsd-inetd restart
netstat -an | more | grep udp
#看到有如下输出,即表示tftp安装成功
#udp 0 0 0.0.0.0:69 0.0.0.0:*
5.
opt是系统文件夹 权限被保护起来了 打开终端 输入如下命令 sudo chmod 777 /opt 然后回车 输入自己的密码 再回车 这样opt就可以创建文件了6.普通用户执行
mkdir -p /opt/pkg/petalinux