Is it possible to install the linux or raspberry pi app onto openwrt?
i tried to follow the instructions at the bottom
First unzip and install ourjukebox: tar -xf ourjukebox-armv7.tar.gz -C .ourjukebox sudo install -m 755 .ourjukebox/ourjukebox /usr/local/bin
To index every morning at 1am, run crontab -e and add the line: 0 1 * * * /usr/local/bin/ourjukebox index-server
however install isnt an openwrt command
and i wasnt sure which build to try (linux or Raspberry Pi)
or if its even worth my time (if its not going to work due to platform differences)
There isn't much to install with an application that consists of a single executable file. Just copy it into a directory and give it permission.
But it's distributed as an ARMv7 binary. That means that at the least your OpenWrt router hardware must have an ARM CPU of v7 or higher. Also it almost certainly depends on libraries that are on the Pi (Raspbian most likely) but likely not OpenWrt.
You need to extract that .tar file too, of course. Also chmod 755 should be enough (not on the tar, but whatever you extract from the tar⦠assuming it's a binary. )
thank you guys, obviously ive never done this before, always used opkg
so extracted the .tar file and in there is ourjukebox as well as a readme and version file
i try to run the ourjukebox but get another error:
root@Skittles:/mnt/usb1/shareroot/software/openwrt/app/ourjukebox-armv7# ls
ourjukebox readme.txt version.txt
root@Skittles:/mnt/usb1/shareroot/software/openwrt/app/ourjukebox-armv7# chmod 755 ourjukebox
root@Skittles:/mnt/usb1/shareroot/software/openwrt/app/ourjukebox-armv7# ./ourjukebox
-ash: ./ourjukebox: not found
root@Skittles:/mnt/usb1/shareroot/software/openwrt/app/ourjukebox-armv7# chmod +x ourjukebox
root@Skittles:/mnt/usb1/shareroot/software/openwrt/app/ourjukebox-armv7# ./ourjukebox
-ash: ./ourjukebox: not found
sorry for the late reply
tried again today to run the file and ran into all the same problems
I'm not sure I'm using ldd correctly or what the output is saying
root@OpenWrt:/mnt/usb1/shareroot/software/openwrt/packages/ourjukebox/pi (armv7)# ldd ourjuk
ebox
/lib/ld-linux-armhf.so.3 (0xb6eeb000)
libdl.so.2 => /lib/ld-linux-armhf.so.3 (0xb6eeb000)
librt.so.1 => /lib/ld-linux-armhf.so.3 (0xb6eeb000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6de1000)
libm.so.6 => /lib/ld-linux-armhf.so.3 (0xb6eeb000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6dc6000)
libpthread.so.0 => /lib/ld-linux-armhf.so.3 (0xb6eeb000)
libc.so.6 => /lib/ld-linux-armhf.so.3 (0xb6eeb000)
Error relocating ourjukebox: __register_atfork: symbol not found
Error relocating ourjukebox: __strdup: symbol not found
Error relocating ourjukebox: gnu_get_libc_version: symbol not found
Error relocating ourjukebox: setcontext: symbol not found
Error relocating ourjukebox: backtrace: symbol not found
Error relocating ourjukebox: makecontext: symbol not found
Error relocating ourjukebox: getcontext: symbol not found