增加swap分区大小:
sudo swapon --show
free -h
sudo swapoff /swapfile
sudo rm /swapfile
sudo fallocate -l 16G /swapfile
sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
ls -lh /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
查看可切换的分支
cd .repo/manifests
git branch -a | cut -d / -f 3
以 imx-4.1.15-1.0.0_ga 分支为例
repo init -b imx-4.1.15-1.0.0_ga
repo sync # 如果不需要与服务器数据一致,可以不运行该步
repo start imx-4.1.15-1.0.0_ga --all
repo branches
sudo update-alternatives --config python
pip install --upgrade pip
更新pip:
pip uninstall pip
python -m ensurepip
easy_install pip
python -m pip install --upgrade pip
更新setuptools:
执行命令pip install setuptools --upgrade
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
patch -p2 < 84bde13.diff
刷ko
fastboot flash recovery recovery.img
fastboot flash dtbo dtbo.img
fastboot flash boot boot.img
fastboot flash init_boot init_boot.img
fastboot flash vendor_boot vendor_boot.img
fastboot flash metadata metadata.img
fastboot flash persist persist.img
fastboot flash super super.img
fastboot flash userdata userdata.img
fastboot flash vm-bootsys vm-bootsys.img
fastboot flash vbmeta vbmeta.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot reboot