Get the remote keycode Press your remote key one by one and then print the dmesg to get the remote custom_code and each remote key code. M5_mbox:/ # remotecfg -c /vendor/etc/remote.cfg -dģ. M5_mbox:/ # chmod 644 /vendor/etc/remote.cfg modify remote.cfg to enable remote debug message push remote.cfg back # adb root pull the remote files from device # adb pull /vendor/etc/remote.cfgĢ.
BANANA PC ANDROID
watch this video on bilibili IR Remote Control Custom Before starting this work, some android basic concepts and knowledge need to be known.ġ. Plugin the udisk or sdcard to the board and poweron. Create a txt file named factory_update_param.aml in udisk or sdcard root directory with the following android recovery parameter content, and replace the file name with the actual downloaded package. Copy the OpenGapp package to a udisk or sdcard root directory.
BANANA PC INSTALL
Download install package from OpenGapps, Android release image is arm/android 9.0 variant.Ģ. DTS files are in common/arch/arm/boot/dts/amlogic/overlay/bananapi_m5/ More info about android device tree overlays, please refer to google android offical site Install OpenGapps 1. BOARD_KERNEL_CMDLINE += androidboot.dtbo_idx=0ģ. Default apply DTBO idx is defined in device/amlogic/bananapi_m5/BoardConfig.mk, you can change the idx value to set which overlay dtbo will be applied default. DTBO_DEVICETREE := android_p_overlay wifi_bt_rtl8822cs i2c2 i2c3 sdio uart1 uart1_cts_rts uart2 hifi_pcm5122Ģ. Default build-in overlays are defined in device/amlogic/bananapi_m5/Kernel.mk, you can add a new overlay dtbo here. Unifykeys is stored in a specific emmc part, "Normal erase" selected in USB_Burning_Tool will not erase this data for next update, you must select "Erase all" if you want the default dtbo idx to be applied after image download.īuild Android image with a specific DTBO default. ] emmc_key_write:149, write okĬheck the bootup uart debug message and confirm which dtbo is loaded actually, here "1" means set idx=1 to apply wifi_bt_rtl8822cs dtbo. ] unifykey: name_store() 1311Ĭonsole:/ # echo "1" > /sys/class/unifykeys/write ] unifykey: name_store() 1302, name dtbo, 4 Uart console command via sysfs console:/ $Ĭonsole:/ # echo dtbo > /sys/class/unifykeys/name ADB command via sysfs :/tmp# adb rootīananapi_m5:/ # echo dtbo > /sys/class/unifykeys/nameīananapi_m5:/ # echo "1" > /sys/class/unifykeys/writeĢ. Build the Android 9.0 Source code Please read the source code README.md Android DTB overlay Bananapi M5 DTBO idx value table, default idx value is 0 in release image. Get Android 9.0 source code $ git clone 2. Install Image with Aml Flash Tool aml-flash-tool is a linux platform opensource flash tool for Amlogic android image.
BANANA PC UPGRADE
Click the Stop button to cancel the upgrade process and close the USB Buring Tool. After Burning successfull, Unplug the type-c usb and connect to power supply adaptor to startup.ĥ. Click the Start button and wait for upgrade complete.Ĥ. M5 board disconnect power, press and hold SW4 button beside 40pin header, plugin type-c usb cable to PCģ. Open USB_Burning_Tool.exe, select menu File->Import image, choose the android image file aml_upgrade_package.img.Ģ. Download the latest android image, and confirm that the md5 checksum is correct.
BANANA PC FOR ANDROID
Download and install the AML Usb Burning Tool for android image download via type-c, only support windows. In Android SDcard is mmc0, emmc is mmc1, but in Linux SDcard is mmc1, emmc is mmc0. The SOC rom first boot media is emmc, so board can't bootup from SDcard if the emmc is bootable with any image flashed, more info please refer to board boot sequence. Prepare a SDcard at least 8GB for linux development, android only support emmc boot.
BANANA PC SERIAL
The serial cable is used for console debug and type-c cable is used for android image download and ADB debug. Prepare a usb-serial cable, a 5V/3A adaptor type-c power supply. Dimensions – 92圆0mm (Not the same as Raspberry Pi PCB size, but they probably included the connectors during measurement)ĭevelopment Prepare 1.Misc – Reset, Power, and U-boot button power and activity LED’s IR receiver.Expansion – 40-pin Raspberry Pi header with 28x GPIO, UART, I2C, SPI, PWM, and power signal (+5V, +3.3V, GND).USB – 4x USB 3.0 ports via VL817 hub controller, 1x USB-C port (for power only?).Audio – 3.5mm audio jack, digital HDMI audio.Video Output – HDMI 2.1 up to 4Kp60 with HDR, CEC, EDID.Storage – 16GB eMMC flash (option up to 64GB), MicroSD slot up to 2TB.SoC – Amlogic S905X3 quad-core Cortex-A55 processor up to 2.0 GHz with.Mali-G31 MP2 GPU with 4 x Execution Engines (650Mhz). Banana Pi M5 is a new generation single board computer design, use Amlogic S905X3 Quad-Core Cortex-A55 (2.0xxGHz) Processor.