linux开发知识点笔记汇总(F1C200S)

1、buildroot常用make 命令

常用命令

意义

make menuconfig buildroot菜单

make uboot-menuconfig

uboot菜单

make linux-menuconfig

linux菜单

make busybox-menuconfig

busybox菜单

make 编译buildroot

make linux-rebuild

重新编译linux

make uboot-rebuild

重新编译uboot

make busybox-rebuild

重新编译busybox

make 软件包-rebuild

对于任何软件包编译

make clean 清除编译

make distclean 清除编译以及配置

原文链接:https://blog.csdn.net/qq_20017379/article/details/127154287

2、CherryPi-F1C200S 樱桃派改成从spi-nand启动,默认的工程是从sd卡启动

/home/test/lc/buildroot/board/widora/mangopi/r3/devicetree/linux/devicetree.dts

修改启动参数

chosen {

#address-cells = <1>;

#size-cells = <1>;

ranges;

//for NAND or Nor

bootargs = "console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3";

//for sd-card

//bootargs = "console=ttyS0,115200 earlyprintk rootwait init=/preinit root=/dev/mmcblk0p3";

3、qt程序需要使用fb驱动才能正常显示

启动的时候指定platform 为fb

QT_QPA_PLATFORM=fb ./yourapp

或者

./yourapp -platform linuxfb

4、CherryPi-F1C200S 樱桃派电阻屏设置

1)内核设备树配置

/home/test/lc/buildroot/board/widora/mangopi/r3/devicetree/linux/devicetree.dts

rtp@48 {

compatible = "ti,tsc2007";

reg = <0x48>;

interrupt-parent = <&pio>;

interrupts = <4 12 IRQ_TYPE_EDGE_FALLING>;

gpios = <&pio 4 12 GPIO_ACTIVE_LOW>;

pendown-gpio = <&pio 4 12 GPIO_ACTIVE_LOW>;

ti,x-plate-ohms = <660>;

wakeup-source;

status = "okay";

};

2)内核配置

make linux-menuconfig

Device Drivers --->

Input device support --->

\*\] Touchscreens ---\> \<\*\> TSC2007 based touchscreens 3)buildroot配置 在buildroot目录下输入menu menuconfig Target packages ---\> Libraries ---\> Hardware handling ---\> \[\*\] tslib 4)重新构建内核 ./rebuild-kernel.sh 5)在开发板命令终端输入: vi /etc/profile 6)在最后一行插入(这一步应该可以在编译之前修改文件系统里的文件,还没有试) export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_PLUGINDIR=/usr/lib/ts export TSLIB_CONSOLEDEVICE=none export TSLIB_FBDEVICE=/dev/fb0 7)校准触摸屏 系统重新运行起来之后,在开发板命令终端输入:ts_calibrate。然后在屏幕上操作校准触摸屏。此时,显示屏模组驱动已经全部完成。 8)测试触摸屏,在开发板命令终端分别输入:ts_print、ts_test等命令,会在屏幕上或者命令终端看到不同的效果。 原文连接 [10、LCPI(F1C200S)驱动电阻屏触摸芯片ns2009(tsc2007),buildroot配置tslib(LctechPi,CherryPi,Mangopi,F1C100S)-CSDN博客](https://blog.csdn.net/GJF712/article/details/126720236 "10、LCPI(F1C200S)驱动电阻屏触摸芯片ns2009(tsc2007),buildroot配置tslib(LctechPi,CherryPi,Mangopi,F1C100S)-CSDN博客")

相关推荐
暗光之痕19 分钟前
Unreal5研究笔记 Actor的生命周期函数
笔记·unreal engine
Gain_chance29 分钟前
35-学习笔记尚硅谷数仓搭建-DWS层最近n日汇总表及历史至今汇总表建表语句
数据库·数据仓库·hive·笔记·学习
宵时待雨1 小时前
STM32笔记归纳9:定时器
笔记·stm32·单片机·嵌入式硬件
m0_719084112 小时前
React笔记张天禹
前端·笔记·react.js
r i c k4 小时前
数据库系统学习笔记
数据库·笔记·学习
shandianchengzi5 小时前
【小白向】错位排列|图文解释公考常见题目错位排列的递推式Dn=(n-1)(Dn-2+Dn-1)推导方式
笔记·算法·公考·递推·排列·考公
浅念-5 小时前
C语言编译与链接全流程:从源码到可执行程序的幕后之旅
c语言·开发语言·数据结构·经验分享·笔记·学习·算法
The森6 小时前
Linux IO 模型纵深解析 01:从 Unix 传统到 Linux 内核的 IO 第一性原理
linux·服务器·c语言·经验分享·笔记·unix
tq10866 小时前
Skills 的问题与解决方案
笔记
三水不滴6 小时前
有 HTTP 了为什么还要有 RPC?
经验分享·笔记·网络协议·计算机网络·http·rpc