Ubuntu libraries for Petalinux

https://forums.xilinx.com/t5/%E5%B5%8C%E5%85%A5%E5%BC%8F%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/petalinux-2018-2-%E7%BC%96%E8%AF%91%E9%97%AE%E9%A2%98/td-p/943304

sudo apt-get update

Otherwise some of the lib/tools following can't be found on apt-get

sudo apt-get install -y python tofrodos iproute2 gawk xvfb gcc git net-tools libncurses5-dev 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
  • Some of the library can't be found with the name listed on UG1144
sudo apt-get install zlib1g:i386
  • If you don't install this one, some warning would be found when source the PetaLinux settings
sudo apt-get install screen

This is a work-around found for can't open "petalinux-config -c kernel" menu window

tftp

  1. Install following packages.
sudo apt-get install xinetd tftpd tftp
  1. Create /etc/xinetd.d/tftp and put this entry
service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}

!!! This entry should be placed in /etc/xinetd.conf

  1. Create a folder /tftpboot this should match whatever you gave in server_args. Mostly it will be tftpboot
sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
  1. Restart the xinetd service.
sudo /etc/init.d/xinetd stop
sudo /etc/init.d/xinetd start
  1. Create a file named test with some content in /tftpboot path of the tftp server
ls / > /tftpboot/test
sudo chmod -R 777 /tftpboot
ls /tftpboot/test -lh
-rw-r--r-- 1 thalib thalib 159 2010-03-05 20:48 test
  1. Obtain the IP address of the tftp server. In this example we will consider the ip address as 192.168.1.2

  2. Now in some other system follow the following steps.

tftp 192.168.1.2
tftp> get test
Sent 159 bytes in 0.0 seconds
tftp> quit
ls test -lh
-rw-r--r-- 1 thalib thalib 159 2010-03-05 20:48 test

你可能感兴趣的:(Ubuntu libraries for Petalinux)