mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
add:buildroot
This commit is contained in:
@@ -33,7 +33,7 @@ GLOBAL_INITRAMFS_BOOT_NAME=""
|
||||
GLOBAL_PARTITIONS=""
|
||||
GLOBAL_SDK_VERSION=""
|
||||
|
||||
export RK_JOBS=$((`getconf _NPROCESSORS_ONLN` / 2 + 1 ))
|
||||
export RK_JOBS=$((`getconf _NPROCESSORS_ONLN` - 1 ))
|
||||
export RK_BUILD_VERSION_TYPE=RELEASE
|
||||
|
||||
export SDK_ROOT_DIR=$SDK_ROOT_DIR
|
||||
|
||||
@@ -24,6 +24,9 @@ export RK_KERNEL_DEFCONFIG=luckfox_rv1106_linux_defconfig
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1103g-luckfox-pico.dts
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
|
||||
@@ -45,7 +48,7 @@ export RK_BOOTARGS_CMA_SIZE="24M"
|
||||
# <partdef> := <size>[@<offset>](part-name)
|
||||
# Note:
|
||||
# If the first partition offset is not 0x0, it must be added. Otherwise, it needn't adding.
|
||||
export RK_PARTITION_CMD_IN_ENV="32K(env),512K@32K(idblock),256K(uboot),32M(boot),2G(rootfs),1G(oem),2G(userdata),-(media)"
|
||||
export RK_PARTITION_CMD_IN_ENV="32K(env),512K@32K(idblock),256K(uboot),32M(boot),2G(rootfs),1G(oem),1G(userdata),-(media)"
|
||||
|
||||
# config partition's filesystem type (squashfs is readonly)
|
||||
# emmc: squashfs/ext4
|
||||
@@ -56,7 +59,7 @@ export RK_PARTITION_CMD_IN_ENV="32K(env),512K@32K(idblock),256K(uboot),32M(boot)
|
||||
# AAAA ----------> partition name
|
||||
# /BBBB/CCCC ----> partition mount point
|
||||
# ext4 ----------> partition filesystem type
|
||||
export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/oem@ext4
|
||||
export RK_PARTITION_FS_TYPE_CFG=rootfs@/@ext4,userdata@/userdata@ext4,oem@/oem@ext4
|
||||
|
||||
# config filesystem compress (Just for squashfs or ubifs)
|
||||
# squashfs: lz4/lzo/lzma/xz/gzip, default xz
|
||||
@@ -67,6 +70,9 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
|
||||
# app config
|
||||
export RK_APP_TYPE=RKIPC_RV1103
|
||||
|
||||
# specify post.sh for delete/overlay files
|
||||
export RK_PRE_BUILD_OEM_SCRIPT=rv1103-spi_nor-post.sh
|
||||
|
||||
# build ipc web backend
|
||||
# export RK_APP_IPCWEB_BACKEND=y
|
||||
|
||||
|
||||
@@ -22,7 +22,10 @@ export RK_UBOOT_DEFCONFIG_FRAGMENT=rk-emmc.config
|
||||
export RK_KERNEL_DEFCONFIG=luckfox_rv1106_linux_defconfig
|
||||
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1103g-luckfox-pico-mini-b.dts
|
||||
export RK_KERNEL_DTS=rv1103g-luckfox-pico-mini-a.dts
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
|
||||
@@ -24,6 +24,9 @@ export RK_KERNEL_DEFCONFIG=luckfox_rv1106_linux_defconfig
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1103g-luckfox-pico-mini-b.dts
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
|
||||
@@ -32,15 +35,12 @@ export RK_MISC=wipe_all-misc.img
|
||||
# "iqfile1 iqfile2 iqfile3 ..."
|
||||
# ./build.sh media and copy <SDK root dir>/output/out/media_out/isp_iqfiles/$RK_CAMERA_SENSOR_IQFILES
|
||||
export RK_CAMERA_SENSOR_IQFILES="sc4336_OT01_40IRC_F16.json sc3336_CMK-OT2119-PC1_30IRC-F16.json"
|
||||
#export RK_CAMERA_SENSOR_IQFILES="sc4336_OT01_40IRC_F16.json sc3336_CMK-OT2119-PC1_30IRC-F16.json sc530ai_CMK-OT2115-PC1_30IRC-F16.json"
|
||||
|
||||
# Config sensor lens CAC calibrattion bin files
|
||||
export RK_CAMERA_SENSOR_CAC_BIN="CAC_sc4336_OT01_40IRC_F16"
|
||||
#export RK_CAMERA_SENSOR_CAC_BIN="CAC_sc4336_OT01_40IRC_F16 CAC_sc530ai_CMK-OT2115-PC1_30IRC-F16"
|
||||
|
||||
# Config CMA size in environment
|
||||
export RK_BOOTARGS_CMA_SIZE="24M"
|
||||
#export RK_BOOTARGS_CMA_SIZE="66M"
|
||||
|
||||
# config partition in environment
|
||||
# RK_PARTITION_CMD_IN_ENV format:
|
||||
@@ -48,8 +48,7 @@ export RK_BOOTARGS_CMA_SIZE="24M"
|
||||
# <partdef> := <size>[@<offset>](part-name)
|
||||
# Note:
|
||||
# If the first partition offset is not 0x0, it must be added. Otherwise, it needn't adding.
|
||||
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),32M(rootfs),48M(oem),32M(userdata)"
|
||||
#export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),256K(uboot),8M(boot),32M(rootfs),48M(oem),32M(userdata),-(media)"
|
||||
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),80M(rootfs),30M(oem),10M(userdata)"
|
||||
|
||||
# config partition's filesystem type (squashfs is readonly)
|
||||
# emmc: squashfs/ext4
|
||||
|
||||
@@ -24,6 +24,9 @@ export RK_KERNEL_DEFCONFIG=luckfox_rv1106_linux_defconfig
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1103g-luckfox-pico-plus.dts
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
|
||||
@@ -48,7 +51,7 @@ export RK_BOOTARGS_CMA_SIZE="24M"
|
||||
# <partdef> := <size>[@<offset>](part-name)
|
||||
# Note:
|
||||
# If the first partition offset is not 0x0, it must be added. Otherwise, it needn't adding.
|
||||
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),32M(rootfs),48M(oem),32M(userdata)"
|
||||
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),80M(rootfs),30M(oem),10M(userdata)"
|
||||
#export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),256K(uboot),8M(boot),32M(rootfs),48M(oem),32M(userdata),-(media)"
|
||||
|
||||
# config partition's filesystem type (squashfs is readonly)
|
||||
@@ -73,6 +76,9 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ubifs,oem@/oem@ubifs,userdata@/use
|
||||
export RK_APP_TYPE=RKIPC_RV1103
|
||||
# export RK_APP_TYPE=RKIPC_RV1106
|
||||
|
||||
# specify post.sh for delete/overlay files
|
||||
export RK_PRE_BUILD_OEM_SCRIPT=rv1103-spi_nor-post.sh
|
||||
|
||||
# build ipc web backend
|
||||
# export RK_APP_IPCWEB_BACKEND=y
|
||||
|
||||
|
||||
@@ -24,6 +24,9 @@ export RK_KERNEL_DEFCONFIG=luckfox_rv1106_linux_defconfig
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rv1106g-luckfox-pico-pro-max.dts
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
|
||||
@@ -32,11 +35,9 @@ export RK_MISC=wipe_all-misc.img
|
||||
# "iqfile1 iqfile2 iqfile3 ..."
|
||||
# ./build.sh media and copy <SDK root dir>/output/out/media_out/isp_iqfiles/$RK_CAMERA_SENSOR_IQFILES
|
||||
export RK_CAMERA_SENSOR_IQFILES="sc4336_OT01_40IRC_F16.json sc3336_CMK-OT2119-PC1_30IRC-F16.json"
|
||||
#export RK_CAMERA_SENSOR_IQFILES="sc4336_OT01_40IRC_F16.json sc3336_CMK-OT2119-PC1_30IRC-F16.json sc530ai_CMK-OT2115-PC1_30IRC-F16.json"
|
||||
|
||||
# Config sensor lens CAC calibrattion bin files
|
||||
export RK_CAMERA_SENSOR_CAC_BIN="CAC_sc4336_OT01_40IRC_F16"
|
||||
#export RK_CAMERA_SENSOR_CAC_BIN="CAC_sc4336_OT01_40IRC_F16 CAC_sc530ai_CMK-OT2115-PC1_30IRC-F16"
|
||||
|
||||
# Config CMA size in environment
|
||||
# export RK_BOOTARGS_CMA_SIZE="24M"
|
||||
@@ -48,8 +49,8 @@ export RK_BOOTARGS_CMA_SIZE="66M"
|
||||
# <partdef> := <size>[@<offset>](part-name)
|
||||
# Note:
|
||||
# If the first partition offset is not 0x0, it must be added. Otherwise, it needn't adding.
|
||||
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),32M(rootfs),48M(oem),160M(userdata)"
|
||||
#export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),256K(uboot),8M(boot),32M(rootfs),48M(oem),32M(userdata),-(media)"
|
||||
export RK_PARTITION_CMD_IN_ENV="256K(env),256K@256K(idblock),512K(uboot),4M(boot),210M(rootfs),30M(oem),10M(userdata)"
|
||||
|
||||
|
||||
# config partition's filesystem type (squashfs is readonly)
|
||||
# emmc: squashfs/ext4
|
||||
|
||||
Reference in New Issue
Block a user