Firefly开源社区

标题: iHC-3308GW 编译SDK 报错 [打印本页]

作者: elecapp    时间: 2022-12-11 13:20
标题: iHC-3308GW 编译SDK 报错
iHC-3308GW  编译 firefly_rk3308_release 固件

打包固件时报错,如何处理呢?
./build.sh updateimg
ihc3308gw@ihc3308gw-virtual-machine:~/prog$ ./build.sh updateimgprocessing option: updateimgFile name is  IHC-3308GW_Rk3308_v1.5.0a_221211.imgRename the file? [N|y]Make update.imgmisc.img content {command: boot-recoverystatus: recovery: recovery--wipe_allstage: firmware: IHC-3308GW_Rk3308_v1.5.0a_221211.imgreserved: }start to make update.img...Android Firmware Package Tool v1.66------ PACKAGE ------Add file: ./package-fileAdd file: ./package-file done,offset=0x800,size=0x271,userspace=0x1Add file: ./Image/MiniLoaderAll.binAdd file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x4494e,userspace=0x8aAdd file: ./Image/parameter.txtAdd file: ./Image/parameter.txt done,offset=0x46000,size=0x1cd,userspace=0x1Add file: ./Image/trust.imgAdd file: ./Image/trust.img done,offset=0x46800,size=0x200000,userspace=0x400Add file: ./Image/uboot.imgAdd file: ./Image/uboot.img done,offset=0x246800,size=0x200000,userspace=0x400Add file: ./Image/boot.imgAdd file: ./Image/boot.img done,offset=0x446800,size=0xf36800,userspace=0x1e6dAdd file: ./Image/rootfs.imgAdd file: ./Image/rootfs.img done,offset=0x137d000,size=0x1d66e800,userspace=0x3acddAdd file: ./Image/recovery.imgAdd file: ./Image/recovery.img done,offset=0x1e9eb800,size=0xf13800,userspace=0x1e27Add file: ./Image/userdata.imgError:<AddFile> open file failed,err=2!------ FAILED ------Press any key to quit:ERROR: Running build_updateimg failed!ERROR: exit code 1 from line 1372:    ./mkupdate.sh

tchip_askquestions

kern.zip

122.09 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1


作者: 时间的蝴蝶    时间: 2022-12-22 14:49
执行下面的命令,看有没有 userdata.img 文件;不行的话发下打印信息
bash -x ./mkfirmware.sh
ls -l rockdev/userdata.img
作者: elecapp    时间: 2023-1-3 20:24
时间的蝴蝶 发表于 2022-12-22 14:49
执行下面的命令,看有没有 userdata.img 文件;不行的话发下打印信息
bash -x ./mkfirmware.sh
ls -l roc ...

