摘要: 安装依赖 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 上善若淼 阅读(3) 评论(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 上善若淼 阅读(3) 评论(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 上善若淼 阅读(8) 评论(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 上善若淼 阅读(14) 评论(0) 推荐(0)
摘要: 设置交叉编译工具链的时候原本设置的是buildroot编译出来的工具链,结果编译不通过(好像是模块加载不通过,时间太长忘了),问了ai才发现是与编译kernel的工具链不一致导致 换成prebuilt里面的工具链就可以了 源码在github请自取 https://github.com/Mrzhaoq 阅读全文
posted @ 2026-01-19 19:00 上善若淼 阅读(13) 评论(0) 推荐(0)
摘要: 一、驱动配置 Device Drivers > Input device support > Keyboards > [*]ADC Ladder Buttons [*]GPIO Buttons 两种按键,一种是ADC按键,一个ADC引脚即可实现多按键检测 另外一种就是GPIO按键,一个引脚控制一个按 阅读全文
posted @ 2026-01-18 12:40 上善若淼 阅读(19) 评论(0) 推荐(0)
摘要: 设备树HZ-RK3506_MiniEVM_MIPI3.1.dtsi #include <dt-bindings/display/drm_mipi_dsi.h> #include <dt-bindings/input/rk-input.h> #include <dt-bindings/suspend/ 阅读全文
posted @ 2026-01-17 20:24 上善若淼 阅读(34) 评论(0) 推荐(0)
摘要: 内核配置加上如下配置 CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_GPIO=y CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_HEARTBEAT=y 阅读全文
posted @ 2026-01-17 20:00 上善若淼 阅读(15) 评论(0) 推荐(0)
摘要: 一、最核心 *(=y)是“焊死在内核里” M(=m)是“可插拔的外设模块” 二、编译层面的本质区别(非常重要) 1️⃣ =y(*) —— 内核的一部分 CONFIG_FOO=y 意味着: 源码被编译进: vmlinux Image / zImage 和内核一起 同时存在、同时启动 不能卸载 不依赖 阅读全文
posted @ 2026-01-14 20:11 上善若淼 阅读(14) 评论(0) 推荐(0)