摘要: 贴片电阻 SMD (Surface Mounted Devices) resistor 常见封装 英制代码以inch为单位,米制代码以mm为单位。 贴片电容常见封装 按英制标准,见下表。0201,0402,0603,0805,1206为常见封装尺寸的贴片电容,容量范围一般在0.5pF~1uF。121 阅读全文
posted @ 2020-06-17 15:18 yanceylu 阅读(1843) 评论(0) 推荐(0) 编辑
摘要: 1. 查看日志级别 # cat /proc/sys/kernel/printk 7 4 1 7 四个数值分别表示。 控制台日志级别 默认消息日志级别(未明确指定日志级别的消息) 最小控制台日志级别 默认控制台日志级别 日志级别的定义在include/linux/kern_levels.h。数值越小, 阅读全文
posted @ 2020-05-12 15:01 yanceylu 阅读(1287) 评论(0) 推荐(0) 编辑
摘要: 1. 设置locale # locale -a C C.UTF-8 en_US.utf8 POSIX zh_CN zh_CN.gb2312 zh_CN.utf8 zh_SG.utf8 # export LANG=zh_CN.utf8 2. 安装汉字包,如文泉驿-正黑 # apt install fo 阅读全文
posted @ 2020-04-17 23:08 yanceylu 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 正确设置LANG=en_US.utf8的步骤 1. 检查locale的设置,发现未设置。 # locale LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETA 阅读全文
posted @ 2020-04-15 22:58 yanceylu 阅读(638) 评论(0) 推荐(1) 编辑
摘要: 1. Package 下载和检查 make pacakge/<name>/download make pacakge/<name>/check V=s 编译和安装 make package/<name>/compile 2. Config 制作defconfig make menuconfig ma 阅读全文
posted @ 2020-03-11 18:18 yanceylu 阅读(647) 评论(0) 推荐(0) 编辑
摘要: /dev/mem设备可以用来访问物理内存。下面一段应用程序的代码,实现了通过/dev/mem对物理内存空间中SRAM1的访问。 #include <stdio.h> #include <stdint.h> #include <fcntl.h> #include <unistd.h> #include 阅读全文
posted @ 2020-02-23 16:01 yanceylu 阅读(3380) 评论(0) 推荐(1) 编辑
摘要: 1. 查看所有进程 ps -eF-e: Select all processes.-F: Extra full format. PSR (Processor)显示进程所在的CPU。 2. 查看所有进程(包括线程) ps -eLF -e: Select all processes.-L: Show t 阅读全文
posted @ 2020-02-11 10:40 yanceylu 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Linux下/etc/network/interfaces文件用来配置网络接口。 1. 使用动态IP地址 auto eth0 iface eth0 inet dhcp 2. 使用静态IP地址 auto eth0 iface eth0 inet static address 192.168.1.100 阅读全文
posted @ 2020-02-10 09:47 yanceylu 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 1. 配置用户信息 git config --global user.name <name> git config --global user.email <email_address> 2. 配置高亮显示 git config --global color.ui auto 使用auto的高亮配置比 阅读全文
posted @ 2020-02-06 15:32 yanceylu 阅读(212) 评论(0) 推荐(0) 编辑
摘要: DMA访问的一致性 DMA对内存是直接访问的,而CPU对内存的访问有时会通过cache。不管是CPU还是DMA访问内存,都需要确保cache的一致性。本文只分析从DMA的角度,对内存的访问如何确保cache的一致性。个人理解,通常为保证cache的一致性,在DMA访问内存前后,对cache要有下面必 阅读全文
posted @ 2020-02-05 17:34 yanceylu 阅读(1606) 评论(0) 推荐(1) 编辑