2020-10-24 10:24| 发布者: yangy| 查看: 1246| 评论: 0
文件系统(在lichee目录下执行)
编译文件系统,生成rootfs.ext4:
source .buildconfig source buildroot-201611/scripts/mkcmd.sh init_defconf make O=${LICHEE_BR_OUT} -C ${LICHEE_BR_DIR} LICHEE_GEN_ROOTFS=y
source
.buildconfig
source buildroot-201611/scripts/mkcmd.sh init_defconf
make O=${LICHEE_BR_OUT} -C ${LICHEE_BR_DIR} LICHEE_GEN_ROOTFS=y
不编译文件系统,直接修改lichee/out/sun8iw11p1/linux/common/buildroot/target目录,生成rootfs.ext4
source .buildconfig source buildroot-201611/scripts/mkcmd.sh init_defconf PATH="${LICHEE_BR_OUT}/host/bin:${LICHEE_BR_OUT}/host/sbin:${LICHEE_BR_OUT}/host/usr/bin:${LICHEE_BR_OUT}/host/usr/sbin:${LICHEE_BR_OUT}/host/opt/ext-toolchain/bin:$PATH" mke2img -d ${LICHEE_BR_OUT}/target -G 4 -R 1 -B 0 -I 0 -o ${LICHEE_BR_OUT}/images/rootfs.ext2 cp ${LICHEE_BR_OUT}/images/rootfs.ext4 ${LICHEE_PLAT_OUT}
source .buildconfig
source buildroot-201611/scripts/mkcmd.sh
init_defconf
PATH="${LICHEE_BR_OUT}/host/bin:${LICHEE_BR_OUT}/host/sbin:${LICHEE_BR_OUT}/host/usr/bin:${LICHEE_BR_OUT}/host/usr/sbin:${LICHEE_BR_OUT}/host/opt/ext-toolchain/bin:$PATH" mke2img -d ${LICHEE_BR_OUT}/target -G 4 -R 1 -B 0 -I 0 -o ${LICHEE_BR_OUT}/images/rootfs.ext2 cp ${LICHEE_BR_OUT}/images/rootfs.ext4 ${LICHEE_PLAT_OUT}
执行build.sh pack后,生成修改文件系统后的烧写固件
build.sh pack
内核
cd linux-3.10 ; make menuconfig ARCH=arm
lichee/linux-3.10/arch/arm/configs/sun8iw11p1smp_oka40i_c_defconfig
make menuconfig
ncurses
apt-get install libncurses5-dev
build.sh -m kernel
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 16:46
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.