前段时间因为设计需要安装了PetaLinux,一开始参照ug1144手册的步骤,结果遇到不少坑
安装
安装环境:Ubuntu 16.04
安装包:petalinux-v2016.4-final-installer1.run
安装步骤:
0 修改Ubuntu的软件源,改成国内的服务器地址,这里我选择了aliyun,然后执行sudo apt-get update
1 安装依赖库和依赖工具
根据ug1144的安装要求,输入如下指令
sudo apt-get install tofrodos iproute2 gawk xvfb git net-tools libncurses5-dev libncurses5 tftpd zlib1g-dev 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
接着安装32位依赖库
sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386
完成后安装并配置tftp
sudo apt-get install 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