ZYNQ
IT张先生
IT、嵌入式、QT、Linux、C/C++、Web、Java、J2EE。
展开
-
Petalinux Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file:
Petalinux create app时报错解决办法。原创 2022-10-13 22:01:16 · 807 阅读 · 0 评论 -
S0:12345:respawn:/bin/start_getty 115200 ttyS0 vt102
修改根文件系统的/etc/inittab中的。嵌入式Linux启动遇到下面的问题。原创 2022-08-08 21:26:03 · 552 阅读 · 0 评论 -
u-boot ERROR: Failed to allocate 0x5c6f bytes below 0x17ffffff.Failed using fdt_high value
lbm使用全局的gd->bd->bi_dram[0].start和gd->bd->bi_dram[0].size作为自己内存池管理。原创 2022-08-07 08:46:45 · 374 阅读 · 0 评论 -
【无标题】
u-boot中的脚本如下:运行命令弹出如下的问题原因是下面的配置没有使能,使能了就ok了CONFIG_HUSH_PARSER原创 2022-08-06 12:42:11 · 144 阅读 · 0 评论 -
调试ZYNQ的u-boot 2017.3 不能正常启动,记录调试过程
u-boot调试原创 2022-08-06 08:55:25 · 796 阅读 · 0 评论 -
u-boot中的u-boot,dm-pre-reloc
关于u-boot中的u-boot,dm-pre-reloc在重定向之前就需要绑定的设备在设备树中就需要添加该属性。该属性必须在根节点的子节点中声明。比如下文的节点/amba/slcr/clkc的节点中都需要声明该属性。原创 2022-08-04 22:16:50 · 1256 阅读 · 0 评论 -
u-boot调试定位手段
itcall: 040445c0 //该值是一个符号地址,通过u-boot.map可以查看到具体符号。所以可以定位到再函数中出现了问题。最后定位到serial_zynq.c文件中的打印。在获取时钟的时候出现问题。显示的错误信息:查看serial_init函数,可以看到是和串口相关。...原创 2022-08-03 21:12:58 · 469 阅读 · 0 评论 -
uboot开启调试打印信息
遇到uboot启动没有任何打印,可以使能UART的debug功能,尤其是DM模型下,该功能非常有用。在相应board中的defconfig文件中增加如下的配置。在u-boot/include/common.h文件中。原创 2022-08-03 19:46:00 · 3041 阅读 · 0 评论 -
petalinux-package --bsp -p ./MZ702P --output ./MY.BSP 出错
Petalinux Package BSP ErrorI have a working petalinux project for a custom Zynq US\+ board. It was created using petalinux-create , modified for our needs w/ changes to u-boot, kernel, rootfs, etc , and verified in HW. Using 2020.2 version of all tools.原创 2022-05-10 22:48:35 · 299 阅读 · 0 评论 -
Petalinux EMMC启动(qspiflash存BOOT.bin,emmc存image.ub和rootfs)
环境:petalinux 2018.3实现目的:在Petalinux下,qspiflash存储BOOT.bin,EMMC的blk0存储image.ub,blk1存储rootfs。前提:该文档描述的方式需要开发板支持SD卡启动。即ZYNQ的SDC0接SD卡,SDC1接EMMC。Petalinux 配置petalinux-config->Subsystem AUTO Hardware Setting -> Advanced bootable images storage settin原创 2022-05-08 21:00:10 · 4036 阅读 · 1 评论 -
Petalinux EMMC启动
环境:petalinux 2018.3实现目的:在Petalinux下,qspiflash存储BOOT.bin,EMMC的blk0存储image.ub,blk1存储rootfs。前提:该文档描述的方式需要开发板支持SD卡启动。即ZYNQ的SDC0接SD卡,SDC1接EMMC。Petalinux 配置petalinux-config->Subsystem AUTO Hardware Setting -> Advanced bootable images storage settin原创 2022-05-08 20:57:19 · 2344 阅读 · 2 评论 -
Petalinux EMMC启动(qspiflash 存BOOT.bin,EMMC存image.ub和rootfs)
实现目的:在Petalinux下,qspiflash存储BOOT.bin,EMMC的blk0存储image.ub,blk1存储rootfs。前提:该文档描述的方式需要开发板支持SD卡启动。即ZYNQ的SDC0接SD卡,SDC1接EMMC。Petalinux 配置petalinux-config->Subsystem AUTO Hardware Setting -> Advanced bootable images storage settings-> boot image原创 2022-05-08 20:55:35 · 4704 阅读 · 5 评论 -
vxworks6.9的C语言解器和命令解释器
C语言解器和命令解释器内核shell包含2个解释器,C语言解释器和命令解释器。shell前面为“->”表示C语言解释器,前面为“[vxWorks *]#”表示命令解释器。C语言解释器可以通过函数名调用程序中的函数(这些函数位于系统符号表中,系统符号表解释见另一篇博文),所以可以通过它来直接在shell中调用某个函数进行调试。比如输入help,会显示出帮助信息,结尾还会输出value = 1 = 0x1,其实help是内核中定义的一个help函数(查看系统符号表会发现有help函数),在C语言解释原创 2021-11-13 22:33:54 · 1470 阅读 · 0 评论 -
ssh 登录Petalinux
Petalinux默认支持ssh登录。ssh -p 22 [email protected]输入yes和密码The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established.RSA key fingerprint is SHA256:hHC9Q90Lt1NW0HVKVft4YBsrNHkfLgaibIUrS1ERNTQ.Are you sure you want to continue connecting (原创 2022-04-15 21:37:31 · 965 阅读 · 0 评论 -
linux下的/proc/pid/fdinfo和/proc/pid/fd
/proc/pid/fdinfo和/proc/pid/fd目录/proc/pid/fd目录fd目录包含了所有该进程使用的文件描述符,而fdinfo目录包含的是对应的fd目录中进程打开的操作权限。root@mrzhang:/proc/1408/fd# ls0 1 2 3 4 5 6 7root@mrzhang:/proc/1408/fd# ls -ltotal 0lrwx------ 1 ywx ywx 64 2011-12-13 13:23 0 -> /dev/nulllrwx----原创 2022-03-25 18:51:09 · 5050 阅读 · 0 评论 -
Linux4.14错误码
路径 : xlnx-4.14/include/uapi/asm-generic/errno-base.h/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */#ifndef _ASM_GENERIC_ERRNO_BASE_H#define _ASM_GENERIC_ERRNO_BASE_H#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* N原创 2022-03-22 22:59:05 · 291 阅读 · 0 评论 -
of_serial: probe of 43c50000.serial failed with error -28
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled43c00000.serial: ttyS0 at MMIO 0x43c01000 (irq = 50, base_baud = 6250000) is a 16550A43c10000.serial: ttyS1 at MMIO 0x43c11000 (irq = 51, base_baud = 6250000) is a 16550A43c20000.serial: ttyS2 at M原创 2022-03-19 22:30:22 · 648 阅读 · 0 评论 -
Petalinux移除module或app的方法
由 petalinux-create -t apps -n app_name --enable 建立的工程移除方法:petalinux-config -c rootfs在 rootfs 配置的 apps 项取消 app_name 应用,保存配置更新。并删除/project-spec/meta-user/recipes-modules下面相应的module文件即可...原创 2022-03-15 22:23:38 · 1847 阅读 · 0 评论 -
Petalinux2020.2 开发ZYNQ的AXI DMA
环境:Vivado 2020.2Petalinux 2020.2Ubuntu18.04概述移植开源项目xilinx_axidma,使用mmap实现了从用户空间使用AXI-DMA的零拷贝,并且将其封装为了库。(https://github.com/bperez77/xilinx_axidma/tree/master)。PL工程图使用两个DMA,一个DMA使能S2MM通道,一个DMA使能MM2S通道,并把该两个通道互联。Linux内核配置配置Linux内核这里面需要确保DMA相关项开启。原创 2022-03-10 22:39:24 · 3254 阅读 · 6 评论 -
Petalinux 2020.2 没有生成system.bit文件
原因是在导出XSA文件的时候,没有选择include bitstream选项。原创 2022-03-07 22:14:12 · 568 阅读 · 0 评论 -
mpsoc移植axidma
测试出现下面的情况,是因为PL端的FIFO之类设置的比较小导致的。./axidma_benchmarkAXI DMA Benchmark Parameters:Transmit Buffer Size: 7.91 MbReceive Buffer Size: 7.91 MbNumber of DMA Transfers: 1000 transfersUsing transmit channel 0 and receive channel 1.Warning: 99.95% of the rec原创 2021-12-08 20:49:53 · 288 阅读 · 0 评论 -
petalinux-build 问题 : ERROR: Kernel configuration is invalid.
petalinux出现下面的问题。ERROR: Kernel configuration is invalid.include/generated/autoconf.h or include/config/auto.conf are missing.Run ‘make oldconfig && make prepare’ on kernel src to fix it.petalinux-config -c kernelpetalinux-build -c kernelpetal原创 2021-12-07 22:57:05 · 860 阅读 · 0 评论 -
uboot 2020.1 启动 vxworks7 sr620
uboot引导vxworks7Creating a Uniprocessor VxWorks Source BuildCreating a CPU Based VxWorks Source BuildCreating a VxWorks Kernel Image With Embedded DTB5.内核配置截图6.修改设备树的串口时钟,使用MZ702P板子,配置的串口时钟为100M默认BSP的时钟频率为50Mbuild projectbuild targetu-boot配置环境变量原创 2021-11-27 22:28:00 · 4145 阅读 · 5 评论 -
vitis 2020.2 Program Flash 问题
使用vitis 2020.2的Program Flash的时候,Console会显示下面的异常。串口调试口也会打印FSBL的DATA ABORT之类的异常。主要解决方法:Problem 1: Default FSBL stops working with error stage,because it didn’t find bootable image on flash.Solution: used special FSBL where boot mode is set fix to JTAG, s原创 2021-11-07 22:55:22 · 1995 阅读 · 0 评论 -
VITIS 2020.2 新建FSBL时遇到的问题。
VITIS 2020.2 新建FSBL时遇到的问题。This application requires xilffs library in the Board Support Package. You can go back to the previous pages to select a different platform and domain or create a new one with suitable hardware and software....原创 2021-11-06 22:12:20 · 822 阅读 · 0 评论 -
petalinux-boot --jtag --u-boot --hw_server-url TCP:ubuntu:3121报错Connection refused
~/Works/ZYNQ/MZ702P/petaLinux$ petalinux-boot --jtag --u-boot --hw_server-url TCP:ubuntu:3121INFO: Sourcing build toolsINFO: Launching XSDB for file download and boot.INFO: This may take a few minutes, depending on the size of your image.rlwrap: warnin原创 2021-11-05 23:08:41 · 788 阅读 · 2 评论 -
petalinux-boot --jtag 报错
petalinux-boot --jtag --u-boot --hw_server-url TCP:ubuntu:3121使用如上指令会报类似下面的错误。解决方法:设置虚拟机的USB设备的兼容性为USB3.1,因为我电脑接的物理USB口就是USB3.1 。INFO: Sourcing build toolsINFO: Launching XSDB for file download and boot.INFO: This may take a few minutes, depending on原创 2021-11-02 22:17:39 · 583 阅读 · 0 评论 -
vivado 2020.2 win10 JTAG不识别
首先需要知道:在WIN10上插入Xinlinx仿真器不会显示相关的仿真器设备,很奇怪,但是能用。反正目前的电脑插入仿真器只会看到下面红框的变化。然后就是按照下面的两种方法解决的。具体是那个没有深究。方法1:简单来说,就是先卸载JTAG Cable相关的驱动,然后拔掉JTAG Cable,然后打开命令窗口(cmd),以管理员权限运行下面的指令:进入目录"C:\Xilinx\Vivado\2020.2\data\xicom\cable_drivers\nt64\dlc10_win7".然后依次执原创 2021-10-31 22:58:56 · 3691 阅读 · 0 评论 -
Memory write error at 0x100000. MMU section translation fault
在使用vitis2020.2 JTAG调试MZ702P板子的时候会报下面的错误。原因都是启动模式没有设置到JTAG启动。记得之前用SDK的时候好像没有这个问题。记录一下,备忘。Downloading Program – F:/FPGA/Project/vitis_workspace/helloWorld/Debug/helloWorld.elfsection, .text: 0x00100000 - 0x00100a1fsection, .init: 0x00100a20 - 0x00100a2b原创 2021-10-31 22:37:07 · 2804 阅读 · 0 评论