![]() ![]() +++ -579,6 +579,6 PRODUCT_PROPERTY_OVERRIDES += \Ĭhange the touch panel rotation in dts diff -git a/common/arch/arm64/boot/dts/amlogic/bananapi_m2s.dts b/common/arch/arm64/boot/dts/amlogic/bananapi_m2s.dts a/device/bananapi/bananapi_m2s/bananapi_m2s.mk SurfaceFlinger rotation, need modify android source code and build Change the default sf rotation property diff -git a/device/bananapi/bananapi_m2s/bananapi_m2s.mk b/device/bananapi/bananapi_m2s/bananapi_m2s.mk UI Rotation in Settings->Display->Screen rotation 2. The two 10" mipi panels are all portrait hw display, so the default android release image is portrait mode, but you can rotate it to 90/180/270 in two ways.ġ. watch this video on bilibili Switch Mipi Panel The default android release image only support one mipi panel because hw has no detect logic for different panel at boot, so enabled as default, but you can change to as defualt in Settings->Panel Output Panel Rotation 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. Download install package from OpenGapps, Android release image is arm/android 9.0 variant.Ģ. DTS files are in common/arch/arm64/boot/dts/amlogic/overlay/bananapi_m2s/ 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/bananapi/bananapi_m2s/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 i2c1 i2c2 sdio uart1 uart1_cts_rts uart2 hifi_pcm5122Ģ. Default build-in overlays are defined in device/bananapi/bananapi_m2s/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. [ unifykey: name_store() 1302, name dtbo, 4Ĭonsole:/ # echo "1" > /sys/class/unifykeys/writeĬ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. Uart console command via sysfs console:/ $Ĭonsole:/ # echo dtbo > /sys/class/unifykeys/name ADB command via sysfs adb rootīananapi_m2s:/ # echo dtbo > /sys/class/unifykeys/nameīananapi_m2s:/ # echo "1" > /sys/class/unifykeys/writeĢ. ![]() Build the Android 9.0 Source code Please read the source code README.md Android DTB overlay Bananapi M2S DTBO idx value table, default idx value is 0 in release image. Get Android 9.0 source code $ or you can get the source code tar archive from BaiduPan(pincode: 8888) or GoogleDrive 2. flash-tool.sh -img=/path/to/aml_upgrade_package.img -parts=all -wipe -soc=g12a -reset=yīuild Android Source Code 1. Install Image with Aml Flash Tool aml-flash-tool is a linux platform opensource image flash util for Amlogic android. 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 of the download tool and wait for upgrade complete.Ĥ. Press and hold USB button on the board, plugin type-c usb cable to PC or press the RST button if power adapter already connected, about two seconds later, release the button, the board will be identified correctly.ģ. 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. Download and install the AML Usb Burning Tool for android image download via type-c, only support windows. Only A311D variant board have camera, mipi panel and npu support. 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. 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. Banana Pi BPI-M5 Amlogic S905x3 design specifications development Prepare 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |