Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Installing Java On Linux/MIPS

Options
  • 23-05-2005 6:00pm
    #1
    Moderators, Education Moderators Posts: 1,863 Mod ✭✭✭✭


    I am trying to install java onto a linux machine running
    a MIPS processor, I am having alot of trouble.

    My knowledge of Linux is very little, I get passed the licensing agreement
    when I execute the .bin java install file for the 1.5 jre. It starts unpacking
    and then tells me that it cannot execute the bin !

    I imagine that this is because it is a MIPS processor ? I was looking up
    JVM's for MIPS and didn't really dig up much. It's a pain in the rocks !
    Perl is working on the machine, but that would mean learning perl, gah.

    Any ideas ?

    Ro.


Comments

  • Registered Users Posts: 2,426 ✭✭✭ressem


    You got the install from sun?
    Then yeah, it's because it's a MIPS

    Even the PowerPC gets neglected at times. You'll probably need to look for an open source version of the JVM. Which until apache get theirs running might be limited to an old blackdown version or kaffe, which definitely has a mips version with all that that involves.
    http://www.kaffe.org/doc/kaffe/README
    http://www.kaffe.org/compatibility_applications.shtml

    This might be easier, gcj
    http://gcc.gnu.org/install/specific.html


    Depends on what you need to do.


  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    There should almost certainly be a free port of Sun Java for Linux on MIPS. Google for it.


  • Moderators, Education Moderators Posts: 1,863 Mod ✭✭✭✭Slaanesh


    Thanks lads,

    I'll give that Kaffe a try.
    Probably another stupid question but how do I install rpm files ? RPM is not
    installed on this linux distro. Is it easy to install ?

    Ro.


  • Registered Users Posts: 2,426 ✭✭✭ressem


    What Linux distro are you using? Also what machine are you running and processor? An SGI?
    Manufacturers site is a good place to look for info on software available?

    Unfortunately SGI only have ports of Sun's JDK for IRIX on MIPS, not linux.


  • Moderators, Education Moderators Posts: 1,863 Mod ✭✭✭✭Slaanesh


    I do believe it's an au1100 MIPS processor. Can't even tell what distro of linux I'm using. The board is a custom made board with limited features. I'm trying to use what I can without having to avail of support for now.

    Ro.


  • Advertisement
  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    Slaanesh wrote:
    Thanks lads,

    I'll give that Kaffe a try.
    Probably another stupid question but how do I install rpm files ? RPM is not
    installed on this linux distro. Is it easy to install ?

    Ro.

    You'll almost certainly have to compile kaffe or gcj for it. gcj tends to be more compatible.


  • Registered Users Posts: 2,426 ✭✭✭ressem


    Can you try
    dmesg | more
    
    If that doesn't work view
    boot.msg in /var/log

    Amongst the top lines should provide the kernel version, gcc version and distro name.
    (suse debian redhat etc)

    Based on that we should be able to suggest whether there is a package manager present on your system, apt, yast or whether you need to build rpm and other binarys that you want from source.

    Might be more mips experienced bearded ones that can help on the unix forum, if you want to ask the mod to move the thread.


  • Moderators, Education Moderators Posts: 1,863 Mod ✭✭✭✭Slaanesh


    Linux version 2.6.5-impact-mp-7 (root@midi-plexus) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Wed Apr 21 10:37:15 BST 2004
    CPU revision is: 02030203
    Au1100 BD (PRId 02030203) @ 396MHZ
    BCLK switching enabled!
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    On node 0 totalpages: 8192
      DMA zone: 8192 pages, LIFO batch:2
      Normal zone: 0 pages, LIFO batch:1
      HighMem zone: 0 pages, LIFO batch:1
    Built 1 zonelists
    Kernel command line: root=/dev/hda1 au1000_audio=vra ide1=noprobe console=ttyS3,115200
    ide_setup: ide1=noprobe
    Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes.
    Primary data cache 16kB 4-way, linesize 32 bytes.
    PID hash table entries: 256 (order 8: 2048 bytes)
    calculating r4koff... 00060ae0(396000)
    CPU frequency 396.00 MHz
    Memory: 30120k/32768k available (1405k kernel code, 2604k reserved, 214k data, 84k init, 0k highmem)
    Calibrating delay loop... 394.24 BogoMIPS
    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    Checking for 'wait' instruction...  available.
    POSIX conformance testing by UNIFIX
    NET: Registered protocol family 16
    Can't analyze prologue code at 800b2e1c
    Generic RTC Driver v1.07
    kpanel: loaded v0.3
    kpanel: RTC hooks installed
    kpanel: kernel time set from RTC
    Serial: Au1x00 driver
    ttyS0 at I/O 0x0 (irq = 0) is a AU1X00_UART
    ttyS1 at I/O 0x0 (irq = 1) is a AU1X00_UART
    ttyS2 at I/O 0x0 (irq = 2) is a AU1X00_UART
    ttyS3 at I/O 0x0 (irq = 3) is a AU1X00_UART
    au1000eth.c:1.4 [email]ppopov@mvista.com[/email]
    eth0: Au1x Ethernet found at 0xb0500000, irq 28
    eth0: LSI 80227 10/100 BaseT PHY at phy address 0
    eth0: Using LSI 80227 10/100 BaseT PHY as default
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
    hda: HDS728080PLAT20, ATA DISK drive
    hdb: SAMSUNG CD-ROM SH-152A, ATAPI CD/DVD-ROM drive
    Using anticipatory io scheduler
    ide0 at 0xb8100000-0xb8100007,0xb8100038 on irq 54
    hda: max request size: 1024KiB
    hda: 160836480 sectors (82348 MB) w/1719KiB Cache, CHS=16383/255/63
     hda: hda1 hda2 hda3
    hdb: ATAPI 52X CD-ROM drive, 128kB Cache
    Uniform CD-ROM driver Revision: 3.20
    Au1000 audio: [email]stevel@mvista.com[/email], built 10:24:45 on Apr 21 2004
    Au1000 audio: DAC: DMA0/IRQ6, ADC: DMA1/IRQ7
    ac97_codec: AC97 Audio codec, id: ALG128 (RealTek ALC658)
    Au1000 audio: AC'97 Base/Extended ID = 0180/09c7
    NET: Registered protocol family 2
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 2048 bind 2048)
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    VFS: Mounted root (ext2 filesystem) readonly.
    Freeing unused kernel memory: 84k freed
    Algorithmics/MIPS FPU Emulator v1.5
    Adding 409648k swap on /dev/hda2.  Priority:-1 extents:1
    eth0: driver changed get_stats after register
    eth0: link up
    eth0: going to full duplex
    

    That's the ouput of the dmesg command. I tried installing GCC but I need lot's of other tools like make that I can't seem to install either because it doesn't recognise the platform ?

    Ugh, this is dirty.

    Ro.


  • Registered Users Posts: 2,426 ✭✭✭ressem


    OK, you're using Debian, so the default package manager should be apt

    http://olympus.het.brown.edu/doc/apt-dpkg-ref/apt-dpkg-ref.html

    That means that you should be able to request a package, and apt should download all the dependencies.

    e.g, assuming apt is set up correctly
    apt-get install kaffe
    apt-get install gcc
    (assuming gcc isn't already installed)

    is available

    You can also list the packages that you have installed already.

    Most debian mirrors have the mips packages including
    http://ftp.ie.debian.org/debian

    If it's not set up correctly then
    http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html

    I'm not a debian expert though, so the unix forum is the best place to get issues with apt sorted.


Advertisement