build.sh/BoardConfig: Support packing different rootfs images
Change-Id: I45a73d115feb12ef31ccab59f4ff6fd7937894be Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
@ -150,17 +150,30 @@ function build_debian(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function build_rootfs(){
|
function build_rootfs(){
|
||||||
case $1 in
|
rm -f $RK_ROOTFS_IMG
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
yocto)
|
yocto)
|
||||||
build_yocto
|
build_yocto
|
||||||
|
ROOTFS_IMG=
|
||||||
;;
|
;;
|
||||||
debian)
|
debian)
|
||||||
build_debian
|
build_debian
|
||||||
|
ROOTFS_IMG=rootfs/linaro-rootfs.img
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
build_buildroot
|
# build_buildroot
|
||||||
|
ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
[ -z "$ROOTFS_IMG" ] && return
|
||||||
|
|
||||||
|
if [ ! -f "$ROOTFS_IMG" ]; then
|
||||||
|
echo "$ROOTFS_IMG not generated?"
|
||||||
|
else
|
||||||
|
ln -sf $TOP_DIR/$ROOTFS_IMG $RK_ROOTFS_IMG
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_recovery(){
|
function build_recovery(){
|
||||||
@ -205,7 +218,7 @@ function build_all(){
|
|||||||
echo "============================================"
|
echo "============================================"
|
||||||
build_uboot
|
build_uboot
|
||||||
build_kernel
|
build_kernel
|
||||||
build_rootfs
|
build_rootfs ${RK_ROOTFS_SYSTEM:-buildroot}
|
||||||
build_recovery
|
build_recovery
|
||||||
build_ramboot
|
build_ramboot
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=px30
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=px30
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=px30
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=debian/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=px30
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=px30
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=px30
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=px3se
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=px3se
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk1808
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3036
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3126c
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3126c
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export RK_TARGET_PRODUCT=rk3128
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3229
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3288
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3288
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3288
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=rootfs/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3288
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=debian/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3288
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3288
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=rootfs/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -63,7 +63,7 @@ fi
|
|||||||
if [ -f $ROOTFS_IMG ]
|
if [ -f $ROOTFS_IMG ]
|
||||||
then
|
then
|
||||||
echo -n "create rootfs.img..."
|
echo -n "create rootfs.img..."
|
||||||
cp -a $ROOTFS_IMG $ROCKDEV/rootfs.img
|
cp -aL $ROOTFS_IMG $ROCKDEV/rootfs.img
|
||||||
echo "done."
|
echo "done."
|
||||||
else
|
else
|
||||||
echo -e "\e[31m error: $ROOTFS_IMG not found! \e[0m"
|
echo -e "\e[31m error: $ROOTFS_IMG not found! \e[0m"
|
||||||
|
|||||||
@ -64,7 +64,7 @@ fi
|
|||||||
if [ -f $ROOTFS_IMG ]
|
if [ -f $ROOTFS_IMG ]
|
||||||
then
|
then
|
||||||
echo -n "create rootfs.img..."
|
echo -n "create rootfs.img..."
|
||||||
cp -a $ROOTFS_IMG $ROCKDEV/rootfs.img
|
cp -aL $ROOTFS_IMG $ROCKDEV/rootfs.img
|
||||||
echo "done."
|
echo "done."
|
||||||
else
|
else
|
||||||
echo -e "\e[31m error: $ROOTFS_IMG not found! \e[0m"
|
echo -e "\e[31m error: $ROOTFS_IMG not found! \e[0m"
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3308
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=rk3326
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=rk3326
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=suqashfs
|
export RK_ROOTFS_TYPE=suqashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=rk3326
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=rk3326
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=rk3326
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export RK_TARGET_PRODUCT=rk3326
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=squashfs
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3328
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3328
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=debian/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3399
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3399
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=debian/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# ramdisk image path
|
# ramdisk image path
|
||||||
export RK_RAMDISK_IMG=
|
export RK_RAMDISK_IMG=
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3399pro
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export RK_TARGET_PRODUCT=rk3399pro
|
|||||||
# Set rootfs type, including ext2 ext4 squashfs
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
export RK_ROOTFS_TYPE=ext4
|
export RK_ROOTFS_TYPE=ext4
|
||||||
# rootfs image path
|
# rootfs image path
|
||||||
export RK_ROOTFS_IMG=debian/linaro-rootfs.img
|
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||||
# Set oem partition type, including ext2 squashfs
|
# Set oem partition type, including ext2 squashfs
|
||||||
export RK_OEM_FS_TYPE=ext2
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set userdata partition type, including ext2, fat
|
# Set userdata partition type, including ext2, fat
|
||||||
|
|||||||
Reference in New Issue
Block a user