Hi,
Device U7623-06 CPU MT7623 512RAM onboard 9GB EMMC. squashfs.
Problem: When uncompressed file size openwrt-mediatek-mt7623-unielec_u7623-02-emmc.img.gz reach +-100mb size, after flashing system does not boot. For current task I need postgresql database, not stripped libraries and debugging tools, so default 100MB set in menuconfig not enough for current task.
In menuconfig Target Images ---> SET * (2048) Root filesystem partition size (in MiB)
After building and flashing everything looks OK if binary file are <100mb, system boots, have lots of free space in overlay/root_fs.
Boot log:
switch to partitions #0, OK
mmc0(part 0) is current device
MMC read: dev # 0, block # 98304, count 8 ... 8 blocks read: OK
MMC read: dev # 0, block # 98304, count 71488 ... 71488 blocks read: OK
Loading kernel from FIT Image at 88000000 ...
Using 'config-1' configuration
Trying 'kernel-1' kernel subimage
Description: ARM OpenWrt Linux-5.15.38
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x88001000
Data Size: 5260465 Bytes = 5 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80008000
Entry Point: 0x80008000
But if I add more features and uncompressed binary file openwrt-mediatek-mt7623-unielec_u7623-02-emmc.img.gz reach 100MB, system does not boot.
switch to partitions #0, OK
mmc0(part 0) is current device
MMC read: dev # 0, block # 98304, count 8 ... 8 blocks read: OK
switch to partitions #0, OK
mmc0(part 0) is current device
MMC read: dev # 0, block # 8192, count 8 ... 8 blocks read: OK
switch to partitions #0, OK
mmc0(part 0) is current device
MMC read: dev # 0, block # 8192, count 8 ... 8 blocks read: OK
LED 'bpi-r64:pio:blue' not found (err=-19)
Using ethernet@1b100000 device
TFTP from server 192.168.11.240; our IP address is 192.168.11.120
Filename 'openwrt-mediatek-mt7623-unielec_u7623-02-initramfs-recovery.itb'.
Board oonfiguration file target/linux/mediatek/image/mt7623.mk content below:
define Device/unielec_u7623-02
DEVICE_VENDOR := UniElec
DEVICE_MODEL := U7623-02
When we use FIT images, U-Boot will populate the /memory node with the correct
memory size discovered from the preloader, so we don't need separate builds.
DEVICE_DTS := mt7623a-unielec-u7623-02
DEVICE_DTS_DIR := ../dts
DEVICE_PACKAGES := kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc \
mkf2fs e2fsprogs kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci
UBOOT_OFFSET := 256k
UBOOT_TARGET := mt7623a_unielec_u7623
UBOOT_IMAGE := u-boot-mtk.bin
UBOOT_PATH := $(STAGING_DIR_IMAGE)/$$(UBOOT_TARGET)-$$(UBOOT_IMAGE)
IMAGES := sysupgrade.itb
KERNEL := kernel-bin | gzip
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
KERNEL_INITRAMFS := kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
ARTIFACT/u-boot.bin := append-uboot
vendor Preloader seems not to care about SDMMC_BOOT/EMMC_BOOT header,
but OpenWrt expects 'SDMM' magic for sysupgrade.
ARTIFACT/emmc.img.gz := mt7623-mbr sdmmc |\
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
pad-to 4M | append-image-stage initramfs-recovery.itb |\
pad-to 48M | append-image squashfs-sysupgrade.itb |\
gzip | append-metadata
ARTIFACT/scatter.txt := scatterfile emmc.img.gz
ARTIFACTS := u-boot.bin scatter.txt emmc.img.gz
SUPPORTED_DEVICES += unielec,u7623-02-emmc-512m
endef
TARGET_DEVICES += unielec_u7623-02
Can you please point me to any possible solution/resource because already digging 3 days without any results.
Thank you