| | |
| | | |
| | | IMAGE_PATH=${PRJ_PATH}/boot/ |
| | | |
| | | BOARD=imx6ull |
| | | BOARD=igkboard |
| | | |
| | | # rootfs should be buildroot or stretch/buster/bullseye for debian system |
| | | ROOTFS=buildroot |
| | |
| | | BOOT_SIZE=100 |
| | | |
| | | |
| | | IMG_UBOOT=${PRJ_PATH}/u-boot-imx6ull-emmc.imx |
| | | IMG_UBOOT=${PRJ_PATH}/u-boot-${BOARD}-emmc.imx |
| | | IMG_KERNEL=${IMAGE_PATH}/zImage |
| | | IMG_DTB=${IMAGE_PATH}/imx6ull-emmc.dtb |
| | | ROOTFS_TAR=${TAR_PATH}/rootfs_${ROOTFS}.tar.bz2 |
| | | IMG_DTB=${IMAGE_PATH}/${BOARD}-emmc.dtb |
| | | ROOTFS_TAR=${PRJ_PATH}/../rootfs/rootfs_${ROOTFS}.tar.bz2 |
| | | |
| | | MNT_POINT=./mnt |
| | | LOOP_DEV=`losetup -f | cut -d/ -f3` |
| | |
| | | |
| | | mount -t ext4 /dev/mapper/${LOOP_DEV}p2 ${MNT_POINT} |
| | | tar -xjf ${ROOTFS_TAR} -C ${MNT_POINT} && sync |
| | | chown -R root.root ${MNT_POINT} && sync |
| | | |
| | | umount ${MNT_POINT} |
| | | } |
| | |
| | | install_rootfs |
| | | |
| | | msg_banner " bzip2 compress system image " |
| | | rm -f ${IMAGE_NAME}*.bz2 |
| | | bzip2 ${IMAGE_NAME} |
| | | |
| | | rm -rf ${MNT_POINT} |