美文网首页
2020-08-10 系统编辑

2020-08-10 系统编辑

作者: fjasmin | 来源:发表于2020-08-13 21:06 被阅读0次
  1. RK10项目的:代码我已经复制了一份到你的目录,~/work/jack/RK10/

李景焕 8-4 11:31:08
cd u-boot
make rk3288_defconfig
make -j8

cd kernel
make rk3288_madigi_defconfig
make rk3288_madigi.img -j8

只编kernel:cd kernel/ && make rk3288_madigi.img -j32 && cd .. && ./mkimage.sh

编译kernel和系统:cd kernel/ && make rk3288_madigi.img -j32 && cd .. && make -j32 && ./mkimage.sh

只编uboot: cd u-boot && make -j32 && cd .. && ./mkimage.sh

编译uboot和系统: cd u-boot && make -j32 && cd .. && make -j32 && ./mkimage.sh

编译uboot和kernel: cd u-boot && make -j8 && cd ../kernel && make rk3288_madigi.img -j32 && cd .. && ./mkimage.sh

user版本的话,使用以下配置环境:source build/envsetup.sh和 lunch rk3326_mid-user
而且要make installclean , make clean掉,在make -j12 编译

usedebug切换到user编译要make clean,从user切换到userdebug也要make clean

image.png

编userdebug,先make clean然后source build/envsetup.sh
lunch rk3326_mid-userdebug 然后make -j30 然后编译ota包,make otapackage 最后打包, ./mkimage.sh ota

编译uboot、kernel和系统: cd u-boot && make -j32 && cd ../kernel && make rk3288_madigi.img -j32 && cd .. && make -j32 && ./mkimage.sh

export JAVA_HOME=/home/admini/work/henry/java-7-openjdk-amd64
export PATH=JAVA_HOME/bin:PATH
export CLASSPATH=.:JAVA_HOME/lib:JAVA_HOME/lib/tools.jar
export LC_ALL=C

source build/envsetup.sh
lunch rk3288-userdebug

make -j32
./mkimage.sh

编userdebug,先make clean然后source build/envsetup.sh
lunch rk3326_mid-userdebug 然后make -j30 然后编译ota包,make otapackage 最后打包, ./mkimage.sh ota

ota升级包在./out/target/product/rk3326_mid/ 有个.zip格式的文件是ota升级包。

另外执行完./mkimage.sh ota后的rockdev目录的镜像也要打包成update.img

相关文章

网友评论

      本文标题:2020-08-10 系统编辑

      本文链接:https://www.haomeiwen.com/subject/zbijdktx.html