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等命令,会在屏幕上或者命令终端看到不同的效果。

5、由于这个板子没有网口也没有wifi下载程序不太方便,如果使用串口传输文件需要安装一个软件

lrzsz,在官网下载压缩包后使用

CC=arm-none-linux-gnueabi-gcc CFLAGS=-O2 ./configure 

设置交叉编译器,使用make LDFLAGS=-static 静态编译,然后将src目录下的lrz和lsz下载到arm板上。

原文连接

10、LCPI(F1C200S)驱动电阻屏触摸芯片ns2009(tsc2007),buildroot配置tslib(LctechPi,CherryPi,Mangopi,F1C100S)-CSDN博客

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