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博客