Before somebody bites me : Given the hardware resources of this model, following question doesn't make any sense. I created this topic just to understand build process better and to be sure I'm not going to brick my router as I never built images myself. With that out of the way, let's start!
Hello developers,
First of all, many thanks for your hard work in the OpenWrt community.
I have GL-MT6000 router and would like to build image myself. I downloaded and extracted image builder archive from here and ran make info
.
Default packages are following:
base-files ca-bundle dropbear fstools libc libgcc libustream-mbedtls logd mtd netifd opkg uci uclient-fetch urandom-seed urngd busybox procd procd-ujail procd-seccomp kmod-leds-gpio kmod-gpio-button-hotplug fitblk kmod-phy-aquantia kmod-crypto-hw-safexcel kmod-mt7915e wpad-basic-mbedtls uboot-envtools dnsmasq firewall4 nftables kmod-nft-offload odhcp6c odhcpd-ipv6only ppp ppp-mod-pppoe
Under profile for my router, there are additional packages:
glinet_gl-mt6000:
GL.iNet GL-MT6000
Packages: e2fsprogs f2fsck mkf2fs kmod-usb3 kmod-mt7986-firmware mt7986-wo-firmware
hasImageMetadata: 1
SupportedDevices: glinet,gl-mt6000
Are all of these packages absolutely necessary to have operational router (not talking about all the features, but not having brick on my table)?
I've read through docs and tutorials about building your own image and some packages like ppp ppp-mod-pppoe
can be removed if you're not using that particular feature. What confuses me are other packages, which, by their description, shouldn't be needed for router operation, only if I want additional feature like e.g. connecting drive to USB to extend storage.
Now, if my use case is following:
- No need for DHCPv6, only as a client for WAN
- No need for USB
- No need for PPPoE
I would build image like this:
make image PROFILE="glinet_gl-mt6000" PACKAGES="-odhcpd-ipv6only -ppp -ppp-mod-pppoe -e2fsprogs -f2fsck -mkf2fs -kmod-usb3"
I would be using sysupgrade image to retain OEM recovery method, limiting the possibility of disaster.
Will resulting image brick my router? How one can know?
Bonus question: Is it possible/smart to use the backup archive from current installation and build image with those files for having operational router on first boot?
Or is it better to just restore after flashing?
Many thanks to everybody who got this far