1.下载

VMware

VMware-workstation-full-15.0.0-10134415.exe

自己寻找激活码

Ubuntu镜像

UG1144 PetaLinux Tools Documentation 推荐 Ubuntu Linux 16.04.5, 18.04.1

ubuntu-16.04.5-desktop-amd64.iso

http://old-releases.ubuntu.com/releases/16.04.5/ubuntu-16.04.5-desktop-amd64.iso

2.在VMware上安装Ubuntu16.04.5

文件-->新建虚拟机

下一步点击自定义硬件

设置ISO

网络设为桥接

点击完成。

然后点击开启此虚拟机

然后设置用户名和密码进入安装阶段,耐心等候一下。

点击现在重启

如果没法重启,那么右键-->电源-->重新启动客户机

输入密码,进入界面

ctrl+alt+t 调出terminal

1)设置root密码

$sudo passwd

2)安装VMware Tools

VMware Tool的新手简单安装

3)调整时间

看起来时间不对,通过时间和日期设置一下

4)网络

http://1.1.1.2 用户名密码登陆(公司上网管理)

此处如果不能上网,查一下编辑-->虚拟网络编辑器-->更改设置 设为桥接模式,选择硬件网卡

虚拟机-->右键 设置 网络适配器 桥接模式,复制物理网络连接状态

基本就可以通了。

5)sudo apt-get update

如果更新不通过 ,也许需要设置一下source.list

参考Ubuntu apt-get install E: 无法定位软件包Ubuntu apt-get install E: 无法定位软件包

3.在Ubuntu16.04.5上安装petalinux

之前折腾了两天各种问题,就是因为Ubuntu的版本不对,所以需要严格按照UG1144 PetaLinux Tools Documentation的推荐来

这个坑踩得好不值得啊啊啊啊啊。

1)下载

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2018-3.html

PetaLinux 2018.3 Installer (TAR/GZIP - 6.79 GB)

2)把shell设置成bash

sudo dpkg-reconfigure dash

此时看一下 /bin/sh指向bash

2)安装依赖包

UG1144

sudo apt-get install tofrodos iproute gawk make net-tools libncurses5-dev tftpd zlib1g:i386 libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential git libsdl1.2-dev libglib2.0-dev

4)安装petalinux

我将petalinux-v2018.3-final-installer.run放在了VMware-share文件内

在Ubuntu-16.04.5中对应/mnt/hgfs/Ubuntu-16.04.5/目录

注意安装petalinux必须在非root用户

为了避免权限问题,在~/work目录下新建petalinux目录

/mnt/hgfs/Ubuntu-16.04.5/petalinux-v2018.3-final-installer.run ./petalinux/
安装过程中会出现

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: Checking installer checksum...
INFO: Extracting PetaLinux installer...
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
这时候需要按下enter键,让你阅读LICENSE AGREEMENTS,按下q,再按y,如此三次。

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: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "./petalinux//."
INFO: Installing aarch64 Yocto SDK to "./petalinux//./components/yocto/source/aarch64"...
INFO: Installing arm Yocto SDK to "./petalinux//./components/yocto/source/arm"...
INFO: Installing microblaze_full Yocto SDK to "./petalinux//./components/yocto/source/microblaze_full"...
INFO: Installing microblaze_lite Yocto SDK to "./petalinux//./components/yocto/source/microblaze_lite"...
INFO: PetaLinux SDK has been installed to ./petalinux//.

至此安装完毕。

sudo mv ~/work/petalinux /opt/

source /opt/petalinux/settings.sh 设置环境

xsct等工具就可以直接用了。

4.ssh

apt-get install openssh-server

/etc/init.d/ssh restart 过程中认证一下就OK了

5.sftp

apt-get install vsftpd

/etc/init.d/vsftpd restart 过程中认证一下就OK了

参考Ubuntu安装SFTP服务,及启动失败处理

6.运行sdk

1) dtc报warning has a unit name, but no reg property

将/opt/petalinux/tools/linux-i386/petalinux/bin/dtc 拷贝到/usr/bin目录下

2) 爆出缺mkimage工具

sudo cp ../u-boot-2018.07-fmxx/tools/mkimage /usr/bin/

