petalinux 16.4 安装问题

由于某些原因,换了一台电脑,配置不高,只能拿它来练习,所以安装真机ubuntu16.04

接下来就是参考UG1144安装petalinux-v2016.4-final-installer1.run

第一个就是库的安装问题,发现两个库无法安装,一个是gpg,另一个是xvfb-dev,只安装了xvfb,不影响安装。

第二个等得了很久竟然提示zlibg:i386,sudo apt-get install zlibg:i386安装继续

第三个问题就是按照UG114安装的坑

qwer@ubuntu:~/Desktop/installer/petalinux$ sudo ./petalinux-2016.4-final.run /opt/pkg/petalinux
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
*********************************************
WARNING: PetaLinux installation directory: /opt/pkg/petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Extracting Installation files...
 
LICENSE AGREEMENTS
 
PetaLinux SDK contains software from a number of sources. Please review
the following licenses and indicate your acceptance of each to continue.
 
You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.
 
Use PgUp/PgDn to navigate the license viewer, and press 'q' to close
 
Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************

发现sudo和切换成root都一样,不用的话也会提示没有权限

直接用普通账户安装在家目录

vision@vision-ThinkPad-T440s:~/Desktop$ ./petalinux-v2016.4-final-installer1.run   ../pkg/petalinux
./petalinux-v2016.4-final-installer1.run: line 52: /home/vision/Desktop/petalinux_installation_log: Permission denied
tee: /home/vision/Desktop/petalinux_installation_log: Permission denied
INFO: Checking installer checksum...

tee: /home/vision/Desktop/petalinux_installation_log: Permission denied
Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
   /home/vision/Desktop/petalinux_installation_log

^Ctee: /home/vision/Desktop/petalinux_installation_log: Permission denied
INFO: Extracting PetaLinux installer...
tar: /tmp/tmp.aCZvWlIcbr: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tee: /home/vision/Desktop/petalinux_installation_log: Permission denied
ERROR: Failed to extract the PetaLinux installer. Failed to install PetaLinux Tools!

提示没权限,只能尝试安装文件的所在目录里面直接安装

vision@vision-ThinkPad-T440s:~$ cd pkg/petalinux/
vision@vision-ThinkPad-T440s:~/pkg/petalinux$ ls
petalinux-v2016.4-final-installer1.run
vision@vision-ThinkPad-T440s:~/pkg/petalinux$ ./petalinux-v2016.4-final-installer1.run 

漫长等待,至少还没提示权限的问题,一旦出现就只能尝试安装petalinux 15.4了

INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
*********************************************
WARNING: You haven't specified the installation location.
*********************************************
*********************************************
WARNING: By default, it will be installed in your working directory: /home/vision/pkg/petalinux
*********************************************
Please input "y" to proceed the installation, exit otherwise:y
INFO: Checking PetaLinux installer integrity...
出现这个提示,吓得半死,继续等。。。。。。。

*********************************************
WARNING: PetaLinux installation directory: /home/vision/pkg/petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y

安装究竟还有多少这个东西,小白表示按个软件提心吊胆的,之前有安装petalinux15.4成功过,不知道16.4行不行,如果还是失败就直接安装15.4,太心累了。

LICENSE AGREEMENTS

PetaLinux SDK contains software from a number of sources.  Please review
the following licenses and indicate your acceptance of each to continue.

You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.

Use PgUp/PgDn to navigate the license viewer, and press 'q' to close

Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
INFO: Installing PetaLinux SDK to "/home/vision/pkg/petalinux/."

三个y很容易按多了个q,前路慢慢谨慎谨慎

INFO: Installing PetaLinux zynqMP Yocto SDK to "/home/vision/pkg/petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
You are about to install the SDK to "/home/vision/pkg/petalinux/components/yocto/source/aarch64". Proceed[Y/n]? Y
Extracting SDK...............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/vision/pkg/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux
INFO: PetaLinux Yocto SDK for zynqMP has been successfully installed.
INFO: Installing PetaLinux zynq Yocto SDK to "/home/vision/pkg/petalinux/./components/yocto/source/arm"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
You are about to install the SDK to "/home/vision/pkg/petalinux/components/yocto/source/arm". Proceed[Y/n]? Y
Extracting SDK...........................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/vision/pkg/petalinux/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
INFO: PetaLinux Yocto SDK for zynq has been successfully installed.
INFO: Installing PetaLinux microblaze (Full) Yocto SDK to "/home/vision/pkg/petalinux/./components/yocto/source/microblaze_full"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
You are about to install the SDK to "/home/vision/pkg/petalinux/components/yocto/source/microblaze_full". Proceed[Y/n]? Y
Extracting SDK...........................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/vision/pkg/petalinux/components/yocto/source/microblaze_full/environment-setup-microblazeel-v10.0-bs-cmp-mh-div-xilinx-linux
INFO: Installing PetaLinux microblaze (Lite) Yocto SDK to "/home/vision/pkg/petalinux/./components/yocto/source/microblaze_lite"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
You are about to install the SDK to "/home/vision/pkg/petalinux/components/yocto/source/microblaze_lite". Proceed[Y/n]? Y
Extracting SDK...........................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/vision/pkg/petalinux/components/yocto/source/microblaze_lite/environment-setup-microblazeel-v10.0-bs-cmp-ml-xilinx-linux
INFO: PetaLinux Yocto SDK for microblaze has been successfully installed.
INFO: PetaLinux SDK has been installed to /home/vision/pkg/petalinux/.

真心不易,接下来就是安装tftproot了

vision@vision-ThinkPad-T440s:~/pkg/petalinux$ sudo apt-get install tftpd tftp openbsd-inetd

sudo gedit /etc/inetd .conf
增加
tftp        dgram    udp    wait    nobody    /usr/sbin/tcpd    /usr/sbin/in .tftpd /tftpboot
mkdir  /tftpboot
chmod  777  /tftpboot
/etc/init .d /openbsd-inetd  restart
netstat -an | more | grep udp
vision@vision-ThinkPad-T440s:~/pkg/petalinux$ netstat -an | more | grep udp
udp        0      0 0.0.0.0:40050           0.0.0.0:*                          
udp        0      0 0.0.0.0:5353            0.0.0.0:*                          
udp        0      0 127.0.1.1:53            0.0.0.0:*                          
udp        0      0 0.0.0.0:68              0.0.0.0:*                          
udp        0      0 0.0.0.0:69              0.0.0.0:*  成功                       
udp        0      0 0.0.0.0:631             0.0.0.0:*                          
udp6       0      0 :::5353                 :::*                               
udp6       0      0 :::57989                :::*
vision@vision-ThinkPad-T440s:~/pkg/petalinux$ source settings.sh
PetaLinux environment set to '/home/vision/pkg/petalinux'
WARNING: /bin/sh is not bash!
bash is PetaLinux recommended shell. Please set your default shell to bash.
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
shell 没有更改成bash
vision@vision-ThinkPad-T440s:~/pkg/petalinux$ sudo dpkg-reconfigure dash 选择no
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
重新测试
vision@vision-ThinkPad-T440s:~/work$ source ../pkg/petalinux/settings.sh
PetaLinux environment set to '/home/vision/pkg/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services

至此安装成功

付上官网链接里面的bash和dash的转换

ls -al /bin/sh

sudo rm /bin/sh
ln -s /bin/bash /bin/sh

ls -al /bin/sh

should now point to bash

to run dash again

sudo rm /bin/sh
 ln -s /bin/dash /bin/sh



评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值