Merge branch 'master' of ssh://gitlab.ebf.local/rockchip/linux/device_rockchip into stable-4.19-rk356x
This commit is contained in:
123
common/build.sh
123
common/build.sh
@ -111,10 +111,15 @@ function prebuild_uboot()
|
||||
UBOOT_COMPILE_COMMANDS="$(echo $UBOOT_COMPILE_COMMANDS)"
|
||||
fi
|
||||
|
||||
if [ "$RK_SECURITY_OTP_DEBUG" != "true" ]; then
|
||||
UBOOT_COMPILE_COMMANDS="$UBOOT_COMPILE_COMMANDS --burn-key-hash"
|
||||
fi
|
||||
|
||||
if [ "$RK_RAMDISK_SECURITY_BOOTUP" = "true" ];then
|
||||
UBOOT_COMPILE_COMMANDS=" \
|
||||
--boot_img $TOP_DIR/u-boot/boot.img \
|
||||
--burn-key-hash $UBOOT_COMPILE_COMMANDS \
|
||||
--recovery_img $TOP_DIR/u-boot/recovery.img \
|
||||
$UBOOT_COMPILE_COMMANDS \
|
||||
${RK_ROLLBACK_INDEX_BOOT:+--rollback-index-boot $RK_ROLLBACK_INDEX_BOOT} \
|
||||
${RK_ROLLBACK_INDEX_UBOOT:+--rollback-index-uboot $RK_ROLLBACK_INDEX_UBOOT} "
|
||||
UBOOT_COMPILE_COMMANDS="$(echo $UBOOT_COMPILE_COMMANDS)"
|
||||
@ -224,8 +229,8 @@ function usage()
|
||||
echo "ramboot -build ramboot image"
|
||||
echo "multi-npu_boot -build boot image for multi-npu board"
|
||||
echo "yocto -build yocto rootfs"
|
||||
echo "debian -build debian10 buster/x11 rootfs"
|
||||
echo "distro -build debian10 buster/wayland rootfs"
|
||||
echo "debian -build debian rootfs"
|
||||
echo "distro -build distro rootfs"
|
||||
echo "pcba -build pcba"
|
||||
echo "recovery -build recovery"
|
||||
echo "all -build uboot, kernel, rootfs, recovery image"
|
||||
@ -241,6 +246,10 @@ function usage()
|
||||
echo "app/<pkg> -build packages in the dir of app/*"
|
||||
echo "external/<pkg> -build packages in the dir of external/*"
|
||||
echo ""
|
||||
echo "createkeys -create secureboot root keys"
|
||||
echo "security-rootfs -build rootfs and some relevant images with security paramter"
|
||||
echo "security-boot -build boot with security paramter"
|
||||
echo ""
|
||||
echo "Default option is 'allsave'."
|
||||
}
|
||||
|
||||
@ -356,22 +365,22 @@ function build_check_power_domain(){
|
||||
}
|
||||
|
||||
function build_check_cross_compile(){
|
||||
ARCH=${RK_KERNEL_ARCH:-${RK_ARCH}}
|
||||
case $ARCH in
|
||||
|
||||
case $RK_ARCH in
|
||||
arm|armhf)
|
||||
if [ -d "$TOP_DIR/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf" ]; then
|
||||
CROSS_COMPILE=$TOP_DIR/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-linux-gnueabihf-
|
||||
CROSS_COMPILE=$(realpath $TOP_DIR)/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-linux-gnueabihf-
|
||||
export CROSS_COMPILE=$CROSS_COMPILE
|
||||
fi
|
||||
;;
|
||||
arm64|aarch64)
|
||||
if [ -d "$TOP_DIR/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu" ]; then
|
||||
CROSS_COMPILE=$TOP_DIR/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
|
||||
CROSS_COMPILE=$(realpath $TOP_DIR)/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
|
||||
export CROSS_COMPILE=$CROSS_COMPILE
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "the $ARCH not supported for now, please check it again\n"
|
||||
echo "the $RK_ARCH not supported for now, please check it again\n"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
@ -448,6 +457,7 @@ function build_pkg() {
|
||||
|
||||
function build_uboot(){
|
||||
check_config RK_UBOOT_DEFCONFIG || return 0
|
||||
build_check_cross_compile
|
||||
prebuild_uboot
|
||||
|
||||
echo "============Start building uboot============"
|
||||
@ -460,7 +470,12 @@ function build_uboot(){
|
||||
else
|
||||
build_kernel
|
||||
fi
|
||||
|
||||
if [ -n "$RK_CFG_RECOVERY" ]; then
|
||||
build_recovery
|
||||
fi
|
||||
cp -f $TOP_DIR/rockdev/boot.img $TOP_DIR/u-boot/boot.img
|
||||
cp -f $TOP_DIR/rockdev/recovery.img $TOP_DIR/u-boot/recovery.img || true
|
||||
fi
|
||||
|
||||
cd u-boot
|
||||
@ -476,6 +491,12 @@ function build_uboot(){
|
||||
make ${RK_UBOOT_DEFCONFIG}.config $RK_UBOOT_DEFCONFIG_FRAGMENT
|
||||
fi
|
||||
./make.sh $UBOOT_COMPILE_COMMANDS
|
||||
elif [ -d "$TOP_DIR/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf" ]; then
|
||||
./make.sh $RK_UBOOT_DEFCONFIG \
|
||||
$UBOOT_COMPILE_COMMANDS CROSS_COMPILE=$CROSS_COMPILE
|
||||
elif [ -d "$TOP_DIR/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu" ]; then
|
||||
./make.sh $RK_UBOOT_DEFCONFIG \
|
||||
$UBOOT_COMPILE_COMMANDS CROSS_COMPILE=$CROSS_COMPILE
|
||||
else
|
||||
./make.sh $RK_UBOOT_DEFCONFIG \
|
||||
$UBOOT_COMPILE_COMMANDS
|
||||
@ -487,6 +508,7 @@ function build_uboot(){
|
||||
|
||||
if [ "$RK_RAMDISK_SECURITY_BOOTUP" = "true" ];then
|
||||
ln -rsf $TOP_DIR/u-boot/boot.img $TOP_DIR/rockdev/
|
||||
ln -rsf $TOP_DIR/u-boot/recovery.img $TOP_DIR/rockdev/ || true
|
||||
fi
|
||||
|
||||
finish_build
|
||||
@ -664,12 +686,12 @@ function build_debian(){
|
||||
echo "=========Start building debian for $ARCH========="
|
||||
|
||||
cd debian
|
||||
if [ ! -e linaro-buster-$ARCH.tar.gz ]; then
|
||||
RELEASE=buster TARGET=desktop ARCH=$ARCH ./mk-base-debian.sh
|
||||
ln -rsf linaro-buster-alip-*.tar.gz linaro-buster-$ARCH.tar.gz
|
||||
if [ ! -e linaro-$RK_DEBIAN_VERSON-$ARCH.tar.gz ]; then
|
||||
RELEASE=$RK_DEBIAN_VERSION TARGET=desktop ARCH=$ARCH ./mk-base-debian.sh
|
||||
ln -rsf linaro-$RK_DEBIAN_VERSION-alip-*.tar.gz linaro-$RK_DEBIAN_VERSION-$ARCH.tar.gz
|
||||
fi
|
||||
|
||||
VERSION=debug ARCH=$ARCH ./mk-rootfs-buster.sh
|
||||
VERSION=debug ARCH=$ARCH ./mk-rootfs-$RK_DEBIAN_VERSION.sh
|
||||
./mk-image.sh
|
||||
|
||||
finish_build
|
||||
@ -749,6 +771,9 @@ function build_recovery(){
|
||||
/usr/bin/time -f "you take %E to build recovery" \
|
||||
$COMMON_DIR/mk-ramdisk.sh recovery.img $RK_CFG_RECOVERY
|
||||
|
||||
ln -rsf buildroot/output/$RK_CFG_RECOVERY/images/recovery.img \
|
||||
rockdev/recovery.img
|
||||
|
||||
finish_build
|
||||
}
|
||||
|
||||
@ -765,6 +790,47 @@ function build_pcba(){
|
||||
finish_build
|
||||
}
|
||||
|
||||
BOOT_FIXED_CONFIGS="
|
||||
CONFIG_BLK_DEV_DM
|
||||
CONFIG_DM_CRYPT
|
||||
CONFIG_BLK_DEV_CRYPTOLOOP
|
||||
CONFIG_DM_VERITY"
|
||||
|
||||
UBOOT_FIXED_CONFIGS="
|
||||
CONFIG_FIT_SIGNATURE
|
||||
CONFIG_SPL_FIT_SIGNATURE"
|
||||
|
||||
function defconfig_check() {
|
||||
# 1. defconfig 2. fixed config
|
||||
echo debug-$1
|
||||
for i in $2
|
||||
do
|
||||
echo "look for $i"
|
||||
result=$(cat $1 | grep "${i}=y" -w || echo "No found")
|
||||
if [ "$result" = "No found" ]; then
|
||||
echo "${i} Not found"
|
||||
return -1;
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
function check_security_condition(){
|
||||
# check security enabled
|
||||
test -z "$RK_SYSTEM_CHECK_METHOD" && return 0
|
||||
|
||||
if [ ! -d u-boot/keys ]; then
|
||||
echo "ERROR: No root keys(u-boot/keys) found in u-boot"
|
||||
echo " Create it by ./build.sh createkeys or move your key to it"
|
||||
return -1
|
||||
fi
|
||||
|
||||
echo "check kernel defconfig"
|
||||
defconfig_check kernel/arch/$RK_ARCH/configs/$RK_KERNEL_DEFCONFIG "$BOOT_FIXED_CONFIGS"
|
||||
echo "check uboot defconfig"
|
||||
defconfig_check u-boot/configs/${RK_UBOOT_DEFCONFIG}_defconfig "$UBOOT_FIXED_CONFIGS"
|
||||
}
|
||||
|
||||
function build_all(){
|
||||
echo "============================================"
|
||||
echo "TARGET_ARCH=$RK_ARCH"
|
||||
@ -793,6 +859,7 @@ function build_all(){
|
||||
fi
|
||||
fi
|
||||
|
||||
check_security_condition
|
||||
build_loader
|
||||
build_kernel
|
||||
build_toolchain
|
||||
@ -981,6 +1048,16 @@ function build_allsave(){
|
||||
finish_build
|
||||
}
|
||||
|
||||
function create_keys() {
|
||||
test -d u-boot/keys && echo "ERROR: u-boot/keys has existed" && return -1
|
||||
|
||||
mkdir u-boot/keys -p
|
||||
./rkbin/tools/rk_sign_tool kk --bits 2048 --out u-boot/keys
|
||||
ln -s privateKey.pem u-boot/keys/dev.key
|
||||
ln -s publicKey.pem u-boot/keys/dev.pubkey
|
||||
openssl req -batch -new -x509 -key u-boot/keys/dev.key -out u-boot/keys/dev.crt
|
||||
}
|
||||
|
||||
#=========================
|
||||
# build targets
|
||||
#=========================
|
||||
@ -1039,6 +1116,28 @@ for option in ${OPTIONS}; do
|
||||
multi-npu_boot) build_multi-npu_boot ;;
|
||||
info) build_info ;;
|
||||
app/*|external/*) build_pkg $option ;;
|
||||
createkeys) create_keys ;;
|
||||
security-rootfs)
|
||||
if [ "$RK_RAMDISK_SECURITY_BOOTUP" != "true" ]; then
|
||||
echo "No security paramter found in .BoardConfig.mk"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
build_rootfs
|
||||
build_ramboot
|
||||
build_uboot
|
||||
echo "please update rootfs.img / boot.img / uboot.img"
|
||||
;;
|
||||
security-boot)
|
||||
if [ "$RK_RAMDISK_SECURITY_BOOTUP" != "true" ]; then
|
||||
echo "No security paramter found in .BoardConfig.mk"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
build_kernel
|
||||
build_ramboot
|
||||
build_uboot
|
||||
;;
|
||||
*) usage ;;
|
||||
esac
|
||||
done
|
||||
|
||||
70
common/mk-dm.sh
Executable file
70
common/mk-dm.sh
Executable file
@ -0,0 +1,70 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
MODE=$1
|
||||
INPUT=`readlink -f $2`
|
||||
|
||||
OUTPUT=`dirname $INPUT`
|
||||
COMMON_DIR=$(cd `dirname $0`; pwd)
|
||||
if [ -h $0 ]
|
||||
then
|
||||
CMD=$(readlink $0)
|
||||
COMMON_DIR=$(dirname $CMD)
|
||||
fi
|
||||
cd $COMMON_DIR
|
||||
cd ../../..
|
||||
TOP_DIR=$(pwd)
|
||||
|
||||
BOARD_CONFIG=$TOP_DIR/device/rockchip/.BoardConfig.mk
|
||||
source $BOARD_CONFIG
|
||||
|
||||
TEMPDIR=${OUTPUT}/tempfile
|
||||
ROOTFS=${OUTPUT}/dmv.img
|
||||
ROOT_HASH=${TEMPDIR}/root.hash
|
||||
ROOT_HASH_OFFSET=${TEMPDIR}/root.offset
|
||||
INIT_FILE=${TOP_DIR}/buildroot/board/rockchip/common/security-ramdisk-overlay/init
|
||||
PARTITION_CMD=`cat $TOP_DIR/device/rockchip/${RK_TARGET_PRODUCT}/${RK_PARAMETER} | grep CMDLINE`
|
||||
|
||||
if [ -z "`echo ${PARTITION_CMD} | grep \(rootfs\)`" ]; then
|
||||
echo -e "\033[41;1m ERROR: no rootfs in parameter \033[0m"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
PARTITION_NUM=`echo ${PARTITION_CMD} | sed "s/\(rootfs\).*/,/g" | grep -o , | wc -l`
|
||||
ROOTFS_INFO=`ls -l ${INPUT}`
|
||||
|
||||
PACK=TRUE
|
||||
if [ -e ${OUTPUT}/rootfs.info ]; then
|
||||
if [ "`cat ${OUTPUT}/rootfs.info`" = "`ls -l ${INPUT}`" ]; then
|
||||
PACK=FALSE
|
||||
else
|
||||
echo "`ls -l $INPUT`" > ${OUTPUT}/rootfs.info
|
||||
fi
|
||||
else
|
||||
echo "`ls -l $INPUT`" > ${OUTPUT}/rootfs.info
|
||||
fi
|
||||
|
||||
if [ "$PACK" = "TRUE" ]; then
|
||||
test -d ${TEMPDIR} || mkdir -p ${TEMPDIR}
|
||||
cp ${INPUT} ${ROOTFS}
|
||||
ROOTFS_SIZE=`ls ${ROOTFS} -l | awk '{printf $5}'`
|
||||
HASH_OFFSET=$[(ROOTFS_SIZE / 1024 / 1024 + 2) * 1024 * 1024]
|
||||
tempfile=`mktemp /tmp/temp.XXXXXX`
|
||||
veritysetup --hash-offset=${HASH_OFFSET} format ${ROOTFS} ${ROOTFS} > ${tempfile}
|
||||
cat ${tempfile} | grep "Root hash" | awk '{printf $3}' > ${ROOT_HASH}
|
||||
|
||||
cp ${tempfile} ${TEMPDIR}/tempfile
|
||||
rm ${tempfile}
|
||||
echo ${HASH_OFFSET} > ${ROOT_HASH_OFFSET}
|
||||
fi
|
||||
|
||||
cp ${TOP_DIR}/buildroot/board/rockchip/common/security-ramdisk-overlay/init.in ${INIT_FILE}
|
||||
TMP_HASH=`cat ${ROOT_HASH}`
|
||||
TMP_OFFSET=`cat ${ROOT_HASH_OFFSET}`
|
||||
sed -i "s/OFFSET=/OFFSET=${TMP_OFFSET}/" ${INIT_FILE}
|
||||
sed -i "s/HASH=/HASH=${TMP_HASH}/" ${INIT_FILE}
|
||||
sed -i "s/BLOCK=/BLOCK=${PARTITION_NUM}/" ${INIT_FILE}
|
||||
|
||||
# sed -i "/exec \/sbin/i\#/usr/sbin/veritysetup --hash-offset=${TMP_OFFSET} create vroot /dev/mmcblk0p3 ${TMP_HASH}" ${INIT_FILE}
|
||||
sed -i "s/# exec busybox switch_root/exec busybox switch_root/" ${INIT_FILE}
|
||||
@ -1,6 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rk_ramdisk_security_bootup_normal()
|
||||
{
|
||||
echo "[$0] Build ramdisk with sha256 digest"
|
||||
ROOTFS_IMAGE_DIGEST=$(dirname $ROOTFS_IMAGE)/ramdisk.gz.digest
|
||||
|
||||
openssl dgst -sha256 -binary -out $ROOTFS_IMAGE_DIGEST $ROOTFS_IMAGE || exit 1
|
||||
rootfs_image_digest_size=$(du -b $ROOTFS_IMAGE |sed -r -e 's/[[:space:]]+.*$//')
|
||||
|
||||
if [ "$RK_ARCH" == "arm" ]; then
|
||||
kernel_dts_file="kernel/arch/arm/boot/dts/$RK_KERNEL_DTS.dts"
|
||||
else
|
||||
kernel_dts_file="kernel/arch/arm64/boot/dts/rockchip/$RK_KERNEL_DTS.dts"
|
||||
fi
|
||||
|
||||
cp $kernel_dts_file ${kernel_dts_file}.backup
|
||||
cat << EOF >> ${kernel_dts_file}
|
||||
&ramdisk_c {
|
||||
size = <$rootfs_image_digest_size>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
value = /incbin/("$ROOTFS_IMAGE_DIGEST");
|
||||
};
|
||||
};
|
||||
EOF
|
||||
./build.sh kernel
|
||||
mv ${kernel_dts_file}.backup $kernel_dts_file
|
||||
}
|
||||
|
||||
rk_ramdisk_build_init()
|
||||
{
|
||||
echo "Try to build init for $1"
|
||||
|
||||
SYSTEM_IMAGE=$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.squashfs
|
||||
if [ ! -e "$SYSTEM_IMAGE" ]; then
|
||||
echo "ERROR: Please build system first"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
$COMMON_DIR/mk-dm.sh dm-v $SYSTEM_IMAGE
|
||||
}
|
||||
|
||||
COMMON_DIR=$(cd `dirname $0`; pwd)
|
||||
if [ -h $0 ]
|
||||
then
|
||||
@ -56,6 +98,17 @@ fi
|
||||
|
||||
eval ROOTFS_IMAGE=\$${RAMDISK_TYPE}_IMG
|
||||
|
||||
if [ "$RK_RAMDISK_SECURITY_BOOTUP" = "true" ];then
|
||||
case "$RK_SYSTEM_CHECK_METHOD" in
|
||||
"DM-V")
|
||||
rk_ramdisk_build_init "DM-V"
|
||||
;;
|
||||
# TODO: add DM-S for system encrypt
|
||||
*)
|
||||
echo "do nothing ($RK_SYSTEM_CHECK_METHOD)"
|
||||
esac
|
||||
fi
|
||||
|
||||
# build ramdisk
|
||||
echo "====Start build $RAMDISK_CFG===="
|
||||
$TOP_DIR/buildroot/utils/brmake
|
||||
@ -81,30 +134,9 @@ fi
|
||||
echo -n "pack $RAMDISK_IMG..."
|
||||
if [ -f "$TOP_DIR/device/rockchip/$RK_TARGET_PRODUCT/$RK_RECOVERY_FIT_ITS" ];then
|
||||
if [ "$RK_RAMDISK_SECURITY_BOOTUP" = "true" ];then
|
||||
echo "[$0] Build ramdisk with sha256 digest"
|
||||
ROOTFS_IMAGE_DIGEST=$(dirname $ROOTFS_IMAGE)/ramdisk.gz.digest
|
||||
|
||||
openssl dgst -sha256 -binary -out $ROOTFS_IMAGE_DIGEST $ROOTFS_IMAGE || exit 1
|
||||
rootfs_image_digest_size=$(du -b $ROOTFS_IMAGE |sed -r -e 's/[[:space:]]+.*$//')
|
||||
|
||||
if [ "$RK_ARCH" == "arm" ]; then
|
||||
kernel_dts_file="kernel/arch/arm/boot/dts/$RK_KERNEL_DTS.dts"
|
||||
else
|
||||
kernel_dts_file="kernel/arch/arm64/boot/dts/rockchip/$RK_KERNEL_DTS.dts"
|
||||
if [ -z "$RK_SYSTEM_CHECK_METHOD" ]; then
|
||||
rk_ramdisk_security_bootup_normal $0
|
||||
fi
|
||||
|
||||
cp $kernel_dts_file ${kernel_dts_file}.backup
|
||||
cat << EOF >> ${kernel_dts_file}
|
||||
&ramdisk_c {
|
||||
size = <$rootfs_image_digest_size>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
value = /incbin/("$ROOTFS_IMAGE_DIGEST");
|
||||
};
|
||||
};
|
||||
EOF
|
||||
./build.sh kernel
|
||||
mv ${kernel_dts_file}.backup $kernel_dts_file
|
||||
fi
|
||||
|
||||
$COMMON_DIR/mk-fitimage.sh $TARGET_IMAGE $TOP_DIR/device/rockchip/$RK_TARGET_PRODUCT/$RK_RECOVERY_FIT_ITS $ROOTFS_IMAGE $KERNEL_IMAGE
|
||||
|
||||
@ -340,6 +340,16 @@ if [ "$RK_RAMDISK_SECURITY_BOOTUP" = "true" ];then
|
||||
then
|
||||
echo -n "Enable ramdisk security bootup, create boot.img..."
|
||||
ln -rsf $TOP_DIR/u-boot/boot.img $ROCKDEV/boot.img
|
||||
if [ -e ${ROCKDEV}/recovery.img ]; then
|
||||
echo "Enable ramdisk security bootup, create recovery.img..."
|
||||
ln -rsf $TOP_DIR/u-boot/recovery.img $ROCKDEV/recovery.img
|
||||
fi
|
||||
|
||||
if [ -e $TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/dmv.img ]; then
|
||||
echo "Enable ramdisk security bootup, create rootfs.img..."
|
||||
ln -rsf $TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT/images/dmv.img $ROCKDEV/rootfs.img
|
||||
fi
|
||||
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $TOP_DIR/u-boot/boot.img not found!"
|
||||
|
||||
91
common/post-build.sh
Executable file
91
common/post-build.sh
Executable file
@ -0,0 +1,91 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
TARGET_DIR=$1
|
||||
shift
|
||||
|
||||
RK_LEGACY_PARTITIONS=" \
|
||||
${RK_OEM_FS_TYPE:+oem:/oem:${RK_OEM_FS_TYPE}}
|
||||
${RK_USERDATA_FS_TYPE:+userdata:/userdata:${RK_USERDATA_FS_TYPE}}
|
||||
"
|
||||
|
||||
# <dev>:<mount point>:<fs type>:<source dir>, for example:
|
||||
# RK_EXTRA_PARTITIONS="oem:/oem:ext2:oem_normal userdata:/userdata:vfat:userdata_empty"
|
||||
RK_EXTRA_PARTITIONS=${RK_EXTRA_PARTITIONS:-${RK_LEGACY_PARTITIONS}}
|
||||
|
||||
function fixup_root()
|
||||
{
|
||||
echo "Fixing up rootfs type: $1"
|
||||
|
||||
FS_TYPE=$1
|
||||
sed -i "s#\([[:space:]]/[[:space:]]\+\)\w\+#\1${FS_TYPE}#" \
|
||||
${TARGET_DIR}/etc/fstab
|
||||
}
|
||||
|
||||
function fixup_part()
|
||||
{
|
||||
echo "Fixing up partition: $@"
|
||||
|
||||
if echo $1 | grep -qE "^/"; then
|
||||
DEV=$1
|
||||
else
|
||||
DEV="PARTLABEL=$1"
|
||||
fi
|
||||
|
||||
MOUNT=${2:-/$1}
|
||||
FS_TYPE=${3:-auto}
|
||||
OPT=${4:-defaults}
|
||||
|
||||
sed -i "/[[:space:]]${MOUNT//\//\\\/}[[:space:]]/d" ${TARGET_DIR}/etc/fstab
|
||||
|
||||
echo -e "${DEV}\t${MOUNT}\t${FS_TYPE}\t${OPT}\t0 2" >> \
|
||||
${TARGET_DIR}/etc/fstab
|
||||
|
||||
mkdir -p ${TARGET_DIR}/${MOUNT}
|
||||
}
|
||||
|
||||
function fixup_fstab()
|
||||
{
|
||||
echo "Fixing up /etc/fstab..."
|
||||
|
||||
case "${RK_ROOTFS_TYPE}" in
|
||||
ext[234])
|
||||
fixup_root ${RK_ROOTFS_TYPE}
|
||||
;;
|
||||
*)
|
||||
fixup_root auto
|
||||
;;
|
||||
esac
|
||||
|
||||
for part in ${RK_EXTRA_PARTITIONS}; do
|
||||
fixup_part $(echo "${part}" | xargs -d':')
|
||||
done
|
||||
}
|
||||
|
||||
function add_build_info()
|
||||
{
|
||||
[ -f ${TARGET_DIR}/etc/os-release ] && \
|
||||
sed -i "/^BUILD_ID=/d" ${TARGET_DIR}/etc/os-release
|
||||
|
||||
echo "Adding build-info to /etc/os-release..."
|
||||
echo "BUILD_INFO=\"$(whoami)@$(hostname) $(date)${@:+ - $@}\"" >> \
|
||||
${TARGET_DIR}/etc/os-release
|
||||
}
|
||||
|
||||
function add_dirs_and_links()
|
||||
{
|
||||
echo "Adding dirs and links..."
|
||||
|
||||
cd ${TARGET_DIR}
|
||||
mkdir -p mnt/sdcard mnt/usb0
|
||||
ln -sf media/usb0 udisk
|
||||
ln -sf mnt/sdcard sdcard
|
||||
ln -sf userdata data
|
||||
}
|
||||
|
||||
echo "Executing $(basename $0)..."
|
||||
|
||||
add_build_info $@
|
||||
[ -f ${TARGET_DIR}/etc/fstab ] && fixup_fstab
|
||||
add_dirs_and_links
|
||||
|
||||
exit 0
|
||||
@ -30,7 +30,7 @@ fi
|
||||
|
||||
if [ $FLASH_TYPE = all ]
|
||||
then
|
||||
$UPGRADETOOL ul $LOADER
|
||||
$UPGRADETOOL ul -noreset $LOADER
|
||||
$UPGRADETOOL di -p $PARAMETER
|
||||
$UPGRADETOOL di -uboot $UBOOT
|
||||
$UPGRADETOOL di -trust $TRUST
|
||||
@ -45,7 +45,7 @@ fi
|
||||
|
||||
if [ $FLASH_TYPE = tb ]
|
||||
then
|
||||
$UPGRADETOOL ul $LOADER
|
||||
$UPGRADETOOL ul -noreset $LOADER
|
||||
$UPGRADETOOL di -p $PARAMETER
|
||||
$UPGRADETOOL di -uboot $UBOOT
|
||||
$UPGRADETOOL di -b $BOOT
|
||||
@ -53,7 +53,7 @@ then
|
||||
fi
|
||||
|
||||
if [ $FLASH_TYPE = norecovery ]; then
|
||||
$UPGRADETOOL ul $LOADER
|
||||
$UPGRADETOOL ul -noreset $LOADER
|
||||
$UPGRADETOOL di -p $PARAMETER
|
||||
$UPGRADETOOL di -uboot $UBOOT
|
||||
$UPGRADETOOL di -trust $TRUST
|
||||
|
||||
1
common/yocto-install.sh
Symbolic link
1
common/yocto-install.sh
Symbolic link
@ -0,0 +1 @@
|
||||
post-build.sh
|
||||
@ -7,4 +7,8 @@ export enable_encoder_debug=0
|
||||
|
||||
export rt_vo_disable_vop=0
|
||||
|
||||
amixer -c 0 sset "Playback Path" SPK
|
||||
|
||||
amixer -c 0 sset "Capture MIC Path" "Main Mic"
|
||||
|
||||
LD_PRELOAD=/oem/libthird_media.so cvr_app &
|
||||
|
||||
BIN
oem/oem_cvr/cvr_res/sound/takephoto.wav
Normal file
BIN
oem/oem_cvr/cvr_res/sound/takephoto.wav
Normal file
Binary file not shown.
@ -33,6 +33,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=px30
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-px30-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -33,6 +33,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=px30
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-px30-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -33,6 +33,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=px30
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-px30-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -33,6 +33,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=px30
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-px30-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -28,6 +28,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3288
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3288-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -28,6 +28,10 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3288
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3288-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set oem partition type, including ext2 squashfs
|
||||
|
||||
@ -28,6 +28,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3288
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3288-evb-act8846
|
||||
# rootfs image path
|
||||
|
||||
@ -33,6 +33,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3326
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3326-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -33,6 +33,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3326
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3326-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -28,6 +28,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3328
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3328-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -28,6 +28,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399-sapphire-excavator
|
||||
# rootfs image path
|
||||
|
||||
@ -28,6 +28,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399-sapphire-excavator
|
||||
# rootfs image path
|
||||
|
||||
@ -30,6 +30,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399-sapphire-excavator
|
||||
# rootfs image path
|
||||
|
||||
@ -28,6 +28,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399-sapphire-excavator
|
||||
# rootfs image path
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
FIRMWARE_VER: 1.0.0
|
||||
FIRMWARE_VER: 1.0
|
||||
MACHINE_MODEL: RK3399
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3399
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3399
|
||||
MACHINE: 0xffffffff
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00010000@0x0001a000(recovery),0x00010000@0x0002a000(backup),0x00020000@0x0003a000(oem),0x00c00000@0x0005a000(rootfs),-@0x00c5a000(userdata:grow)
|
||||
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00020000@0x0000a000(boot),0x00040000@0x0002a000(recovery),0x00010000@0x0006a000(backup),0x01c00000@0x0007a000(rootfs),0x00040000@0x01c7a000(oem),-@0x01d1a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
|
||||
@ -30,6 +30,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399pro
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399pro-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -30,6 +30,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399pro
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399pro-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -30,6 +30,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399pro
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399pro-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -30,6 +30,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399pro
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399pro-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -30,6 +30,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3399pro
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3399pro-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3566-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3566-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=squashfs
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ubi
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# Set debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=buster
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3568
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3568-evb1-ddr4-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter-buildroot-fit.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk356x
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk356x_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk356x
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3568-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
1
rk356x/BoardConfig.mk
Symbolic link
1
rk356x/BoardConfig.mk
Symbolic link
@ -0,0 +1 @@
|
||||
BoardConfig-rk3568-evb1-ddr4-v10.mk
|
||||
@ -8,5 +8,5 @@ MACHINE: 0xffffffff
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00010000@0x00008000(boot),0x00010000@0x00018000(recovery),0x00010000@0x00028000(backup),0x00c00000@0x00038000(rootfs),0x00040000@0x00c38000(oem),-@0x00c78000(userdata:grow)
|
||||
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00020000@0x00008000(boot),0x00020000@0x00028000(recovery),0x00010000@0x00048000(backup),0x00c00000@0x00058000(rootfs),0x00040000@0x00c58000(oem),-@0x00c98000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588-evb1-lp4-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588_ipc
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=bullseye
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=
|
||||
# rootfs image path
|
||||
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=bullseye
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588-evb2-lp4-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=bullseye
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588-evb4-lp4-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588-evb5-lp4-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588-evb6-lp4-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
@ -36,6 +36,8 @@ export RK_JOBS=12
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# debian version (debian10: buster, debian11: bullseye)
|
||||
export RK_DEBIAN_VERSION=bullseye
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588s-evb2-lp5-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
11
rk3588/BoardConfig-security-base.mk
Normal file
11
rk3588/BoardConfig-security-base.mk
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
export RK_LOADER_UPDATE_SPL=true
|
||||
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=rockchip_rk3588_ramboot
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=CPIO
|
||||
# Define enable RK SECUREBOOT
|
||||
export RK_RAMDISK_SECURITY_BOOTUP=true
|
||||
export RK_SECURITY_OTP_DEBUG=true
|
||||
export RK_SYSTEM_CHECK_METHOD=DM-V
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588s-evb3-lp4x-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target arch
|
||||
export RK_ARCH=arm64
|
||||
# Uboot defconfig
|
||||
export RK_UBOOT_DEFCONFIG=rk3588
|
||||
# Uboot image format type: fit(flattened image tree)
|
||||
export RK_UBOOT_FORMAT_TYPE=fit
|
||||
# Kernel defconfig
|
||||
export RK_KERNEL_DEFCONFIG=rockchip_linux_defconfig
|
||||
# Kernel defconfig fragment
|
||||
export RK_KERNEL_DEFCONFIG_FRAGMENT=
|
||||
# Kernel dts
|
||||
export RK_KERNEL_DTS=rk3588s-evb4-lp4x-v10-linux
|
||||
# boot image type
|
||||
export RK_BOOT_IMG=boot.img
|
||||
# kernel image path
|
||||
export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
|
||||
# kernel image format type: fit(flattened image tree)
|
||||
export RK_KERNEL_FIT_ITS=boot.its
|
||||
# parameter for GPT table
|
||||
export RK_PARAMETER=parameter.txt
|
||||
# Buildroot config
|
||||
export RK_CFG_BUILDROOT=rockchip_rk3588
|
||||
# Recovery config
|
||||
export RK_CFG_RECOVERY=rockchip_rk3588_recovery
|
||||
# Recovery image format type: fit(flattened image tree)
|
||||
export RK_RECOVERY_FIT_ITS=boot4recovery.its
|
||||
# ramboot config
|
||||
export RK_CFG_RAMBOOT=
|
||||
# Pcba config
|
||||
export RK_CFG_PCBA=
|
||||
# Build jobs
|
||||
export RK_JOBS=12
|
||||
# target chip
|
||||
export RK_TARGET_PRODUCT=rk3588
|
||||
# Set rootfs type, including ext2 ext4 squashfs
|
||||
export RK_ROOTFS_TYPE=ext4
|
||||
# yocto machine
|
||||
export RK_YOCTO_MACHINE=rockchip-rk3588-evb
|
||||
# rootfs image path
|
||||
export RK_ROOTFS_IMG=rockdev/rootfs.${RK_ROOTFS_TYPE}
|
||||
# Set ramboot image type
|
||||
export RK_RAMBOOT_TYPE=
|
||||
# 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
|
||||
#OEM config
|
||||
export RK_OEM_DIR=oem_normal
|
||||
# OEM build on buildroot
|
||||
#export RK_OEM_BUILDIN_BUILDROOT=YES
|
||||
#userdata config
|
||||
export RK_USERDATA_DIR=userdata_normal
|
||||
#misc image
|
||||
export RK_MISC=wipe_all-misc.img
|
||||
#choose enable distro module
|
||||
export RK_DISTRO_MODULE=
|
||||
# Define pre-build script for this board
|
||||
export RK_BOARD_PRE_BUILD_SCRIPT=app-build.sh
|
||||
Reference in New Issue
Block a user