Tplink_tl-mr3420-v5 image build fails Cannot install package kmod-mt7603

i am trying to create a custom image for mr3420v5 already worked with x86 and x64 buut with
ramips/mt76x8
i get the error
Cannot install package kmod-mt7603

make image PROFILE=tplink_tl-mr3420-v5 PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables"

and if you try to build the default image, without PACKAGES="..." ?

1 Like

will come with and answer for that just 1 minute

still get the same :sleepy:

worked for me, with and without your PACKAGES="..."
did a make clean between the two builds.

Building images...
Parallel mksquashfs: Using 12 processors
Creating 4.0 filesystem on /hdc/sdf/a/openwrt-imagebuilder-23.05.2-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/root.squashfs, block size 262144.
Pseudo file "dev" exists in source filesystem "/hdc/sdf/a/openwrt-imagebuilder-23.05.2-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/dev".
Ignoring, exclude it (-e/-ef) to override.
[===============================================================/] 919/919 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 3438.91 Kbytes (3.36 Mbytes)
        25.96% of uncompressed filesystem size (13249.38 Kbytes)
Inode table size 8214 bytes (8.02 Kbytes)
        20.14% of uncompressed inode table size (40789 bytes)
Directory table size 11980 bytes (11.70 Kbytes)
        45.16% of uncompressed directory table size (26530 bytes)
Number of duplicate files found 135
Number of inodes 1231
Number of files 915
Number of fragments 44
Number of symbolic links 206
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 109
Number of hard-links 0
Number of ids (unique uids + gids) 1
Number of uids 1
        unknown (0)
Number of gids 1
        unknown (0)
[mktplinkfw2] rootfs offset aligned to 0x2306616
[mktplinkfw2] firmware file "/hdc/sdf/a/openwrt-imagebuilder-23.05.2-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-23.05.2-ramips-mt76x8-tplink_tl-mr3420-v5-squashfs-sysupgrade.bin.new" completed
1+0 records in
1+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0.000192553 s, 681 MB/s
[mktplinkfw2] rootfs offset aligned to 0x2306616
[mktplinkfw2] firmware file "/hdc/sdf/a/openwrt-imagebuilder-23.05.2-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-23.05.2-ramips-mt76x8-tplink_tl-mr3420-v5-squashfs-tftp-recovery.bin.new" completed

Calculating checksums...
[frollic@atlantis ]
1 Like

i dont know why everything is exploding here....

i downloaded the builder from here

https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64.tar.xz

and followed this guide

built this afternoon a image for a old x86 cluster and worked like a charm and now with this mips chip it throws this

Collected errors:
 * opkg_install_cmd: Cannot install package kmod-mt7603.
make[2]: *** [Makefile:189: package_install] Error 255
make[1]: *** [Makefile:144: _call_image] Error 2
make: *** [Makefile:262: image] Error 2

the vdi machine got 4 cores and 2gb
any idea?

I used the 23.05.2 image builder.

technically you shouldn't be able to build a snapshot, since the image will likely be larger than your 8mb flash.

1 Like

i tought the image builder built by default the image we got on firmware downloader, aparently i am fried because looks like my router is on EOL , saddest part i just bought it a month ago, is there anything i can do? i just want to set it stubby but i cant cause > not enough memory, tried removing all ppoe and ipv6 stuff but instead of freeing memory it decreased, tried building from scratch a image and got that, however recently flashed 23.5 version from 22.1 and it worked fine, for some reason i am getting a weird brazilian ip as dns and it worries me, sorry for the spam...

there's an image builder archive for each version for a reason.

with the current device ? not really.
you could try to swap out the RAM and flash chips on the PCB, but that's a real PITA.
I wouldn't go down that road.

yeah, can't uninstall packages shipping with the image, to gain flash space, you need to build an image without them, as you were trying to.

depends on where you get it, but that would be a topic for a new thread ...

1 Like

i understand there is a protocol of a thread for every theme but would not that be a hassle for you? i have like 3 threads today , i dont want to bother i just want to secure my internet, things are very wild and crazy here where i live nowadays

but why it gave me that error? maybe i did something wrong?

I wouldn't want to have threads changing topic in the middle of them ...

2 Likes

i have heard of people doing that but thats like try a frankestein play

no idea, but like I said, 23.05 builds just fine.
the error could also be misleading, and caused by insufficient image space.
the error does say "install".

ok ok i will create that thread thank you for being polite and clarifying me the rules of the house

other weird behaviour i saw is that it is installing the packages i did a " - " so it could exclude it from being installed, weird thing

some of those could be dependencies for packages you're keeping.

1 Like

makes sense, well looks like there is not much i can do

with your current router, not really, it's a dead end, if you want to use a recent version of openwrt .

if you're OK with 21.02 or even 19.07, things might improve.

1 Like

so the solution is going back to a previous version?