ihc3308gw@ihc3308gw-virtual-machine:~/prog$ bash -x ./mkfirmware.sh
+ set -e
+++ realpath ./mkfirmware.sh
++ dirname /home/ihc3308gw/prog/device/rockchip/common/mkfirmware.sh
+ SCRIPT_DIR=/home/ihc3308gw/prog/device/rockchip/common
++ realpath /home/ihc3308gw/prog/device/rockchip/common/../../..
+ TOP_DIR=/home/ihc3308gw/prog
+ cd /home/ihc3308gw/prog
+ unset_board_config_all
++ mktemp
+ local tmp_file=/tmp/tmp.BmSW2gXOsD
+ sort
+ uniq
++ find /home/ihc3308gw/prog/device/rockchip -name 'Board*.mk' -type f
+ grep -o '^export.*RK_.*=' /home/ihc3308gw/prog/device/rockchip/rk3128/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk3229/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk3288/BoardConfig-rk3288-firefly.mk /home/ihc3308gw/prog/device/rockchip/rk3288/BoardConfig_rk3288-evb-act8846.mk /home/ihc3308gw/prog/device/rockchip/rk3288/BoardConfig-rk3288-evb-rk808.mk /home/ihc3308gw/prog/device/rockchip/rk3358/BoardConfig-rk3358-evb-ddr3-v10.mk /home/ihc3308gw/prog/device/rockchip/rk3399/BoardConfig-rk3399-firefly.mk /home/ihc3308gw/prog/device/rockchip/rk3399/BoardConfig-rk3399-sapphire-excavator-lp4.mk /home/ihc3308gw/prog/device/rockchip/rk3399/BoardConfig-rk3399-sapphire-excavator.mk /home/ihc3308gw/prog/device/rockchip/rk3399/BoardConfig-rk3399-evb-ind-lpddr4.mk /home/ihc3308gw/prog/device/rockchip/rk1806/BoardConfig_ficial_gate.mk /home/ihc3308gw/prog/device/rockchip/rk1806/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk1806/BoardConfig_thunder_boot.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3566-evb2-lp4x-v10-32bit.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3568-evb1-ddr4-v10-32bit.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3568-evb1-ddr4-v10.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3566-evb2-lp4x-v10.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3568-evb1-ddr4-v10-spi-nor-64M.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3568-nvr-spi-nand.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3568-uvc-evb1-ddr4-v10.mk /home/ihc3308gw/prog/device/rockchip/rk356x/BoardConfig-rk3568-nvr.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_RK3308BS_32bit.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_robot32.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_RK3308BS_64bit.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_robot64.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_32bit.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_soundai_cmcc.mk /home/ihc3308gw/prog/device/rockchip/rk3308/cmcc_soundai/BoardConfig_soundai_cmcc.mk /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_RK3308B_firefly.mk /home/ihc3308gw/prog/device/rockchip/rk3126c/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig-rk3399pro_evb_v10-usb.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig-rk3399pro_npu-usb.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig_rk3399pro_evb_v13_pcie.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig-rk3399pro_evb_lpd4_v11_v12-usb.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig_rk3399pro_evb_v14-combine.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig-rk3399pro_evb_v11_v12-usb.mk /home/ihc3308gw/prog/device/rockchip/rk3399pro/BoardConfig-rk3399pro_npu-pcie.mk /home/ihc3308gw/prog/device/rockchip/px30/BoardConfig-px30-robot64.mk /home/ihc3308gw/prog/device/rockchip/px30/BoardConfig-px30-evb-ddr3-v11-32bit.mk /home/ihc3308gw/prog/device/rockchip/px30/BoardConfig-px30-evb-ddr3-v10.mk /home/ihc3308gw/prog/device/rockchip/px30/BoardConfig-px30-evb-ddr3-v10-32bit.mk /home/ihc3308gw/prog/device/rockchip/px30/BoardConfig-px30-robot64_no_gpu.mk /home/ihc3308gw/prog/device/rockchip/px30/BoardConfig-px30-evb-ddr3-v11.mk /home/ihc3308gw/prog/device/rockchip/px3se/BoardConfig_nand.mk /home/ihc3308gw/prog/device/rockchip/px3se/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-battery-ipc.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-sl.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-slc-nand-v12.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-robot.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-uvcc.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-tb-v12.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-battery-evb.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-38x38-spi-nand.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-ab-v13.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-tb-v13.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-38x38-emmc.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-v10-v11.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-dualcam-tb-v13.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-rv1126_rv1109-weston-qt.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-38x38-spi-nand-ab.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-spi-nor-tb-v13.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-sllock.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-spi-nand.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-uvcc-spi-nand.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-v12.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-spi-nor-v12.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-battery-evb-v10.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-trailcamera.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-facial_gate.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-cvr.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-ramboot-uvc.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-snapshot.mk /home/ihc3308gw/prog/device/rockchip/rv1126_rv1109/BoardConfig-uvcc-spi-nor-v12.mk /home/ihc3308gw/prog/device/rockchip/rv1108/BoardConfig-minievb-v10-cvr.mk /home/ihc3308gw/prog/device/rockchip/rv1108/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rv1108/BoardConfig-minievb-v10-lock.mk /home/ihc3308gw/prog/device/rockchip/rk3036/BoardConfig_retro.mk /home/ihc3308gw/prog/device/rockchip/rk3036/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk3036/BoardConfig_dongle.mk /home/ihc3308gw/prog/device/rockchip/rk3588/BoardConfig-nvr.mk /home/ihc3308gw/prog/device/rockchip/rk3588/BoardConfig-rk3588s-evb1-lp4x-v10.mk /home/ihc3308gw/prog/device/rockchip/rk3588/BoardConfig-rk3588-evb1-lp4-v10.mk /home/ihc3308gw/prog/device/rockchip/rk3588/BoardConfig-rk3588-evb3-lp5-v10.mk /home/ihc3308gw/prog/device/rockchip/rk3326/BoardConfig-rk3326-robot64.mk /home/ihc3308gw/prog/device/rockchip/rk3326/BoardConfig-rk3326-evb-lp3-v10.mk /home/ihc3308gw/prog/device/rockchip/rk3326/BoardConfig-rk3326-robot64_no_gpu.mk /home/ihc3308gw/prog/device/rockchip/rk3326/BoardConfig-rk3326-evb-lp3-v10-32bit.mk /home/ihc3308gw/prog/device/rockchip/rk3128h/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk1808/BoardConfig.mk /home/ihc3308gw/prog/device/rockchip/rk1808/BoardConfig_rk1808_compute_stick_emmc.mk /home/ihc3308gw/prog/device/rockchip/rk1808/BoardConfig_rk1808_compute_stick.mk /home/ihc3308gw/prog/device/rockchip/rk1808/BoardConfig_rk1808_multi.mk /home/ihc3308gw/prog/device/rockchip/rk1808/BoardConfig_rk1808_compute_stick_sfc.mk /home/ihc3308gw/prog/device/rockchip/rk3328/BoardConfig.mk -h
+ source /tmp/tmp.BmSW2gXOsD
++ export RK_ARCH=
++ RK_ARCH=
++ export RK_BOARD_PRE_BUILD_SCRIPT=
++ RK_BOARD_PRE_BUILD_SCRIPT=
++ export RK_BOOT_IMG=
++ RK_BOOT_IMG=
++ export RK_BUILD_OEM_ROOTFS=
++ RK_BUILD_OEM_ROOTFS=
++ export RK_CFG_BUILDROOT=
++ RK_CFG_BUILDROOT=
++ export RK_CFG_PCBA=
++ RK_CFG_PCBA=
++ export RK_CFG_RAMBOOT=
++ RK_CFG_RAMBOOT=
++ export RK_CFG_RECOVERY=
++ RK_CFG_RECOVERY=
++ export RK_CHIP=
++ RK_CHIP=
++ export RK_DEBIAN_VERSION=
++ RK_DEBIAN_VERSION=
++ export RK_DISTRO_DEFCONFIG=
++ RK_DISTRO_DEFCONFIG=
++ export RK_DISTRO_MODULE=
++ RK_DISTRO_MODULE=
++ export RK_FACE_DETECTION_HEIGHT=
++ RK_FACE_DETECTION_HEIGHT=
++ export RK_FACE_DETECTION_OFFSET_X=
++ RK_FACE_DETECTION_OFFSET_X=
++ export RK_FACE_DETECTION_OFFSET_Y=
++ RK_FACE_DETECTION_OFFSET_Y=
++ export RK_FACE_DETECTION_WIDTH=
++ RK_FACE_DETECTION_WIDTH=
++ export RK_FACE_FOV_SCALE_FACTOR_X=
++ RK_FACE_FOV_SCALE_FACTOR_X=
++ export RK_FACE_FOV_SCALE_FACTOR_Y=
++ RK_FACE_FOV_SCALE_FACTOR_Y=
++ export RK_FIRST_START_APP=
++ RK_FIRST_START_APP=
++ export RK_HAS_DEPTH_CAMERA=
++ RK_HAS_DEPTH_CAMERA=
++ export RK_IDBLOCK_UPDATE_SPL=
++ RK_IDBLOCK_UPDATE_SPL=
++ export RK_JOBS=
++ RK_JOBS=
++ export RK_KERNEL_DEFCONFIG=
++ RK_KERNEL_DEFCONFIG=
++ export RK_KERNEL_DEFCONFIG_FRAGMENT=
++ RK_KERNEL_DEFCONFIG_FRAGMENT=
++ export RK_KERNEL_DTS=
++ RK_KERNEL_DTS=
++ export RK_KERNEL_FIT_ITS=
++ RK_KERNEL_FIT_ITS=
++ export RK_KERNEL_IMG=
++ RK_KERNEL_IMG=
++ export RK_KERNEL_SECOND_DTS=
++ RK_KERNEL_SECOND_DTS=
++ export RK_KERNEL_ZIMG=
++ RK_KERNEL_ZIMG=
++ export RK_LINUX_AB_ENABLE=
++ RK_LINUX_AB_ENABLE=
++ export RK_LOADER_BOOTPART_SELECT=
++ RK_LOADER_BOOTPART_SELECT=
++ export RK_LOADER_BUILD_TYPE=
++ RK_LOADER_BUILD_TYPE=
++ export RK_LOADER_EMMC_TURNING_DEGREE=
++ RK_LOADER_EMMC_TURNING_DEGREE=
++ export RK_LOADER_NAME=
++ RK_LOADER_NAME=
++ export RK_LOADER_POWER_HOLD_GPIO_GROUP=
++ RK_LOADER_POWER_HOLD_GPIO_GROUP=
++ export RK_LOADER_POWER_HOLD_GPIO_INDEX=
++ RK_LOADER_POWER_HOLD_GPIO_INDEX=
++ export RK_LOADER_PREISP_EN=
++ RK_LOADER_PREISP_EN=
++ export RK_LOADER_UPDATE_SPL=
++ RK_LOADER_UPDATE_SPL=
++ export RK_MISC=
++ RK_MISC=
++ export RK_MULTINPU_BOOT=
++ RK_MULTINPU_BOOT=
++ export RK_OEM_BUILDIN_BUILDROOT=
++ RK_OEM_BUILDIN_BUILDROOT=
++ export RK_OEM_DIR=
++ RK_OEM_DIR=
++ export RK_OEM_FS_TYPE=
++ RK_OEM_FS_TYPE=
++ export RK_OEM_NODE=
++ RK_OEM_NODE=
++ export RK_PACKAGE_FILE=
++ RK_PACKAGE_FILE=
++ export RK_PACKAGE_FILE_AB=
++ RK_PACKAGE_FILE_AB=
++ export RK_PACKAGE_FILE_OTA=
++ RK_PACKAGE_FILE_OTA=
++ export RK_PARAMETER=
++ RK_PARAMETER=
++ export RK_PRODUCT_MODEL=
++ RK_PRODUCT_MODEL=
++ export RK_RAMBOOT_TYPE=
++ RK_RAMBOOT_TYPE=
++ export RK_RECOVERY_FIT_ITS=
++ RK_RECOVERY_FIT_ITS=
++ export RK_RKBOOT_INI=
++ RK_RKBOOT_INI=
++ export RK_ROOT_FILESYSTEM_SIZE=
++ RK_ROOT_FILESYSTEM_SIZE=
++ export RK_ROOT_FILESYSTEM_TYPE=
++ RK_ROOT_FILESYSTEM_TYPE=
++ export RK_ROOTFS_IMG=
++ RK_ROOTFS_IMG=
++ export RK_ROOTFS_TYPE=
++ RK_ROOTFS_TYPE=
++ export RK_SETTING_INI=
++ RK_SETTING_INI=
++ export RK_SPL_DEFCONFIG=
++ RK_SPL_DEFCONFIG=
++ export RK_SPL_INI_CONFIG=
++ RK_SPL_INI_CONFIG=
++ export RK_STORAGE_TYPE=
++ RK_STORAGE_TYPE=
++ export RK_TARGET_BOARD_VERSION=
++ RK_TARGET_BOARD_VERSION=
++ export RK_TARGET_PRODUCT=
++ RK_TARGET_PRODUCT=
++ export RK_TRUST_INI_CONFIG=
++ RK_TRUST_INI_CONFIG=
++ export RK_TRUST_SIZE_CONFIG=
++ RK_TRUST_SIZE_CONFIG=
++ export RK_UBI_BLOCK_SIZE=
++ RK_UBI_BLOCK_SIZE=
++ export RK_UBI_PAGE_SIZE=
++ RK_UBI_PAGE_SIZE=
++ export RK_UBOOT_DEFCONFIG=
++ RK_UBOOT_DEFCONFIG=
++ export RK_UBOOT_DEFCONFIG_FRAGMENT=
++ RK_UBOOT_DEFCONFIG_FRAGMENT=
++ export RK_UBOOT_FORMAT_TYPE=
++ RK_UBOOT_FORMAT_TYPE=
++ export RK_UBOOT_SIZE_CONFIG=
++ RK_UBOOT_SIZE_CONFIG=
++ export RK_UI_RESOLUTION=
++ RK_UI_RESOLUTION=
++ export RK_UPDATE_SDCARD_CFG_RECOVERY=
++ RK_UPDATE_SDCARD_CFG_RECOVERY=
++ export RK_USERDATA_DIR=
++ RK_USERDATA_DIR=
++ export RK_USERDATA_FILESYSTEM_SIZE=
++ RK_USERDATA_FILESYSTEM_SIZE=
++ export RK_USERDATA_FILESYSTEM_TYPE=
++ RK_USERDATA_FILESYSTEM_TYPE=
++ export RK_USERDATA_FS_TYPE=
++ RK_USERDATA_FS_TYPE=
++ export RK_USERDATA_NODE=
++ RK_USERDATA_NODE=
++ export RK_USERDATA_PARTITION_SIZE=
++ RK_USERDATA_PARTITION_SIZE=
++ export RK_UVC_USE_SL_MODULE=
++ RK_UVC_USE_SL_MODULE=
++ export RK_YOCTO_MACHINE=
++ RK_YOCTO_MACHINE=
+ rm -f /tmp/tmp.BmSW2gXOsD
+ source /home/ihc3308gw/prog/device/rockchip/.BoardConfig.mk
+++ realpath /home/ihc3308gw/prog/device/rockchip/.BoardConfig.mk
++ CMD=/home/ihc3308gw/prog/device/rockchip/rk3308/ihc-3308gw-ubuntu.mk
+++ dirname /home/ihc3308gw/prog/device/rockchip/rk3308/ihc-3308gw-ubuntu.mk
++ CUR_DIR=/home/ihc3308gw/prog/device/rockchip/rk3308
++ source /home/ihc3308gw/prog/device/rockchip/rk3308/BoardConfig_RK3308B_firefly.mk
+++ export RK_ARCH=arm64
+++ RK_ARCH=arm64
+++ export RK_UBOOT_DEFCONFIG=firefly-rk3308-debug-uart4
+++ RK_UBOOT_DEFCONFIG=firefly-rk3308-debug-uart4
+++ export RK_KERNEL_DEFCONFIG=firefly-rk3308b_linux_defconfig
+++ RK_KERNEL_DEFCONFIG=firefly-rk3308b_linux_defconfig
+++ export RK_KERNEL_DTS=rk3308b-roc-cc-plus-amic_emmc
+++ RK_KERNEL_DTS=rk3308b-roc-cc-plus-amic_emmc
+++ export RK_BOOT_IMG=zboot.img
+++ RK_BOOT_IMG=zboot.img
+++ export RK_KERNEL_IMG=kernel/arch/arm64/boot/Image.lz4
+++ RK_KERNEL_IMG=kernel/arch/arm64/boot/Image.lz4
+++ export RK_PARAMETER=parameter-64bit-emmc.txt
+++ RK_PARAMETER=parameter-64bit-emmc.txt
+++ export RK_PACKAGE_FILE=rk3308-package-file
+++ RK_PACKAGE_FILE=rk3308-package-file
+++ export RK_CFG_BUILDROOT=firefly_rk3308_release
+++ RK_CFG_BUILDROOT=firefly_rk3308_release
+++ export RK_CFG_RECOVERY=firefly_rk3308_recovery
+++ RK_CFG_RECOVERY=firefly_rk3308_recovery
+++ export RK_CFG_RAMBOOT=
+++ RK_CFG_RAMBOOT=
+++ export RK_CFG_PCBA=firefly_rk3308_pcba
+++ RK_CFG_PCBA=firefly_rk3308_pcba
+++ export RK_JOBS=12
+++ RK_JOBS=12
+++ export RK_TARGET_PRODUCT=rk3308
+++ RK_TARGET_PRODUCT=rk3308
+++ export RK_ROOTFS_TYPE=ext2
+++ RK_ROOTFS_TYPE=ext2
+++ export RK_ROOTFS_IMG=rockdev/rootfs.ext2
+++ RK_ROOTFS_IMG=rockdev/rootfs.ext2
+++ export RK_OEM_FS_TYPE=ext2
+++ RK_OEM_FS_TYPE=ext2
+++ export RK_USERDATA_FS_TYPE=ext2
+++ RK_USERDATA_FS_TYPE=ext2
+++ export RK_STORAGE_TYPE=emmc
+++ RK_STORAGE_TYPE=emmc
+++ export RK_OEM_DIR=../rk3308/oem
+++ RK_OEM_DIR=../rk3308/oem
+++ export RK_USERDATA_DIR=userdata_empty
+++ RK_USERDATA_DIR=userdata_empty
+++ MIC_NUM=6
+++ export RK_MISC=wipe_all-misc.img
+++ RK_MISC=wipe_all-misc.img
+++ export RK_DISTRO_MODULE=
+++ RK_DISTRO_MODULE=
+++ export RK_LINUX_AB_ENABLE=
+++ RK_LINUX_AB_ENABLE=
+++ export RK_RKBOOT_INI=RK3308MINIALL_UART4
+++ RK_RKBOOT_INI=RK3308MINIALL_UART4
+++ export 'RK_LOADER_NAME=*_loader_uart4_v*.bin'
+++ RK_LOADER_NAME='*_loader_uart4_v*.bin'
+++ export RK_PRODUCT_MODEL=ROC_3308B_CC_PLUS
+++ RK_PRODUCT_MODEL=ROC_3308B_CC_PLUS
++ export RK_UBOOT_DEFCONFIG=firefly-rk3308-debug-uart4
++ RK_UBOOT_DEFCONFIG=firefly-rk3308-debug-uart4
++ export RK_KERNEL_DEFCONFIG=firefly-rk3308b_linux_defconfig
++ RK_KERNEL_DEFCONFIG=firefly-rk3308b_linux_defconfig
++ export RK_KERNEL_DTS=rk3308b-roc-cc-plus-amic-ext_emmc
++ RK_KERNEL_DTS=rk3308b-roc-cc-plus-amic-ext_emmc
++ export RK_PARAMETER=parameter-64bit-ubuntu.txt
++ RK_PARAMETER=parameter-64bit-ubuntu.txt
++ export RK_PACKAGE_FILE=rk3308-package-file-ubuntu
++ RK_PACKAGE_FILE=rk3308-package-file-ubuntu
++ export RK_ROOTFS_IMG=rootfs/rk3308-ubuntu_rootfs.img
++ RK_ROOTFS_IMG=rootfs/rk3308-ubuntu_rootfs.img
++ export RK_RECOVERY_RAMDISK=recovery-arm64.cpio.gz
++ RK_RECOVERY_RAMDISK=recovery-arm64.cpio.gz
++ export RK_USERDATA_FS_TYPE=ext4
++ RK_USERDATA_FS_TYPE=ext4
++ export RK_CFG_BUILDROOT=
++ RK_CFG_BUILDROOT=
++ export RK_CFG_RECOVERY=
++ RK_CFG_RECOVERY=
++ export RK_OEM_DIR=
++ RK_OEM_DIR=
++ export RK_USERDATA_DIR=
++ RK_USERDATA_DIR=
++ export RK_ROOTFS_SYSTEM=ubuntu
++ RK_ROOTFS_SYSTEM=ubuntu
+ ROCKDEV=/home/ihc3308gw/prog/rockdev
+ PARAMETER=/home/ihc3308gw/prog/device/rockchip/rk3308/parameter-64bit-ubuntu.txt
+ '[' x '!=' x ']'
+ OEM_DIR=
+ USER_DATA_DIR=/home/ihc3308gw/prog/device/rockchip/userdata/
+ MISC_IMG=/home/ihc3308gw/prog/device/rockchip/rockimg/wipe_all-misc.img
+ ROOTFS_IMG=/home/ihc3308gw/prog/rootfs/rk3308-ubuntu_rootfs.img
+ ROOTFS_IMG_SOURCE=/home/ihc3308gw/prog/buildroot/output//images/rootfs.ext2
+ RAMBOOT_IMG=/home/ihc3308gw/prog/buildroot/output//images/ramboot.img
+ '[' -n '' ']'
+ RECOVERY_IMG=/home/ihc3308gw/prog/rockdev/recovery.img
+ IDBLOADER_IMG=/home/ihc3308gw/prog/u-boot/idbloader.img
+ IDBLOCK_BIN=/home/ihc3308gw/prog/u-boot/idblock.bin
+ which fakeroot
/usr/bin/fakeroot
++ which fakeroot
+ FAKEROOT_TOOL=/usr/bin/fakeroot
+ OEM_FAKEROOT_SCRIPT=/home/ihc3308gw/prog/rockdev/oem.fs
+ USERDATA_FAKEROOT_SCRIPT=/home/ihc3308gw/prog/rockdev/userdata.fs
+ TRUST_IMG=/home/ihc3308gw/prog/u-boot/trust.img
+ UBOOT_IMG=/home/ihc3308gw/prog/u-boot/uboot.img
+ '[' '' = true ']'
+ BOOT_IMG=/home/ihc3308gw/prog/kernel/zboot.img
+ LOADER='/home/ihc3308gw/prog/u-boot/*_loader_v*.bin'
+ SPL='/home/ihc3308gw/prog/u-boot/*_loader_spl.bin'
+ MKIMAGE=/home/ihc3308gw/prog/device/rockchip/common/mk-image.sh
+ mkdir -p /home/ihc3308gw/prog/rockdev
+ '[' rootfs/rk3308-ubuntu_rootfs.img ']'
+ '[' -f /home/ihc3308gw/prog/buildroot/output//images/rootfs.ext2 ']'
+ '[' -f /home/ihc3308gw/prog/rootfs/rk3308-ubuntu_rootfs.img ']'
+ echo -n 'create rootfs.img...'
create rootfs.img...+ ln -rsf /home/ihc3308gw/prog/rootfs/rk3308-ubuntu_rootfs.img /home/ihc3308gw/prog/rockdev/rootfs.img
+ echo done.
done.
+ '[' -f /home/ihc3308gw/prog/device/rockchip/rk3308/parameter-64bit-ubuntu.txt ']'
+ echo -n 'create parameter...'
create parameter...+ ln -rsf /home/ihc3308gw/prog/device/rockchip/rk3308/parameter-64bit-ubuntu.txt /home/ihc3308gw/prog/rockdev/parameter.txt
+ echo done.
done.
+ get_partition_size
+ echo /home/ihc3308gw/prog/device/rockchip/rk3308/parameter-64bit-ubuntu.txt
/home/ihc3308gw/prog/device/rockchip/rk3308/parameter-64bit-ubuntu.txt
++ echo -n 'CMDLINE: mtdparts=rk29xxnand:'
+ PARTITIONS_PREFIX='CMDLINE: mtdparts=rk29xxnand:'
+ read line
+ [[ FIRMWARE_VER:8.1 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ MACHINE_MODEL:RK3308 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ MACHINE_ID:007 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ MANUFACTURER: RK3308 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ MAGIC: 0x5041524B =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ ATAG: 0x00200800 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ MACHINE: 3308 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ CHECK_MASK: 0x80 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ PWR_HLD: 0,0,A,0,1 =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ TYPE: GPT =~ CMDLINE: mtdparts=rk29xxnand: ]]
+ read line
+ [[ CMDLINE: mtdparts=rk29xxnand:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x0000A000@0x0000E800(boot),0x00100000@0x00018800(rootfs),-@0x118800(userdata:grow) =~ CMDLINE: mtdparts=rk29xxnand: ]]
++ echo CMDLINE: 'mtdparts=rk29xxnand:0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x0000A000@0x0000E800(boot),0x00100000@0x00018800(rootfs),-@0x118800(userdata:grow)'
++ sed 's/CMDLINE: mtdparts=rk29xxnand://g'
+ partitions='0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x0000A000@0x0000E800(boot),0x00100000@0x00018800(rootfs),-@0x118800(userdata:grow)'
+ echo '0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x0000A000@0x0000E800(boot),0x00100000@0x00018800(rootfs),-@0x118800(userdata:grow)'
0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x0000A000@0x0000E800(boot),0x00100000@0x00018800(rootfs),-@0x118800(userdata:grow)
+ break
+ '[' -z '0x00001000@0x00002000(uboot),0x00001000@0x00003000(trust),0x00000800@0x00004000(misc),0x0000A000@0x00004800(recovery),0x0000A000@0x0000E800(boot),0x00100000@0x00018800(rootfs),-@0x118800(userdata:grow)' ']'
+ PART_NAME_NEED_TO_CHECK=
+ IFS=,
+ for part in $partitions
++ echo '0x00001000@0x00002000(uboot)'
++ cut -d @ -f1
+ part_size=0x00001000
++ echo '0x00001000@0x00002000(uboot)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=uboot
+ [[ 0x00001000 =~ - ]]
+ part_size=4096
+ part_size_bytes=2097152
+ case $part_name in
+ uboot_part_size_bytes=2097152
+ PART_NAME_NEED_TO_CHECK=:uboot
+ for part in $partitions
++ echo '0x00001000@0x00003000(trust)'
++ cut -d @ -f1
+ part_size=0x00001000
++ echo '0x00001000@0x00003000(trust)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=trust
+ [[ 0x00001000 =~ - ]]
+ part_size=4096
+ part_size_bytes=2097152
+ case $part_name in
+ for part in $partitions
++ echo '0x00000800@0x00004000(misc)'
++ cut -d @ -f1
+ part_size=0x00000800
++ echo '0x00000800@0x00004000(misc)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=misc
+ [[ 0x00000800 =~ - ]]
+ part_size=2048
+ part_size_bytes=1048576
+ case $part_name in
+ for part in $partitions
++ echo '0x0000A000@0x00004800(recovery)'
++ cut -d @ -f1
+ part_size=0x0000A000
++ echo '0x0000A000@0x00004800(recovery)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=recovery
+ [[ 0x0000A000 =~ - ]]
+ part_size=40960
+ part_size_bytes=20971520
+ case $part_name in
+ recovery_part_size_bytes=20971520
+ PART_NAME_NEED_TO_CHECK=:uboot:recovery
+ for part in $partitions
++ echo '0x0000A000@0x0000E800(boot)'
++ cut -d @ -f1
+ part_size=0x0000A000
++ echo '0x0000A000@0x0000E800(boot)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=boot
+ [[ 0x0000A000 =~ - ]]
+ part_size=40960
+ part_size_bytes=20971520
+ case $part_name in
+ boot_part_size_bytes=20971520
+ PART_NAME_NEED_TO_CHECK=:uboot:recovery:boot
+ for part in $partitions
++ echo '0x00100000@0x00018800(rootfs)'
++ cut -d @ -f1
+ part_size=0x00100000
++ echo '0x00100000@0x00018800(rootfs)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=rootfs
+ [[ 0x00100000 =~ - ]]
+ part_size=1048576
+ part_size_bytes=536870912
+ case $part_name in
+ rootfs_part_size_bytes=536870912
+ PART_NAME_NEED_TO_CHECK=:uboot:recovery:boot:rootfs
+ for part in $partitions
++ echo '-@0x118800(userdata:grow)'
++ cut -d @ -f1
+ part_size=-
++ echo '-@0x118800(userdata:grow)'
++ cut -d '(' -f2
++ cut -d ')' -f1
+ part_name=userdata:grow
+ [[ - =~ - ]]
+ continue
+ '[' ']'
+ '[' wipe_all-misc.img ']'
+ '[' -f /home/ihc3308gw/prog/device/rockchip/rockimg/wipe_all-misc.img ']'
+ echo -n 'create misc.img...'
create misc.img...+ ln -rsf /home/ihc3308gw/prog/device/rockchip/rockimg/wipe_all-misc.img /home/ihc3308gw/prog/rockdev/misc.img
+ echo done.
done.
+ '[' x '!=' YESx ']'
+ '[' -d '' ']'
+ echo 'warning:   not found!'
warning:   not found!
+ '[' ']'
+ '[' -f /home/ihc3308gw/prog/u-boot/uboot.img ']'
+ echo -n 'create uboot.img...'
create uboot.img...+ ln -rsf /home/ihc3308gw/prog/u-boot/uboot.img /home/ihc3308gw/prog/rockdev/uboot.img
+ echo done.
done.
+ '[' -f /home/ihc3308gw/prog/u-boot/idbloader.img ']'
+ '[' -f /home/ihc3308gw/prog/u-boot/idblock.bin ']'
+ '[' '' = fit ']'
+ '[' -f /home/ihc3308gw/prog/u-boot/trust.img ']'
+ echo -n 'create trust.img...'
create trust.img...+ ln -rsf /home/ihc3308gw/prog/u-boot/trust.img /home/ihc3308gw/prog/rockdev/trust.img
+ echo done.
done.
+ '[' -f /home/ihc3308gw/prog/u-boot/rk3308_loader_v2.06.133.bin ']'
+ echo -n 'create loader...'
create loader...+ ln -rsf /home/ihc3308gw/prog/u-boot/rk3308_loader_v2.06.133.bin /home/ihc3308gw/prog/rockdev/MiniLoaderAll.bin
+ echo done.
done.
+ '[' zboot.img ']'
+ '[' -f /home/ihc3308gw/prog/kernel/zboot.img ']'
+ echo -n 'create boot.img...'
create boot.img...+ ln -rsf /home/ihc3308gw/prog/kernel/zboot.img /home/ihc3308gw/prog/rockdev/boot.img
+ echo done.
done.
+ '[' ']'
+ '[' '' = true ']'
+ check_partition_size
+ true
+ part_name=rootfs
+ case $part_name in
++ realpath /home/ihc3308gw/prog/rockdev/rootfs.img
+ rootfs_img=/home/ihc3308gw/prog/rootfs/rk3308-ubuntu_rootfs.img
+ '[' -f /home/ihc3308gw/prog/rootfs/rk3308-ubuntu_rootfs.img ']'
+ echo 'mkupdate.sh will resize the rootfs partition.'
mkupdate.sh will resize the rootfs partition.
+ PART_NAME_NEED_TO_CHECK=:uboot:recovery:boot
+ '[' -z :uboot:recovery:boot ']'
+ true
+ part_name=boot
+ case $part_name in
++ realpath /home/ihc3308gw/prog/rockdev/boot.img
+ boot_img=/home/ihc3308gw/prog/kernel/zboot.img
++ du -b /home/ihc3308gw/prog/kernel/zboot.img
++ awk '{print $1}'
+ '[' 20971520 -lt 15951872 ']'
+ PART_NAME_NEED_TO_CHECK=:uboot:recovery
+ '[' -z :uboot:recovery ']'
+ true
+ part_name=recovery
+ case $part_name in
+ '[' -f /home/ihc3308gw/prog/rockdev/recovery.img ']'
++ du -b /home/ihc3308gw/prog/rockdev/recovery.img
++ awk '{print $1}'
+ '[' 20971520 -lt 15808512 ']'
+ PART_NAME_NEED_TO_CHECK=:uboot
+ '[' -z :uboot ']'
+ true
+ part_name=uboot
+ case $part_name in
++ realpath /home/ihc3308gw/prog/rockdev/uboot.img
+ uboot_img=/home/ihc3308gw/prog/u-boot/uboot.img
++ du -b /home/ihc3308gw/prog/u-boot/uboot.img
++ awk '{print $1}'
+ '[' 2097152 -lt 2097152 ']'
+ PART_NAME_NEED_TO_CHECK=
+ '[' -z '' ']'
+ break
+ echo -e '\e[36m Image: image in rockdev is ready \e[0m'
Image: image in rockdev is ready

作者: elecapp    时间: 2023-1-3 20:32
ihc3308gw@ihc3308gw-virtual-machine:~/prog$ ls -l rockdev/userdata.img
ls: cannot access 'rockdev/userdata.img': No such file or directory

作者: 时间的蝴蝶    时间: 2023-1-4 14:32
elecapp 发表于 2023-1-3 20:24
ihc3308gw@ihc3308gw-virtual-machine:~/prog$ bash -x ./mkfirmware.sh
+ set -e
+++ realpath ./mkfi ...

这里没有问题,而且 ubuntu 固件是不需要打包 userdata.img 的;

确认下 package-file 文件,应该有这行 'userdata:grow    RESERVED'
ls -l tools/linux/Linux_Pack_Firmware/rockdev/package-file
tools/linux/Linux_Pack_Firmware/rockdev/package-file -> rk3308-package-file-ubuntu




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1