Go to file
liuguojian 4824399db5 update to v101014,sync timezone to UTC, add Gateway config,sync avs-sdk rpm to 16beff7640 2022-09-04 14:41:14 +08:00
doc/MT8516 init project 2022-05-13 01:02:31 -07:00
meta update to v101014,sync timezone to UTC, add Gateway config,sync avs-sdk rpm to 16beff7640 2022-09-04 14:41:14 +08:00
prebuilt Apply make patch 2022-07-02 21:55:27 -07:00
src update to v101014,sync timezone to UTC, add Gateway config,sync avs-sdk rpm to 16beff7640 2022-09-04 14:41:14 +08:00
tool 1. 增加部分OTA功能。2. 增加部分fitboot功能 2022-07-10 00:26:37 -07:00
.gitignore Add avs weakup word sdk 2022-05-27 18:57:15 -07:00
README.md Upgrade Readme 2022-07-10 00:48:22 -07:00

README.md

prepare

  1. prepare ubuntu 16.04 for build project
  2. sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat xterm g++ libstdc++6 lib32stdc++6
    libpulse-dev libevent-dev ninja-build rpm2cpio libsdl1.2-dev zip
  3. sudo ln -s /bin/bash /usr/bin/sh
  4. cp tool/gn /bin ; chmod 777 /bin/gn
  5. Download the donwloads directory instead of slow downloads at compile time

build

  1. cd mt8516_avs_share
  2. export TEMPLATECONF=${PWD}/meta/base/conf/mt8516/aud8516p1v2-consys-slc-128
  3. source meta/poky/oe-init-build-env
  4. bitbake mtk-image-aud-8516

other build cmd:

bitbake -c cleanall lk && bitbake lk -f

bitbake -c cleanall linux-mtk-extension && bitbake linux-mtk-extension -f

compile linux kernel

bitbake linux-mtk-extension -c cleanall

update

use adb to update image

  1. cd build/tmp/deploy/images/aud8516p1v2-consys-slc-128

  2. adb push update.zip /tmp/ && adb shell /bin/upgrade_app /tmp/update.zip

burn

use usb burn all image

  1. cd build/tmp/deploy/images/aud8516p1v2-consys-slc-128

  2. sudo python flashimage.py -t(erase sn) sudo python flashimage.py(dont erase sn)

  3. press v- key and plugin usb

###OTA

  1. change version: arch/arm64/boot/dts/mediatek/aud8516p1v2_consys_slc_128_yocto.dts ver= "101001"; //this mean version is 1.0.1.001; next version: ver= "101002";//this mean version is 1.0.1.002;
  2. output ota file: comand: tool/build_otazip.sh 1.0.1.002 build/tmp/deploy/images/aud8516p1v2-consys-slc-128/update.zip then output ota file is:Firmware__OTA_1.0.1.002_.zip