TQ15EG开发板教程:创建运行petalinux2019.1

工程网盘链接:https://pan.baidu.com/s/1vFRpzmbifXt7GypU9aKjeg 
提取码:0ylh 

首先需要使用与petalinux相同版本的vivado创建工程,与之前不同的是在创建硬件设计时需要勾选上添加bit文件,所以要在生成bit文件之后再创建硬件设计文件

打开装有对应版本的linux系统,设置petalinux的环境变量,在petalinux的安装目录中找到settings.sh,使用下面这条命令设置环境变量

source ./settings.sh

创建petalinux工程相关的命令我都会提供在工程目录的file文件夹中

创建petalinux工程,demoname为工程名称

把在vivado中创建的硬件配置文件,复制到上面的工程文件中

进入到工程目录中,配置petalinux

配置不作修改,摁右箭头选择Exit点击enter保存退出

等待配置完成后编译项目

修改设备树

设备树的内容如下,文件我也会放在file文件夹中

// SPDX-License-Identifier: GPL-2.0+/** dts file for Xilinx ZynqMP ZCU102 Rev1.0* (C) Copyright 2016 - 2018, Xilinx, Inc.** Michal Simek <michal.simek@xilinx.com>*// {model = "ZynqMP ZCU102 Rev1.0";compatible = "xlnx,zynqmp-zcu102-rev1.0", "xlnx,zynqmp-zcu102", "xlnx,zynqmp";gpio-keys {compatible = "gpio-keys";#address-cells = <1>;#size-cells = <0>;autorepeat;sw19 {label = "sw19";gpios = <&gpio 22 0>;linux,code = <108>; /* down */gpio-key,wakeup;autorepeat;};};leds {compatible = "gpio-leds";heartbeat_led {label = "heartbeat";gpios = <&gpio 23 0>;linux,default-trigger = "heartbeat";};};};&can1 {pinctrl-names = "default";pinctrl-0 = <&pinctrl_can1_default>;};&gem3 {phy-handle = <&phyc>;pinctrl-names = "default";pinctrl-0 = <&pinctrl_gem3_default>;phyc: phy@c {reg = <0xc>;ti,rx-internal-delay = <0x8>;ti,tx-internal-delay = <0xa>;ti,fifo-depth = <0x1>;ti,rxctrl-strap-worka;};};&gpio {pinctrl-names = "default";pinctrl-0 = <&pinctrl_gpio_default>;};&pinctrl0 {status = "okay";pinctrl_i2c0_default: i2c0-default {mux {groups = "i2c0_3_grp";function = "i2c0";};conf {groups = "i2c0_3_grp";bias-pull-up;slew-rate = <1>;io-standard = <1>;};};pinctrl_i2c0_gpio: i2c0-gpio {mux {groups = "gpio0_14_grp", "gpio0_15_grp";function = "gpio0";};conf {groups = "gpio0_14_grp", "gpio0_15_grp";slew-rate = <1>;io-standard = <1>;};};pinctrl_i2c1_default: i2c1-default {mux {groups = "i2c1_4_grp";function = "i2c1";};conf {groups = "i2c1_4_grp";bias-pull-up;slew-rate = <1>;io-standard = <1>;};};pinctrl_i2c1_gpio: i2c1-gpio {mux {groups = "gpio0_16_grp", "gpio0_17_grp";function = "gpio0";};conf {groups = "gpio0_16_grp", "gpio0_17_grp";slew-rate = <1>;io-standard = <1>;};};pinctrl_uart0_default: uart0-default {mux {groups = "uart0_4_grp";function = "uart0";};conf {groups = "uart0_4_grp";slew-rate = <1>;io-standard = <1>;};conf-rx {pins = "MIO18";bias-high-impedance;};conf-tx {pins = "MIO19";bias-disable;};};pinctrl_uart1_default: uart1-default {mux {groups = "uart1_5_grp";function = "uart1";};conf {groups = "uart1_5_grp";slew-rate = <1>;io-standard = <1>;};conf-rx {pins = "MIO21";bias-high-impedance;};conf-tx {pins = "MIO20";bias-disable;};};pinctrl_usb0_default: usb0-default {mux {groups = "usb0_0_grp";function = "usb0";};conf {groups = "usb0_0_grp";slew-rate = <1>;io-standard = <1>;};conf-rx {pins = "MIO52", "MIO53", "MIO55";bias-high-impedance;};conf-tx {pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59","MIO60", "MIO61", "MIO62", "MIO63";bias-disable;};};pinctrl_gem3_default: gem3-default {mux {function = "ethernet3";groups = "ethernet3_0_grp";};conf {groups = "ethernet3_0_grp";slew-rate = <1>;io-standard = <1>;};conf-rx {pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74","MIO75";bias-high-impedance;low-power-disable;};conf-tx {pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68","MIO69";bias-disable;low-power-enable;};mux-mdio {function = "mdio3";groups = "mdio3_0_grp";};conf-mdio {groups = "mdio3_0_grp";slew-rate = <1>;io-standard = <1>;bias-disable;};};pinctrl_can1_default: can1-default {mux {function = "can1";groups = "can1_6_grp";};conf {groups = "can1_6_grp";slew-rate = <1>;io-standard = <1>;};conf-rx {pins = "MIO25";bias-high-impedance;};conf-tx {pins = "MIO24";bias-disable;};};pinctrl_sdhci1_default: sdhci1-default {mux {groups = "sdio1_0_grp";function = "sdio1";};conf {groups = "sdio1_0_grp";slew-rate = <1>;io-standard = <1>;bias-disable;};mux-cd {groups = "sdio1_cd_0_grp";function = "sdio1_cd";};conf-cd {groups = "sdio1_cd_0_grp";bias-high-impedance;bias-pull-up;slew-rate = <1>;io-standard = <1>;};mux-wp {groups = "sdio1_wp_0_grp";function = "sdio1_wp";};conf-wp {groups = "sdio1_wp_0_grp";bias-high-impedance;bias-pull-up;slew-rate = <1>;io-standard = <1>;};};pinctrl_gpio_default: gpio-default {mux-sw {function = "gpio0";groups = "gpio0_22_grp", "gpio0_23_grp";};conf-sw {groups = "gpio0_22_grp", "gpio0_23_grp";slew-rate = <1>;io-standard = <1>;};mux-msp {function = "gpio0";groups = "gpio0_13_grp", "gpio0_38_grp";};conf-msp {groups = "gpio0_13_grp", "gpio0_38_grp";slew-rate = <1>;io-standard = <1>;};conf-pull-up {pins = "MIO22", "MIO23";bias-pull-up;};conf-pull-none {pins = "MIO13", "MIO38";bias-disable;};};};&qspi {is-dual = <1>;flash@0 {compatible = "m25p80"; /* 32MB */#address-cells = <1>;#size-cells = <1>;reg = <0x0>;spi-tx-bus-width = <1>;spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */spi-max-frequency = <108000000>; /* Based on DC1 spec */partition@qspi-fsbl-uboot { /* for testing purpose */label = "qspi-fsbl-uboot";reg = <0x0 0x100000>;};partition@qspi-linux { /* for testing purpose */label = "qspi-linux";reg = <0x100000 0x500000>;};partition@qspi-device-tree { /* for testing purpose */label = "qspi-device-tree";reg = <0x600000 0x20000>;};partition@qspi-rootfs { /* for testing purpose */label = "qspi-rootfs";reg = <0x620000 0x5E0000>;};};};&sata {/* SATA OOB timing settings */ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;phy-names = "sata-phy";phys = <&lane3 1 1 1 125000000>;};/* SD1 with level shifter */&sdhci1 {//pinctrl-names = "default";//pinctrl-0 = <&pinctrl_sdhci1_default>;no-1-8-v;disable_wp;};/*&uart0 {pinctrl-names = "default";pinctrl-0 = <&pinctrl_uart0_default>;};&uart1 {pinctrl-names = "default";pinctrl-0 = <&pinctrl_uart1_default>;};*//* ULPI SMSC USB3320 */&usb0 {pinctrl-names = "default";pinctrl-0 = <&pinctrl_usb0_default>;};&dwc3_0 {dr_mode = "host";snps,usb3_lpm_capable;phy-names = "usb3-phy";phys = <&lane2 4 0 2 26000000>;};&zynqmp_dpsub {//status = "disabled";status = "okay";};&pcie {//status = "okay";status = "disabled";};

