LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-14-2009, 10:56 AM   #1
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Rep: Reputation: 0
Problem with running JamVM on Oleg firmware


Good afternoon,

I spent some days with this cool router and experimented with various firmware versions.

The "mission objective" is to get java working on this router.

I tried OpenWRT Kamikaze(no success with java, problems with USB flash, etc.) and Oleg's firmware. WL500gp-1.9.2.7-9.trx was problematic - usb flash was not working and also the package system seemed to be broken or something. Then I found out that the package repository has moved to http://code.google.com/p/wl500g/downloads/list .

I downloaded WL500gp-1.9.2.7-d-r893.trx and programmed the router with it. I also reformatted the usb flash to ext3 filesystem and mounted it correctly to /opt.

Then I finally managed to install jamvm successfuly:
/ # ipkg.sh update
Downloading http://wl500g.googlecode.com/svn/ipk...are-d/Packages ...
Connecting to wl500g.googlecode.com (74.125.39.82:80)
Packages 100% |*******************************| 1803 --:--:-- ETA
Done.
Updated list of available packages in /opt/lib/ipkg/lists/wl500g-d
Downloading http://ipkg.nslu2-linux.org/feeds/op...table/Packages ...
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
Packages 100% |*******************************| 475k 00:00:00 ETA
Done.
Updated list of available packages in /opt/lib/ipkg/lists/optware
/ # ipkg.sh install jamvm

Downloading http://ipkg.nslu2-linux.org/feeds/op...1-1_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
Connecting to nslu2-linux.dyoung-mirror.net (208.113.203.106:80)
jamvm_1.5.1-1_mipsel 100% |*******************************| 201k 00:00:00 ETA
Done.
Unpacking jamvm...Done.
Configuring jamvm...Done.

But, when I try to run jamvm, I get this:
/ # jamvm
/bin/sh: jamvm: not found

Could you please help me? I seem to be lost after about two weeks of fight..

Thank you very much!
 
Old 12-14-2009, 02:48 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ. ..

Unpacking jamvm_1.5.1-1_mipsel.ipk :

tar xvf jamvm_1.5.1-1_mipsel.ipk
tar xvf data.tar.gz
.. reveals : /opt/bin/jamvm
.. which you would have seen by looking in /opt/
or by using 'ls -R /opt' or 'find /opt -name jamvm'.

So either use the command '/opt/bin/jamvm'
or add /opt/bin/ to your path.
.....

Good luck ! .. .. ..
.....
 
Old 12-15-2009, 04:15 AM   #3
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ. ..

Unpacking jamvm_1.5.1-1_mipsel.ipk :

tar xvf jamvm_1.5.1-1_mipsel.ipk
tar xvf data.tar.gz
.. reveals : /opt/bin/jamvm
.. which you would have seen by looking in /opt/
or by using 'ls -R /opt' or 'find /opt -name jamvm'.

So either use the command '/opt/bin/jamvm'
or add /opt/bin/ to your path.
.....

Good luck ! .. .. ..
.....
Thanks for greeting
OK, I've already tried running jamvm with the full path - despite I have also $PATH set up correctly( )) ) - same problem:

/ # ls -l /opt/bin
-rwxr-xr-x 1 admin root 14756 Jul 20 17:00 file
-rwxr-xr-x 1 admin root 2068 Apr 11 2009 gappletviewer
-rwxr-xr-x 1 admin root 2053 Apr 11 2009 gjar
-rwxr-xr-x 1 admin root 2065 Apr 11 2009 gjarsigner
-rwxr-xr-x 1 admin root 2057 Apr 11 2009 gjavah
-rwxr-xr-x 1 admin root 2132 Apr 11 2009 gjdoc
-rwxr-xr-x 1 admin root 2061 Apr 11 2009 gkeytool
-rwxr-xr-x 1 admin root 24324 Jul 4 23:08 glib-genmarshal
-rwxr-xr-x 1 admin root 5448 Jul 4 23:08 glib-gettextize
-rwxr-xr-x 1 admin root 15404 Jul 4 23:08 glib-mkenums
-rwxr-xr-x 1 admin root 2079 Apr 11 2009 gnative2ascii
-rwxr-xr-x 1 admin root 7724 Jul 4 23:08 gobject-query
-rwxr-xr-x 1 admin root 2055 Apr 11 2009 gorbd
-rwxr-xr-x 1 admin root 2055 Apr 11 2009 grmic
-rwxr-xr-x 1 admin root 2055 Apr 11 2009 grmid
-rwxr-xr-x 1 admin root 2069 Apr 11 2009 grmiregistry
-rwxr-xr-x 1 admin root 2070 Apr 11 2009 gserialver
-rwxr-xr-x 1 admin root 20996 Jul 4 23:08 gtester
-rw-r--r-- 1 admin root 13590 Jul 4 23:08 gtester-report
-rwxr-xr-x 1 admin root 2065 Apr 11 2009 gtnameserv
-rwxr-xr-x 1 admin root 259892 Apr 20 2009 jamvm
-rwxr-xr-x 1 admin root 26728 Sep 12 2008 slsh
-rwxr-xr-x 1 admin root 47120 Feb 1 2009 tree
/ # /opt/bin/jamvm
/bin/sh: /opt/bin/jamvm: not found


