commit d9fb91881ce645255bc49227d5b8430348d48569 Author: 黑猫 <133520@live.cn> Date: Thu May 11 15:47:08 2023 +0800 上传 diff --git a/ipq6018/config.xml b/ipq6018/config.xml new file mode 100644 index 0000000..b03fe67 --- /dev/null +++ b/ipq6018/config.xml @@ -0,0 +1,160 @@ + + + + + + ipq6018 + + + + 256 + 256 + 256 + + + + + 2048 + 64 + 4096 + + + 2048 + 64 + 4096 + + + 4096 + 64 + 4096 + + + 4096 + 64 + 4096 + + + + + + 7634944 + gpt_main0.bin + gpt_backup0.bin + + + + 256 + 256 + 256 + + + + 256 + 512 + 256 + 256 + gpt_main1.bin + gpt_backup1.bin + + + + + 0x8030000 + AP-CP01-C1 + false + 256M32_DDR3 + + + 0x8030001 + AP-CP01-C2 + false + 256M32_DDR3 + + + 0x8030002 + AP-CP01-C3 + false + 256M32_DDR3 + + + 0x8030003 + AP-CP01-C4 + false + 256M32_DDR3 + true + + + 0x8030100 + AP-CP02-C1 + false + 256M32_DDR4 + + + 0x8030200 + AP-CP03-C1 + false + 256M16_DDR3 + + + 0x1030000 + DB-CP01 + false + 256M32_DDR3 + + + 0x1030100 + DB-CP02 + false + 1024M32_DDR4 + + + 0xF030000 + CP-EMU + false + 256M32_DDR3 + + + + + + /boot_images/build/ms/bin/8074/nor/sbl1_nor.mbn + /boot_images/build/ms/bin/8074/nand/sbl1_nand.mbn + /boot_images/build/ms/bin/8074/emmc/sbl1_emmc.mbn + /boot_images/build/ms/bin/8074/flashless/sbl1_flashless.mbn + /boot_images/core/bsp/tools/flash/partition_tool_exe/build/partition_tool + /boot_images/core/bsp/tools/flash/bootconfig_exe/build/bootconfig_tool + + + /trustzone_images/build/ms/bin/SANAANAA/tz.mbn + /trustzone_images/build/ms/bin/SANAANAA/devcfg_noac.mbn + /trustzone_images/build/ms/bin/SANAANAA/devcfg_nosmmu.mbn + + + /apss_proc/out/ipq807x/openwrt-ipq807x-u-boot.elf + /apss_proc/out/ipq807x/openwrt-ipq-ipq807x-squashfs-root.img + /apss_proc/out/ipq807x/openwrt-ipq-ipq807x-qcom-ipq807x-hkxx-fit-uImage.itb + /apss_proc/out/ipq807x/openwrt-ipq-ipq807x-ubi-root.img + /apss_proc/out/pack.py + + + /apss_proc/out/ipq807x/openwrt-ipq807x-u-boot.elf + /apss_proc/out/ipq807x_64/openwrt-ipq-ipq807x_64-squashfs-root.img + /apss_proc/out/ipq807x_64/openwrt-ipq-ipq807x_64-qcom-ipq807x-hkxx-fit-uImage.itb + /apss_proc/out/ipq807x_64/openwrt-ipq-ipq807x_64-ubi-root.img + /apss_proc/out/pack.py + + + /rpm_proc/build/ms/bin/8074/rpm.mbn + + + /wlan_proc/build/ms/bin/wifi_fw_squashfs.img + /wlan_proc/build/ms/bin/wifi_fw_ubi.img + + + diff --git a/ipq6018/flash_partition/nand-4k-partition.xml b/ipq6018/flash_partition/nand-4k-partition.xml new file mode 100644 index 0000000..3d20fc4 --- /dev/null +++ b/ipq6018/flash_partition/nand-4k-partition.xml @@ -0,0 +1,220 @@ + + + + + + 0xAA7D1B9A + 0x1F7D48BC + + 0x4 + + + 0:SBL1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + xbl_nand.elf + + + 0:MIBIB + 512 + 512 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + nand-system-partition-ipq6018-m4096-p256KiB.bin + + + 0:BOOTCONFIG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig.bin + + + 0:BOOTCONFIG1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig.bin + + + 0:QSEE + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + tz.mbn + + + 0:QSEE_1 + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:DEVCFG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + devcfg.mbn + + + 0:DEVCFG_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:RPM + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + rpm.mbn + + + 0:RPM_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:CDT + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + cdt.bin + + + 0:CDT_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBLENV + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBL + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq6018-u-boot.mbn + + + 0:APPSBL_1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:ART + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + rootfs + 85504 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq-ipq60xx-ubi-root-m4096-p256KiB.img + openwrt-ipq-ipq60xx_64-ubi-root-m4096-p256KiB.img + + + rootfs_1 + 85504 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:ETHPHYFW + 2048 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + + diff --git a/ipq6018/flash_partition/nand-audio-4k-partition.xml b/ipq6018/flash_partition/nand-audio-4k-partition.xml new file mode 100644 index 0000000..8fea8ba --- /dev/null +++ b/ipq6018/flash_partition/nand-audio-4k-partition.xml @@ -0,0 +1,210 @@ + + + + + + 0xAA7D1B9A + 0x1F7D48BC + + 0x4 + + + 0:SBL1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + xbl_nand.elf + + + 0:MIBIB + 512 + 512 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + nand-audio-system-partition-ipq6018-m4096-p256KiB.bin + + + 0:BOOTCONFIG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig-audio.bin + + + 0:BOOTCONFIG1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig-audio.bin + + + 0:QSEE + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + tz.mbn + + + 0:QSEE_1 + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:DEVCFG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + devcfg_noac.mbn + + + 0:DEVCFG_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:RPM + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + rpm.mbn + + + 0:RPM_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:CDT + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + cdt.bin + + + 0:CDT_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBLENV + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBL + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq6018-u-boot.mbn + + + 0:APPSBL_1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:ART + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + rootfs + 197120 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq-ipq60xx-ubi-root-m4096-p256KiB.img + openwrt-ipq-ipq60xx_64-ubi-root-m4096-p256KiB.img + + + 0:ETHPHYFW + 2048 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + + diff --git a/ipq6018/flash_partition/nand-audio-partition.xml b/ipq6018/flash_partition/nand-audio-partition.xml new file mode 100644 index 0000000..adb44b0 --- /dev/null +++ b/ipq6018/flash_partition/nand-audio-partition.xml @@ -0,0 +1,210 @@ + + + + + + 0xAA7D1B9A + 0x1F7D48BC + + 0x4 + + + 0:SBL1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + xbl_nand.elf + + + 0:MIBIB + 512 + 512 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + nand-audio-system-partition-ipq6018-m2048-p128KiB.bin + + + 0:BOOTCONFIG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig-audio.bin + + + 0:BOOTCONFIG1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig-audio.bin + + + 0:QSEE + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + tz.mbn + + + 0:QSEE_1 + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:DEVCFG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + devcfg_noac.mbn + + + 0:DEVCFG_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:RPM + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + rpm.mbn + + + 0:RPM_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:CDT + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + cdt.bin + + + 0:CDT_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBLENV + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBL + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq6018-u-boot.mbn + + + 0:APPSBL_1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:ART + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + rootfs + 108544 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq-ipq60xx-ubi-root.img + openwrt-ipq-ipq60xx_64-ubi-root.img + + + 0:ETHPHYFW + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + + diff --git a/ipq6018/flash_partition/nand-partition.xml b/ipq6018/flash_partition/nand-partition.xml new file mode 100644 index 0000000..5497e1c --- /dev/null +++ b/ipq6018/flash_partition/nand-partition.xml @@ -0,0 +1,158 @@ + + + + + + 0xAA7D1B9A + 0x1F7D48BC + + 0x4 + + + 0:SBL1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + xbl_nand.elf + + + 0:MIBIB + 512 + 512 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + nand-system-partition-ipq6018.bin + + + 0:QSEE + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + tz.mbn + + + 0:DEVCFG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + devcfg.mbn + + + 0:RPM + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + rpm.mbn + + + 0:CDT + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + cdt.bin + + + 0:APPSBLENV + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBL + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq6018-u-boot.mbn + + + 0:ART + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + bdata + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + crash + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + crash_syslog + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + rootfs + 113664 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq-ipq60xx-ubi-root.img + openwrt-ipq-ipq60xx_64-ubi-root.img + + + + diff --git a/ipq6018/flash_partition/nand-partition.xml.bak b/ipq6018/flash_partition/nand-partition.xml.bak new file mode 100644 index 0000000..805987d --- /dev/null +++ b/ipq6018/flash_partition/nand-partition.xml.bak @@ -0,0 +1,220 @@ + + + + + + 0xAA7D1B9A + 0x1F7D48BC + + 0x4 + + + 0:SBL1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + xbl_nand.elf + + + 0:MIBIB + 512 + 512 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + nand-system-partition-ipq6018.bin + + + 0:BOOTCONFIG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig.bin + + + 0:BOOTCONFIG1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + bootconfig.bin + + + 0:QSEE + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + tz.mbn + + + 0:QSEE_1 + 1792 + 1792 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:DEVCFG + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + devcfg.mbn + + + 0:DEVCFG_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:RPM + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + rpm.mbn + + + 0:RPM_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:CDT + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + cdt.bin + + + 0:CDT_1 + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBLENV + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:APPSBL + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq6018-u-boot.mbn + + + 0:APPSBL_1 + 768 + 768 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:ART + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + rootfs + 53760 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + openwrt-ipq-ipq60xx-ubi-root.img + openwrt-ipq-ipq60xx_64-ubi-root.img + + + rootfs_1 + 53760 + 1024 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + 0:ETHPHYFW + 256 + 256 + 0 + 0xFF + 0xFF + 0x00 + 0xFF + + + + diff --git a/ipq6018/in/partition_tool b/ipq6018/in/partition_tool new file mode 100644 index 0000000..df46f67 Binary files /dev/null and b/ipq6018/in/partition_tool differ diff --git a/prepareSingleImage.py b/prepareSingleImage.py new file mode 100644 index 0000000..62c8d50 --- /dev/null +++ b/prepareSingleImage.py @@ -0,0 +1,368 @@ +# =========================================================================== +#Copyright (c) 2017, 2019 Qualcomm Technologies, Inc. +#All Rights Reserved. +#Confidential and Proprietary - Qualcomm Technologies, Inc. +# =========================================================================== + +import xml.etree.ElementTree as ET +import itertools +import os +import subprocess +import sys +from getopt import getopt +from getopt import GetoptError + +arch="" +flash="nor,tiny-nor,nand,norplusnand,emmc,norplusemmc" +bootImgDir="" +rpmImgDir="" +tzImgDir="" +nhssImgDir="" +wififwImgDir="" + +cdir = os.path.dirname(__file__) +cdir = os.path.abspath(cdir) +inDir = "" +mode = "" +mbn_v6 = "" + +def print_help(): + print "\nUsage: python prepareSingleImage.py