OLIMEX / openwrt

Mirror of the OpenWRT repository
http://openwrt.org/
GNU General Public License v2.0
5 stars 11 forks source link

Packages from the configured repositories do not run on the current image #2

Closed blinkenlight closed 9 years ago

blinkenlight commented 9 years ago

The current pre-compiled image seems to be configured to use the package repositories of the OpenWRT trunk; however, it seems to be generated with different options than those packages are, resulting in "not found" errors even after packages are correctly installed, leading to a general uselessness of the entire image. The problem might possibly be related to what readelf returns examining a system executable that runs (busybox) vs. package-installed executables that do not:

root@box:/media/DAVDrive$ readelf -a nano | grep equest
      [Requesting program interpreter: /lib/ld-musl-mipsel-sf.so.1]
root@box:/media/DAVDrive$ readelf -a uhttpd | grep equest
      [Requesting program interpreter: /lib/ld-musl-mipsel-sf.so.1]
root@box:/media/DAVDrive$ readelf -a busybox | grep equest
      [Requesting program interpreter: /lib/ld-uClibc.so.0]
selfbg commented 9 years ago

You're right. We will try to fix our image as soon as possible. A workaround will be to manually change the repositories

Edit /etc/opkg.conf

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/base
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/telephony
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/routing
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/management
# src/gz chaos_calmer_targets http://downloads.openwrt.org/chaos_calmer/15.05-rc3/ramips/rt305x/packages/targets
option check_signature 1

Then create new key file:

vi /etc/opkg/keys/de98a2dd1d0f8a07

And paste the following:

untrusted comment: openwrt.org 15.05 release key
RWTemKLdHQ+KBxOILy8gyk+5PaDVdfyJ32TFnY/jnQOrBAd1wobbLNYz