摘要: 一、背景 泰山派的背光电路因为电流超过mipi3.1承受范围,所以mipi3.1使用i2c转pwm芯片gp7101来驱动屏幕背光,我们将该屏幕用于rk3506上,i2cdetect -y 0结果如下 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- 阅读全文
posted @ 2026-03-13 22:00 上善若淼 阅读(0) 评论(0) 推荐(0)
摘要: 一、芯片差异 原厂EVB底板使用的RTC芯片是ISL1208(原理图上标着RS4C1338),接到i2c0上,是一个低功耗RTC芯片,供电3.3v 目前库存RTC芯片是DS1307N使用的是5V电压,这个型号的驱动内核是支持的 焊接上去后没加设备树i2cdetect -y 0可以识别到设备,但是dm 阅读全文
posted @ 2026-03-11 22:11 上善若淼 阅读(2) 评论(0) 推荐(0)
摘要: 一、串口 1. 设置波特率 stty -F /dev/ttyS1 115200 stty -F /dev/ttyS1 speed 9600 115200 或 9600 是波特率 speed 参数可以指定波特率 2. 设置数据位 / 停止位 / 校验位 stty -F /dev/ttyS1 cs8 # 阅读全文
posted @ 2026-03-10 20:58 上善若淼 阅读(2) 评论(0) 推荐(0)
摘要: 一.前言 在嵌入式系统开发中,USB 通信是一项非常基础但又关键的技术。无论是调试、数据采集还是设备互联,能够灵活地让嵌入式设备在 PC 上以虚拟串口(CDC-ACM)的形式出现,都是工程师日常工作中常用的技能。 本篇博客将带你深入了解如何在 Linux/Buildroot 系统中配置 CDC-AC 阅读全文
posted @ 2026-03-09 23:45 上善若淼 阅读(3) 评论(0) 推荐(0)
摘要: 安装依赖 sudo apt install libx11-dev 编译 git clone https://github.com/ozkl/doomgeneric.git cd doomgeneric 修改makefile,CC=clang改成CC=gcc make PLATFORM=xlib -j 阅读全文
posted @ 2026-02-26 22:09 上善若淼 阅读(1) 评论(0) 推荐(0)
摘要: typedef struct { int voltage; int current; int enable; } system_cfg_t; system_cfg_t g_cfg; 写入config.ini #include <stdio.h> int config_save(const char 阅读全文
posted @ 2026-02-24 21:56 上善若淼 阅读(5) 评论(0) 推荐(0)
摘要: 1. Linux kernel version G2touch touchscreen device works based on HIDoverI2C standard protocol, so G2touch recommends that the customer uses Linux ker 阅读全文
posted @ 2026-02-10 15:59 上善若淼 阅读(4) 评论(0) 推荐(0)
摘要: 一、USB HID驱动 二、查看鼠标信息 ls -l /dev/input/by-id/ root@rk3506-buildroot:/dev/input# ls -l /dev/input/by-id/ total 0 lrwxrwxrwx 1 root root 9 Jan 1 00:00 us 阅读全文
posted @ 2026-02-08 20:01 上善若淼 阅读(15) 评论(0) 推荐(0)
摘要: 1️⃣ 下载源码 git clone https://github.com/stephane/libmodbus.git cd libmodbus 如果是 git 源码(必须): ./autogen.sh 2️⃣ 导出工具链环境(关键) export TOOLCHAIN=/home/rk3506/H 阅读全文
posted @ 2026-01-19 21:09 上善若淼 阅读(15) 评论(0) 推荐(0)
摘要: 设置交叉编译工具链的时候原本设置的是buildroot编译出来的工具链,结果编译不通过(好像是模块加载不通过,时间太长忘了),问了ai才发现是与编译kernel的工具链不一致导致 换成prebuilt里面的工具链就可以了 源码在github请自取 https://github.com/Mrzhaoq 阅读全文
posted @ 2026-01-19 19:00 上善若淼 阅读(14) 评论(0) 推荐(0)