docs rkbin tools device init
This commit is contained in:
parent
45819e37e4
commit
d47aa02153
13
device/rockchip/.chips/px30/parameter-robot.txt
Normal file
13
device/rockchip/.chips/px30/parameter-robot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 1.4.0
|
||||
MACHINE_MODEL: PX30
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: PX30
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: px30
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00000800@0x00008000(misc),0x00004000@0x00008800(boot),0x00006000@0x0000c800(recovery),0x0000e000@0x00012800(oem),0x00040000@0x00020800(rootfs),-@0x00060800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/px30/parameter.txt
Normal file
13
device/rockchip/.chips/px30/parameter.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 1.0.0
|
||||
MACHINE_MODEL: PX30
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: PX30
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: px30
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=: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)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
1
device/rockchip/.chips/px30/rockchip_defconfig
Symbolic link
1
device/rockchip/.chips/px30/rockchip_defconfig
Symbolic link
@ -0,0 +1 @@
|
||||
rockchip_px30_evb_ddr3_v11_defconfig
|
||||
@ -0,0 +1,4 @@
|
||||
RK_BUILDROOT_BASE_CFG="px30_32"
|
||||
RK_YOCTO_CFG="rockchip-px30-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr3-v10-linux"
|
||||
@ -0,0 +1,3 @@
|
||||
RK_YOCTO_CFG="rockchip-px30-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr3-v10-linux"
|
||||
@ -0,0 +1,4 @@
|
||||
RK_BUILDROOT_BASE_CFG="px30_32"
|
||||
RK_YOCTO_CFG="rockchip-px30-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr3-v11-linux"
|
||||
@ -0,0 +1,3 @@
|
||||
RK_YOCTO_CFG="rockchip-px30-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr3-v11-linux"
|
||||
@ -0,0 +1,4 @@
|
||||
RK_BUILDROOT_BASE_CFG="px30_32"
|
||||
RK_YOCTO_CFG="rockchip-px30-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr4-v10-linux"
|
||||
@ -0,0 +1,3 @@
|
||||
RK_YOCTO_CFG="rockchip-px30-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr4-v10-linux"
|
||||
@ -0,0 +1,7 @@
|
||||
RK_BUILDROOT_BASE_CFG="px30_robot64"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_CFG="px30_linux_robot_defconfig"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr3-v10-robot-linux"
|
||||
RK_RECOVERY_BASE_CFG="px30_robot"
|
||||
RK_PARAMETER="parameter-robot.txt"
|
||||
@ -0,0 +1,7 @@
|
||||
RK_BUILDROOT_BASE_CFG="px30_robot64_no_gpu"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_CFG="px30_linux_robot_defconfig"
|
||||
RK_KERNEL_DTS_NAME="px30-evb-ddr3-v10-robot-no-gpu-linux"
|
||||
RK_RECOVERY_BASE_CFG="px30_robot"
|
||||
RK_PARAMETER="parameter-robot.txt"
|
||||
13
device/rockchip/.chips/px3se/parameter-buildroot.txt
Normal file
13
device/rockchip/.chips/px3se/parameter-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3128
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3128
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3128
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00010000@0x0001a000(recovery),0x00010000@0x0002a000(backup),0x00020000@0x0003a000(oem),0x00100000@0x0005a000(rootfs),-@0x0015a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/px3se/parameter-nand.txt
Normal file
13
device/rockchip/.chips/px3se/parameter-nand.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3128
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3128
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3128
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00006000@0x0000a000(boot),0x0000a000@0x00010000(recovery),0x00002000@0x0001a000(backup),0x00002000@0x0001c000(oem),0x00010000@0x0001e000(rootfs),-@0x0002e000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
4
device/rockchip/.chips/px3se/rockchip_defconfig
Normal file
4
device/rockchip/.chips/px3se/rockchip_defconfig
Normal file
@ -0,0 +1,4 @@
|
||||
RK_YOCTO_CFG="rockchip-px3se-evb"
|
||||
RK_WIFIBT_CHIP="RTL8723DS"
|
||||
RK_KERNEL_DTS_NAME="px3se-evb"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
5
device/rockchip/.chips/px3se/rockchip_nand_defconfig
Normal file
5
device/rockchip/.chips/px3se/rockchip_nand_defconfig
Normal file
@ -0,0 +1,5 @@
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_KERNEL_DTS_NAME="px3se-evb"
|
||||
RK_EXTRA_PARTITION_1_SRC="empty"
|
||||
RK_EXTRA_PARTITION_2_SRC="empty"
|
||||
RK_PARAMETER="parameter-nand.txt"
|
||||
13
device/rockchip/.chips/rk1806/parameter-ab-buildroot.txt
Normal file
13
device/rockchip/.chips/rk1806/parameter-ab-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK1808
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK1808
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 1808
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00008000@0x0000a000(boot_a),0x00008000@0x00012000(boot_b),0x00200000@0x0001a000(system_a),0x00200000@0x0021a000(system_b),0x00020000@0x0041a000(oem),-@0x0043a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk1806/parameter-buildroot.txt
Normal file
13
device/rockchip/.chips/rk1806/parameter-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK1808
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK1808
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 1808
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00010000@0x0001a000(recovery),0x00010000@0x0002a000(backup),0x00020000@0x0003a000(oem),0x00200000@0x0005a000(rootfs),-@0x0025a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
@ -0,0 +1,3 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk1806_ficial_gate"
|
||||
RK_KERNEL_DTS_NAME="rk1806-ficial-gate-v10"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
@ -0,0 +1,5 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk1806_thunder_boot"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG="rk1806_linux_thunder_boot_defconfig"
|
||||
RK_KERNEL_DTS_NAME="rk1806-thunder-boot"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
13
device/rockchip/.chips/rk1808/parameter-ab-buildroot.txt
Normal file
13
device/rockchip/.chips/rk1808/parameter-ab-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK1808
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK1808
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 1808
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00008000@0x0000a000(boot_a),0x00008000@0x00012000(boot_b),0x00200000@0x0001a000(system_a),0x00200000@0x0021a000(system_b),0x00020000@0x0041a000(oem),-@0x0043a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk1808/parameter-buildroot.txt
Normal file
13
device/rockchip/.chips/rk1808/parameter-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK1808
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK1808
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 1808
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00010000@0x0001a000(recovery),0x00010000@0x0002a000(backup),0x00020000@0x0003a000(oem),0x00300000@0x0005a000(rootfs),-@0x0035a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
12
device/rockchip/.chips/rk1808/parameter-compute-stick.txt
Normal file
12
device/rockchip/.chips/rk1808/parameter-compute-stick.txt
Normal file
@ -0,0 +1,12 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK1808
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK1808
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 1808
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=:0x000001000@0x00002000(uboot),0x000001000@0x00003000(trust),-@0x00004000(boot:grow)
|
||||
@ -0,0 +1,10 @@
|
||||
firmware=update.img
|
||||
loader=loader.bin
|
||||
parameter=parameter
|
||||
misc=
|
||||
boot=boot.img
|
||||
kernel=kernel.img
|
||||
system=system.img
|
||||
recovery=recovery.img
|
||||
rockusb_id=
|
||||
msc_id=
|
||||
Binary file not shown.
@ -0,0 +1,10 @@
|
||||
firmware=update.img
|
||||
loader=loader.bin
|
||||
parameter=parameter
|
||||
misc=
|
||||
boot=boot.img
|
||||
kernel=kernel.img
|
||||
system=system.img
|
||||
recovery=recovery.img
|
||||
rockusb_id=
|
||||
msc_id=
|
||||
Binary file not shown.
@ -0,0 +1,10 @@
|
||||
firmware=update.img
|
||||
loader=loader.bin
|
||||
parameter=parameter
|
||||
misc=
|
||||
boot=boot.img
|
||||
kernel=kernel.img
|
||||
system=system.img
|
||||
recovery=recovery.img
|
||||
rockusb_id=
|
||||
msc_id=
|
||||
Binary file not shown.
47
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/copy_rk1808_imgs.sh
Executable file
47
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/copy_rk1808_imgs.sh
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR=$(dirname $(realpath $BASH_SOURCE))
|
||||
TOP_DIR=$(realpath $SCRIPT_DIR/../../../..)
|
||||
cd $TOP_DIR
|
||||
|
||||
OUT_DIR=$TOP_DIR/device/rockchip/rk1808/rk1808_compute_stick_tool
|
||||
LOADER=$TOP_DIR/u-boot/*_loader_v*.bin
|
||||
UBOOT=$TOP_DIR/u-boot/uboot.img
|
||||
TRUST=$TOP_DIR/u-boot/trust.img
|
||||
RAMBOOT_IMG=$TOP_DIR/buildroot/output/*/images/ramboot.img
|
||||
|
||||
if [ -f $LOADER ]
|
||||
then
|
||||
echo -n "create loader..."
|
||||
cp $LOADER $OUT_DIR/MiniLoaderAll.bin
|
||||
echo "done."
|
||||
else
|
||||
echo -e "\e[31m error: $LOADER not found,or there are multiple loaders! \e[0m"
|
||||
fi
|
||||
|
||||
if [ -f $UBOOT ]
|
||||
then
|
||||
echo -n "create uboot..."
|
||||
cp $UBOOT $OUT_DIR/uboot.img
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $UBOOT not found!"
|
||||
fi
|
||||
|
||||
if [ -f $TRUST ]
|
||||
then
|
||||
echo -n "create trust..."
|
||||
cp $TRUST $OUT_DIR/trust.img
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $TRUST not found!"
|
||||
fi
|
||||
|
||||
if [ -f $RAMBOOT_IMG ]
|
||||
then
|
||||
echo -n "create boot..."
|
||||
cp $RAMBOOT_IMG $OUT_DIR/boot.img
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $RAMBOOT_IMG not found!"
|
||||
fi
|
||||
126
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/npu_upgrade
Executable file
126
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/npu_upgrade
Executable file
@ -0,0 +1,126 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROGRAM=${0##*/}
|
||||
SCRIPT_ROOT=$(dirname $(readlink -f "$0"))
|
||||
|
||||
if [ $# -ne 4 ]; then
|
||||
echo 'Usage: '$PROGRAM' loader uboot trust boot'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
cat /proc/cpuinfo |grep -E "Intel|AMD"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "use arm version"
|
||||
LOG_DIR=~/.rockchip/upgrade_tool/aarch64/log
|
||||
CONFIG_INI=$SCRIPT_ROOT/aarch64_release/config.ini
|
||||
UPGRADE_TOOL=$SCRIPT_ROOT/aarch64_release/upgrade_tool
|
||||
else
|
||||
LOG_DIR=~/.rockchip/upgrade_tool/x64/log
|
||||
CONFIG_INI=$SCRIPT_ROOT/x64_release/config.ini
|
||||
UPGRADE_TOOL=$SCRIPT_ROOT/x64_release/upgrade_tool
|
||||
fi
|
||||
|
||||
mkdir -p $LOG_DIR
|
||||
grep log_dir $CONFIG_INI > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "log_dir=$(realpath $LOG_DIR)" >> $CONFIG_INI
|
||||
fi
|
||||
|
||||
LOADER=$1
|
||||
UBOOT=$2
|
||||
TRUST=$3
|
||||
BOOT=$4
|
||||
UBOOT_ADDR=0x20000
|
||||
TRUST_ADDR=0x20800
|
||||
BOOT_ADDR=0x21000
|
||||
|
||||
if [ ! -f $UPGRADE_TOOL ]; then
|
||||
echo $UPGRADE_TOOL 'is not existed!'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ ! -f $LOADER ]; then
|
||||
echo $LOADER 'is not existed!'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ ! -f $UBOOT ]; then
|
||||
echo $UBOOT 'is not existed!'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ ! -f $TRUST ]; then
|
||||
echo $TRUST 'is not existed!'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ ! -f $BOOT ]; then
|
||||
echo $BOOT 'is not existed!'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
echo 'start to wait device...'
|
||||
i=0
|
||||
while [ $i -lt 5 ]; do
|
||||
$UPGRADE_TOOL ld > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
i=$((i+1))
|
||||
echo $i
|
||||
sleep 0.01
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ $i -ge 5 ]; then
|
||||
echo 'failed to wait device!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'device is ready'
|
||||
|
||||
echo 'start to download loader...'
|
||||
$UPGRADE_TOOL db $LOADER > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'failed to download loader!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'download loader ok'
|
||||
|
||||
echo 'start to wait loader...'
|
||||
$UPGRADE_TOOL td > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'failed to wait loader!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'loader is ready'
|
||||
|
||||
echo 'start to write uboot...'
|
||||
$UPGRADE_TOOL wl $UBOOT_ADDR $UBOOT > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'failed to write uboot!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'write uboot ok'
|
||||
|
||||
echo 'start to write trust...'
|
||||
$UPGRADE_TOOL wl $TRUST_ADDR $TRUST > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'failed to write trust!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'write trust ok'
|
||||
|
||||
echo 'start to write boot...'
|
||||
$UPGRADE_TOOL wl $BOOT_ADDR $BOOT > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'failed to write boot!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'write boot ok'
|
||||
|
||||
echo 'start to run system...'
|
||||
$UPGRADE_TOOL rs $UBOOT_ADDR $TRUST_ADDR $BOOT_ADDR $UBOOT $TRUST $BOOT > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'failed to run system!'
|
||||
exit -1
|
||||
fi
|
||||
echo 'run system ok'
|
||||
38
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/rknputools/linux.sh
Executable file
38
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/rknputools/linux.sh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
TOOLS_ARM_DIR=./build
|
||||
TOOLS_X86_DIR=./build
|
||||
USR_LIB_DIR=/usr/lib
|
||||
USR_LIB64_DIR=/usr/lib64
|
||||
|
||||
cat /proc/cpuinfo | grep -E "Intel|AMD"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "use arm version"
|
||||
if [ -d "$TOOLS_ARM_DIR" ]; then
|
||||
cp $TOOLS_ARM_DIR/* /tmp/
|
||||
chmod 777 /tmp/rknn_ssd
|
||||
chmod 777 /tmp/rknn_mobilenet
|
||||
chmod 777 /tmp/npu_transfer_proxy
|
||||
if [ -d "$USR_LIB64_DIR" ]
|
||||
then
|
||||
sudo cp -dpR $TOOLS_ARM_DIR/lib64/* $USR_LIB64_DIR/
|
||||
else
|
||||
sudo cp -dpR $TOOLS_ARM_DIR/lib64/* $USR_LIB_DIR/
|
||||
fi
|
||||
else
|
||||
echo "warning: $TOOLS_ARM_DIR does not exist"
|
||||
fi
|
||||
else
|
||||
echo "use x86 version"
|
||||
if [ -d "$TOOLS_X86_DIR" ]; then
|
||||
cp $TOOLS_X86_DIR/* /tmp/
|
||||
cp $TOOLS_X86_DIR/lib64/* /tmp/
|
||||
chmod 777 /tmp/rknn_ssd
|
||||
chmod 777 /tmp/rknn_mobilenet
|
||||
chmod 777 /tmp/npu_transfer_proxy
|
||||
#export LD_LIBRARY_PATH=/tmp
|
||||
else
|
||||
echo "warning: $TOOLS_X86_DIR does not exist"
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
export RK_RKNN_API_PLT=Linux
|
||||
export RK_RKNN_API_ARCH=arm
|
||||
export RK_NPU_TRANSFER_PROXY_ARCH=linux-aarch64
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$(dirname $(realpath $BASH_SOURCE))
|
||||
TOP_DIR=$(realpath $SCRIPT_DIR/../../../../..)
|
||||
cd $TOP_DIR
|
||||
|
||||
CURRENT_DIR=$TOP_DIR/device/rockchip/rk1808/rk1808_compute_stick_tool/rknputools
|
||||
MKTOOLSFILE=$CURRENT_DIR/mkrknputools.sh
|
||||
RKNN_API_DIR=$TOP_DIR/external/RKNPUTools/rknn-api/$RK_RKNN_API_PLT
|
||||
NPU_TRANSFER_DIR=$TOP_DIR/external/RKNPUTools/npu_transfer_proxy/$RK_NPU_TRANSFER_PROXY_ARCH
|
||||
|
||||
if [ -d "$RKNN_API_DIR" ]
|
||||
then
|
||||
if [ -d "$NPU_TRANSFER_DIR" ]
|
||||
then
|
||||
if [ -f "$MKTOOLSFILE" ]; then
|
||||
$MKTOOLSFILE $RK_RKNN_API_PLT $RK_RKNN_API_ARCH $RK_NPU_TRANSFER_PROXY_ARCH
|
||||
fi
|
||||
else
|
||||
echo "warning: $NPU_TRANSFER_DIR not found!"
|
||||
fi
|
||||
else
|
||||
echo "warning: $RKNN_API_DIR not found!"
|
||||
fi
|
||||
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
export RK_RKNN_API_PLT=Linux
|
||||
export RK_RKNN_API_ARCH=x86
|
||||
export RK_NPU_TRANSFER_PROXY_ARCH=linux-x86_64
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$(dirname $(realpath $BASH_SOURCE))
|
||||
TOP_DIR=$(realpath $SCRIPT_DIR/../../../../..)
|
||||
cd $TOP_DIR
|
||||
|
||||
CURRENT_DIR=$TOP_DIR/device/rockchip/rk1808/rk1808_compute_stick_tool/rknputools
|
||||
MKTOOLSFILE=$CURRENT_DIR/mkrknputools.sh
|
||||
RKNN_API_DIR=$TOP_DIR/external/RKNPUTools/rknn-api/$RK_RKNN_API_PLT
|
||||
NPU_TRANSFER_DIR=$TOP_DIR/external/RKNPUTools/npu_transfer_proxy/$RK_NPU_TRANSFER_PROXY_ARCH
|
||||
|
||||
if [ -d "$RKNN_API_DIR" ]
|
||||
then
|
||||
if [ -d "$NPU_TRANSFER_DIR" ]
|
||||
then
|
||||
if [ -f "$MKTOOLSFILE" ]; then
|
||||
$MKTOOLSFILE $RK_RKNN_API_PLT $RK_RKNN_API_ARCH $RK_NPU_TRANSFER_PROXY_ARCH
|
||||
fi
|
||||
else
|
||||
echo "warning: $NPU_TRANSFER_DIR not found!"
|
||||
fi
|
||||
else
|
||||
echo "warning: $RKNN_API_DIR not found!"
|
||||
fi
|
||||
@ -0,0 +1,87 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$(dirname $(realpath $BASH_SOURCE))
|
||||
TOP_DIR=$(realpath $SCRIPT_DIR/../../../../..)
|
||||
cd $TOP_DIR
|
||||
|
||||
BUILD_DIR=build
|
||||
TOOLS_OUT_DIR=$TOP_DIR/device/rockchip/rk1808/rk1808_compute_stick_tool/rknputools/$BUILD_DIR
|
||||
LIB_OUT_DIR=$TOOLS_OUT_DIR/lib64
|
||||
|
||||
RKNPUTOOLS_DIR=$TOP_DIR/external/RKNPUTools
|
||||
RKNN_API_DIR=$RKNPUTOOLS_DIR/rknn-api/$RK_RKNN_API_PLT
|
||||
RKNN_SDK_DIR=$RKNN_API_DIR/rknn_api_sdk
|
||||
RKNN_MOBILENET=$RKNN_SDK_DIR/$BUILD_DIR/rknn_mobilenet
|
||||
RKNN_SSD=$RKNN_SDK_DIR/$BUILD_DIR/rknn_ssd
|
||||
NPU_TRANSFER_PROXY=$RKNPUTOOLS_DIR/npu_transfer_proxy/$RK_NPU_TRANSFER_PROXY_ARCH/npu_transfer_proxy
|
||||
|
||||
|
||||
if [ -d "$TOOLS_OUT_DIR" ]; then
|
||||
echo "delete dir $BUILD_DIR"
|
||||
rm -rf $TOOLS_OUT_DIR
|
||||
fi
|
||||
mkdir -p $LIB_OUT_DIR
|
||||
|
||||
# Require buildroot host tools to do image packing.
|
||||
if [ ! -d "$TARGET_OUTPUT_DIR" ]; then
|
||||
echo "Source buildroot/build/envsetup.sh"
|
||||
source $TOP_DIR/buildroot/build/envsetup.sh $RK_BUILDROOT_CFG
|
||||
fi
|
||||
|
||||
if [ -d $RKNN_SDK_DIR ]; then
|
||||
cd $RKNN_SDK_DIR
|
||||
if [ -d $BUILD_DIR ]; then
|
||||
rm -rf $BUILD_DIR
|
||||
fi
|
||||
mkdir $BUILD_DIR; cd $BUILD_DIR
|
||||
|
||||
echo -n "compile $RK_RKNN_API_ARCH rknn api..."
|
||||
if [ "$RK_RKNN_API_ARCH" == "arm" ]
|
||||
then
|
||||
cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ ..
|
||||
make
|
||||
else
|
||||
cmake ..; make
|
||||
fi
|
||||
|
||||
echo "copy $RK_RKNN_API_PLT images and resource to $BUILD_DIR"
|
||||
if [ -f $RKNN_MOBILENET ]
|
||||
then
|
||||
echo -n "copy rknn_mobilenet..."
|
||||
cp $RKNN_MOBILENET $TOOLS_OUT_DIR/rknn_mobilenet
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $RKNN_MOBILENET not found!"
|
||||
fi
|
||||
|
||||
if [ -f $RKNN_SSD ]
|
||||
then
|
||||
echo -n "copy rknn_ssd..."
|
||||
cp $RKNN_SSD $TOOLS_OUT_DIR/rknn_ssd
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $RKNN_SSD not found!"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f $NPU_TRANSFER_PROXY ]
|
||||
then
|
||||
echo -n "copy $RK_NPU_TRANSFER_PROXY_ARCH npu_transfer_proxy..."
|
||||
cp $NPU_TRANSFER_PROXY $TOOLS_OUT_DIR/npu_transfer_proxy
|
||||
echo "done."
|
||||
else
|
||||
echo "warning: $NPU_TRANSFER_PROXY not found!"
|
||||
fi
|
||||
|
||||
if [ -d $RKNN_API_DIR ]
|
||||
then
|
||||
echo -n "copy libs and resource..."
|
||||
cp $RKNN_API_DIR/tmp/* $TOOLS_OUT_DIR/
|
||||
cp $RKNN_SDK_DIR/rknn_api/$RK_RKNN_API_ARCH/lib64/* $LIB_OUT_DIR/
|
||||
cp $RKNN_SDK_DIR/3rdparty/opencv/$RK_RKNN_API_ARCH/lib64/* $LIB_OUT_DIR/
|
||||
echo "done."
|
||||
else
|
||||
echo -e "\e[31m error: $RKNN_API_DIR not found! \e[0m"
|
||||
fi
|
||||
@ -0,0 +1,10 @@
|
||||
firmware=update.img
|
||||
loader=loader.bin
|
||||
parameter=parameter
|
||||
misc=
|
||||
boot=boot.img
|
||||
kernel=kernel.img
|
||||
system=system.img
|
||||
recovery=recovery.img
|
||||
rockusb_id=
|
||||
msc_id=
|
||||
BIN
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/x64_release/upgrade_tool
Executable file
BIN
device/rockchip/.chips/rk1808/rk1808_compute_stick_tool/x64_release/upgrade_tool
Executable file
Binary file not shown.
2
device/rockchip/.chips/rk1808/rockchip_defconfig
Normal file
2
device/rockchip/.chips/rk1808/rockchip_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
RK_KERNEL_DTS_NAME="rk1808-evb-v10"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
@ -0,0 +1,4 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk1808_compute_stick"
|
||||
RK_ROOTFS_INITRD=y
|
||||
RK_UBOOT_CFG="rknpu-lion"
|
||||
RK_KERNEL_DTS_NAME="rk1808-compute-v10"
|
||||
@ -0,0 +1,3 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk1808_compute_stick"
|
||||
RK_KERNEL_DTS_NAME="rk1808-compute-stick-emmc"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
@ -0,0 +1,4 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk1808_compute_stick"
|
||||
RK_ROOTFS_INITRD=y
|
||||
RK_KERNEL_DTS_NAME="rk1808-compute-v10"
|
||||
RK_PARAMETER="parameter-compute-stick.txt"
|
||||
@ -0,0 +1,5 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk1808-multi"
|
||||
RK_UBOOT_CFG="rknpu-lion"
|
||||
RK_KERNEL_CFG="rk1808_x4_linux_defconfig"
|
||||
RK_KERNEL_DTS_NAME="rk1808-evb-x4"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
13
device/rockchip/.chips/rk3036/parameter-buildroot-128M.txt
Normal file
13
device/rockchip/.chips/rk3036/parameter-buildroot-128M.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3036
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3036
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3036
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00000800@0x00000800(uboot),0x00000800@0x00001000(trust),0x00000800@0x00001800(misc),0x00004000@0x00002000(boot),0x00007000@0x00006000(recovery),0x00003800@0x0000d000(oem),0x00023000@0x00010800(rootfs),-@0x00033800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk3036/parameter-buildroot.txt
Normal file
13
device/rockchip/.chips/rk3036/parameter-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 1.0
|
||||
MACHINE_MODEL: RK3036
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3036
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3036
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00020000@0x0001a000(recovery),0x00010000@0x0003a000(backup),0x00020000@0x0004a000(oem),0x00100000@0x0006a000(rootfs),-@0x0016a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk3036/parameter-retro.txt
Normal file
13
device/rockchip/.chips/rk3036/parameter-retro.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3036
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3036
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3036
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00068000@0x0001a000(recovery),0x00010000@0x00082000(backup),0x00020000@0x00092000(oem),0x00710000@0x000B2000(rootfs),-@0x007C2000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
2
device/rockchip/.chips/rk3036/rockchip_defconfig
Normal file
2
device/rockchip/.chips/rk3036/rockchip_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
RK_KERNEL_DTS_NAME="rk3036-kylin"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
6
device/rockchip/.chips/rk3036/rockchip_dongle_defconfig
Normal file
6
device/rockchip/.chips/rk3036/rockchip_dongle_defconfig
Normal file
@ -0,0 +1,6 @@
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_KERNEL_CFG="rk3036_dongle_linux_defconfig"
|
||||
RK_KERNEL_DTS_NAME="rk3036-dongle"
|
||||
RK_EXTRA_PARTITION_1_SRC="empty"
|
||||
RK_EXTRA_PARTITION_2_SRC="empty"
|
||||
RK_PARAMETER="parameter-buildroot-128M.txt"
|
||||
2
device/rockchip/.chips/rk3036/rockchip_retro_defconfig
Normal file
2
device/rockchip/.chips/rk3036/rockchip_retro_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
RK_KERNEL_DTS_NAME="rk3036-kylin"
|
||||
RK_PARAMETER="parameter-retro.txt"
|
||||
@ -0,0 +1,2 @@
|
||||
RK_KERNEL_DTS_NAME="rk3036-evb1-ddr3-v10"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
13
device/rockchip/.chips/rk3128h/parameter-buildroot.txt
Normal file
13
device/rockchip/.chips/rk3128h/parameter-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3128H
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3128H
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3229
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00010000@0x0001a000(recovery),0x00010000@0x0002a000(backup),0x00020000@0x0003a000(oem),0x00100000@0x0005a000(rootfs),-@0x0015a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
2
device/rockchip/.chips/rk3128h/rockchip_defconfig
Normal file
2
device/rockchip/.chips/rk3128h/rockchip_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
RK_KERNEL_DTS_NAME="rk3128h-evb-linux"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3126
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3126
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3126
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x0000800@0x00001800(vnvm),0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00004000@0x00004800(boot),0x0000B000@0x00008800(recovery),0x00020000@0x00013800(rootfs),0x00008000@0x00033800(oem),-@0x0003B800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 1MB(vnvm),2MB(uboot),2MB(trust),1MB(misc),8MB(boot),22MB(recovery),64MB(rootfs),16MB(oem),-(userdata)
|
||||
15
device/rockchip/.chips/rk312x/parameter-buildroot-rk3126.txt
Normal file
15
device/rockchip/.chips/rk312x/parameter-buildroot-rk3126.txt
Normal file
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3126
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3126
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3126
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00004000@0x00004800(boot),0x0000A000@0x00008800(recovery),0x00014000@0x00012800(rootfs),0x0000A000@0x00026800(oem),-@0x00030800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 2MB(uboot),2MB(trust),1MB(misc),8MB(boot),20MB(recovery),40MB(rootfs),20MB(oem),-(userdata)
|
||||
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3128
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3128
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3128
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00004000@0x00004800(boot),0x0000C000@0x00008800(recovery),0x00016000@0x00014800(rootfs),0x0000A000@0x0002A800(oem),-@0x00034800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 2MB(uboot),2MB(trust),1MB(misc),8MB(boot),24MB(recovery),44MB(rootfs),20MB(oem),-(userdata)
|
||||
15
device/rockchip/.chips/rk312x/parameter-buildroot-rk3128.txt
Normal file
15
device/rockchip/.chips/rk312x/parameter-buildroot-rk3128.txt
Normal file
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3128
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3128
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3128
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00004000@0x00004800(boot),0x0000C000@0x00008800(recovery),0x00016000@0x00014800(rootfs),0x0000A000@0x0002A800(oem),-@0x00034800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 2MB(uboot),2MB(trust),1MB(misc),8MB(boot),24MB(recovery),44MB(rootfs),20MB(oem),-(userdata)
|
||||
15
device/rockchip/.chips/rk312x/parameter-debian-rk3126.txt
Normal file
15
device/rockchip/.chips/rk312x/parameter-debian-rk3126.txt
Normal file
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3126
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3126
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3126
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00004000@0x00004800(boot),0x00010000@0x00008800(recovery),0x00010000@0x00018800(backup),0x00700000@0x00028800(rootfs),0x00010000@0x00728800(oem),-@0x00738800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 2MB(uboot),2MB(trust),1MB(misc),8MB(boot),32MB(recovery),32MB(backup),3584MB(rootfs),32M(oem),-(userdata)
|
||||
15
device/rockchip/.chips/rk312x/parameter-debian-rk3128.txt
Normal file
15
device/rockchip/.chips/rk312x/parameter-debian-rk3128.txt
Normal file
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3128
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3128
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3128
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00004000@0x00004800(boot),0x00010000@0x00008800(recovery),0x00010000@0x00018800(backup),0x00700000@0x00028800(rootfs),0x00010000@0x00728800(oem),-@0x00738800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 2MB(uboot),2MB(trust),1MB(misc),8MB(boot),32MB(recovery),32MB(backup),3584MB(rootfs),32M(oem),-(userdata)
|
||||
1
device/rockchip/.chips/rk312x/rockchip_defconfig
Symbolic link
1
device/rockchip/.chips/rk312x/rockchip_defconfig
Symbolic link
@ -0,0 +1 @@
|
||||
rockchip_rk3126c_evb_ddr3_v10_defconfig
|
||||
@ -0,0 +1,4 @@
|
||||
RK_WIFIBT_CHIP=""
|
||||
RK_UBOOT_TRUST_INI="RK3126TOS_LADDR.ini"
|
||||
RK_KERNEL_DTS_NAME="rk3126c-evb-ddr3-v10-linux"
|
||||
RK_PARAMETER="parameter-debian-rk3126.txt"
|
||||
@ -0,0 +1,5 @@
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP=""
|
||||
RK_UBOOT_TRUST_INI="RK3126TOS_LADDR.ini"
|
||||
RK_KERNEL_DTS_NAME="rk3126c-evb-ddr3-v10-linux"
|
||||
RK_PARAMETER="parameter-buildroot-rk3126.txt"
|
||||
@ -0,0 +1,11 @@
|
||||
RK_ROOTFS_TYPE="ubi"
|
||||
RK_WIFIBT_CHIP=""
|
||||
RK_UBOOT_CFG_FRAGMENTS="rk312x-slc-nand"
|
||||
RK_UBOOT_INI="RK3126MINIALL_WO_FTL.ini"
|
||||
RK_UBOOT_TRUST_INI="RK3126TOS_LADDR.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG_FRAGMENTS="rk3126_linux_slc_nand.config"
|
||||
RK_KERNEL_DTS_NAME="rk3126c-evb-ddr3-v10-linux-slc"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ubi"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ubi"
|
||||
RK_PARAMETER="parameter-buildroot-rk3126-slc.txt"
|
||||
@ -0,0 +1,4 @@
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_UBOOT_TRUST_INI="RK3128TOS.ini"
|
||||
RK_KERNEL_DTS_NAME="rk3128-evb-ddr3-v10-linux"
|
||||
RK_PARAMETER="parameter-debian-rk3128.txt"
|
||||
@ -0,0 +1,5 @@
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_UBOOT_TRUST_INI="RK3128TOS.ini"
|
||||
RK_KERNEL_DTS_NAME="rk3128-evb-ddr3-v10-linux"
|
||||
RK_PARAMETER="parameter-buildroot-rk3128.txt"
|
||||
@ -0,0 +1,9 @@
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_UBOOT_CFG_FRAGMENTS="rk312x-rkflash"
|
||||
RK_UBOOT_INI="RK3128MINIALL_SLC.ini"
|
||||
RK_UBOOT_TRUST_INI="RK3128TOS.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG_FRAGMENTS="rk3128_linux_spi_nand.config"
|
||||
RK_KERNEL_DTS_NAME="rk3128-evb-ddr3-v10-linux-spi-nand"
|
||||
RK_PARAMETER="parameter-buildroot-rk3128-spi-nand.txt"
|
||||
13
device/rockchip/.chips/rk3229/parameter-buildroot.txt
Normal file
13
device/rockchip/.chips/rk3229/parameter-buildroot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RK3229
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3229
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3229
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00010000@0x0000a000(boot),0x00010000@0x0001a000(recovery),0x00010000@0x0002a000(backup),0x00020000@0x0003a000(oem),0x00100000@0x0005a000(rootfs),-@0x0015a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
2
device/rockchip/.chips/rk3229/rockchip_defconfig
Normal file
2
device/rockchip/.chips/rk3229/rockchip_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
RK_KERNEL_DTS_NAME="rk3229-evb-linux"
|
||||
RK_PARAMETER="parameter-buildroot.txt"
|
||||
13
device/rockchip/.chips/rk3288/parameter.txt
Normal file
13
device/rockchip/.chips/rk3288/parameter.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 1.0.0
|
||||
MACHINE_MODEL: RK3288
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RK3288
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 0xffffffff
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00002000@0x00008000(misc),0x00020000@0x0000a000(boot),0x00040000@0x0002a000(recovery),0x00010000@0x0006a000(backup),0x00c00000@0x0007a000(rootfs),0x00040000@0x00c7a000(oem),-@0x00d1a000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
1
device/rockchip/.chips/rk3288/rockchip_defconfig
Symbolic link
1
device/rockchip/.chips/rk3288/rockchip_defconfig
Symbolic link
@ -0,0 +1 @@
|
||||
rockchip_rk3288w_evb_rk808_defconfig
|
||||
@ -0,0 +1,2 @@
|
||||
RK_YOCTO_CFG="rockchip-rk3288-evb-act8846"
|
||||
RK_KERNEL_DTS_NAME="rk3288-evb-act8846"
|
||||
@ -0,0 +1,2 @@
|
||||
RK_YOCTO_CFG="rockchip-rk3288-evb"
|
||||
RK_KERNEL_DTS_NAME="rk3288-evb-rk808-linux"
|
||||
@ -0,0 +1,2 @@
|
||||
RK_YOCTO_CFG="rockchip-rk3288-evb"
|
||||
RK_KERNEL_DTS_NAME="rk3288-firefly"
|
||||
13
device/rockchip/.chips/rk3308/parameter-32bit.txt
Normal file
13
device/rockchip/.chips/rk3308/parameter-32bit.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER:8.1
|
||||
MACHINE_MODEL:RK3308
|
||||
MACHINE_ID:007
|
||||
MANUFACTURER: RK3308
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3308
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=:0x00000800@0x00002000(uboot),0x00000800@0x00002800(trust),0x00000800@0x00003000(misc),0x00009000@0x00003800(recovery),0x00003000@0x0000C800(boot),0x00011800@0x0000F800(rootfs),0x0000E000@0x00021000(oem),-@0x0002F000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
15
device/rockchip/.chips/rk3308/parameter-64bit.txt
Normal file
15
device/rockchip/.chips/rk3308/parameter-64bit.txt
Normal file
@ -0,0 +1,15 @@
|
||||
FIRMWARE_VER:8.1
|
||||
MACHINE_MODEL:RK3308
|
||||
MACHINE_ID:007
|
||||
MANUFACTURER: RK3308
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3308
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x00004000@0x0000E800(boot),0x00014000@0x00012800(rootfs),0x00008000@0x00026800(oem),-@0x002E800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
# partition size default
|
||||
# 2MB(uboot),2MB(trust),1MB(misc),20MB(recovery),8MB(boot),40MB(rootfs),16MB(oem),-(userdata)
|
||||
13
device/rockchip/.chips/rk3308/parameter-display.txt
Normal file
13
device/rockchip/.chips/rk3308/parameter-display.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER:8.1
|
||||
MACHINE_MODEL:RK3308
|
||||
MACHINE_ID:007
|
||||
MANUFACTURER: RK3308
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3308
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=:0x00000800@0x00002000(uboot),0x00000800@0x00002800(trust),0x00000800@0x00003000(misc),0x00009000@0x00003800(recovery),0x00003000@0x0000C800(boot),0x00014000@0x0000F800(rootfs),0x0000E000@0x00023800(oem),-@0x00031800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk3308/parameters-rtos-amp.txt
Normal file
13
device/rockchip/.chips/rk3308/parameters-rtos-amp.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER:8.1
|
||||
MACHINE_MODEL:RK3308
|
||||
MACHINE_ID:007
|
||||
MANUFACTURER: RK3308
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3308
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00002000@0x00004000(amp),0x00000800@0x00006000(rootfs),-@0x00006800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER:8.1
|
||||
MACHINE_MODEL:RK3308
|
||||
MACHINE_ID:007
|
||||
MANUFACTURER: RK3308
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3308
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=rk29xxnand:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x00008000@0x00004800(recovery),0x00004800@0x0000C800(boot),0x00012000@0x00011000(rootfs),0x00003000@0x00023000(amp),0x0000D000@0x00026000(oem),-@0x0033000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk3308/parameters-rtos-smp.txt
Normal file
13
device/rockchip/.chips/rk3308/parameters-rtos-smp.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER:8.1
|
||||
MACHINE_MODEL:RK3308
|
||||
MACHINE_ID:007
|
||||
MANUFACTURER: RK3308
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 3308
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE:mtdparts=:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00002000@0x00004000(amp),0x00000800@0x00006000(rootfs),-@0x00006800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
12
device/rockchip/.chips/rk3308/rockchip_32bit_defconfig
Normal file
12
device/rockchip/.chips/rk3308/rockchip_32bit_defconfig
Normal file
@ -0,0 +1,12 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_bs_32_lvgl_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6256"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_CFG_FRAGMENTS="rk3308bs_aarch32_mipi_display.config"
|
||||
RK_KERNEL_DTS_NAME="rk3308bs-evb-mipi-display-v11-aarch32"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-32bit.txt"
|
||||
9
device/rockchip/.chips/rk3308/rockchip_defconfig
Normal file
9
device/rockchip/.chips/rk3308/rockchip_defconfig
Normal file
@ -0,0 +1,9 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_bs_lvgl_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6256"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_KERNEL_CFG_FRAGMENTS="rk3308bs_mipi_display.config"
|
||||
RK_KERNEL_DTS_NAME="rk3308bs-evb-mipi-display-v11"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-64bit.txt"
|
||||
115
device/rockchip/.chips/rk3308/rockchip_rk3308_rtos_amp.its
Normal file
115
device/rockchip/.chips/rk3308/rockchip_rk3308_rtos_amp.its
Normal file
@ -0,0 +1,115 @@
|
||||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
/*
|
||||
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/ {
|
||||
description = "FIT source file for rockchip AMP";
|
||||
#address-cells = <1>;
|
||||
|
||||
images {
|
||||
|
||||
amp0 {
|
||||
description = "bare-mental-core0";
|
||||
data = /incbin/("cpu0.bin");
|
||||
type = "firmware";
|
||||
compression = "none";
|
||||
arch = "arm"; // "arm64" or "arm"
|
||||
sys = "hal"; // "hal" or "rtt"
|
||||
cpu = <0x000>; // mpidr
|
||||
thumb = <0>; // 0: arm or thumb2; 1: thumb
|
||||
hyp = <0>; // 0: el1/svc; 1: el2/hyp
|
||||
load = <0x02600000>;
|
||||
size = <0x00900000>;
|
||||
srambase = <0xfffb0000>;
|
||||
sramsize = <0x00010000>;
|
||||
udelay = <10000>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
|
||||
amp1 {
|
||||
description = "bare-mental-core1";
|
||||
data = /incbin/("cpu1.bin");
|
||||
type = "firmware";
|
||||
compression = "none";
|
||||
arch = "arm";
|
||||
sys = "rtt";
|
||||
cpu = <0x1>;
|
||||
thumb = <0>;
|
||||
hyp = <0>;
|
||||
load = <0x00800000>;
|
||||
size = <0x00a00000>;
|
||||
srambase = <0xfff88000>;
|
||||
sramsize = <0x00008000>;
|
||||
udelay = <10000>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
|
||||
amp2 {
|
||||
description = "bare-mental-core2";
|
||||
data = /incbin/("cpu2.bin");
|
||||
type = "firmware";
|
||||
compression = "none";
|
||||
arch = "arm";
|
||||
sys = "rtt";
|
||||
cpu = <0x2>;
|
||||
thumb = <0>;
|
||||
hyp = <0>;
|
||||
load = <0x01200000>;
|
||||
size = <0x00a00000>;
|
||||
srambase = <0xfff90000>;
|
||||
sramsize = <0x00010000>;
|
||||
udelay = <10000>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
|
||||
amp3 {
|
||||
description = "bare-mental-core3";
|
||||
data = /incbin/("cpu3.bin");
|
||||
type = "firmware";
|
||||
compression = "none";
|
||||
arch = "arm";
|
||||
sys = "hal";
|
||||
cpu = <0x3>;
|
||||
thumb = <0>;
|
||||
hyp = <0>;
|
||||
load = <0x01c00000>;
|
||||
size = <0x00a00000>;
|
||||
srambase = <0xfffa0000>;
|
||||
sramsize = <0x00010000>;
|
||||
udelay = <10000>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
share_memory {
|
||||
base = <0x02f00000>;
|
||||
size = <0x00100000>;
|
||||
};
|
||||
|
||||
configurations {
|
||||
default = "conf";
|
||||
conf {
|
||||
description = "Rockchip AMP images";
|
||||
rollback-index = <0x0>;
|
||||
loadables = "amp0", "amp1", "amp2", "amp3";
|
||||
primary = <0x1>;
|
||||
|
||||
signature {
|
||||
algo = "sha256,rsa2048";
|
||||
padding = "pss";
|
||||
key-name-hint = "dev";
|
||||
sign-images = "loadables";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,25 @@
|
||||
# RT-Thread config
|
||||
RK_RTOS_RTT0_BOARD_CONFIG="board/rk3308_ddr2_v10/defconfig"
|
||||
RK_RTOS_RTT1_BOARD_CONFIG="board/rk3308_ddr2_v10/defconfig"
|
||||
RK_RTOS_RTT2_BOARD_CONFIG="board/rk3308_ddr2_v10/defconfig"
|
||||
RK_RTOS_RTT3_BOARD_CONFIG="board/rk3308_ddr2_v10/defconfig"
|
||||
|
||||
RK_RTOS_RTT_ROOTFS_DATA="userdata"
|
||||
RK_RTOS_RTT_ROOTFS_PARAMETERS="parameters-rtos-amp.txt"
|
||||
|
||||
# Share Memory config
|
||||
RTT_SHRPMSG_SIZE=0x00080000
|
||||
RTT_SHRAMFS_SIZE=0x00020000
|
||||
RTT_SHLOG0_SIZE=0x00001000
|
||||
RTT_SHLOG1_SIZE=0x00001000
|
||||
RTT_SHLOG2_SIZE=0x00001000
|
||||
RTT_SHLOG3_SIZE=0x00001000
|
||||
|
||||
# HAL config
|
||||
# Share memory config same as RTT
|
||||
SHRPMSG_SIZE=$RTT_SHRPMSG_SIZE
|
||||
SHRAMFS_SIZE=$RTT_SHRAMFS_SIZE
|
||||
SHLOG0_SIZE=$RTT_SHLOG0_SIZE
|
||||
SHLOG1_SIZE=$RTT_SHLOG1_SIZE
|
||||
SHLOG2_SIZE=$RTT_SHLOG2_SIZE
|
||||
SHLOG3_SIZE=$RTT_SHLOG3_SIZE
|
||||
@ -0,0 +1,7 @@
|
||||
RK_UBOOT_CFG="rk3308-aarch32-amp"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_RTOS=y
|
||||
RK_RTOS_CFG="rockchip_rk3308_rtos_amp_32bit_cfg"
|
||||
RK_RTOS_FIT_ITS="rockchip_rk3308_rtos_amp.its"
|
||||
RK_KERNEL_CFG=""
|
||||
RK_PARAMETER="parameters-rtos-amp.txt"
|
||||
67
device/rockchip/.chips/rk3308/rockchip_rk3308_rtos_linux.its
Normal file
67
device/rockchip/.chips/rk3308/rockchip_rk3308_rtos_linux.its
Normal file
@ -0,0 +1,67 @@
|
||||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
/*
|
||||
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/ {
|
||||
description = "FIT source file for rockchip AMP";
|
||||
#address-cells = <1>;
|
||||
|
||||
images {
|
||||
amp3 {
|
||||
description = "bare-mental-core3";
|
||||
data = /incbin/("cpu3.bin");
|
||||
type = "firmware";
|
||||
compression = "none";
|
||||
arch = "arm";
|
||||
sys = "rtt";
|
||||
cpu = <0x3>;
|
||||
thumb = <0>;
|
||||
hyp = <0>;
|
||||
load = <0x02e00000>;
|
||||
size = <0x00400000>;
|
||||
srambase = <0xfffa0000>;
|
||||
sramsize = <0x00010000>;
|
||||
udelay = <10000>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
share_memory {
|
||||
base = <0x03200000>;
|
||||
size = <0x00100000>;
|
||||
};
|
||||
|
||||
configurations {
|
||||
default = "conf";
|
||||
conf {
|
||||
description = "Rockchip AMP images";
|
||||
rollback-index = <0x0>;
|
||||
loadables = "amp3";
|
||||
primary = <0x3>;
|
||||
|
||||
signature {
|
||||
algo = "sha256,rsa2048";
|
||||
padding = "pss";
|
||||
key-name-hint = "dev";
|
||||
sign-images = "loadables";
|
||||
};
|
||||
|
||||
/* - run linux on cpu0
|
||||
* - it is brought up by amp(that run on U-Boot)
|
||||
* - it is boot entry depends on U-Boot
|
||||
*/
|
||||
linux {
|
||||
description = "linux-os";
|
||||
arch = "arm64";
|
||||
cpu = <0x0>;
|
||||
thumb = <0>;
|
||||
hyp = <0>;
|
||||
udelay = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,21 @@
|
||||
|
||||
# RT-Thread config
|
||||
RK_RTOS_RTT3_BOARD_CONFIG="board/rk3308_ddr2_v10/defconfig_amp_linux-rtt"
|
||||
AMP_KERNEL_ENABLE=true
|
||||
|
||||
# Share Memory config
|
||||
RTT_SHRPMSG_SIZE=0x00080000
|
||||
RTT_SHRAMFS_SIZE=0x00020000
|
||||
RTT_SHLOG0_SIZE=0x00001000
|
||||
RTT_SHLOG1_SIZE=0x00001000
|
||||
RTT_SHLOG2_SIZE=0x00001000
|
||||
RTT_SHLOG3_SIZE=0x00001000
|
||||
|
||||
# HAL config
|
||||
# Share memory config same as RTT
|
||||
SHRPMSG_SIZE=$RTT_SHRPMSG_SIZE
|
||||
SHRAMFS_SIZE=$RTT_SHRAMFS_SIZE
|
||||
SHLOG0_SIZE=$RTT_SHLOG0_SIZE
|
||||
SHLOG1_SIZE=$RTT_SHLOG1_SIZE
|
||||
SHLOG2_SIZE=$RTT_SHLOG2_SIZE
|
||||
SHLOG3_SIZE=$RTT_SHLOG3_SIZE
|
||||
@ -0,0 +1,9 @@
|
||||
RK_UBOOT_CFG="rk3308-amp"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_UBOOT_TRUST_INI="RK3308TRUST_CPU3.ini"
|
||||
RK_RTOS=y
|
||||
RK_RTOS_ARM64=y
|
||||
RK_RTOS_CFG="rockchip_rk3308_rtos_linux_64bit_cfg"
|
||||
RK_RTOS_FIT_ITS="rockchip_rk3308_rtos_linux.its"
|
||||
RK_KERNEL_DTS_NAME="rk3308b-evb-amic-v10-amp"
|
||||
RK_PARAMETER="parameters-rtos-linux-amp-64bit.txt"
|
||||
56
device/rockchip/.chips/rk3308/rockchip_rk3308_rtos_smp.its
Normal file
56
device/rockchip/.chips/rk3308/rockchip_rk3308_rtos_smp.its
Normal file
@ -0,0 +1,56 @@
|
||||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
/*
|
||||
* Copyright (c) 2023 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/ {
|
||||
description = "FIT source file for rockchip AMP";
|
||||
#address-cells = <1>;
|
||||
|
||||
images {
|
||||
|
||||
amp0 {
|
||||
description = "bare-mental-core0";
|
||||
data = /incbin/("cpu0.bin");
|
||||
type = "firmware";
|
||||
compression = "none";
|
||||
arch = "arm"; // "arm64" or "arm"
|
||||
sys = "rtt";
|
||||
cpu = <0x000>; // mpidr
|
||||
thumb = <0>; // 0: arm or thumb2; 1: thumb
|
||||
hyp = <0>; // 0: el1/svc; 1: el2/hyp
|
||||
load = <0x00800000>;
|
||||
size = <0x02700000>;
|
||||
srambase = <0xfff88000>;
|
||||
sramsize = <0x00038000>;
|
||||
udelay = <10000>;
|
||||
hash {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
share_memory {
|
||||
base = <0x02f00000>;
|
||||
size = <0x00100000>;
|
||||
};
|
||||
|
||||
configurations {
|
||||
default = "conf";
|
||||
conf {
|
||||
description = "Rockchip AMP images";
|
||||
rollback-index = <0x0>;
|
||||
loadables = "amp0";
|
||||
primary = <0x0>;
|
||||
|
||||
signature {
|
||||
algo = "sha256,rsa2048";
|
||||
padding = "pss";
|
||||
key-name-hint = "dev";
|
||||
sign-images = "loadables";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,2 @@
|
||||
# RT-Thread config
|
||||
RK_RTOS_RTT0_BOARD_CONFIG="board/rk3308_ddr2_v10/defconfig"
|
||||
@ -0,0 +1,7 @@
|
||||
RK_UBOOT_CFG="rk3308-aarch32-amp"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_RTOS=y
|
||||
RK_RTOS_CFG="rockchip_rk3308_rtos_smp_32bit_cfg"
|
||||
RK_RTOS_FIT_ITS="rockchip_rk3308_rtos_smp.its"
|
||||
RK_KERNEL_CFG=""
|
||||
RK_PARAMETER="parameters-rtos-smp.txt"
|
||||
@ -0,0 +1,12 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_b_32_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6255"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_DTS_NAME="rk3308b-evb-amic-v10-aarch32"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-32bit.txt"
|
||||
@ -0,0 +1,9 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_b_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6255"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_DTS_NAME="rk3308b-evb-amic-v10"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-64bit.txt"
|
||||
@ -0,0 +1,12 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_bs_32_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6256"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_DTS_NAME="rk3308bs-evb-amic-v11-aarch32"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-32bit.txt"
|
||||
@ -0,0 +1,15 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_bs_32_display_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6256"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_CFG_FRAGMENTS="rk3308bs_aarch32_mipi_display.config"
|
||||
RK_KERNEL_DTS_NAME="rk3308bs-evb-mipi-display-v11-aarch32"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_1_SRC="normal"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_SRC="normal"
|
||||
RK_PARAMETER="parameter-display.txt"
|
||||
@ -0,0 +1,9 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_bs_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6256"
|
||||
RK_UBOOT_INI="RK3308MINIALL_UART4.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_DTS_NAME="rk3308bs-evb-amic-v11"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-64bit.txt"
|
||||
@ -0,0 +1,19 @@
|
||||
RK_CHIP="rk3308"
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_bs_32_ia_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="AP6256"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_UBOOT_CFG_FRAGMENTS="rk3308-ia"
|
||||
RK_UBOOT_INI="RK3308MINIALL_SPI_NAND_UART4.ini"
|
||||
RK_UBOOT_SPL=y
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_VERSION="5.10"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_DTS_NAME="rk3308bs-evb-mipi-display-v11-aarch32"
|
||||
RK_KERNEL_CFG_FRAGMENTS="rk3308-aarch32-ia.config"
|
||||
RK_RECOVERY_BASE_CFG="rk3308_tiny"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_1_SRC="normal"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_SRC="normal"
|
||||
RK_PARAMETER="parameter-display.txt"
|
||||
@ -0,0 +1,10 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_h_32_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="RTL8189FS"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_DTS_NAME="rk3308-voice-module-board-v11-aarch32"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-32bit.txt"
|
||||
@ -0,0 +1,10 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3308_h_32_release"
|
||||
RK_ROOTFS_TYPE="squashfs"
|
||||
RK_WIFIBT_CHIP="RTL8189FS"
|
||||
RK_UBOOT_CFG="rk3308-aarch32"
|
||||
RK_KERNEL_CFG="rk3308_linux_aarch32_defconfig"
|
||||
RK_KERNEL_ARM32=y
|
||||
RK_KERNEL_DTS_NAME="rk3308hs-voice-module-board-v10-aarch32"
|
||||
RK_EXTRA_PARTITION_1_FSTYPE="ext2"
|
||||
RK_EXTRA_PARTITION_2_FSTYPE="ext2"
|
||||
RK_PARAMETER="parameter-32bit.txt"
|
||||
13
device/rockchip/.chips/rk3326/parameter-robot.txt
Normal file
13
device/rockchip/.chips/rk3326/parameter-robot.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 1.4.0
|
||||
MACHINE_MODEL: PX30
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: PX30
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: px30
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=:0x00002000@0x00004000(uboot),0x00002000@0x00006000(trust),0x00000800@0x00008000(misc),0x00004000@0x00008800(boot),0x00006000@0x0000c800(recovery),0x0000e000@0x00012800(oem),0x00040000@0x00020800(rootfs),-@0x00060800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
13
device/rockchip/.chips/rk3326/parameter.txt
Normal file
13
device/rockchip/.chips/rk3326/parameter.txt
Normal file
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 1.0.0
|
||||
MACHINE_MODEL: PX30
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: PX30
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: px30
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
GROW_ALIGN: 0
|
||||
CMDLINE: mtdparts=: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)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
1
device/rockchip/.chips/rk3326/rockchip_defconfig
Symbolic link
1
device/rockchip/.chips/rk3326/rockchip_defconfig
Symbolic link
@ -0,0 +1 @@
|
||||
rockchip_rk3326_evb_lp3_v10_defconfig
|
||||
@ -0,0 +1,4 @@
|
||||
RK_BUILDROOT_BASE_CFG="rk3326_32"
|
||||
RK_YOCTO_CFG="rockchip-rk3326-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="rk3326-evb-lp3-v10-linux"
|
||||
@ -0,0 +1,3 @@
|
||||
RK_YOCTO_CFG="rockchip-rk3326-evb"
|
||||
RK_WIFIBT_CHIP="AP6212A1"
|
||||
RK_KERNEL_DTS_NAME="rk3326-evb-lp3-v10-linux"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user