@darcy.g wrote:
I need docker service. After applying docker service in openwrt master branch. Rootfs and recovery will be larger. Now openwrt MediaTek mt7622 bananapi_ Bpi-r64-sdcard.img.gz is about 117mb
I modified target / Linux / MediaTek / image / mt7622.mk as follows
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk index 6077e623ff..e0f37f9f49 100644 --- a/target/linux/mediatek/image/mt7622.mk +++ b/target/linux/mediatek/image/mt7622.mk @@ -45,13 +45,13 @@ define Build/mt7622-gpt ) \ -t 0xef -N fip -r -p 2M@2M \ -t 0x83 -N ubootenv -r -p 1M@4M \ - -N recovery -r -p 32M@6M \ + -N recovery -r -p 64M@6M \ $(if $(findstring sdmmc,$1), \ - -N install -r -p 7M@38M \ - -t 0x2e -N production -p 211M@45M \ + -N install -r -p 7M@70M \ + -t 0x2e -N production -p 422M@77M \ ) \ $(if $(findstring emmc,$1), \ - -t 0x2e -N production -p 980M@40M \ + -t 0x2e -N production -p 980M@72M \ ) cat $@.tmp >> $@ rm $@.tmp @@ -87,12 +87,12 @@ define Device/bananapi_bpi-r64 pad-to 512k | bl2 sdmmc-2ddr |\ pad-to 2048k | bl31-uboot bananapi_bpi-r64-sdmmc |\ pad-to 6144k | append-image-stage initramfs-recovery.itb |\ - pad-to 38912k | mt7622-gpt emmc |\ - pad-to 39424k | bl2 emmc-2ddr |\ - pad-to 40960k | bl31-uboot bananapi_bpi-r64-emmc |\ - pad-to 43008k | bl2 snand-2ddr |\ - pad-to 43520k | bl31-uboot bananapi_bpi-r64-snand |\ - pad-to 46080k | append-image squashfs-sysupgrade.itb | gzip + pad-to 71680k | mt7622-gpt emmc |\ + pad-to 72192k | bl2 emmc-2ddr |\ + pad-to 72704k | bl31-uboot bananapi_bpi-r64-emmc |\ + pad-to 75264k | bl2 snand-2ddr |\ + pad-to 75776k | bl31-uboot bananapi_bpi-r64-snand |\ + pad-to 78848k | append-image squashfs-sysupgrade.itb | gzip KERNEL := kernel-bin | gzip KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb with-initrd | pad-to 128k IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb external-static-with-rootfs | append-metadata
CRC 32 error after booting rootfs
switch to partitions #0, OK mmc1 is current device MMC read: dev # 1, block # 157696, count 8 ... 8 blocks read: OK MMC read: dev # 1, block # 157696, count 135624 ... 135624 blocks read: OK ## Loading kernel from FIT Image at 4007ff28 ... Using 'config-mt7622-bananapi-bpi-r64-pcie1' configuration Trying 'kernel-1' kernel subimage Description: ARM64 OpenWrt Linux-5.10.35 Type: Kernel Image Compression: gzip compressed Data Start: 0x40080f28 Data Size: 5288381 Bytes = 5 MiB Architecture: AArch64 OS: Linux Load Address: 0x44000000 Entry Point: 0x44000000 Hash algo: crc32 Hash value: eed74fd6 Hash algo: sha1 Hash value: ada2c8f3727ee90fed9cb7e6a960b43159c9ccd7 Verifying Hash Integrity ... crc32+ sha1+ OK ## Loading fdt from FIT Image at 4007ff28 ... Using 'config-mt7622-bananapi-bpi-r64-pcie1' configuration Trying 'fdt-1' fdt subimage Description: ARM64 OpenWrt bananapi_bpi-r64 device tree blob Type: Flat Device Tree Compression: uncompressed Data Start: 0x4058cf28 Data Size: 31796 Bytes = 31.1 KiB Architecture: AArch64 Load Address: 0x43ff83cc Hash algo: crc32 Hash value: 5f04dd9c Hash algo: sha1 Hash value: b6b5aa7f9adb7cdfb82e98a1366b88e5e6a182c0 Verifying Hash Integrity ... crc32+ sha1+ OK Loading fdt from 0x4058cf28 to 0x43ff83cc ## Loading fdt from FIT Image at 4007ff28 ... Trying 'fdt-mt7622-bananapi-bpi-r64-pcie1' fdt subimage Description: ARM64 OpenWrt bananapi_bpi-r64 device tree overlay mt7622-bananapi-bpi-r64-pcie1 Type: Flat Device Tree Compression: uncompressed Data Start: 0x40594f28 Data Size: 408 Bytes = 408 Bytes Architecture: AArch64 Load Address: 0x43ff8234 Hash algo: crc32 Hash value: 7a017eca Hash algo: sha1 Hash value: 1c9ab4777c11f5fedb5674c69e7e4c456960fe8a Verifying Hash Integrity ... crc32+ sha1+ OK Loading fdt from 0x40594f28 to 0x43ff8234 Booting using the fdt blob at 0x43ff83cc ## Loading loadables from FIT Image at 4007ff28 ... Trying 'rootfs-1' loadables subimage Description: ARM64 OpenWrt bananapi_bpi-r64 rootfs Type: Filesystem Image Compression: uncompressed Data Start: 0x40596f28 Data Size: 64102400 Bytes = 61.1 MiB Hash algo: crc32 Hash value: 84e7f94d Hash algo: sha1 Hash value: ea2152c599600dd392ec96af9140463c94c48fc1 Verifying Hash Integrity ... crc32 error! Bad hash value for 'hash@1' hash node in 'rootfs-1' image node Bad Data Hash Loadable(s) is corrupt or invalid switch to partitions #0, OK mmc1 is current device MMC read: dev # 1, block # 12288, count 8 ... 8 blocks read: OK MMC read: dev # 1, block # 12288, count 93044 ... 93044 blocks read: OK ## Loading kernel from FIT Image at 4007ff28 ... Using 'config-mt7622-bananapi-bpi-r64-pcie1' configuration Trying 'kernel-1' kernel subimage
There are also “reserved-memory/FDT_ERR_EXISTS” errors
switch to partitions #0, OK mmc1 is current device MMC read: dev # 1, block # 157696, count 8 ... 8 blocks read: OK MMC read: dev # 1, block # 157696, count 122864 ... 122864 blocks read: OK ## Loading kernel from FIT Image at 4007ff28 ... Using 'config-mt7622-bananapi-bpi-r64-pcie1' configuration Trying 'kernel-1' kernel subimage Description: ARM64 OpenWrt Linux-5.10.35 Type: Kernel Image Compression: gzip compressed Data Start: 0x40080f28 Data Size: 5288263 Bytes = 5 MiB Architecture: AArch64 OS: Linux Load Address: 0x44000000 Entry Point: 0x44000000 Hash algo: crc32 Hash value: 8ae05828 Hash algo: sha1 Hash value: 754874c0096326cb2a5b21bdce7c062390e4251f Verifying Hash Integrity ... crc32+ sha1+ OK ## Loading fdt from FIT Image at 4007ff28 ... Using 'config-mt7622-bananapi-bpi-r64-pcie1' configuration Trying 'fdt-1' fdt subimage Description: ARM64 OpenWrt bananapi_bpi-r64 device tree blob Type: Flat Device Tree Compression: uncompressed Data Start: 0x4058cf28 Data Size: 31796 Bytes = 31.1 KiB Architecture: AArch64 Load Address: 0x43ff83cc Hash algo: crc32 Hash value: 5f04dd9c Hash algo: sha1 Hash value: b6b5aa7f9adb7cdfb82e98a1366b88e5e6a182c0 Verifying Hash Integrity ... crc32+ sha1+ OK Loading fdt from 0x4058cf28 to 0x43ff83cc ## Loading fdt from FIT Image at 4007ff28 ... Trying 'fdt-mt7622-bananapi-bpi-r64-pcie1' fdt subimage Description: ARM64 OpenWrt bananapi_bpi-r64 device tree overlay mt7622-bananapi-bpi-r64-pcie1 Type: Flat Device Tree Compression: uncompressed Data Start: 0x40594f28 Data Size: 408 Bytes = 408 Bytes Architecture: AArch64 Load Address: 0x43ff8234 Hash algo: crc32 Hash value: 7a017eca Hash algo: sha1 Hash value: 1c9ab4777c11f5fedb5674c69e7e4c456960fe8a Verifying Hash Integrity ... crc32+ sha1+ OK Loading fdt from 0x40594f28 to 0x43ff8234 Booting using the fdt blob at 0x43ff83cc ## Loading loadables from FIT Image at 4007ff28 ... Trying 'rootfs-1' loadables subimage Description: ARM64 OpenWrt bananapi_bpi-r64 rootfs Type: Filesystem Image Compression: uncompressed Data Start: 0x40596f28 Data Size: 57569280 Bytes = 54.9 MiB Hash algo: crc32 Hash value: cc899a00 Hash algo: sha1 Hash value: 0c9f4e6c926aa7cad91b829fc843ee7e090f8d93 Verifying Hash Integrity ... crc32+ sha1+ OK Uncompressing Kernel Image Loading Device Tree to 000000007f7f0000, end 000000007f7fac2f ... OK Add 'reserved-memory' node failed: FDT_ERR_EXISTS Starting kernel ...
how to solve this problem… thk!
Posts: 1
Participants: 1