修改完成后保存,再次编译

编译完成后生成启动文件

8把工程文件->images->linux 下的BOOT.bin和image.ub拷贝到SD卡中,我也会把这两个文件放到file文件夹中,需要测试的可以自取

把SD卡插入开发板,启动模式设置为SD卡启动,连接好串口线与电源线,打开串口开启电源

等待串口打印信息结束,在显示工程和login时表示启动成功

在串口输入账号和密码即可进入系统,我的这里的账号和密码都是root。或者在开发板上插入键盘和DP显示器也可以进行操作

File中的文件

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/512695.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【和鲸冬令营】通过数据打造爆款社交APP用户行为分析报告

【&#x1f40b;和鲸冬令营】通过数据打造爆款社交APP用户行为分析报告 文章目录 【&#x1f40b;和鲸冬令营】通过数据打造爆款社交APP用户行为分析报告1 业务背景2 数据说明3 数据探索性分析4 用户行为分析4.1 用户属性与行为关系分析4.2 转化行为在不同用户属性群体中的分布…

基于springboot+vue的物流管理系统

博主主页&#xff1a;猫头鹰源码 博主简介&#xff1a;Java领域优质创作者、CSDN博客专家、阿里云专家博主、公司架构师、全网粉丝5万、专注Java技术领域和毕业设计项目实战&#xff0c;欢迎高校老师\讲师\同行交流合作 ​主要内容&#xff1a;毕业设计(Javaweb项目|小程序|Pyt…

