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:
@ -43,12 +43,12 @@ usage()
|
|||||||
function build_uboot(){
|
function build_uboot(){
|
||||||
# build uboot
|
# build uboot
|
||||||
echo "============Start build uboot============"
|
echo "============Start build uboot============"
|
||||||
echo "TARGET_UBOOT_CONFIG=$UBOOT_DEFCONFIG"
|
echo "TARGET_UBOOT_CONFIG=$RK_UBOOT_DEFCONFIG"
|
||||||
echo "========================================="
|
echo "========================================="
|
||||||
if [ -f u-boot/*_loader_*.bin ]; then
|
if [ -f u-boot/*_loader_*.bin ]; then
|
||||||
rm u-boot/*_loader_*.bin
|
rm u-boot/*_loader_*.bin
|
||||||
fi
|
fi
|
||||||
cd u-boot && ./make.sh $UBOOT_DEFCONFIG && cd -
|
cd u-boot && ./make.sh $RK_UBOOT_DEFCONFIG && cd -
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "====Build uboot ok!===="
|
echo "====Build uboot ok!===="
|
||||||
else
|
else
|
||||||
@ -60,11 +60,11 @@ function build_uboot(){
|
|||||||
function build_kernel(){
|
function build_kernel(){
|
||||||
# build kernel
|
# build kernel
|
||||||
echo "============Start build kernel============"
|
echo "============Start build kernel============"
|
||||||
echo "TARGET_ARCH =$ARCH"
|
echo "TARGET_ARCH =$RK_ARCH"
|
||||||
echo "TARGET_KERNEL_CONFIG =$KERNEL_DEFCONFIG"
|
echo "TARGET_KERNEL_CONFIG =$RK_KERNEL_DEFCONFIG"
|
||||||
echo "TARGET_KERNEL_DTS =$KERNEL_DTS"
|
echo "TARGET_KERNEL_DTS =$RK_KERNEL_DTS"
|
||||||
echo "=========================================="
|
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
|
if [ $? -eq 0 ]; then
|
||||||
echo "====Build kernel ok!===="
|
echo "====Build kernel ok!===="
|
||||||
else
|
else
|
||||||
@ -76,7 +76,7 @@ function build_kernel(){
|
|||||||
function build_buildroot(){
|
function build_buildroot(){
|
||||||
# build buildroot
|
# build buildroot
|
||||||
echo "==========Start build buildroot=========="
|
echo "==========Start build buildroot=========="
|
||||||
echo "TARGET_BUILDROOT_CONFIG=$CFG_BUILDROOT"
|
echo "TARGET_BUILDROOT_CONFIG=$RK_CFG_BUILDROOT"
|
||||||
echo "========================================="
|
echo "========================================="
|
||||||
/usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
|
/usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
@ -124,7 +124,7 @@ function build_debian(){
|
|||||||
function build_recovery(){
|
function build_recovery(){
|
||||||
# build recovery
|
# build recovery
|
||||||
echo "==========Start build recovery=========="
|
echo "==========Start build recovery=========="
|
||||||
echo "TARGET_RECOVERY_CONFIG=$CFG_RECOVERY"
|
echo "TARGET_RECOVERY_CONFIG=$RK_CFG_RECOVERY"
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
/usr/bin/time -f "you take %E to build recovery" $COMMON_DIR/mk-recovery.sh $BOARD_CONFIG
|
/usr/bin/time -f "you take %E to build recovery" $COMMON_DIR/mk-recovery.sh $BOARD_CONFIG
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
@ -138,7 +138,7 @@ function build_recovery(){
|
|||||||
function build_pcba(){
|
function build_pcba(){
|
||||||
# build pcba
|
# build pcba
|
||||||
echo "==========Start build pcba=========="
|
echo "==========Start build pcba=========="
|
||||||
echo "TARGET_PCBA_CONFIG=$CFG_PCBA"
|
echo "TARGET_PCBA_CONFIG=$RK_CFG_PCBA"
|
||||||
echo "===================================="
|
echo "===================================="
|
||||||
/usr/bin/time -f "you take %E to build pcba" $COMMON_DIR/mk-pcba.sh $BOARD_CONFIG
|
/usr/bin/time -f "you take %E to build pcba" $COMMON_DIR/mk-pcba.sh $BOARD_CONFIG
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
@ -151,14 +151,14 @@ function build_pcba(){
|
|||||||
|
|
||||||
function build_all(){
|
function build_all(){
|
||||||
echo "============================================"
|
echo "============================================"
|
||||||
echo "TARGET_ARCH=$ARCH"
|
echo "TARGET_ARCH=$RK_ARCH"
|
||||||
echo "TARGET_PLATFORM=$TARGET_PRODUCT"
|
echo "TARGET_PLATFORM=$RK_TARGET_PRODUCT"
|
||||||
echo "TARGET_UBOOT_CONFIG=$UBOOT_DEFCONFIG"
|
echo "TARGET_UBOOT_CONFIG=$RK_UBOOT_DEFCONFIG"
|
||||||
echo "TARGET_KERNEL_CONFIG=$KERNEL_DEFCONFIG"
|
echo "TARGET_KERNEL_CONFIG=$RK_KERNEL_DEFCONFIG"
|
||||||
echo "TARGET_KERNEL_DTS=$KERNEL_DTS"
|
echo "TARGET_KERNEL_DTS=$RK_KERNEL_DTS"
|
||||||
echo "TARGET_BUILDROOT_CONFIG=$CFG_BUILDROOT"
|
echo "TARGET_BUILDROOT_CONFIG=$RK_CFG_BUILDROOT"
|
||||||
echo "TARGET_RECOVERY_CONFIG=$CFG_RECOVERY"
|
echo "TARGET_RECOVERY_CONFIG=$RK_CFG_RECOVERY"
|
||||||
echo "TARGET_PCBA_CONFIG=$CFG_PCBA"
|
echo "TARGET_PCBA_CONFIG=$RK_CFG_PCBA"
|
||||||
echo "============================================"
|
echo "============================================"
|
||||||
build_uboot
|
build_uboot
|
||||||
build_kernel
|
build_kernel
|
||||||
@ -202,7 +202,7 @@ function build_updateimg(){
|
|||||||
function build_save(){
|
function build_save(){
|
||||||
IMAGE_PATH=$TOP_DIR/rockdev
|
IMAGE_PATH=$TOP_DIR/rockdev
|
||||||
DATE=$(date +%Y%m%d.%H%M)
|
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:]')"
|
STUB_PATH="$(echo $STUB_PATH | tr '[:lower:]' '[:upper:]')"
|
||||||
export STUB_PATH=$TOP_DIR/$STUB_PATH
|
export STUB_PATH=$TOP_DIR/$STUB_PATH
|
||||||
export STUB_PATCH_PATH=$STUB_PATH/PATCHES
|
export STUB_PATCH_PATH=$STUB_PATH/PATCHES
|
||||||
@ -220,9 +220,9 @@ function build_save(){
|
|||||||
cp $IMAGE_PATH/* $STUB_PATH/IMAGES/
|
cp $IMAGE_PATH/* $STUB_PATH/IMAGES/
|
||||||
|
|
||||||
#Save build command info
|
#Save build command info
|
||||||
echo "UBOOT: defconfig: $UBOOT_DEFCONFIG" >> $STUB_PATH/build_cmd_info
|
echo "UBOOT: defconfig: $RK_UBOOT_DEFCONFIG" >> $STUB_PATH/build_cmd_info
|
||||||
echo "KERNEL: defconfig: $KERNEL_DEFCONFIG, dts: $KERNEL_DTS" >> $STUB_PATH/build_cmd_info
|
echo "KERNEL: defconfig: $RK_KERNEL_DEFCONFIG, dts: $RK_KERNEL_DTS" >> $STUB_PATH/build_cmd_info
|
||||||
echo "BUILDROOT: $CFG_BUILDROOT" >> $STUB_PATH/build_cmd_info
|
echo "BUILDROOT: $RK_CFG_BUILDROOT" >> $STUB_PATH/build_cmd_info
|
||||||
|
|
||||||
}
|
}
|
||||||
#=========================
|
#=========================
|
||||||
|
|||||||
@ -11,12 +11,9 @@ cd ../../..
|
|||||||
TOP_DIR=$(pwd)
|
TOP_DIR=$(pwd)
|
||||||
BOARD_CONFIG=$1
|
BOARD_CONFIG=$1
|
||||||
source $BOARD_CONFIG
|
source $BOARD_CONFIG
|
||||||
source $TOP_DIR/buildroot/build/envsetup.sh $CFG_BUILDROOT
|
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_BUILDROOT
|
||||||
BUILD_CONFIG=`get_defconfig_name`
|
|
||||||
echo "$BUILD_CONFIG"
|
|
||||||
ROOTFS_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/rootfs.img
|
|
||||||
# build rootfs
|
|
||||||
make
|
make
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "pack buildroot image at: $TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE"
|
||||||
|
|||||||
@ -9,12 +9,13 @@ fi
|
|||||||
cd $COMMON_DIR
|
cd $COMMON_DIR
|
||||||
cd ../../..
|
cd ../../..
|
||||||
TOP_DIR=$(pwd)
|
TOP_DIR=$(pwd)
|
||||||
|
|
||||||
BOARD_CONFIG=$1
|
BOARD_CONFIG=$1
|
||||||
source $BOARD_CONFIG
|
source $BOARD_CONFIG
|
||||||
echo "pcba config: $CFG_PCBA"
|
echo "pcba config: $CFG_PCBA"
|
||||||
if [ $ARCH == arm64 ];then
|
if [ $RK_ARCH == arm64 ];then
|
||||||
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm64/boot/Image
|
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
|
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm/boot/zImage
|
||||||
fi
|
fi
|
||||||
KERNEL_DTB=$TOP_DIR/kernel/resource.img
|
KERNEL_DTB=$TOP_DIR/kernel/resource.img
|
||||||
@ -33,10 +34,9 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $TOP_DIR/buildroot/build/envsetup.sh $CFG_PCBA
|
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_PCBA
|
||||||
BUILD_CONFIG=`get_defconfig_name`
|
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_PCBA/images/rootfs.cpio.gz
|
||||||
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/rootfs.cpio.gz
|
PCBA_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_PCBA/images/pcba.img
|
||||||
PCBA_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/pcba.img
|
|
||||||
|
|
||||||
# build pcba
|
# build pcba
|
||||||
echo "====Start build pcba===="
|
echo "====Start build pcba===="
|
||||||
|
|||||||
@ -13,9 +13,9 @@ TOP_DIR=$(pwd)
|
|||||||
BOARD_CONFIG=$1
|
BOARD_CONFIG=$1
|
||||||
source $BOARD_CONFIG
|
source $BOARD_CONFIG
|
||||||
echo "recovery config: $CFG_RECOVERY"
|
echo "recovery config: $CFG_RECOVERY"
|
||||||
if [ $ARCH == arm64 ];then
|
if [ $RK_ARCH == arm64 ];then
|
||||||
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm64/boot/Image
|
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
|
KERNEL_IMAGE=$TOP_DIR/kernel/arch/arm/boot/zImage
|
||||||
fi
|
fi
|
||||||
KERNEL_DTB=$TOP_DIR/kernel/resource.img
|
KERNEL_DTB=$TOP_DIR/kernel/resource.img
|
||||||
@ -34,10 +34,9 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $TOP_DIR/buildroot/build/envsetup.sh $CFG_RECOVERY
|
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_RECOVERY
|
||||||
BUILD_CONFIG=`get_defconfig_name`
|
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/rootfs.cpio.gz
|
||||||
RAMDISK_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/rootfs.cpio.gz
|
RECOVERY_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
RECOVERY_IMAGE=$TOP_DIR/buildroot/output/$BUILD_CONFIG/images/recovery.img
|
|
||||||
|
|
||||||
# build recovery
|
# build recovery
|
||||||
echo "====Start build recovery===="
|
echo "====Start build recovery===="
|
||||||
|
|||||||
@ -11,7 +11,7 @@ cd ../../..
|
|||||||
TOP_DIR=$(pwd)
|
TOP_DIR=$(pwd)
|
||||||
BOARD_CONFIG=$1
|
BOARD_CONFIG=$1
|
||||||
source $BOARD_CONFIG
|
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/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 -
|
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 -
|
||||||
|
|||||||
@ -1,42 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm64
|
export RK_ARCH=arm64
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-px30
|
export RK_UBOOT_DEFCONFIG=evb-px30
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=px30_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=px30_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_px30
|
export RK_CFG_BUILDROOT=rockchip_px30
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_px30_recovery
|
export RK_CFG_RECOVERY=rockchip_px30_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_px30_pcba
|
export RK_CFG_PCBA=rockchip_px30_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-px30-evb
|
export RK_TARGET_PRODUCT=px30
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=ext4
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=px30
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=ext4
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# Set data partition type.
|
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -37,6 +38,7 @@ fi
|
|||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
|
|||||||
@ -1,42 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm
|
export RK_ARCH=arm
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-px3se
|
export RK_UBOOT_DEFCONFIG=evb-px3se
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||||
# Kernel dts
|
# Kernel dts
|
||||||
KERNEL_DTS=px3se-evb
|
export RK_KERNEL_DTS=px3se-evb
|
||||||
|
# boot image type
|
||||||
|
export RK_BOOT_IMG=zboot.img
|
||||||
# Buildroot config
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_px3se
|
export RK_CFG_BUILDROOT=rockchip_px3se
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_px3se_recovery
|
export RK_CFG_RECOVERY=rockchip_px3se_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_px3se_pcba
|
export RK_CFG_PCBA=rockchip_px3se_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-px3se-evb
|
export RK_TARGET_PRODUCT=px3se
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=ext4
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=px3se
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=ext4
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# Set data partition type.
|
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -32,12 +33,12 @@ then
|
|||||||
sudo $UPGRADETOOL di -oem $OEM
|
sudo $UPGRADETOOL di -oem $OEM
|
||||||
sudo $UPGRADETOOL di -userdata $USERDATA
|
sudo $UPGRADETOOL di -userdata $USERDATA
|
||||||
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
||||||
sudo $UPGRADETOOL rd
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
@ -85,3 +86,4 @@ then
|
|||||||
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo $UPGRADETOOL rd
|
||||||
|
|||||||
@ -1,42 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm64
|
export RK_ARCH=arm64
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-rk1808
|
export RK_UBOOT_DEFCONFIG=evb-rk1808
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rk1808_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rk1808_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk1808
|
export RK_CFG_BUILDROOT=rockchip_rk1808
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk1808_recovery
|
export RK_CFG_RECOVERY=rockchip_rk1808_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk1808_pcba
|
export RK_CFG_PCBA=rockchip_rk1808_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-rk1808-evb
|
export RK_TARGET_PRODUCT=rk1808
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=ext4
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=rk1808
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=ext4
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# Set data partition type.
|
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -37,6 +38,7 @@ fi
|
|||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
|
|||||||
@ -1,40 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm
|
export RK_ARCH=arm
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=kylin-rk3036
|
export RK_UBOOT_DEFCONFIG=kylin-rk3036
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||||
# Kernel dts
|
# Kernel dts
|
||||||
KERNEL_DTS=rk3036-kylin
|
export RK_KERNEL_DTS=rk3036-kylin
|
||||||
|
# boot image type
|
||||||
|
export RK_BOOT_IMG=zboot.img
|
||||||
# Buildroot config
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3036
|
export RK_CFG_BUILDROOT=rockchip_rk3036
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3036_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3036_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3036_pcba
|
export RK_CFG_PCBA=rockchip_rk3036_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
#=========================
|
# target chip
|
||||||
# Platform Target
|
export RK_TARGET_PRODUCT=rk3036
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
TARGET_PRODUCT=rk3036
|
export RK_ROOTFS_TYPE=ext4
|
||||||
|
# Set oem partition type, including ext2 squashfs
|
||||||
# Set rootfs type, see buildroot.
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set userdata partition type, including ext2, fat
|
||||||
ROOTFS_TYPE=ext4
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
# Set data partition type.
|
export RK_STORAGE_TYPE=emmc
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -37,6 +38,7 @@ fi
|
|||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
|
|||||||
@ -1,40 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm
|
export RK_ARCH=arm
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-rk3229
|
export RK_UBOOT_DEFCONFIG=evb-rk3229
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3229
|
export RK_CFG_BUILDROOT=rockchip_rk3229
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3229_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3229_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3229_pcba
|
export RK_CFG_PCBA=rockchip_rk3229_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
#=========================
|
# target chip
|
||||||
# Platform Target
|
export RK_TARGET_PRODUCT=rk3229
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
TARGET_PRODUCT=rk3229
|
export RK_ROOTFS_TYPE=ext4
|
||||||
|
# Set oem partition type, including ext2 squashfs
|
||||||
# Set rootfs type, see buildroot.
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set userdata partition type, including ext2, fat
|
||||||
ROOTFS_TYPE=ext4
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
# Set data partition type.
|
export RK_STORAGE_TYPE=emmc
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -37,6 +38,7 @@ fi
|
|||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
|
|||||||
@ -1,42 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm
|
export RK_ARCH=arm
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=fennec-rk3288
|
export RK_UBOOT_DEFCONFIG=fennec-rk3288
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3288
|
export RK_CFG_BUILDROOT=rockchip_rk3288
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3288_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3288_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3288_pcba
|
export RK_CFG_PCBA=rockchip_rk3288_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-rk3288-evb
|
export RK_TARGET_PRODUCT=rk3288
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=ext4
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=rk3288
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=ext4
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# Set data partition type.
|
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -32,12 +33,12 @@ then
|
|||||||
sudo $UPGRADETOOL di -oem $OEM
|
sudo $UPGRADETOOL di -oem $OEM
|
||||||
sudo $UPGRADETOOL di -userdata $USERDATA
|
sudo $UPGRADETOOL di -userdata $USERDATA
|
||||||
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
||||||
sudo $UPGRADETOOL rd
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
@ -85,3 +86,4 @@ then
|
|||||||
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo $UPGRADETOOL rd
|
||||||
|
|||||||
@ -1,43 +1,35 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm64
|
export RK_ARCH=arm64
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-rk3308
|
export RK_UBOOT_DEFCONFIG=evb-rk3308
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rk3308_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rk3308_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3308_release
|
export RK_CFG_BUILDROOT=rockchip_rk3308_release
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3308_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3308_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3308_pcba
|
export RK_CFG_PCBA=rockchip_rk3308_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-rk3308-evb
|
export RK_TARGET_PRODUCT=rk3308
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=rk3308
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=squashfs
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# 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/smart_voice
|
#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
|
MIC_NUM=6
|
||||||
@ -1,42 +1,35 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm
|
export RK_ARCH=arm
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-aarch32-rk3308
|
export RK_UBOOT_DEFCONFIG=evb-aarch32-rk3308
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rk3308_linux_aarch32_debug_defconfig
|
export RK_KERNEL_DEFCONFIG=rk3308_linux_aarch32_debug_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3308_32_release
|
export RK_CFG_BUILDROOT=rockchip_rk3308_32_release
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3308_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3308_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3308_pcba
|
export RK_CFG_PCBA=rockchip_rk3308_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
|
# target chip
|
||||||
#=========================
|
export RK_TARGET_PRODUCT=rk3308
|
||||||
# Platform Target
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
#=========================
|
export RK_ROOTFS_TYPE=squashfs
|
||||||
TARGET_PRODUCT=rk3308
|
# Set oem partition type, including ext2 squashfs
|
||||||
|
export RK_OEM_FS_TYPE=ext2
|
||||||
# Set rootfs type, see buildroot.
|
# Set userdata partition type, including ext2, fat
|
||||||
# ext4 squashfs
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
ROOTFS_TYPE=squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
|
export RK_STORAGE_TYPE=emmc
|
||||||
# Set data partition type.
|
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
||||||
# ext2 squashfs
|
export RK_OEM_DIR=oem
|
||||||
OEM_PARTITION_TYPE=ext2
|
#userdata config
|
||||||
|
export RK_USERDATA_DIR=userdata_empty
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=nand
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD
|
|
||||||
OEM_PATH=oem
|
|
||||||
MIC_NUM=6
|
MIC_NUM=6
|
||||||
|
|||||||
@ -12,13 +12,13 @@ TOP_DIR=$(pwd)
|
|||||||
|
|
||||||
source $TOP_DIR/device/rockchip/.BoardConfig.mk
|
source $TOP_DIR/device/rockchip/.BoardConfig.mk
|
||||||
# Config
|
# Config
|
||||||
PRODUCT_PATH=$TOP_DIR/device/rockchip/${TARGET_PRODUCT}
|
PRODUCT_PATH=$TOP_DIR/device/rockchip/${RK_TARGET_PRODUCT}
|
||||||
BUILDROOT_PATH=$TOP_DIR/buildroot
|
BUILDROOT_PATH=$TOP_DIR/buildroot
|
||||||
IMAGE_OUT_PATH=$TOP_DIR/rockdev
|
IMAGE_OUT_PATH=$TOP_DIR/rockdev
|
||||||
KERNEL_PATH=$TOP_DIR/kernel
|
KERNEL_PATH=$TOP_DIR/kernel
|
||||||
UBOOT_PATH=$TOP_DIR/u-boot
|
UBOOT_PATH=$TOP_DIR/u-boot
|
||||||
MISC_IMG_PATH=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
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
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
MKUSERDATA=$TOP_DIR/device/rockchip/common/mk-userdata.sh
|
MKUSERDATA=$TOP_DIR/device/rockchip/common/mk-userdata.sh
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_empty
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_empty
|
||||||
@ -27,7 +27,7 @@ rm -rf $IMAGE_OUT_PATH
|
|||||||
mkdir -p $IMAGE_OUT_PATH
|
mkdir -p $IMAGE_OUT_PATH
|
||||||
|
|
||||||
echo "Package rootfs.img now"
|
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..."
|
echo "Package rootfs Done..."
|
||||||
|
|
||||||
if [ ! -f $KERNEL_PATH/kernel.img -o ! -f $KERNEL_PATH/boot.img ];then
|
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
|
fi
|
||||||
|
|
||||||
echo "Package oem.img now"
|
echo "Package oem.img now"
|
||||||
if [ "${OEM_PATH}" == "dueros" ];then
|
if [ "${RK_OEM_DIR}" == "dueros" ];then
|
||||||
if [ $ARCH == arm ];then
|
if [ $RK_ARCH == arm ];then
|
||||||
TARGET_ARM_TYPE=arm32
|
TARGET_ARM_TYPE=arm32
|
||||||
else
|
else
|
||||||
TARGET_ARM_TYPE=arm64
|
TARGET_ARM_TYPE=arm64
|
||||||
@ -45,33 +45,33 @@ if [ "${OEM_PATH}" == "dueros" ];then
|
|||||||
OEM_CONTENT_PATH=${IMAGE_OUT_PATH}/.oem
|
OEM_CONTENT_PATH=${IMAGE_OUT_PATH}/.oem
|
||||||
rm -rf ${OEM_CONTENT_PATH}
|
rm -rf ${OEM_CONTENT_PATH}
|
||||||
mkdir -p ${OEM_CONTENT_PATH}
|
mkdir -p ${OEM_CONTENT_PATH}
|
||||||
find ${PRODUCT_PATH}/${OEM_PATH} -maxdepth 1 -not -name "arm*" \
|
find ${PRODUCT_PATH}/${RK_OEM_DIR} -maxdepth 1 -not -name "arm*" \
|
||||||
-not -wholename "${PRODUCT_PATH}/${OEM_PATH}" \
|
-not -wholename "${PRODUCT_PATH}/${RK_OEM_DIR}" \
|
||||||
-exec sh -c 'cp -rf ${0} ${1}' "{}" ${OEM_CONTENT_PATH} \;
|
-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."
|
echo "copy ${TARGET_ARM_TYPE} with ${MIC_NUM}mic."
|
||||||
else
|
else
|
||||||
OEM_CONTENT_PATH=${PRODUCT_PATH}/${OEM_PATH}
|
OEM_CONTENT_PATH=${PRODUCT_PATH}/${RK_OEM_DIR}
|
||||||
fi
|
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"
|
echo "Package userdata.img now"
|
||||||
$MKUSERDATA $USER_DATA_DIR ${IMAGE_OUT_PATH}/userdata.img ext2
|
$MKUSERDATA $USER_DATA_DIR ${IMAGE_OUT_PATH}/userdata.img ext2
|
||||||
echo "Package userdata.img Done..."
|
echo "Package userdata.img Done..."
|
||||||
|
|
||||||
if [ $ARCH == arm ];then
|
if [ $RK_ARCH == arm ];then
|
||||||
if [ "${OEM_PATH}" == "dueros" ];then
|
if [ "${RK_OEM_DIR}" == "dueros" ];then
|
||||||
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-32bit-dueros.txt
|
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-32bit-dueros.txt
|
||||||
else
|
else
|
||||||
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-32bit.txt
|
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-32bit.txt
|
||||||
fi
|
fi
|
||||||
elif [ "${FLASH_TYPE}" == "nand" ];then
|
elif [ "${FLASH_TYPE}" == "nand" ];then
|
||||||
if [ "${OEM_PATH}" == "aispeech" ];then
|
if [ "${RK_OEM_DIR}" == "aispeech" ];then
|
||||||
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-aispeech.txt
|
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
|
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand-dueros.txt
|
||||||
else
|
else
|
||||||
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand.txt
|
PARAMETER=$PRODUCT_PATH/rockimg/gpt-nand.txt
|
||||||
@ -113,7 +113,7 @@ if [ -f $KERNEL_PATH/boot.img ]
|
|||||||
then
|
then
|
||||||
echo -n "create boot.img..."
|
echo -n "create boot.img..."
|
||||||
# arm use zboot.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
|
cp -a $KERNEL_PATH/zboot.img $IMAGE_OUT_PATH/boot.img
|
||||||
else
|
else
|
||||||
cp -a $KERNEL_PATH/boot.img $IMAGE_OUT_PATH/boot.img
|
cp -a $KERNEL_PATH/boot.img $IMAGE_OUT_PATH/boot.img
|
||||||
|
|||||||
@ -1,26 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/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
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKIMG_DIR=$TOP_DIR/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
LOADER=$ROCKIMG_DIR/MiniLoaderAll.bin
|
LOADER=$ROCKDEV_DIR/MiniLoaderAll.bin
|
||||||
PARAMETER=$ROCKIMG_DIR/parameter.txt
|
PARAMETER=$ROCKDEV_DIR/parameter.txt
|
||||||
UBOOT=$ROCKIMG_DIR/uboot.img
|
UBOOT=$ROCKDEV_DIR/uboot.img
|
||||||
TRUST=$ROCKIMG_DIR/trust.img
|
TRUST=$ROCKDEV_DIR/trust.img
|
||||||
BOOT=$ROCKIMG_DIR/boot.img
|
BOOT=$ROCKDEV_DIR/boot.img
|
||||||
RECOVERY=$ROCKIMG_DIR/recovery.img
|
RECOVERY=$ROCKDEV_DIR/recovery.img
|
||||||
OEM=$ROCKIMG_DIR/oem.img
|
OEM=$ROCKDEV_DIR/oem.img
|
||||||
MISC=$ROCKIMG_DIR/misc.img
|
MISC=$ROCKDEV_DIR/misc.img
|
||||||
ROOTFS=$ROCKIMG_DIR/rootfs.img
|
ROOTFS=$ROCKDEV_DIR/rootfs.img
|
||||||
USERDATA=$ROCKIMG_DIR/userdata.img
|
USERDATA=$ROCKDEV_DIR/userdata.img
|
||||||
|
|
||||||
if [ ! -n "$1" ]
|
if [ ! -n "$1" ]
|
||||||
then
|
then
|
||||||
@ -40,14 +31,14 @@ then
|
|||||||
sudo $UPGRADETOOL di -r $RECOVERY
|
sudo $UPGRADETOOL di -r $RECOVERY
|
||||||
sudo $UPGRADETOOL di -m $MISC
|
sudo $UPGRADETOOL di -m $MISC
|
||||||
sudo $UPGRADETOOL di -oem $OEM
|
sudo $UPGRADETOOL di -oem $OEM
|
||||||
#sudo $UPGRADETOOL di -userdata $USERDATA
|
sudo $UPGRADETOOL di -userdata $USERDATA
|
||||||
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
||||||
sudo $UPGRADETOOL rd
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
@ -95,3 +86,4 @@ then
|
|||||||
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
sudo $UPGRADETOOL di -rootfs $ROOTFS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo $UPGRADETOOL rd
|
||||||
|
|||||||
@ -1,42 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm64
|
export RK_ARCH=arm64
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-rk3326
|
export RK_UBOOT_DEFCONFIG=evb-rk3326
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rk3326_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rk3326_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3326
|
export RK_CFG_BUILDROOT=rockchip_rk3326
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3326_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3326_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3326_pcba
|
export RK_CFG_PCBA=rockchip_rk3326_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-rk3326-evb
|
export RK_TARGET_PRODUCT=rk3326
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=ext4
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=rk3326
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=squashfs
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# Set data partition type.
|
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.squashfs
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -37,6 +38,7 @@ fi
|
|||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
|
|||||||
@ -1,42 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#=========================
|
|
||||||
# Compile Config
|
|
||||||
#=========================
|
|
||||||
# Target arch
|
# Target arch
|
||||||
ARCH=arm64
|
export RK_ARCH=arm64
|
||||||
# Uboot defconfig
|
# Uboot defconfig
|
||||||
UBOOT_DEFCONFIG=evb-rk3399
|
export RK_UBOOT_DEFCONFIG=rock960-rk3399
|
||||||
# Kernel defconfig
|
# Kernel defconfig
|
||||||
KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||||
# Kernel dts
|
# 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
|
# Buildroot config
|
||||||
CFG_BUILDROOT=rockchip_rk3399
|
export RK_CFG_BUILDROOT=rockchip_rk3399
|
||||||
# Recovery config
|
# Recovery config
|
||||||
CFG_RECOVERY=rockchip_rk3399_recovery
|
export RK_CFG_RECOVERY=rockchip_rk3399_recovery
|
||||||
# Pcba config
|
# Pcba config
|
||||||
CFG_PCBA=rockchip_rk3399_pcba
|
export RK_CFG_PCBA=rockchip_rk3399_pcba
|
||||||
# Build jobs
|
# Build jobs
|
||||||
JOBS=12
|
export RK_JOBS=12
|
||||||
# Yocto machine
|
# target chip
|
||||||
YOCTO_MACHINE=rockchip-rk3399-evb
|
export RK_TARGET_PRODUCT=rk3399
|
||||||
#=========================
|
# Set rootfs type, including ext2 ext4 squashfs
|
||||||
# Platform Target
|
export RK_ROOTFS_TYPE=ext4
|
||||||
#=========================
|
# Set oem partition type, including ext2 squashfs
|
||||||
TARGET_PRODUCT=rk3399
|
export RK_OEM_FS_TYPE=ext2
|
||||||
|
# Set userdata partition type, including ext2, fat
|
||||||
# Set rootfs type, see buildroot.
|
export RK_USERDATA_FS_TYPE=ext2
|
||||||
# ext4 squashfs
|
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
|
||||||
ROOTFS_TYPE=ext4
|
export RK_STORAGE_TYPE=emmc
|
||||||
|
|
||||||
# Set data partition type.
|
|
||||||
# ext2 squashfs
|
|
||||||
OEM_PARTITION_TYPE=ext2
|
|
||||||
|
|
||||||
# Set flash type.
|
|
||||||
# support <emmc, nand, spi_nand, spi_nor>
|
|
||||||
FLASH_TYPE=emmc
|
|
||||||
|
|
||||||
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
|
#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
|
||||||
|
|||||||
@ -15,14 +15,14 @@ ROCKDEV=$TOP_DIR/rockdev
|
|||||||
ROOTFS_PATH=$(pwd)/rootfs
|
ROOTFS_PATH=$(pwd)/rootfs
|
||||||
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
PARAMETER_DEBIAN=$TOP_DIR/$DEVICE_DIR/parameter-debian.txt
|
||||||
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
PARAMETER_BUILDROOT=$TOP_DIR/$DEVICE_DIR/parameter-buildroot.txt
|
||||||
OEM_DIR=$TOP_DIR/device/rockchip/oem/oem_normal
|
OEM_DIR=$TOP_DIR/device/rockchip/oem/$RK_OEM_DIR
|
||||||
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/userdata_normal
|
USER_DATA_DIR=$TOP_DIR/device/rockchip/userdata/$RK_USERDATA_DIR
|
||||||
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
MISC_IMG=$TOP_DIR/device/rockchip/rockimg/wipe_all-misc.img
|
||||||
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$CFG_BUILDROOT/images/rootfs.ext4
|
BUILDROOT_IMG=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
|
||||||
RECOVERY_IMG=$TOP_DIR/buildroot/output/$CFG_RECOVERY/images/recovery.img
|
RECOVERY_IMG=$TOP_DIR/buildroot/output/$RK_CFG_RECOVERY/images/recovery.img
|
||||||
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
TRUST_IMG=$TOP_DIR/u-boot/trust.img
|
||||||
UBOOT_IMG=$TOP_DIR/u-boot/uboot.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
|
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||||
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
#SPINOR_LOADER=$TOP_DIR/u-boot/*_loader_spinor_v*.bin
|
||||||
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
MKOEM=$TOP_DIR/device/rockchip/common/mk-oem.sh
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
UPGRADETOOL=$(pwd)/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/upgrade_tool
|
||||||
ROCKDEV_DIR=$(pwd)/rockdev
|
ROCKDEV_DIR=$(pwd)/rockdev
|
||||||
@ -37,6 +38,7 @@ fi
|
|||||||
if [ $FLASH_TYPE = loader ]
|
if [ $FLASH_TYPE = loader ]
|
||||||
then
|
then
|
||||||
sudo $UPGRADETOOL ul $LOADER
|
sudo $UPGRADETOOL ul $LOADER
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $FLASH_TYPE = parameter ]
|
if [ $FLASH_TYPE = parameter ]
|
||||||
|
|||||||
Reference in New Issue
Block a user