- 博客(24)
- 资源 (18)
- 收藏
- 关注
原创 DMB,DSB,ISB三个指令区别
此部分说明三个指令的具体区别(在指令流水线上说明),这三个指令主要目的在于确保程序在多处理器环境下的稳定性和一致性,避免由于指令乱序和内存操作重排引起的不可预测行为一个简化的流水线,包含以下阶段:取指(IF)、译码(ID)、执行(EX)、内存访问(MEM)和写回(WB)
2024-07-31 11:49:30 737
原创 R_AARCH64_ADR_PREL_PG_HI21问题说明
ADRP 用于生成页基地址,特别适用于需要生成基址的情况。LDR 用于从内存加载数据,直接与内存地址打交道。因虚拟地址需MMU配置完成才能使用两者结合使用时,能够有效地访问大数据或静态变量,在编写高效和位置无关代码时尤为重要。
2024-06-05 15:01:05 1223
原创 在ZYNQ的PL侧添加串口IP16550
环境软件:vivado2017.4硬件:黑金7017的开发板步骤:1、使用黑金例程中的ps_axi_led例程中进行添加pl侧的16550IP核2、添加16550IP核、Constant IP核链接如下:Contant连接的freeze输出默认0Contant连接的rin和ctsn输出默认1将16550的sin和sout引出添加管脚约束...
2022-02-10 11:55:35 2127
原创 Design Runs中没有显示对应IP问题
在生成bit时,发现没有显示Block design中的IP核,如下图这个问题需要在“Generate Output Products”中设置,如下图需要选择“Out of context per IP”不要选择“Global”。选了“Global”之后便不会出现其他ip核...
2022-01-27 16:46:17 1760
原创 fatal error: stdio.h: No such file or directory
在windows应用商店安装完Ubuntu之后编译个hello world程序后报错root@Mack:/home/mack/test#root@Mack:/home/mack/test# gcc test.ctest.c:1:10: fatal error: stdio.h: No such file or directory #include <stdio.h> ^~~~~~~~~compilation terminated.解决方法如下:1、更新源
2021-05-11 11:28:01 13551
原创 vsipl库介绍(一)
本文以example11中的接口进行介绍1、Creates a block object and a vector view (object) of the block.FunctionalityCreates a block object with an N element VSIPL data array, it creates a unit stride vector view object and then binds the block object to it.The funct
2021-04-19 16:30:40 5226 12
原创 Vivado创建自己第一个ps工程
操作步骤按照下图进行设置 接下来next,到选择zynq的页面,根据原理图选择对应的zynq芯片 点击finish
2021-03-24 11:36:22 778
原创 驱动中出现data abort的错误,例程验证32位与64位的转化问题
返回指针无法访问的问题主要是进行了非法地址的访问,这里主要说一种不常见的错误,在32位程序移植到64位系统时候出现的返回值无法访问的问题。问题现象:出现 data abort的错误实质是程序访问了非法地址,嵌入式中出现data abort一般考虑是内存mmu配置中的地址映射出现问题,但是如果是程序移植需要考虑编译器的一个特性。请看下面的代码1、test.c文件#include <stdio.h>#include <stdlib.h>void main(){
2020-11-05 14:38:25 1457
原创 UBOOT中链表操作例子(仿照uboot中的例子)
struct tmp{ u8* name; u8* lenth; u8* age; struct tmp *tp;};//struct tmp *tmp;#define __aligned(x) __attribute__((aligned(x)))#define start_entry(_type, _list) \ _type _u_boot_list_1_##_list __aligned(4) \ ...
2020-09-01 15:24:12 515
原创 在函数‘_start’中: (.text+0x20):对‘main’未定义的引用
本人在最近研究u-boot的代码,链表操作时候写了如下代码:#include <stdio.h>typedef unsigned char u8;struct tmp{ u8* name; u8* lenth; u8* age;};struct tmp *tmp;#define __aligned(x) __attribute__((aligned(x)))#define ll_entry_declare(_type, _name, _list)
2020-06-28 18:35:20 6272
原创 云服务器卡
背景:去年申请了腾讯的云服务器,为了别人方便创建了一个简单密码的用户tmp,去年腾讯一直给我报警,说受到攻击,每天好几次,就关机了,今年登录之后发现,格外的卡具体操作:用top命令查看的结果如下:前两个占了将近100%,百度之后发现kswapd是用作swap的,但是第二个就纳闷了,而且我这服务器什么也没有跑,用ps -ef查看居然只有tmp用户,而且再加上后面的运行命令,一下就清楚了,这个不是我设置的那就是被黑了。直接删除用户,立竿见影,不卡了。在看一下服务器的日志信息:
2020-06-18 14:00:50 260
原创 IMX6-使用mfgtool只烧写内核
目的:其余文件不动,只烧写内核在mfgtools根目录下,打开cfg.ini文件,看到name后的名字,当前为“eMMC-linux”;打开“Profiles\Linux\OS Firmware\ucl2.xml文件,找到“eMMC-linux”,如下<LIST name="eMMC-linux" desc="Choose eMMC as media"> <CMD state="BootStrap" type="boot" body="BootStrap" file =
2020-06-10 09:17:36 1023
原创 UBOOT-在uboot中确定网络连接问题
zynq-uboot> mdiomdio - MDIO utility commandsUsage:mdio list - List MDIO busesmdio read <phydev> [<devad>.]<reg> - read PHY's register at <devad>.<reg>mdio write <phydev> [<devad>.]<reg> <.
2020-06-09 18:25:44 3492 3
原创 could not locate script engine for language 'python'
在运行SecureCRT的Python脚本时候报错could not locate script engine for language 'python',根据查找明确问题主要是因为没有安装ActivePython,自己可以根据自己的版本安装ActivePython,安装完成后,运行脚本没有问题!...
2020-04-09 10:37:16 2153 4
原创 iMX6设置MTU大于1500
修改fec.c文件,修改内容具体如下:1、将以下代码:#define PKT_MAXBUF_SIZE 1518#define PKT_MINBUF_SIZE 64#define PKT_MAXBLR_SIZE 1520修改为#define PKT_MAXBUF_SIZE 2016#define PKT_MINBUF_SIZE 64#define PKT_MAX...
2020-03-11 18:53:33 637
原创 imx6平台qt程序中dynamic_cast导致的内存增加
问题背景:imx6dl的主板,3.0的内核,busybox的文件系统问题描述:如下程序运行中,未定义MEMTEST会出现计数300+时内存增加现象(无论是delete还是使用deletelater方法);在定义MEMTEST后的程序不会出现此问题,一切正常mainwindow.cpp:#include "mainwindow.h"#include "ui_mainwindow.h"...
2020-03-03 14:52:24 431
原创 内核编译常见问题(一)
问题1:/opt/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/cc1: error while loading shared librari/home/mack/kernel/linux-3.0.35/./Kbui...
2020-02-19 08:20:02 1704
原创 色彩概念
真彩色(true color)真彩色是指在组成一幅彩色图像的每个像素值中,有R,G,B三个基色分量,每个基色分量直接决定显示设备的基色强度,这样产生的彩色称为真彩色。例如用RGB5∶5∶5表示的彩色图像,R,G,B各用5位,用R,G,B分量大小的值直接确定三个基色的强度,这样得到的彩色是真实的原图彩色。如果用RGB8:8:8方式表示一幅彩色图像,就是R,G,B都用8位来表示,每个基色分量占一个字...
2020-01-17 15:17:33 809
原创 求质(素)数中的筛选思想
在网上无意看见一片关于求解质数文章,在这总结一下这种筛选的思想:1、最常见的筛选质数的方法,也是一开始能便能想的到的,便是质数的定义,质数不能被除了自己和1以外的数整除。将n依次整除2到n-1的数看是否有余数,这种方法简单,但是耗时2、将第一种方法改进,将n依次整除2到(n+1)/2的数,理论上时间缩减了一半3、继续改进,任何数可以写成n*(2*3)+m(m为0-5)也就是6n
2013-10-10 10:55:45 678
原创 How to Install Eclipse ADT, Android SDK, and setup AVD Emulator
Steps:1. Get Eclipse (I use Eclipse 3.7 – Indigo), download from:Eclipse.org or EclipseSource (cloud download – a lot faster!!! )2. Get Android SDK, run the installation:After the
2013-07-22 16:34:41 1168
原创 Linux_problem 1: ntfs-3g
When your USB harddisk(HDD)' file system is NTFS, Linux can't mount your harddisk, because Linux doesn't know what the NTFS is. The solution of this problem as follows:1.Download ntfs-3g 2.inst
2013-07-16 16:12:47 980
System Control and Management Interface V3.1
2022-07-29
vsipl 1.3和1.4的部分资源手册
2022-06-04
ARMv8-A_Architecture_Reference_Manual_(Issue_A.a).pdf
2020-11-23
arm架构的寄存器手册(armv8包含32bit和64bit)
2020-11-23
intel82574网卡手册
2020-11-23
GIC_V3的相关文档(最新版英文)
2020-10-15
ls1043a/1023a的checklist
2019-03-22
MT41K1G8手册
2018-12-15
nxp的lsdk使用说明文档
2018-12-15
ls1043的技术手册
2018-12-15
xapp1052.pdf
2015-08-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人