How do I setup the image builder of the stable branch to build images with updated packages (snapshot)?

I have a microtik rb-941-2nd-tc and would like to build images with packages of the snapshot repositories. Its snapshot builds are deprecated so I tried editing the repositories.conf file of the image builder (stable branch) from:

## Place your custom repositories here, they must match the architecture and version.
# src/gz %n http://downloads.openwrt.org/releases/19.07.2
# src custom file:///usr/src/openwrt/bin/ar71xx/packages

## Remote package repositories
src/gz openwrt_core http://downloads.openwrt.org/releases/19.07.2/targets/ar71xx/mikrotik/packages
src/gz openwrt_base http://downloads.openwrt.org/releases/19.07.2/packages/mips_24kc/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/19.07.2/packages/mips_24kc/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/19.07.2/packages/mips_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/19.07.2/packages/mips_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/19.07.2/packages/mips_24kc/telephony

## This is the local package repository, do not remove!
src imagebuilder file:packages

to

## Place your custom repositories here, they must match the architecture and version.
# src/gz %n http://downloads.openwrt.org/releases/19.07.2
# src custom file:///usr/src/openwrt/bin/ar71xx/packages

## Remote package repositories
src/gz openwrt_core http://downloads.openwrt.org/releases/19.07.2/targets/ar71xx/mikrotik/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/mips_24kc/base
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/mips_24kc/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/mips_24kc/routing
src/gz openwrt_telephony https://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony

## This is the local package repository, do not remove!
src imagebuilder file:packages

but when I run
make image PROFILE="rb-nor-flash-16M" PACKAGES="-iptables zram-swap -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only -dnsmasq -odhcpd -libiwinfo-lua" FILES=files/
I get

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for rssileds:
 * 	libiwinfo20200105
 * opkg_install_cmd: Cannot install package rssileds.

This is not a supported procedure and can't work at all. There is no binary compatibility between different branches, nor sufficient ABI tracking for this to be possible.

Either stick to snapshots completely or do individual backports on the source level, doing a full recompile (but don't expect to retain binary compatibility between your potential customized fork and the binary package repos).

Why don't you use the image builder from snapshots?

1 Like

Or image builder from the stable branch 19.07 snapshot builds, instead of the locked 19.07.2?

http://downloads.openwrt.org/releases/19.07-SNAPSHOT/targets/ar71xx/generic/

But you are talking about a 32 MB RAM device, so you chances of success with either master or 19.07 are small. It will be really easy to to crash the router with OOM.

1 Like

snapshots were last built 6/17/19 (4/32 devices aren't supported anymore)
https://downloads.openwrt.org/snapshots/targets/ar71xx/mikrotik/
using the image builder I get

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for firewall:
 * 	libip4tc2
 * 	libip6tc2
 * opkg_install_cmd: Cannot install package firewall.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for mtd:
 * 	libubox20170601
 * opkg_install_cmd: Cannot install package mtd.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for rssileds:
 * 	libiwinfo20200105
 * opkg_install_cmd: Cannot install package rssileds.
make[2]: *** [Makefile:156: package_install] Error 255
make[1]: *** [Makefile:117: _call_image] Error 2
make: *** [Makefile:196: image] Error 2

I didn't know that page existed, couldn't see it from
https://downloads.openwrt.org/releases

when I run
make info
I don't see the rb-nor-flash-16M profile, is there a way to build it with that image builder?

The packages I have on the 19.07.2 image builder are
zram-swap base-files busybox dropbear firewall fstools kernel kmod-ath9k kmod-gpio-button-hotplug kmod-ipt-offload kmod-ledtrig-gpio libc libgcc logd mtd netifd opkg ppp ppp-mod-pppoe rbcfg rssileds swconfig uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic

Do you think it'll have OOM issues?

No,
ar71xx is not built in master, any more.

But ar71xx still exists and gets built in 19.07.

No idea about possible OOM. 32 MB is simply too little, and that's why the devices are not supported any more.

i was running
make info
in the wrong directory

right one
https://downloads.openwrt.org/releases/19.07-SNAPSHOT/targets/ar71xx/mikrotik/

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.