Optware / Optware-ng

279 stars 52 forks source link

"Illegal instruction" when trying to run /opt/bin/ipkg on D-Link DIR-320 rev A1 #192

Closed the-vindicar closed 7 years ago

the-vindicar commented 7 years ago

I took MIPSEL build of optware-ng, as described in readme, and it seemingly installed fine. However, when trying to run new ipkg I only get "Illegal instruction" for reply. Is MIPSEL build broken, or did I choose a wrong build?

root@DD-WRT:~# uname -a
Linux DD-WRT 2.4.37 #7598 Sat Oct 10 04:38:28 CEST 2009 mips unknown
root@DD-WRT:~# wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-mipsel-ng-bootstrap.sh | sh
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
-                    100% |***********************************************************************|   431  --:--:-- ETA
Connecting to ipkg.nslu2-linux.org (140.211.169.161:80)
ipkg-static_0.2.4-1_ 100% |*******************************|   275k 00:00:00 ETA
./data.tar.gz
./
./opt/
./opt/bin/
./opt/bin/ipkg-static
./opt/bin/ipkg
./opt/bin/update-alternatives
./opt/var/
./opt/var/lock/
./opt/share/
./opt/share/man/
./opt/share/man/man1/
./opt/share/man/man1/opkg-cl.1
./opt/share/opkg/
./opt/share/opkg/intercept/
./opt/share/opkg/intercept/update-modules
./opt/share/opkg/intercept/depmod
./opt/share/opkg/intercept/ldconfig
./opt/etc/
./opt/etc/ipkg/
./opt/etc/ipkg/ipkg.conf
./opt/etc/ipkg.conf
Bootstraping done
root@DD-WRT:~# export PATH=$PATH:/opt/bin:/opt/sbin
root@DD-WRT:~# /opt/bin/ipkg update
Illegal instruction
alllexx88 commented 7 years ago

Sorry for my late response. 2.4.37 linux kernel your router is running isn't supported: the least supported kernel version is 2.6.22.19. Maybe, you should check if there're newer DD-WRT firmwares for your platform