RSS Bot Posted December 16, 2023 Posted December 16, 2023 Description Add uboot 'button' cmd and add Recovery button to rk3318 uboot dts. In the linux kernel dts button is labeled lowercase "recovery", but I've chosen "Recovery" as it is more frequent in uboot dts'es: $ (cd cache/sources/u-boot-worktree/u-boot/v2022.07/arch/arm/dts; grep -ir 'label.*"recovery"' .) ./rk3399-nanopc-t4.dts: label = "Recovery"; ./rk3399-khadas-edge.dtsi: label = "Recovery"; ./rk3399-roc-pc.dtsi: label = "Recovery"; ./rk3328-rock-pi-e.dts: label = "Recovery"; ./rk3066a-mk808.dts: label = "recovery"; ./rk3399-nanopi-m4b.dts: label = "Recovery"; How Has This Been Tested? [x] boot rk3318 with modified uboot.cmd to test new command: if button Recovery; then echo "Recovery ON" else echo "Recovery OFF" fi Checklist: [ ] My code follows the style guidelines of this project [ ] I have performed a self-review of my own code [ ] I have commented my code, particularly in hard-to-understand areas [ ] I have made corresponding changes to the documentation [ ] My changes generate no new warnings [ ] Any dependent changes have been merged and published in downstream modules View the full article
Recommended Posts