image size on 20.xx builds
David Bauer
mail at david-bauer.net
Sun Aug 2 16:37:28 EDT 2020
Hi Bjoern,
On 8/2/20 7:23 PM, Bjoern Franke wrote:
> Hi,
>
> I'm trying to create an image for an Archer C50v1 (mt7620).
>
> Tryin to build an image with the following packages[1] using the imagebuilder was impossible because the image got too big:
> Building images...
> Parallel mksquashfs: Using 1 processor
> Creating 4.0 filesystem on /data2/openwrt/openwrt-imagebuilder-ramips-mt7620.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/root.squashfs, block size 262144.
> Pseudo file "/dev" exists in source filesystem "/data2/openwrt/openwrt-imagebuilder-ramips-mt7620.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/dev".
> Ignoring, exclude it (-e/-ef) to override.
> [===================================================================================================================|] 1224/1224 100%
>
> Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
> compressed data, compressed metadata, compressed fragments,
> no xattrs, compressed ids
> duplicates are removed
> Filesystem size 5948.36 Kbytes (5.81 Mbytes)
> 35.45% of uncompressed filesystem size (16780.56 Kbytes)
> Inode table size 13168 bytes (12.86 Kbytes)
> 22.60% of uncompressed inode table size (58259 bytes)
> Directory table size 16902 bytes (16.51 Kbytes)
> 45.12% of uncompressed directory table size (37458 bytes)
> Number of duplicate files found 157
> Number of inodes 1678
> Number of files 1202
> Number of fragments 37
> Number of symbolic links 362
> Number of device nodes 1
> Number of fifo nodes 0
> Number of socket nodes 0
> Number of directories 113
> Number of ids (unique uids + gids) 1
> Number of uids 1
> root (0)
> Number of gids 1
> root (0)
> [mktplinkfw2] rootfs offset aligned to 0x2070452
> [mktplinkfw2] *** error: images are too big
>
> Is this related to the switch of kernel 4.14 to 5.4?
Your Filesystem has a size of 5.81M. MT7620 has a kernel size of around 2M, which exceeds the available space on flash.
You can try to remove other packages (such as ppp) from the image. Stripping LuCI should also save a lot of space, given you only
need it for the initial installation.
Best wishes
David
>
> Regards
> Bjoern
>
> [1]
> luci-proto-wireguard luci-app-wireguard wireguard usb-modeswitch kmod-usb-net-cdc-ether dnsmasq-full mtr stubby luci-app-vnstat luci-proto-vpnc
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list