You should compile your own image:
About the basics of image compilation - you can find
https://openwrt.org/docs/guide-user/additional-software/beginners-build-guide 4
https://openwrt.org/docs/guide-developer/build-system/install-buildsystem 4
https://openwrt.org/docs/guide-developer/build-system/use-buildsystem 3
Read a little bit about optimization - examples:
and the maybe you find enough space for snmp