export the variable in BoardConfig and add prefix to these variable

we need the make these variable to be environment variable. that will
allow us to use these variable in Makefile.
ie. we need to know the oem and userdata file system type when we
mount it. and that is defined in BoardConifg

Change-Id: I1c816214c60aba4761c34ad8b3d8f5611f81cfbb
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
This commit is contained in:
Eddie Cai
2018-08-17 17:33:42 +08:00
parent b45dc3ac46
commit bd9781f339
34 changed files with 365 additions and 436 deletions

View File

@ -43,12 +43,12 @@ usage()
function build_uboot(){
# build uboot
echo "============Start build uboot============"
echo "TARGET_UBOOT_CONFIG=$UBOOT_DEFCONFIG"
echo "TARGET_UBOOT_CONFIG=$RK_UBOOT_DEFCONFIG"
echo "========================================="
if [ -f u-boot/*_loader_*.bin ]; then
rm u-boot/*_loader_*.bin
fi
cd u-boot && ./make.sh $UBOOT_DEFCONFIG && cd -
cd u-boot && ./make.sh $RK_UBOOT_DEFCONFIG && cd -
if [ $? -eq 0 ]; then
echo "====Build uboot ok!===="
else
@ -60,11 +60,11 @@ function build_uboot(){
function build_kernel(){
# build kernel
echo "============Start build kernel============"
echo "TARGET_ARCH =$ARCH"
echo "TARGET_KERNEL_CONFIG =$KERNEL_DEFCONFIG"
echo "TARGET_KERNEL_DTS =$KERNEL_DTS"
echo "TARGET_ARCH =$RK_ARCH"
echo "TARGET_KERNEL_CONFIG =$RK_KERNEL_DEFCONFIG"
echo "TARGET_KERNEL_DTS =$RK_KERNEL_DTS"
echo "=========================================="
cd $TOP_DIR/kernel && make ARCH=$ARCH $KERNEL_DEFCONFIG && make ARCH=$ARCH $KERNEL_DTS.img -j$JOBS && cd -
cd $TOP_DIR/kernel && make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG && make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$JOBS && cd -
if [ $? -eq 0 ]; then
echo "====Build kernel ok!===="
else
@ -76,7 +76,7 @@ function build_kernel(){
function build_buildroot(){
# build buildroot
echo "==========Start build buildroot=========="
echo "TARGET_BUILDROOT_CONFIG=$CFG_BUILDROOT"
echo "TARGET_BUILDROOT_CONFIG=$RK_CFG_BUILDROOT"
echo "========================================="
/usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
if [ $? -eq 0 ]; then
@ -124,7 +124,7 @@ function build_debian(){
function build_recovery(){
# build recovery
echo "==========Start build recovery=========="
echo "TARGET_RECOVERY_CONFIG=$CFG_RECOVERY"
echo "TARGET_RECOVERY_CONFIG=$RK_CFG_RECOVERY"
echo "========================================"
/usr/bin/time -f "you take %E to build recovery" $COMMON_DIR/mk-recovery.sh $BOARD_CONFIG
if [ $? -eq 0 ]; then
@ -138,7 +138,7 @@ function build_recovery(){
function build_pcba(){
# build pcba
echo "==========Start build pcba=========="
echo "TARGET_PCBA_CONFIG=$CFG_PCBA"
echo "TARGET_PCBA_CONFIG=$RK_CFG_PCBA"
echo "===================================="
/usr/bin/time -f "you take %E to build pcba" $COMMON_DIR/mk-pcba.sh $BOARD_CONFIG
if [ $? -eq 0 ]; then
@ -151,14 +151,14 @@ function build_pcba(){
function build_all(){
echo "============================================"
echo "TARGET_ARCH=$ARCH"
echo "TARGET_PLATFORM=$TARGET_PRODUCT"
echo "TARGET_UBOOT_CONFIG=$UBOOT_DEFCONFIG"
echo "TARGET_KERNEL_CONFIG=$KERNEL_DEFCONFIG"
echo "TARGET_KERNEL_DTS=$KERNEL_DTS"
echo "TARGET_BUILDROOT_CONFIG=$CFG_BUILDROOT"
echo "TARGET_RECOVERY_CONFIG=$CFG_RECOVERY"
echo "TARGET_PCBA_CONFIG=$CFG_PCBA"
echo "TARGET_ARCH=$RK_ARCH"
echo "TARGET_PLATFORM=$RK_TARGET_PRODUCT"
echo "TARGET_UBOOT_CONFIG=$RK_UBOOT_DEFCONFIG"
echo "TARGET_KERNEL_CONFIG=$RK_KERNEL_DEFCONFIG"
echo "TARGET_KERNEL_DTS=$RK_KERNEL_DTS"
echo "TARGET_BUILDROOT_CONFIG=$RK_CFG_BUILDROOT"
echo "TARGET_RECOVERY_CONFIG=$RK_CFG_RECOVERY"
echo "TARGET_PCBA_CONFIG=$RK_CFG_PCBA"
echo "============================================"
build_uboot
build_kernel
@ -202,7 +202,7 @@ function build_updateimg(){
function build_save(){
IMAGE_PATH=$TOP_DIR/rockdev
DATE=$(date +%Y%m%d.%H%M)
STUB_PATH=Image/"$KERNEL_DTS"_"$DATE"_RELEASE_TEST
STUB_PATH=Image/"$RK_KERNEL_DTS"_"$DATE"_RELEASE_TEST
STUB_PATH="$(echo $STUB_PATH | tr '[:lower:]' '[:upper:]')"
export STUB_PATH=$TOP_DIR/$STUB_PATH
export STUB_PATCH_PATH=$STUB_PATH/PATCHES
@ -220,9 +220,9 @@ function build_save(){
cp $IMAGE_PATH/* $STUB_PATH/IMAGES/
#Save build command info
echo "UBOOT: defconfig: $UBOOT_DEFCONFIG" >> $STUB_PATH/build_cmd_info
echo "KERNEL: defconfig: $KERNEL_DEFCONFIG, dts: $KERNEL_DTS" >> $STUB_PATH/build_cmd_info
echo "BUILDROOT: $CFG_BUILDROOT" >> $STUB_PATH/build_cmd_info
echo "UBOOT: defconfig: $RK_UBOOT_DEFCONFIG" >> $STUB_PATH/build_cmd_info
echo "KERNEL: defconfig: $RK_KERNEL_DEFCONFIG, dts: $RK_KERNEL_DTS" >> $STUB_PATH/build_cmd_info
echo "BUILDROOT: $RK_CFG_BUILDROOT" >> $STUB_PATH/build_cmd_info
}
#=========================

View File

@ -11,12 +11,9 @@ cd ../../..
TOP_DIR=$(pwd)
BOARD_CONFIG=$1
source $BOARD_CONFIG
source $TOP_DIR/buildroot/build/envsetup.sh $CFG_BUILDROOT
BUILD_CONFIG=`get_defconfig_name`
echo "$BUILD_CONFIG"
ROOTFS_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/rootfs.img
# build rootfs
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_BUILDROOT
make
if [ $? -ne 0 ]; then
exit 1
fi
echo "pack buildroot image at: $TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE"

View File

@ -9,12 +9,13 @@ fi
cd $COMMON_DIR
cd ../../..
TOP_DIR=$(pwd)
BOARD_CONFIG=$1
source $BOARD_CONFIG
echo "pcba config: $CFG_PCBA"
if [ $ARCH == arm64 ];then
if [ $RK_ARCH == arm64 ];then
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm64/boot/Image
elif [ $ARCH == arm ];then
elif [ $RK_ARCH == arm ];then
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm/boot/zImage
fi
KERNEL_DTB=$TOP_DIR/kernel/resource.img
@ -33,10 +34,9 @@ else
fi
fi
source $TOP_DIR/buildroot/build/envsetup.sh $CFG_PCBA
BUILD_CONFIG=`get_defconfig_name`
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/rootfs.cpio.gz
PCBA_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/pcba.img
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_PCBA
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_PCBA/images/rootfs.cpio.gz
PCBA_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_PCBA/images/pcba.img
# build pcba
echo "====Start build pcba===="

View File

@ -13,9 +13,9 @@ TOP_DIR=$(pwd)
BOARD_CONFIG=$1
source $BOARD_CONFIG
echo "recovery config: $CFG_RECOVERY"
if [ $ARCH == arm64 ];then
if [ $RK_ARCH == arm64 ];then
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm64/boot/Image
elif [ $ARCH == arm ];then
elif [ $RK_ARCH == arm ];then
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm/boot/zImage
fi
KERNEL_DTB=$TOP_DIR/kernel/resource.img
@ -34,10 +34,9 @@ else
fi
fi
source $TOP_DIR/buildroot/build/envsetup.sh $CFG_RECOVERY
BUILD_CONFIG=`get_defconfig_name`
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/rootfs.cpio.gz
RECOVERY_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/recovery.img
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_RECOVERY
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/rootfs.cpio.gz
RECOVERY_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
# build recovery
echo "====Start build recovery===="

View File

@ -11,7 +11,7 @@ cd ../../..
TOP_DIR=$(pwd)
BOARD_CONFIG=$1
source $BOARD_CONFIG
CONF=$TOP_DIR/device/rockchip/$TARGET_PRODUCT/yocto/build/conf
CONF=$TOP_DIR/device/rockchip/$RK_TARGET_PRODUCT/yocto/build/conf
cd $TOP_DIR/kernel && git branch master 1>/dev/null 2>/dev/null && cd -
cd $TOP_DIR/yocto && . ./oe-init-build-env $TOP_DIR/yocto/build && cp $CONF/* $TOP_DIR/yocto/build/conf/ && bitbake core-image-ros-roscore -c do_image_ext4 && cd -

View File

@ -1,42 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm64
export RK_ARCH=arm64
# Uboot defconfig
UBOOT_DEFCONFIG=evb-px30
export RK_UBOOT_DEFCONFIG=evb-px30
# Kernel defconfig
KERNEL_DEFCONFIG=px30_linux_defconfig
export RK_KERNEL_DEFCONFIG=px30_linux_defconfig
# Kernel dts
KERNEL_DTS=px30-evb-ddr3-v10-linux
export RK_KERNEL_DTS=px30-evb-ddr3-v10-linux
# boot image type
export RK_BOOT_IMG=boot.img
# Buildroot config
CFG_BUILDROOT=rockchip_px30
export RK_CFG_BUILDROOT=rockchip_px30
# Recovery config
CFG_RECOVERY=rockchip_px30_recovery
export RK_CFG_RECOVERY=rockchip_px30_recovery
# Pcba config
CFG_PCBA=rockchip_px30_pcba
export RK_CFG_PCBA=rockchip_px30_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-px30-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=px30
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=px30
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/boot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -37,6 +38,7 @@ fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]

View File

@ -1,42 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm
export RK_ARCH=arm
# Uboot defconfig
UBOOT_DEFCONFIG=evb-px3se
export RK_UBOOT_DEFCONFIG=evb-px3se
# Kernel defconfig
KERNEL_DEFCONFIG=rockchip_linux_defconfig
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
# Kernel dts
KERNEL_DTS=px3se-evb
export RK_KERNEL_DTS=px3se-evb
# boot image type
export RK_BOOT_IMG=zboot.img
# Buildroot config
CFG_BUILDROOT=rockchip_px3se
export RK_CFG_BUILDROOT=rockchip_px3se
# Recovery config
CFG_RECOVERY=rockchip_px3se_recovery
export RK_CFG_RECOVERY=rockchip_px3se_recovery
# Pcba config
CFG_PCBA=rockchip_px3se_pcba
export RK_CFG_PCBA=rockchip_px3se_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-px3se-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=px3se
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=px3se
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/zboot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -32,12 +33,12 @@ then
sudo $UPGRADETOOL di -oem $OEM
sudo $UPGRADETOOL di -userdata $USERDATA
sudo $UPGRADETOOL di -rootfs $ROOTFS
sudo $UPGRADETOOL rd
fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]
@ -85,3 +86,4 @@ then
sudo $UPGRADETOOL di -rootfs $ROOTFS
fi
sudo $UPGRADETOOL rd

View File

@ -1,42 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm64
export RK_ARCH=arm64
# Uboot defconfig
UBOOT_DEFCONFIG=evb-rk1808
export RK_UBOOT_DEFCONFIG=evb-rk1808
# Kernel defconfig
KERNEL_DEFCONFIG=rk1808_linux_defconfig
export RK_KERNEL_DEFCONFIG=rk1808_linux_defconfig
# Kernel dts
KERNEL_DTS=rk1808-evb-linux
export RK_KERNEL_DTS=rk1808-evb-linux
# boot image type
export RK_BOOT_IMG=boot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk1808
export RK_CFG_BUILDROOT=rockchip_rk1808
# Recovery config
CFG_RECOVERY=rockchip_rk1808_recovery
export RK_CFG_RECOVERY=rockchip_rk1808_recovery
# Pcba config
CFG_PCBA=rockchip_rk1808_pcba
export RK_CFG_PCBA=rockchip_rk1808_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-rk1808-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk1808
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk1808
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/boot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -37,6 +38,7 @@ fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]

View File

@ -1,40 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm
export RK_ARCH=arm
# Uboot defconfig
UBOOT_DEFCONFIG=kylin-rk3036
export RK_UBOOT_DEFCONFIG=kylin-rk3036
# Kernel defconfig
KERNEL_DEFCONFIG=rockchip_linux_defconfig
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
# Kernel dts
KERNEL_DTS=rk3036-kylin
export RK_KERNEL_DTS=rk3036-kylin
# boot image type
export RK_BOOT_IMG=zboot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3036
export RK_CFG_BUILDROOT=rockchip_rk3036
# Recovery config
CFG_RECOVERY=rockchip_rk3036_recovery
export RK_CFG_RECOVERY=rockchip_rk3036_recovery
# Pcba config
CFG_PCBA=rockchip_rk3036_pcba
export RK_CFG_PCBA=rockchip_rk3036_pcba
# Build jobs
JOBS=12
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3036
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3036
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/boot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -37,6 +38,7 @@ fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]

View File

@ -1,40 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm
export RK_ARCH=arm
# Uboot defconfig
UBOOT_DEFCONFIG=evb-rk3229
export RK_UBOOT_DEFCONFIG=evb-rk3229
# Kernel defconfig
KERNEL_DEFCONFIG=rockchip_linux_defconfig
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
# Kernel dts
KERNEL_DTS=rk3229-evb-linux
export RK_KERNEL_DTS=rk3229-evb-linux
# boot image type
export RK_BOOT_IMG=zboot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3229
export RK_CFG_BUILDROOT=rockchip_rk3229
# Recovery config
CFG_RECOVERY=rockchip_rk3229_recovery
export RK_CFG_RECOVERY=rockchip_rk3229_recovery
# Pcba config
CFG_PCBA=rockchip_rk3229_pcba
export RK_CFG_PCBA=rockchip_rk3229_pcba
# Build jobs
JOBS=12
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3229
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3229
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/boot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -37,6 +38,7 @@ fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]

View File

@ -1,42 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm
export RK_ARCH=arm
# Uboot defconfig
UBOOT_DEFCONFIG=fennec-rk3288
export RK_UBOOT_DEFCONFIG=fennec-rk3288
# Kernel defconfig
KERNEL_DEFCONFIG=rockchip_linux_defconfig
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
# Kernel dts
KERNEL_DTS=rk3288-evb-rk808-linux
export RK_KERNEL_DTS=rk3288-evb-rk808-linux
# boot image type
export RK_BOOT_IMG=zboot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3288
export RK_CFG_BUILDROOT=rockchip_rk3288
# Recovery config
CFG_RECOVERY=rockchip_rk3288_recovery
export RK_CFG_RECOVERY=rockchip_rk3288_recovery
# Pcba config
CFG_PCBA=rockchip_rk3288_pcba
export RK_CFG_PCBA=rockchip_rk3288_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-rk3288-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3288
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3288
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/zboot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -32,12 +33,12 @@ then
sudo $UPGRADETOOL di -oem $OEM
sudo $UPGRADETOOL di -userdata $USERDATA
sudo $UPGRADETOOL di -rootfs $ROOTFS
sudo $UPGRADETOOL rd
fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]
@ -85,3 +86,4 @@ then
sudo $UPGRADETOOL di -rootfs $ROOTFS
fi
sudo $UPGRADETOOL rd

View File

@ -1,43 +1,35 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm64
export RK_ARCH=arm64
# Uboot defconfig
UBOOT_DEFCONFIG=evb-rk3308
export RK_UBOOT_DEFCONFIG=evb-rk3308
# Kernel defconfig
KERNEL_DEFCONFIG=rk3308_linux_defconfig
export RK_KERNEL_DEFCONFIG=rk3308_linux_defconfig
# Kernel dts
KERNEL_DTS=rk3308-evb-dmic-pdm-v11
export RK_KERNEL_DTS=rk3308-evb-dmic-pdm-v11
# boot image type
export RK_BOOT_IMG=boot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3308_release
export RK_CFG_BUILDROOT=rockchip_rk3308_release
# Recovery config
CFG_RECOVERY=rockchip_rk3308_recovery
export RK_CFG_RECOVERY=rockchip_rk3308_recovery
# Pcba config
CFG_PCBA=rockchip_rk3308_pcba
export RK_CFG_PCBA=rockchip_rk3308_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-rk3308-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3308
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=squashfs
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=nand
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3308
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=squashfs
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem
#userdata config
export RK_USERDATA_DIR=userdata_empty
MIC_NUM=6

View File

@ -1,42 +1,35 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm
export RK_ARCH=arm
# Uboot defconfig
UBOOT_DEFCONFIG=evb-aarch32-rk3308
export RK_UBOOT_DEFCONFIG=evb-aarch32-rk3308
# Kernel defconfig
KERNEL_DEFCONFIG=rk3308_linux_aarch32_debug_defconfig
export RK_KERNEL_DEFCONFIG=rk3308_linux_aarch32_debug_defconfig
# Kernel dts
KERNEL_DTS=rk3308-voice-module-board-v10-aarch32
export RK_KERNEL_DTS=rk3308-voice-module-board-v10-aarch32
# boot image type
export RK_BOOT_IMG=zboot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3308_32_release
export RK_CFG_BUILDROOT=rockchip_rk3308_32_release
# Recovery config
CFG_RECOVERY=rockchip_rk3308_recovery
export RK_CFG_RECOVERY=rockchip_rk3308_recovery
# Pcba config
CFG_PCBA=rockchip_rk3308_pcba
export RK_CFG_PCBA=rockchip_rk3308_pcba
# Build jobs
JOBS=12
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3308
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=squashfs
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=nand
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD
OEM_PATH=oem
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3308
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=squashfs
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
export RK_OEM_DIR=oem
#userdata config
export RK_USERDATA_DIR=userdata_empty
MIC_NUM=6

View File

@ -12,13 +12,13 @@ TOP_DIR=$(pwd)
source $TOP_DIR/device/rockchip/.BoardConfig.mk
# Config
PRODUCT_PATH=$TOP_DIR/device/rockchip/${TARGET_PRODUCT}
PRODUCT_PATH=$TOP_DIR/device/rockchip/${RK_TARGET_PRODUCT}
BUILDROOT_PATH=$TOP_DIR/buildroot
IMAGE_OUT_PATH=$TOP_DIR/rockdev
KERNEL_PATH=$TOP_DIR/kernel
UBOOT_PATH=$TOP_DIR/u-boot
MISC_IMG_PATH=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
RECOVERY_IMG_PATH=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
RECOVERY_IMG_PATH=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
MKUSERDATA=$TOP_DIR/device/rockchip/common/mk-userdata.sh
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_empty
@ -27,7 +27,7 @@ rm -rf $IMAGE_OUT_PATH
mkdir -p $IMAGE_OUT_PATH
echo "Package rootfs.img now"
cp $(pwd)/buildroot/output/$CFG_BUILDROOT/images/rootfs.${ROOTFS_TYPE} $IMAGE_OUT_PATH/rootfs.img
cp $(pwd)/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.${RK_ROOTFS_TYPE} $IMAGE_OUT_PATH/rootfs.img
echo "Package rootfs Done..."
if [ ! -f $KERNEL_PATH/kernel.img -o ! -f $KERNEL_PATH/boot.img ];then
@ -36,8 +36,8 @@ if [ ! -f $KERNEL_PATH/kernel.img -o ! -f $KERNEL_PATH/boot.img ];then
fi
echo "Package oem.img now"
if [ "${OEM_PATH}" == "dueros" ];then
if [ $ARCH == arm ];then
if [ "${RK_OEM_DIR}" == "dueros" ];then
if [ $RK_ARCH == arm ];then
TARGET_ARM_TYPE=arm32
else
TARGET_ARM_TYPE=arm64
@ -45,33 +45,33 @@ if [ "${OEM_PATH}" == "dueros" ];then
OEM_CONTENT_PATH=${IMAGE_OUT_PATH}/.oem
rm -rf ${OEM_CONTENT_PATH}
mkdir -p ${OEM_CONTENT_PATH}
find ${PRODUCT_PATH}/${OEM_PATH} -maxdepth 1 -not -name "arm*" \
-not -wholename "${PRODUCT_PATH}/${OEM_PATH}" \
find ${PRODUCT_PATH}/${RK_OEM_DIR} -maxdepth 1 -not -name "arm*" \
-not -wholename "${PRODUCT_PATH}/${RK_OEM_DIR}" \
-exec sh -c 'cp -rf ${0} ${1}' "{}" ${OEM_CONTENT_PATH} \;
cp -rf ${PRODUCT_PATH}/${OEM_PATH}/${TARGET_ARM_TYPE}/baidu_spil_rk3308_${MIC_NUM}mic ${OEM_CONTENT_PATH}/baidu_spil_rk3308
cp -rf ${PRODUCT_PATH}/${RK_OEM_DIR}/${TARGET_ARM_TYPE}/baidu_spil_rk3308_${MIC_NUM}mic ${OEM_CONTENT_PATH}/baidu_spil_rk3308
echo "copy ${TARGET_ARM_TYPE} with ${MIC_NUM}mic."
else
OEM_CONTENT_PATH=${PRODUCT_PATH}/${OEM_PATH}
OEM_CONTENT_PATH=${PRODUCT_PATH}/${RK_OEM_DIR}
fi
$MKOEM ${OEM_CONTENT_PATH} ${IMAGE_OUT_PATH}/oem.img ${OEM_PARTITION_TYPE}
$MKOEM ${OEM_CONTENT_PATH} ${IMAGE_OUT_PATH}/oem.img ${RK_OEM_FS_TYPE}
echo "Package oem.img [image type: ${OEM_PARTITION_TYPE}] Done..."
echo "Package oem.img [image type: ${RK_OEM_FS_TYPE}] Done..."
echo "Package userdata.img now"
$MKUSERDATA $USER_DATA_DIR ${IMAGE_OUT_PATH}/userdata.img ext2
echo "Package userdata.img Done..."
if [ $ARCH == arm ];then
if [ "${OEM_PATH}" == "dueros" ];then
if [ $RK_ARCH == arm ];then
if [ "${RK_OEM_DIR}" == "dueros" ];then
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-32bit-dueros.txt
else
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-32bit.txt
fi
elif [ "${FLASH_TYPE}" == "nand" ];then
if [ "${OEM_PATH}" == "aispeech" ];then
if [ "${RK_OEM_DIR}" == "aispeech" ];then
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-aispeech.txt
elif [ "${OEM_PATH}" == "dueros" ];then
elif [ "${RK_OEM_DIR}" == "dueros" ];then
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-dueros.txt
else
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand.txt
@ -113,7 +113,7 @@ if [ -f $KERNEL_PATH/boot.img ]
then
echo -n "create boot.img..."
# arm use zboot.img
if [ $ARCH == arm ];then
if [ $RK_ARCH == arm ];then
cp -a $KERNEL_PATH/zboot.img $IMAGE_OUT_PATH/boot.img
else
cp -a $KERNEL_PATH/boot.img $IMAGE_OUT_PATH/boot.img

View File

@ -1,26 +1,17 @@
#!/bin/bash
DEVICE_DIR=$(cd `dirname $0`; pwd)
if [ -h $0 ]
then
CMD=$(readlink $0)
DEVICE_DIR=$(dirname $CMD)
fi
cd $DEVICE_DIR
cd ../../..
TOP_DIR=$(pwd)
UPGRADETOOL=$TOP_DIR/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKIMG_DIR=$TOP_DIR/rockdev
LOADER=$ROCKIMG_DIR/MiniLoaderAll.bin
PARAMETER=$ROCKIMG_DIR/parameter.txt
UBOOT=$ROCKIMG_DIR/uboot.img
TRUST=$ROCKIMG_DIR/trust.img
BOOT=$ROCKIMG_DIR/boot.img
RECOVERY=$ROCKIMG_DIR/recovery.img
OEM=$ROCKIMG_DIR/oem.img
MISC=$ROCKIMG_DIR/misc.img
ROOTFS=$ROCKIMG_DIR/rootfs.img
USERDATA=$ROCKIMG_DIR/userdata.img
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
LOADER=$ROCKDEV_DIR/MiniLoaderAll.bin
PARAMETER=$ROCKDEV_DIR/parameter.txt
UBOOT=$ROCKDEV_DIR/uboot.img
TRUST=$ROCKDEV_DIR/trust.img
BOOT=$ROCKDEV_DIR/boot.img
RECOVERY=$ROCKDEV_DIR/recovery.img
OEM=$ROCKDEV_DIR/oem.img
MISC=$ROCKDEV_DIR/misc.img
ROOTFS=$ROCKDEV_DIR/rootfs.img
USERDATA=$ROCKDEV_DIR/userdata.img
if [ ! -n "$1" ]
then
@ -40,14 +31,14 @@ then
sudo $UPGRADETOOL di -r $RECOVERY
sudo $UPGRADETOOL di -m $MISC
sudo $UPGRADETOOL di -oem $OEM
#sudo $UPGRADETOOL di -userdata $USERDATA
sudo $UPGRADETOOL di -userdata $USERDATA
sudo $UPGRADETOOL di -rootfs $ROOTFS
sudo $UPGRADETOOL rd
fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]
@ -95,3 +86,4 @@ then
sudo $UPGRADETOOL di -rootfs $ROOTFS
fi
sudo $UPGRADETOOL rd

View File

@ -1,42 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm64
export RK_ARCH=arm64
# Uboot defconfig
UBOOT_DEFCONFIG=evb-rk3326
export RK_UBOOT_DEFCONFIG=evb-rk3326
# Kernel defconfig
KERNEL_DEFCONFIG=rk3326_linux_defconfig
export RK_KERNEL_DEFCONFIG=rk3326_linux_defconfig
# Kernel dts
KERNEL_DTS=rk3326-evb-lp3-v10-linux
export RK_KERNEL_DTS=rk3326-evb-lp3-v10-linux
# boot image type
export RK_BOOT_IMG=boot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3326
export RK_CFG_BUILDROOT=rockchip_rk3326
# Recovery config
CFG_RECOVERY=rockchip_rk3326_recovery
export RK_CFG_RECOVERY=rockchip_rk3326_recovery
# Pcba config
CFG_PCBA=rockchip_rk3326_pcba
export RK_CFG_PCBA=rockchip_rk3326_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-rk3326-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3326
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=squashfs
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3326
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.squashfs
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/boot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -37,6 +38,7 @@ fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]

View File

@ -1,42 +1,34 @@
#!/bin/bash
#=========================
# Compile Config
#=========================
# Target arch
ARCH=arm64
export RK_ARCH=arm64
# Uboot defconfig
UBOOT_DEFCONFIG=evb-rk3399
export RK_UBOOT_DEFCONFIG=rock960-rk3399
# Kernel defconfig
KERNEL_DEFCONFIG=rockchip_linux_defconfig
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
# Kernel dts
KERNEL_DTS=rk3399-sapphire-excavator-linux
export RK_KERNEL_DTS=rk3399-rock960-ab
# boot image type
export RK_BOOT_IMG=boot.img
# Buildroot config
CFG_BUILDROOT=rockchip_rk3399
export RK_CFG_BUILDROOT=rockchip_rk3399
# Recovery config
CFG_RECOVERY=rockchip_rk3399_recovery
export RK_CFG_RECOVERY=rockchip_rk3399_recovery
# Pcba config
CFG_PCBA=rockchip_rk3399_pcba
export RK_CFG_PCBA=rockchip_rk3399_pcba
# Build jobs
JOBS=12
# Yocto machine
YOCTO_MACHINE=rockchip-rk3399-evb
#=========================
# Platform Target
#=========================
TARGET_PRODUCT=rk3399
# Set rootfs type, see buildroot.
# ext4 squashfs
ROOTFS_TYPE=ext4
# Set data partition type.
# ext2 squashfs
OEM_PARTITION_TYPE=ext2
# Set flash type.
# support <emmc, nand, spi_nand, spi_nor>
FLASH_TYPE=emmc
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3399
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
OEM_PATH=oem
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
ROOTFS_PATH=$(pwd)/rootfs
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
TRUST_IMG=$TOP_DIR/u-boot/trust.img
UBOOT_IMG=$TOP_DIR/u-boot/uboot.img
BOOT_IMG=$TOP_DIR/kernel/boot.img
BOOT_IMG=$TOP_DIR/kernel/$RK_BOOT_IMG
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh

View File

@ -1,3 +1,4 @@
#!/bin/bash
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
ROCKDEV_DIR=$(pwd)/rockdev
@ -37,6 +38,7 @@ fi
if [ $FLASH_TYPE = loader ]
then
sudo $UPGRADETOOL ul $LOADER
exit 0
fi
if [ $FLASH_TYPE = parameter ]