编译完整个lichee源码后,就可以根据需要单独编译uboot和kernel了。
uboot编译
cd lichee/fa_tools/ ./build.sh -b nanopi-m1-plus -p linux -t u-boot
编译通过后,会在/lichee/tools/pack/out目录下生成boot0_sdcard.fex和u-boot.fex两个文件,其中boot0_sdcard.fex就是boot。
Linux内核编译
cd lichee/fa_tools/ ./build.sh -b nanopi-m1-plus -p linux -t kernel
编译通过后,会在lichee/linux-3.4/output目录下生成boot.img文件,这个就是内核镜像啦。