韦东山-qemu环境搭建

一、python优先级调节
调整Python3的优先级,使得3.6优先级较高
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2

更改默认值,python默认为Python2,现在修改为Python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150

二、ubuntu18.04
1、坏境搭建
wget --no-check-certificate -O Configuring_ubuntu.sh https://weidongshan.coding.net/p/DevelopmentEnvConf/d/DevelopmentEnvConf/git/raw/master/Configuring_ubuntu.sh && sudo chmod +x Configuring_ubuntu.sh && sudo ./Configuring_ubuntu.sh
sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0

git config --global user.email "jiangfeng.zhang@aliyun.com"
git config --global user.name "jiangfeng.zhang"

2、下载源码
sudo ../repo/repo init -u https://e.coding.net/weidongshan/manifests.git -b linux-sdk -m imx6ull/100ask-imx6ull_qemu_release_v1.0.xml --no-repo-verify
sudo ../repo/repo sync -j4

3、下载qemu
git clone https://e.coding.net/weidongshan/ubuntu-18.04_imx6ul_qemu_system.git

4、编译内核镜像
PATH=$PATH:/home/book/100ask_imx6ull-qemu/ToolChain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin
make mrproper
make 100ask_imx6ull_qemu_defconfig
make zImage -jN
make dtbs

posted @ 2021-07-19 17:10  hostid  阅读(581)  评论(0编辑  收藏  举报