摘要: 环形缓冲区 //缓存区大小 #define PM_BUF_SIZE 1024 //获取当前缓冲区的数据个数 #define circ_cnt(head, tail, size) (((head) > (tail)) ? \ ((head) - (tail)) : \ ((head) - (tail) 阅读全文
posted @ 2021-12-01 18:51 R1chie 阅读(178) 评论(0) 推荐(0) 编辑
摘要: DMA浅显分析 内核:Linux4.1 1.DMA介绍 ​ 其实很简单,DMA是Direct Memory Access的缩写,意思就是直接访问内存,什么叫直接访问内存?就是不需要CPU去参与,DMA就能从内存读或写入数据。 ​ 为什么需要DMA?原因很简单,为了让CPU更"轻松",把搬运的苦力活交 阅读全文
posted @ 2021-05-30 15:28 R1chie 阅读(905) 评论(0) 推荐(0) 编辑
摘要: 1.linux MMC 内核:linux 4.9 1.1 分析mxs-mmc.c 从别人的驱动程序分析是最好入手的。直接找到mxs_mmc_probe来进行分析: static int mxs_mmc_probe(struct platform_device *pdev) { ..... struc 阅读全文
posted @ 2021-05-23 12:56 R1chie 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1.从fbmem.c入手 内核版本:linux 4.9 1.1 fbmem_init static int __init fbmem_init(void) { int ret; if (!proc_create("fb", 0, NULL, &fb_proc_fops)) return -ENOME 阅读全文
posted @ 2021-05-23 12:54 R1chie 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 参考:笔记本电脑、VM虚拟机、开发板三者网线连接互ping - Lioker - 博客园 (cnblogs.com) 阅读全文
posted @ 2021-05-05 11:13 R1chie 阅读(237) 评论(0) 推荐(0) 编辑
摘要: MiniGui环境配置 前言:因工作需要,我将学习MiniGui,争取快速上手 主机:ubuntu16.04.12 Minigui版本:MiniGUI 3.2.3 参考:https://blog.csdn.net/Meteor_s/article/details/82865200 1.准备工作 1. 阅读全文
posted @ 2021-03-06 21:47 R1chie 阅读(488) 评论(1) 推荐(1) 编辑
摘要: Licheepi-投屏 本文是记录我根据坑网两位大佬的教程的配置流程。 参考:https://whycan.com/t_5462.html 内核:linux-zero-5.2.y buildroot:buildroot-2020.02.1(版本尽量和我一样,我之前使用buildroot2017.08 阅读全文
posted @ 2021-02-19 21:37 R1chie 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Licheepi-Mplayer 本篇是配置使用Mplayer播放器 内核版本:5.2.y buildroot-2017.08.1 首先要配置Mplayer之前,要先配置ALSA(声音) 1.配置ALSA make menuconfig Target packages > ​ Audio and v 阅读全文
posted @ 2021-02-19 21:33 R1chie 阅读(162) 评论(0) 推荐(0) 编辑
摘要: licheepi-wifi-RTL8723BS gst-launch-1.0 filesrc location=deng2.mp4 ! qtdemux ! h264parse ! omxh264dec ! autovideoconvert ! fbdevsink WiFi+BT模块:RTL8723b 阅读全文
posted @ 2021-02-19 21:32 R1chie 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 亲自下厨编译 前言:之前我都是用别人的现成的东西,下面我来重新编译Uboot、kerenl、rootfs 在编译之前要先安装工具链,我使用的是 gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) 1.U-BOOT 获取uboot源码(TF卡启动,用 阅读全文
posted @ 2021-02-19 21:30 R1chie 阅读(516) 评论(0) 推荐(0) 编辑