I also tried fsck and file on a nearby notebook:

meee:/home/vasek# fsck /dev/sdb1
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sdb1: clean, 952/124160 files, 23580/496542 blocks
meee:/home/vasek# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mo*de=0755)
proc on /proc type proc (rw,noexec,no*suid,nodev)
sysfs on /sys type sysfs (rw,noexec,no*suid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,no*suid,gid=5,mo*de=620)
/dev/sdb1 on /media/disk type ext3 (rw,nosuid,no*dev,uhelper=hal)
meee:/home/vasek# ls /media/disk/bin
file gjdoc gnative2ascii grmiregistry jamvm
gappletviewer gkeytool gobject-query gserialver slsh
gjar glib-genmarshal gorbd gtester tree
gjarsigner glib-gettextize grmic gtester-report
gjavah glib-mkenums grmid gtnameserv
meee:/home/vasek# file /media/disk/bin/jam*vm
/media/disk/bin/jam*vm: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), stripped

Thanks for help..
 
Old 12-15-2009, 04:31 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
cd /opt/bin/

file jamvm
Code:
jamvm: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), stripped
This is a MIPS binary, for use on the router ?
Together with some cross toolchain ?

What is your purpose of installing this file ?
.....

Last edited by knudfl; 12-15-2009 at 04:37 AM.
 
Old 12-15-2009, 04:39 AM   #5
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Question

It's strange, because it's been installed from Oleg's repository for Asus 500gp with ipkg..
So do you think I could exchange the binary? What architecture would be proper?
Thank you..
 
Old 12-15-2009, 04:49 AM   #6
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I tried making a simple script(with only ls command, beeing executed via /bin/sh) in /opt/bin directory and run it successfully.. But running anything that's been installed via ipkg (also to this directory) ends with "file not found" error..
 
Old 12-15-2009, 08:56 AM   #7
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
The purpose is to get java working on this router.
Anyway, I got the same problem after installing SableVM(abother Java Virtual Machine) and tree utility(I don't actually need tree, it was just to check if the package system installs everything correctly).
 
Old 12-18-2009, 09:01 AM   #8
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I tried if the sablevm executable is of the same type as an executable that is working for me now:

meee:/media/disk/bin# file sablevm
sablevm: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), stripped

meee:/# file /media/disk/emil/busybox
/media/disk/emil/busybox: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), stripped

meee:/# ldd /bin/df
linux-gate.so.1 => (0xb7ee6000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7d75000)
/lib/ld-linux.so.2 (0xb7ee7000)
meee:/# ldd /media/disk/bin/sablevm
ldd: exited with unknown exit code (126)

 
Old 12-29-2009, 09:37 AM   #9
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I would really appreciate any tip.. Thanks in advance..
 
Old 12-30-2009, 04:37 PM   #10
mravenca
LQ Newbie
 
Registered: Dec 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I am finally able to run programs from /opt/bin:
I edited /etc/ipkg.conf and left there only
src opt http://ipkg.nslu2-linux.org/feeds/op...g/cross/stable.

After upgrading and installing ncurses (according to http://wl500g.info/showthread.php?t=9007) every binary installed in /opt/bin works now!!

There is said to be a problem with mixing binaries from differrent sources.

This solved it!

Now I have a minor problem with jikes compiler, it says it can not load libuClibc++.so.0. I need it to compile a test 'hello world' java program..

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failure to find E100 firmware even though present in /lib/firmware afhartman Linux - Networking 2 07-27-2009 07:31 AM
Firmware problem (tried everything) veyron Linux - Wireless Networking 2 06-15-2009 10:16 AM
Problem with Firmware IX_EquilibriuM Mandriva 1 02-28-2008 03:26 AM
Need help updating firmware on a 8868-6RX bo running Suse coronet_blue Linux - General 0 05-11-2006 10:01 AM
messed up my ipod firmware..need new firmware.. casimir Linux - Hardware 2 09-13-2004 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration