Building image for Tl-wr741n v4

I was trying to build an image but can't fix some dependecies problem on my debian
I just need those packages because my device only 4mb 32mb

make image PROFILE=tl-wr741nd-v4 PACKAGES="luci luci-app-firewall kmod-ath9k wpad-basic hostapd iw iwinfo dnsmasq iptables firewall netifd swconfig uhttpd luci-app-upnp"

So which Debian dependencies are we talking about?
Did you take a look at: https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem

Support for 4/32 devices was dropped many years ago. What version of OpenWrt are you trying to install??

Openwrt 18.06.9

18.06 has been EOL and unsupported for many years already. It's not safe to use because it has many known vulnerabilities that will never be patched.

It is best to get new hardware.

But, if you insist on building such an old version, you'll need to make sure you're working with an OS that is about that age... so Ubuntu 18.04 would theoretically be able to build that code.

I can't find my device here why ?

https://downloads.openwrt.org/releases/18.06.9/targets/ar71xx/generic/

So i can build new image for 4mb 32mb using openwrt image 23 ?

No, absolutely not. You need newer hardware to run 23.05. You would need to figure out 18.06 on your own. And I have no idea why the 18.06 downloads don’t seem to include your device.

still outdated, but at least less outdated, 21.02.3 community builds: https://ashus.ashus.net/thread-192.html, the link to the actual images is in the top post.

Figured it out. It is under the ar71xx tiny target. Even in the days of 18.06, there were struggles to fit the firmware into the footprint of that device!

I read somewhere in the forum that i can build image based in 19.07.10 but with less packages

I only need master mode and client mode and radio0

Even luci no problem if cant fit

You won't get a supported/ semi-modern version of OpenWrt down to ~3.8 MB flash - nor will it even finish booting successfully (due to a severe lack of RAM).

If you have to ask, it's game over at this point - has been for over half a decade already.

But even if you do know what you're doing and are up to a challenge (combined with quite some experience or a very steep learning curve, with lots of experimenting and debricking/ serial console and soldering iron at hand), it's still hard and way beyond reasonable. I would strongly suggest to check your local second hand markets for cheap offers of supported devices instead, you may be in for a surprise what you can find for 5-15 bucks delivered.

Ok if i use a older version 17.01.7 last one i found my device in targets

I only want to use as a repeater nothing other option

What struggles i will find?

  • unfixed/ known security issues
    EOLed versions must not be used anymore/ anywhere/ for any purpose
    there are plenty serious security issues to choose from, including multiple attacks on the wireless stack (mac80211, drivers and hostapd)
    exploits are publicly available
    things that have been fixed in contemporary versions
  • the device is below minimum system requirements (4/32) and is explicitly no longer supported
  • it's EOL, whatever issues arise -including and beyond the known security issues- are yours to find out and fix, there won't be any fixes/ updates to lede-17.01 (or anything below openwrt-23.05) anymore
  • space was already tight in 2017, the end was already in sight for these devices since ~2015-2016 and announced accordingly
  • 17.01 is materially different from the supported versions of 23.05.x/ 24.10.x/ main, quite a few aspects don't apply (e.g. ar71xx vs ath79 is a major breaking change), so don't expect our advice, this is distant history (8 years and 5 major release branches) and a lot of things have changed in the mean time

Really, it's that simple. It's strongly recommended against to use EOLed versions, worse the older it gets. If you want to disregard these strong concerns, you're obviously free to do so -at your own responsibility - but you get to keep both pieces, don't expect support or even sympathy for this endeavour. Security is a moving target (as are basic requirements and expectations), you need to keep up or remain vulnerable. For networking devices on the front lines of your network this is not an option.

These requests are coming up at least 3-4 times a week for 4/16, 4/32 and 8/32 devices, regularly more often than that, so that wears down our sympathy after 5-8 years of regurgitating this over and over again.

This thread might be of use: https://forum.openwrt.org/t/tiny-4mb-openwrt-v23-05-4-ath79-ath9k-dumb-ap-wpa3-luci-ssl-dnsmasq-firewall/