Skip to content
View in the app

A better way to browse. Learn more.

Learn more

[Armbian build PR] - rk3318: add uboot Recovery button support

Featured Replies

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

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.