ubuntu22.04 安装 petalinux 2021.1

虚拟机环境

宿主机:win10

vmware 版本:VMware® Workstation 17 Pro

ubuntu版本 20.04 (如果用18.04的话, vscode 的remote SSH需要glibc

的版本过低,无法使用Remote SSH 插件。。。。)

安装虚拟机分了 300G 空间,可以根据ug1144的推荐即可。

Index of /releases/20.04.1

https://old-releases.ubuntu.com/releases/20.04.1/ubuntu-20.04-desktop-amd64.iso

虚拟机和宿主机复制粘贴(没试过传文件,都是复制文本)

虚拟机设置共享文件夹:

sudo apt install update

sudo apt install -y open-vm-tools open-vm-tools-desktop

安装好后需要 reboot 才能实现宿主机往ubuntu中拷贝

vmware 设置好共享目录后需要:

sudo vim /etc/fuse.conf

取消注释(或添加)这一行

user_allow_other

保存后(没写入fstab,所以重启后需要重新运行下面的 vmhgfs-fuse 开头的命令):

bash 复制代码
sudo mkdir -p /mnt/hgfs
sudo chmod 777 /mnt/hgfs
vmhgfs-fuse .host/<share-dir>/mnt/hgfs -o allow_other -o uid=1000 -o gid=1000

Petalinux 工具下载(需要登录账号):

​​​​​​​https://china.xilinx.com/support/download/index.html/content/xilinx/zh/downloadNav/embedded-design-tools.html

安装open-vm-tools

sudo apt install -y open-vm-tools open-vm-tools-desktop

ubuntu需要安装的依赖:

https://adaptivesupport.amd.com/s/article/76526?language=en_US

sudo apt install -y iproute2 gawk python3 python build-essential gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget git-core diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib automake zlib1g:i386 screen pax gzip cpio python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3

如果 petalinux-config 失败可能是由于没有安装 libtinfo5 没有安装

INFO] Generating Kconfig for project

package require hsi FAILED:

invalid command name "hsi::create_dt_node"

while executing

"hsi::create_dt_node -help"

(in namespace eval "::hsi::help" script line 6)

invoked from within

"namespace eval ::hsi::help {

variable version 0.1

::xsdb::setcmdmeta {hsi create_dt_node} categories {hsi}

::xsdb::setcmdmeta {hsi create..."

(file "/opt/plx2021.1/pxl/tool/xsct/scripts/xsct/hsi/hsihelp.tcl" line 25)

invoked from within

"source /home/g/petalinux/tools/xsct/scripts/xsct/hsi/hsihelp.tcl"

("package ifneeded hsi::help 0.1" script)ERROR: Failed to generate /home/aba/00-prj/15eg/build/misc/config/Kconfig.syshw

ERROR: Failed to Kconfig project

bash 复制代码
sudo apt install -y libtinfo5
相关推荐
Shier833_Ww4 天前
Windows10+WSL2+Docker相关整理
docker·容器·ubuntu20.04·windows10·wsl2
halfpast32 个月前
Ubuntu20.04 gr-gsm完整安装教程
ubuntu20.04·gsm·gr-gsm·gnuradio
m0_527653905 个月前
安装海康威视相机SDK后,catkin_make其他项目时,出现“libusb_set_option”错误的解决方法
算法·ubuntu·ubuntu20.04·海康威视相机
YRr YRr8 个月前
ubuntu20.04 解决Pycharm没有写入权限,无法通过检查更新更新的问题
ide·python·pycharm·ubuntu20.04
我是如子啊9 个月前
【UBuntu20 配置usb网卡】 记录Ubuntu20配置usb网卡(特别是建立热点)
linux·网卡·教程·ubuntu20.04·wifi热点·ap·usb网卡
西木九10 个月前
记录:ubuntu20.04的安装和必要的开发准备
ubuntu·ubuntu20.04
黄大刀10 个月前
UBUNTU20.04安装CH384串口卡驱动
ubuntu20.04·ch384·串口驱动
吃鱼不卡次1 年前
Window10下安装WSL-Ubuntu20.04
wsl·ubuntu20.04
flysnow0101 年前
Ubuntu20.04更新GLIBC到2.35版本
glibc·ubuntu20.04·2.35