#include “stdafx.h“代码的位置,导致编译通不过

1.先上代码: #include <iostream> //std::cout #include <iterator> //std::distance #include <list> //std::list using namespace std;#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { list<int> mylist; …

R语言简介、环境与基础语法及注释

R语言简介、环境与基础语法及注释 一、R语言1.R语言简介2.R语言官网3.R语言中国的镜像网站4.R语言下载5.R语言的历史 二、R语言环境1.Windows安装1.1 去 R 语言下载的镜像站点的列表下载1.2 选择版本进行下载1.3 点击运行1.4 一路默认&#xff0c;安装完毕&#xff01; 2.Linux…

【IO】进程间通信

A程序代码&#xff1a; #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #include <string.h> int main(int argc, const char *argv[]) {if(mkfifo…

sql 查询

连续区域取数 select sid,min(b.eid) as eid from (select id2 as sid from txtTempTable where tc1 like Name*) as a, (select id as eid from txtTempTable where tc1Page) as b where sid<b.eid group by sid 16,18, 22,23 id tc1tc21617182223 两表对应关…

Tomcat部署及多实例(一)

一、Tomcat简介 1、简介 Tomcat 服务器是一个免费的开放源代码的Web 应用服务器&#xff0c;属于轻量级应用服务器&#xff0c;在中小型系统和并发访问用户不是很多的场合下被普遍使用&#xff0c;是开发和调试JSP 程序的首选。 当在一台机器上配置好Apache 服务器&#xff0c…

Java 面试题

Java 基础 以下代码执行结果&#xff1f; 示例1&#xff1a; public static void main(String[] args) {int a 0;Integer b 0;String c "0";String d new String("0");change(a, b, c, d);System.out.println(a "|" b "|" …

https代理相对socks5代理有什么优势?

随着互联网的快速发展&#xff0c;代理服务已成为许多人在访问敏感或地理位置受限的网站时所依赖的工具。其中&#xff0c;HTTPS代理和SOCKS5代理是两种最常用的代理服务类型。本文将探讨HTTPS代理相对SOCKS5代理的优势。 1、安全性 HTTPS代理使用SSL/TLS协议对客户端和代理服…

ArmSoM Rockchip系列产品 通用教程 之 UART 使用

1. UART 简介​ Rockchip UART (Universal Asynchronous Receiver/Transmitter) 基于16550A串口标准&#xff0c;完整模块支持以下功能&#xff1a; 支持5、6、7、8 bits数据位。支持1、1.5、2 bits停止位。支持奇校验和偶校验&#xff0c;不支持mark校验和space校验。支持接…

LabVIEW眼结膜微血管采集管理系统

LabVIEW眼结膜微血管采集管理系统 开发一套基于LabVIEW的全自动眼结膜微血管采集管理系统&#xff0c;以提高眼结膜微血管临床研究的效率。系统集成了自动化图像采集、图像质量优化和规范化数据管理等功能&#xff0c;有效缩短了图像采集时间&#xff0c;提高了图像质量&#…

金三银四:从技巧到趋势的全面准备

程序员的金三银四求职宝典 随着春天的脚步渐近&#xff0c;对于许多程序员来说&#xff0c;一年中最繁忙、最重要的面试季节也随之而来。金三银四&#xff0c;即三月和四月&#xff0c;被广大程序员视为求职的黄金时期。在这两个月里&#xff0c;各大公司纷纷开放招聘&#xf…