I maintain an old version of firmware for a router I use and accidentally updated the OS which is Debian Linux 7.
Since then, I can no longer build the firmware and after searching and trying things for two days, it's time to ask for leads here.
Based on what I've read, it could be related to libc* but I've tried downgrading and other things I've found and nothing works. Can someone please help me figure this out.
# make image profile=GL-MT300N
make[1]: Entering directory `/clients/cc-15.05-ramips-gl-net-mt300n'
echo 'Building images for ramips - Default Profile'
Building images for ramips - Default Profile
echo 'Packages: base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-gpio-button-hotplug kmod-leds-gpio kmod-ledtrig-usbdev kmod-nf-nathelper kmod-rt2800-pci kmod-rt2800-soc kmod-usb-core kmod-usb-ohci kmod-usb2 libc libgcc mtd netifd odhcp6c odhcpd opkg ppp ppp-mod-pppoe swconfig uci wpad-mini'
Packages: base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-gpio-button-hotplug kmod-leds-gpio kmod-ledtrig-usbdev kmod-nf-nathelper kmod-rt2800-pci kmod-rt2800-soc kmod-usb-core kmod-usb-ohci kmod-usb2 libc libgcc mtd netifd odhcp6c odhcpd opkg ppp ppp-mod-pppoe swconfig uci wpad-mini
echo
rm -rf /clients/cc-15.05-ramips-gl-net-mt300n/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips
mkdir -p /clients/cc-15.05-ramips-gl-net-mt300n/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips /clients/cc-15.05-ramips-gl-net-mt300n/bin/ramips /clients/cc-15.05-ramips-gl-net-mt300n/tmp /clients/cc-15.05-ramips-gl-net-mt300n/dl
if [ ! -f "/clients/cc-15.05-ramips-gl-net-mt300n/packages/Packages" ] || [ ! -f "/clients/cc-15.05-ramips-gl-net-mt300n/packages/Packages.gz" ] || [ "`find /clients/cc-15.05-ramips-gl-net-mt300n/packages -cnewer /clients/cc-15.05-ramips-gl-net-mt300n/packages/Packages.gz`" ]; then \
echo "Package list missing or not up-to-date, generating it.";\
make package_index; \
else \
mkdir -p /clients/cc-15.05-ramips-gl-net-mt300n/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/tmp; \
IPKG_NO_SCRIPT=1 IPKG_TMP="/clients/cc-15.05-ramips-gl-net-mt300n/tmp/ipkgtmp" IPKG_INSTROOT="/clients/cc-15.05-ramips-gl-net-mt300n/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips" IPKG_CONF_DIR="/clients/cc-15.05-ramips-gl-net-mt300n/tmp" IPKG_OFFLINE_ROOT="/clients/cc-15.05-ramips-gl-net-mt300n/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips" /clients/cc-15.05-ramips-gl-net-mt300n/staging_dir/host/bin/opkg -f /clients/cc-15.05-ramips-gl-net-mt300n/repositories.conf --force-depends --force-overwrite --force-postinstall --cache /clients/cc-15.05-ramips-gl-net-mt300n/dl --offline-root /clients/cc-15.05-ramips-gl-net-mt300n/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips --add-dest root:/ --add-arch all:100 --add-arch ramips_24kec:200 update || true; \
fi
Package list missing or not up-to-date, generating it.
make[2]: Entering directory `/clients/cc-15.05-ramips-gl-net-mt300n'
Building package index...
(cd /clients/cc-15.05-ramips-gl-net-mt300n/packages; /clients/cc-15.05-ramips-gl-net-mt300n/scripts/ipkg-make-index.sh . > Packages && \
gzip -9c Packages > Packages.gz \
) >/dev/null 2>/dev/null
make[2]: *** [package_index] Error 126
make[2]: Leaving directory `/clients/cc-15.05-ramips-gl-net-mt300n'
make[1]: *** [_call_image] Error 2
make[1]: Leaving directory `/clients/cc-15.05-ramips-gl-net-mt300n'
make: *** [image] Error 2
(Last edited by projects on 26 Aug 2017, 16:41)