1、虚拟机安装ubuntu-16.04.7-desktop-amd64.iso
(注意:安装ubuntu-18.04.6-desktop-amd64.iso和ubuntu-16.04.6-desktop-i386.iso会报以下错误)
- environment: line 314: ((: 10 #15~1 > 10 #3: syntax error in expression (error token is "~1 > 10 #3")
- environment: line 318: ((: 10 #15~1 < 10 #3: syntax error in expression (error token is "~1 < 10 #3")
2、将/bin/sh由dash修改为bash,输入:sudo dpkg-reconfigure dash,如下图所示选择No。
修改后输入:ls -al /bin/sh,弹出如下图所示:
3、安装以下软件:
apt-get update
apt install build-essential vim tofrodos
apt install iproute2 gawk gcc git make net-tools zlib1g-dev
apt install libssl-dev flex bison libselinux1 libncurses5-dev
apt install tftpd lib32z1 lib32ncurses5 libbz2-1.0:i386
apt install lib32stdc++6 xvfb chrpath socat autoconf libtool
apt install texinfo gcc-multilib libsdl1.2-dev libglib2.0-dev zlib1g:i386
apt install xterm python
apt install tftpd-hpa
apt install tftp-hpa
4、下载petalinux2018.3,下载地址:Downloads (xilinx.com) ,选择如下内容下载
5、输入:sudo chmod 777 /opt,修改/opt目录权限,切换成普通用户后输入:./petalinux-v2018.3-final-installer.run /opt进行安装,安装成功打印信息如下: