Post Reply 
installing minimserver on netgear R7000 router flashed with advanced tomato firmware
04-04-2017, 15:35 (This post was last modified: 04-04-2017 15:50 by dafart.)
Post: #1
installing minimserver on netgear R7000 router flashed with advanced tomato firmware
Dear all, I'd really like to have my router run minimserver..
I've spend several day trying to get java installed but to no avail.
I have a limited linux experience..
The firmware runs this kernel: Linux Tomato 2.6.36.4brcmarm #2 SMP PREEMPT Mon Dec 5 07:41:30 CET 2016 armv7l GNU/Linux

I tried the following versions of java:
ejdk-8u121-linux-armv6-vfp-hflt.tar.gz
jdk-8u121-linux-arm32-vfp-hflt.tar.gz
jdk-8u121-linux-arm64-vfp-hflt.tar.gz
ejre-7u71-fcs-b14-linux-arm-vfp-hflt-client_headless-26_sep_2014.tar.gz
jdk-7u60-linux-arm-vfp-hflt.tar.gz

But with none of them it was possible to run "java -v", (I always got the "java not found error..)

I guess this has to do with my PATH settings but I have no idea how to solve this..

Is there someone who can point me to the right direction?

I have an USB stick with entware installed and I have created a build environment using entware..

Also I tried to follow the examples given in this post: http://forum1613.minimserver.com/showthr...ht=openwrt but like I said I'm stuck with the java executable not being found..

My /opt/etc/profile file loks like this:
Code:
#!/bin/sh

# Please note it's not a system-wide settings, it's only for a current
# terminal session. Point your f\w (if necessery) to execute /opt/etc/profile
# at console logon.

export PATH=/opt/bin:/opt/sbin:$PATH
export TERMINFO=/opt/share/terminfo
export TERM=xterm
export TMP=/opt/tmp
export TEMP=/opt/tmp
alias mc="mc -c"

# You may define localization
#export LANG='ru_RU.UTF-8'
#export LC_ALL='ru_RU.UTF-8'
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'

And my /etc/profile file looks like this:
Code:
xport PATH="/bin:/usr/bin:/sbin:/usr/sbin:/home/$USER:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:`nvram get env_path`"
export PS1='\u@\h:\w\$ '

alias l='ls -lFA'
alias ll='ls -lF'

ldd() {
        LD_TRACE_LOADED_OBJECTS=1 $*;
}

[ -f /jffs/etc/profile ] && . /jffs/etc/profile
[ -f /opt/etc/profile ] && . /opt/etc/profile
Thanks in advance!

Daf
Find all posts by this user
Quote this message in a reply
04-04-2017, 16:36 (This post was last modified: 04-04-2017 16:36 by simoncn.)
Post: #2
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
Where did you install Java? You can run it directly from the install location by using a command such as

/my/java/install/location/bin/java -version

Note that -v is not a valid option for the java command.
Find all posts by this user
Quote this message in a reply
04-04-2017, 17:13
Post: #3
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
Hi there Simon, thanks for taking time to reply and also thanks for the development of this great upnp server!

I did not really install java, I made a folder /opt/java and put the different tarballs there and upacked them there and tried to run the binaries from there..
(so there's a folder /opt/java/jdk1.8.0_121/bin that contains the java binary..)

But maybe that's not the way it should be?

Greetings,

Daf
Find all posts by this user
Quote this message in a reply
05-04-2017, 08:54
Post: #4
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
This router has the broadcom BCM4709 chip..
I have no idea how to figure out which version of embedded java I should download to get started and whether or not it will run..

None of my attempted so far have been succesfull.

Anyone any ideas?
Find all posts by this user
Quote this message in a reply
05-04-2017, 09:08 (This post was last modified: 05-04-2017 09:08 by simoncn.)
Post: #5
RE: installing minimserver on netgear R7000
(05-04-2017 08:54)dafart Wrote:  This router has the broadcom BCM4709 chip..
I have no idea how to figure out which version of embedded java I should download to get started and whether or not it will run..

None of my attempted so far have been succesfull.

Anyone any ideas?

According to the Broadcom spec, this is an ARMv7 chip. The embedded Linux system might be soft-float or hard-float. You could try ejdk-8u121-linux-arm-sflt.tar.gz (for soft-float) or jdk-8u121-linux-arm32-vfp-hflt.tar.gz (for hard-float). If nether of these works, please post the error messages that you are getting when you run the 'java -version' command.
Find all posts by this user
Quote this message in a reply
05-04-2017, 10:02
Post: #6
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
for both ejdk1.8.0_121/linux_arm_sflt/jre/ and jdk1.8.0_121/jre/ (from jdk-8u121-linux-arm32-vfp-hflt.tar.gz) I get the same error:

-sh: java: not found

nothing more.

echo $PATH
/opt/java/jre/bin:/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/home/root:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:
Find all posts by this user
Quote this message in a reply
05-04-2017, 12:21
Post: #7
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
You should try running java from the directory where it is installed. For you, I think this is

/opt/java/jdk1.8.0_121/bin/java -version

By doing this, you will establish which is the correct version of Java for your system. After this, we can resolve the PATH problem.
Find all posts by this user
Quote this message in a reply
05-04-2017, 12:41 (This post was last modified: 05-04-2017 12:43 by dafart.)
Post: #8
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
Sorry I forgot to mention I already tried that as well,
For both hard-float and soft float I get the same error:

/opt/java/jdk1.8.0_121/bin/java -version
-sh: /opt/java/jdk1.8.0_121/bin/java: not found

Could this mean none of the packages are correct? Or has this to do with my setup?
Find all posts by this user
Quote this message in a reply
05-04-2017, 13:11
Post: #9
RE: installing minimserver on netgear R7000
Have you verified that the /opt/java/jdk1.8.0_121/bin/java file exists?

If so, this message can mean that there has been a problem loading shared libraries required by the java executable. You can use the command

ldd -v /opt/java/jdk1.8.0_121/bin/java

to get more information about this. Please post the output from this command here.
Find all posts by this user
Quote this message in a reply
05-04-2017, 14:04
Post: #10
RE: installing minimserver on netgear R7000 router flashed with advanced tomato firmware
I do have ldd installed, however I'm not sure it works correctly, because ldd --version gives me "--version not found"

root@Tomato:/tmp/home/root# ldd -v /opt/java/jdk1.8.0_121/bin/java
-sh: -v: not found
root@Tomato:/tmp/home/root# ldd /opt/java/jdk1.8.0_121/bin/java
-sh: /opt/java/jdk1.8.0_121/bin/java: not found
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)