修改SDK中的DTS,路径为kernel/arch/arm64/boot/dts/rockchip/rk3568-yy3568.dts
&leds {
compatible = "gpio-leds";
work_led: work {
gpios = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "off";
};
work1_led1: work1{
gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "off";
};
};
默认为off,可以改成heartbeat, default-on等。修改完后重新刷boot.img固件测试
$ ./build.sh kernel
$ upgrade_tool ul output/firmware/MiniLoaderAll.bin -noreset
$ upgrade_tool di -p output/firmware/parameter.txt
$ upgrade_tool di -b kernel/boot.img
$ upgrade_tool rd