# v3sAppLed **Repository Path**: ltcc/V3sAppLed ## Basic Information - **Project Name**: v3sAppLed - **Description**: start v3s chip with led flashing - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-04 - **Last Updated**: 2024-05-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目介绍 完成挂接在PB5的LED闪烁功能,从而确保linux kernel启动ok ## 构建步骤 1、在项目路径运行run.sh: · 编译ko文件,挂接到设备树的sta_led节点 · 编译app · 通过scp命令将ko、app拷贝至目标板,并拉起 · 通过scp命令将start脚本拷贝至目标板 2、额外的适配工作: · 编辑设备树 ``` leds { compatible = "gpio-leds"; sta_led { label = "licheepi:sta:usr"; gpios = <&pio 1 5 GPIO_ACTIVE_LOW>; /* PB5 */ }; ``` · 编辑启动项 vi /etc/inittab ``` # now run any rc scripts ::sysinit:/etc/init.d/start.sh ``` chmod +x /etc/inittab/start.sh