VNware上安装虚拟机Ubuntu16.10 并安装petalinux的更多相关文章

  1. VNware上安装虚拟机Ubuntu16.10 并安装petalinux(版本问题的坑 弃帖 另开一帖)

    1.下载Ubuntu镜像文件 最新版本:https://ubuntu.com/download/desktop 老版本:http://old-releases.ubuntu.com/releases/ ...

  2. Mac Book 上安装Windows 8 / 10 以后安装 Hyper-v 无法正常使用问题---虚拟化已禁止问题

    Mac book由于工作需要装了双启动,平时工作用 Windows 10, 由于有些老程序无法启动,还得再装一个虚拟机. 起初装 WMWare 开始装 7.1版本,结果没安装完就直接崩溃重启, 网上反 ...

  3. MySQL安装 MySQL5.7.10免安装版配置,mysql5.7.10免安装版

    MySQL5.7.10免安装版配置,mysql5.7.10免安装版  最新版的 Mysql 不提供图形界面的安装了, 下载下来是一个压缩包的形式, 那么我们如何来使用它呢, 让它为我们工作呢? 环境: ...

  4. ubuntu16.10下安装erlang和RabbitMQ

    Ubuntu系统下安装RabbitMQ(我选择的是Ubuntu Server 16.10) 1.首先必须要有Erlang环境支持 --安装之前要装一些必要的库(Erlang开发环境同样)(参考:duq ...

  5. 使用Azure的GPU系列虚拟机Ubuntu-16.0.4安装GPU驱动并使用Tensorflow-GPU的过程。

    1.source activate python362.source activate tensorflow-gpu3.pip install tensorflow-gpu(提示安装的这个版本:ten ...

  6. ubuntu16.10 中安装mysql

    1.安装MYSQL: root@ubuntu:~# sudo apt-get install mysql-server root@ubuntu:~# apt isntall mysql-client ...

  7. ubuntu安装docker{ubuntu16.04下安装docker}

       一.开始安装 第一步:   由于apt官方库里的docker版本可能比较旧,所以先卸载可能存在的旧版本: $ sudo apt-get remove docker docker-engine d ...

  8. 转: VMware 安装mac osx 10.11 安装步骤(一)(from伟东)

    http://blog.csdn.net/soachenshui/article/details/49251513

  9. 在Linux服务器上使用Vbox安装虚拟机

    先去官网(www.virtualbox.org)上下载对应Linux系统的Vbox版本. 我这边用的是Oracle Linux 7系统(KDE安装) 使用rpm安装virtualbox 发现报错,按照 ...

随机推荐

  1. Booting the Linux/ppc kernel without Open Firmware

    The DT block format 这一章定义了传递给内核的FDT(flattened device tree)的格式.关于它包含的内容以及内核需要的属性将在后续章节描述. 注:DT block应 ...

  2. 007-Spring Boot-@Enable*注解的工作原理-EnableConfigurationProperties、ImportSelector、ImportBeanDefinitionRegistrar

    一.@Enable* 启用某个特性的注解 1.EnableConfigurationProperties 回顾属性装配 application.properties中添加 tomcat.host=19 ...

  3. 测开之路一百一十二:bootstrap按钮

    bootstrap按钮 引入bootstrap和jquery 普通按钮和bootstrap风格按钮 调整大小 块级按钮 禁用按钮 disabled 按钮分组 分页按钮

  4. oracle alter index rebuild offline与online

    oracle index build online与offline测试环境为oracle 11.2.0.4 --sql test SQL> conn test/test )); begin .. ...

  5. laravel 设置自定义 Validator

    转自:https://learnku.com/docs/laravel/5.4/validation/1234#custom-validation-rules 自定义验证规则 Laravel 提供了许 ...

  6. logstash异常

    logstash异常 1 2 3 Unrecognized VM option 'UseParNewGC' Error: Could not create the Java Virtual Machi ...

  7. 从新向你学习javase(第一天)

    1:阐述JDK和JRE之间区别 jdk(工具)>jre(运行环境)>jvm(虚拟机) 2: 能够使用常见的DOS命令 d:(进入D盘下),cd +路径(进入到当前路径),cd..(返回上一 ...

  8. 应用安全-web安全-WebShell整理

    shellcode.aspx <%@ Page Language="C#" AutoEventWireup="true" Inherits="S ...

  9. IE浏览器下用JS创建文件

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  10. 如何通过脚本实现显示版本号、CPU、硬盘和内存条大小

    COLOR="\033[1;$[RANDOM%7+31]m"     COLOR1="\033[1;$[RANDOM%7+31]m"COLOR2="\ ...