Here is an example of the Khadas remote control, press the OK button of the remote control, you can see the button information is printed out to terminal
Among them, framecode=0xf807ff00 is the key value we need
Custom setting IR CODE
The setting of IR CODE is set in uboot, there are two custom buttons that can be used,
WriteIR CODE
Custom customer1
kvim#kbi ircode customer1 w 0xf807ff00
Custom customer2
kvim#kbi ircode customer2 w 0xf807ff00
Read IR CODE
read customer1
kvim#kbi ircode customer1 r ircode1: 0xf807ff00
read customer2
kvim#kbi ircode customer2 r ircode2: 0xf807ff00
Verify that the setup is successful
Powerdown system
uboot:
kvim#kbi poweroff do_kbi_poweroff
ubuntu:
khadas@Khadas:~$ sudo poweroff [sudo] password for khadas: [ 127.078301@0] reboot: Power down bl31 reboot reason: 0x108 bl31 reboot reason: 0x108 system cmd 0. bl30 get wakeup sources! process command 00000006 bl30 enter suspend! cpu clk suspend rate 1416000000 suspend_counter: 1 Enter ddr suspend dmc sec unlock first time suspend ddr suspend time: 3353us store restore gp0 pll process command 00000001 CEC cfg:0x002f set vddee to 0x035cmv 08915d0000000000cec reset
Long press the power button to shut down.
Power on with remote control
If the setting is successful, press the set button to start the board.