1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| cp -r /home/leux/sololinker/sysdrv/source/uboot/rkbin /home/leux/alpine/ cp -r /home/leux/sololinker/sysdrv/source/uboot/u-boot /home/leux/alpine/ cp -r /home/leux/sololinker/sysdrv/source/kernel/ /home/leux/alpine/
export PATH=$PATH:/home/leux/sololinker/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin
cat > /home/leux/alpine/out/.env.txt << EOF blkdevparts=mmcblk0:32K(env),512K@32K(idblock),256K(uboot),32M(boot),7G(rootfs) sys_bootargs= root=/dev/mmcblk0p5 rootfstype=ext4 rk_dma_heap_cma=32M sd_parts=mmcblk0:16K@512(env),512K@32K(idblock),4M(uboot) EOF
cd /home/leux/alpine/out /home/leux/sololinker/sysdrv/out/bin/pc/mkenvimage -s 0x8000 -p 0x0 -o /home/leux/alpine/out/env.img /home/leux/alpine/out/.env.txt
cd /home/leux/alpine/u-boot make rv1106_defconfig rk-emmc.config ./make.sh --spl-new CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- cp /home/leux/alpine/u-boot/rv1106_download_v1.13.107.bin /home/leux/alpine/out/download.bin cp /home/leux/alpine/u-boot/rv1106_idblock_v1.13.101.img /home/leux/alpine/out/idblock.img cp /home/leux/alpine/u-boot/uboot.img /home/leux/alpine/out/uboot.img
cd /home/leux/alpine/kernel/ make ARCH=arm CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- rv1106_linux_sololinker_defconfig make ARCH=arm CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- BOOT_ITS=boot.its rv1106g-hinlink-sololinker-a.img -j8 cp /home/leux/alpine/kernel/boot.img /home/leux/alpine/out
tar -xvf /home/leux/alpine/rootfs_alpine.tar.gz -C /home/leux/alpine/rootfs sudo chown -R root:root /home/leux/alpine/rootfs sudo mkfs.ext4 -d /home/leux/alpine/rootfs -r 1 -N 0 -m 5 -L "" -O ^64bit,^huge_file /home/leux/alpine/out/rootfs.img "7168M" sudo resize2fs -M /home/leux/alpine/out/rootfs.img sudo e2fsck -fy /home/leux/alpine/out/rootfs.img sudo tune2fs -m 5 /home/leux/alpine/out/rootfs.img sudo resize2fs -M /home/leux/alpine/out/rootfs.img
|