自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

IT张先生

IT 嵌入式 通信 C/C++ QT Linux Android

  • 博客(76)
  • 资源 (3)
  • 收藏
  • 关注

原创 qcustemplot使用opengl加速

由于qCustomPlot需要调用glut库里的函数,但是glut库比较老旧,而且在实际测试中,也发现一旦new了多个图表控件,当鼠标在几个窗口之间点击的时候,会互相影响,错乱,甚至崩溃的现象。网上有很多讲qCustomPlot启动OpenGL的文章,有些是很有用的,但也好像没有完全说清楚,现在把我觉得有用的收集起来,并加上一些自己的理解。将"qcustomplot.h和qcustomplot.cpp"添加到自己的工程中,在qcustomplot.cpp最前面加一条头文件引用。贴下我的pro文件。

2022-10-22 10:43:51 1522 1

原创 Petalinux Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file:

Petalinux create app时报错解决办法。

2022-10-13 22:01:16 1168

原创 vmware占用磁盘空间增加(ubuntu虚拟机占用空间小)

vmware占用磁盘空间大,但是用df -h指令看ubuntu虚拟机占用的空间没有这么大,可以试着用下面的三种方法清理vmware占用的空间。

2022-10-07 22:25:34 1553

原创 Ubuntu中buff/cache内存占用过高解决办法(卡顿,死机的原因)

buffer和cache是两个在计算机技术中被用滥的名词,放在不通语境下会有不同的意义。在Linux的内存管理中,这里的buffer指Linux内存的:Buffer cache。这里的cache指Linux内存中的:Page cache。翻译成中文可以叫做缓冲区缓存和页面缓存。在历史上,它们一个(buffer)被用来当成对io设备写的缓存,而另一个(cache)被用来当作对io设备的读缓存,这里的io设备,主要指的是块设备文件和文件系统上的普通文件。但是现在,它们的意义已经不一样了。

2022-10-07 21:08:25 8004

原创 Ubuntu root认证失败解决办法

Ubuntu安装后,root用户默认是被锁定了的,不允许登录,也不允许执行“su命令到root”。对于桌面用户而言,这样可以提高安全性。但对于服务器可以设置成允许“su命令到root,但不允许root用户直接登录”。因而对于Ubuntu输入su命令提示认证失败这个问题,可以通过重新设置root密码来解决。Ubuntu输入su命令提示认证失败的解决办法。重新执行su指令就会切换到root用户。

2022-10-07 20:51:40 2559

原创 S0:12345:respawn:/bin/start_getty 115200 ttyS0 vt102

修改根文件系统的/etc/inittab中的。嵌入式Linux启动遇到下面的问题。

2022-08-08 21:26:03 735

转载 initramfs与initrd的区别

链接入内核的initramfs文件在linux-2.6.24/usr/initramfs_data.cpio.gz。

2022-08-07 16:26:02 541

原创 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 536

原创 【无标题】

u-boot中的脚本如下:运行命令弹出如下的问题原因是下面的配置没有使能,使能了就ok了CONFIG_HUSH_PARSER

2022-08-06 12:42:11 266

原创 调试ZYNQ的u-boot 2017.3 不能正常启动,记录调试过程

u-boot调试

2022-08-06 08:55:25 1078

原创 u-boot中的u-boot,dm-pre-reloc

关于u-boot中的u-boot,dm-pre-reloc在重定向之前就需要绑定的设备在设备树中就需要添加该属性。该属性必须在根节点的子节点中声明。比如下文的节点/amba/slcr/clkc的节点中都需要声明该属性。

2022-08-04 22:16:50 1820

原创 u-boot调试定位手段

itcall: 040445c0 //该值是一个符号地址,通过u-boot.map可以查看到具体符号。所以可以定位到再函数中出现了问题。最后定位到serial_zynq.c文件中的打印。在获取时钟的时候出现问题。显示的错误信息:查看serial_init函数,可以看到是和串口相关。...

2022-08-03 21:12:58 796

原创 uboot开启调试打印信息

遇到uboot启动没有任何打印,可以使能UART的debug功能,尤其是DM模型下,该功能非常有用。在相应board中的defconfig文件中增加如下的配置。在u-boot/include/common.h文件中。

2022-08-03 19:46:00 3923

原创 ubuntu虚拟机不能拷贝复制文件的解决办法

安装vmwaretools后不能再虚拟机中,或者虚拟机和windows里不能复制拷贝文件。

2022-07-22 22:11:15 1938

原创 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 425

原创 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 5403 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 3165 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 5775 5

原创 ssh 登录Petalinux

Petalinux默认支持ssh登录。ssh -p 22 root@192.168.1.10输入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 1417

原创 Ubuntu添加开机启动执行脚本

Ubuntu添加开机启动执行脚本方法一:编辑rc.loacl脚本Ubuntu开机之后会执行/etc/rc.local文件中的脚本,所以我们可以直接在/etc/rc.local中添加启动脚本。sudo gedit /etc/rc.local#!/bin/sh #This script will be executed *after* all the other init scripts.#You can put your own initialization stuff in here if

2022-04-12 22:15:51 3618 1

原创 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 6964

原创 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 384

原创 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 834

原创 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 2716

原创 linux设备树中的#address-cells 、 #size-cells

“#address-cells, #size-cells”属性用来定义当前node的子node中”reg”属性的解析格式。并且单位都是u32,即#address-cells = <1> ,#size-cells = <1>,中的1代表一个32位。详情见后面的例子。Property name: #address-cells, #size-cellsValue type: Description: The #address-cells and #size-cells propert

2022-03-13 22:21:22 4937 3

原创 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 4728 8

原创 Petalinux 2020.2 没有生成system.bit文件

原因是在导出XSA文件的时候,没有选择include bitstream选项。

2022-03-07 22:14:12 848

转载 VS2017离线下载及安装方式

VS2017社区版离线安装目前微软官网提供Visual Studio 2017在线安装版本,对于离线安装只提供说明。Visual Studio 2017官网提供四个版本,这里个人学习,所以选择社区版的,下面说的也是社区版的安装步骤。一、离线下载器下载在微软官网https://www.visualstudio.com/zh-hans/downloads/,选择第一个Community版本,点击免费下载。此时会下载一个最新版本的vs_community_xxxxxx.exe的下载器,你可以把其改名为v

2022-02-13 22:09:45 39847 4

原创 petalinux 2019.1 设置自启动脚本

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Postinstall scriptlets of [‘autorunapp’] have failed. If the intention is to defer them to first boot,then please place them into pkg_postinst_ontarget_${PN} ().Deferring to first boot via ‘exit 1’ is no long

2021-12-14 22:25:36 2345 7

原创 mpsoc vivado 2019.1 sdk 裸机开发

vivado sdk2019.1 裸机开发卡死在psu_init.tcl解决办法不使用psu_init.tcl直接使用psu_init.c文件。修改psu_init.tcl中报错的地址,屏蔽掉就可以了。

2021-12-13 23:15:56 1716

原创 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 383

原创 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 1056

原创 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 4346 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 1767

原创 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 2611

原创 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 1147

原创 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 989 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 722

原创 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 4795

原创 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 3774 1

STM32开发的数据手册

欢迎下载啊。这个手册是关于STM32F0系列的。欢迎大家啊!

2012-10-28

wr_workbench_vxworks_users_guide

用于workbench的使用及Vxworks的开发,属于workbench的开发手册,比较全面。

2014-06-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除