Results 1 to 6 of 6

Thread: installing ipkg optware packages on Corza

  1. #1
    Join Date
    Dec 2009
    Posts
    5

    Default [solved] installing ipkg optware packages on Corza

    Hi, I've just bought Corza Patriot NAS and I'm wondering if I can install ipkg packeges on that server.

    That's the procedure I made:
    1. I downloaded the following package on my usb stick:
    # mount /mnt/usb
    # mkdir /mnt/usb/opt
    # cd /mnt/usb/opt
    # feed=http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable
    # ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'`
    # wget $feed/$ipk_name
    #umount /mnt/usb

    2. and mount it into Corza NAS
    # mount /dev/sda /mnt/usb
    # ln -s /mnt/usb/opt /opt
    # cd /opt/
    # tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
    # mkdir -p /opt/etc/ipkg
    # echo "src cross $feed" > /opt/etc/ipkg/feeds.conf
    # export PATH=/opt/bin:$PATH
    # /opt/bin/ipkg update

    When I run ipkg command I've noticed the following logs:
    # /opt/bin/ipkg
    ash: /opt/bin/ipkg: not found

    The question is which Platform should I choose:
    http://www.nslu2-linux.org/wiki/Optware/Platforms

    - openwrt-ixp4xx
    - wl500g
    - oleg
    - brcm24
    - armv5b-softfloat-linux
    - mss
    - nas100d
    - armv5b-softfloat-linux
    - wl500g
    - Gumstix
    - cs05q1armel
    - cs05q3armel
    - cs08q3armel
    - ddwrt
    - dns323
    - ds101g
    - ds101
    - fsg3
    - fsg3v4
    - gumstix1151
    - nslu2
    - ddwrt
    - openwrt-brcm24
    - slugosbe
    - slugosle
    - syno-e500
    - syno-x07
    - ts101
    - ts509
    - ts72xx
    - vt4
    - Freecom vt4.

    or what should I do to make ipkg run?

    I've used vt4 repository.

    I also did some research about this device and I found that it's:
    StorLink SL3516 (GEMINI) based products
    It's Raidon SL3620-2S-LB2 processor (? ARM-9, 300 MHz).

    This is output from /proc/cpuinfo
    #cat cpuinfo
    Processor : FA526id(wb) rev 1 (v4l)
    BogoMIPS : 230.19
    Features : swp half
    CPU implementer : 0x66
    CPU architecture: 4
    (...)

    OS: Linux
    Kernel: 2.6.15 (gcc version 3.4.4)

    Thanks
    Last edited by ruppertus; 12-09-2009 at 08:31 AM.

  2. #2
    Join Date
    Dec 2009
    Posts
    5

    Default

    When I try:
    CORZA-NAS> sh ipkg

    I got the following error:
    ipkg: 1: Syntax error: word unexpected (expecting ")")

  3. #3
    Join Date
    Dec 2009
    Posts
    5

    Default

    And what is this ipkg surppose to do?

  4. #4
    Join Date
    Nov 2009
    Posts
    6

    Default

    Ahoy,

    You'll need an armv4l based distro for binary compatibility -- I don't see one marked armv4l on that list however if v4t is it may work (I believe corza has glibc 2.3.6 and vt4 is marked glibc 2.3.5)

    As for getting the shell script to run it looks like you might just need to use bash instead -- if you're running a script (ipkg may just be a shell script, I have not tried it myself) you may need to modify it and make sure the script has a header such as:

    i.e. my_command.sh:
    Code:
    #!/mnt/md1/linux/bin/bash
    .. script goes here ..
    which will use the bash shell to run the script instead of the busybox ash shell which has a limited number of features and script support.


    Cheers,
    -CJ



    Quote Originally Posted by ruppertus View Post


    When I try:
    CORZA-NAS> sh ipkg

    I got the following error:
    ipkg: 1: Syntax error: word unexpected (expecting ")")

    ---

    When I run ipkg command I've noticed the following logs:
    # /opt/bin/ipkg
    ash: /opt/bin/ipkg: not found

    The question is which Platform should I choose:
    http://www.nslu2-linux.org/wiki/Optware/Platforms


    or what should I do to make ipkg run?

    I've used vt4 repository.

  5. #5
    Join Date
    Dec 2009
    Posts
    5

    Default

    Quote Originally Posted by cjcliffe View Post
    Ahoy,
    You'll need an armv4l based distro for binary compatibility -- I don't see one marked armv4l on that list however if v4t is it may work (I believe corza has glibc 2.3.6 and vt4 is marked glibc 2.3.5)
    I don't know why this forum didn't changed the topic, but I've already found the solution. I've used vt4 repository (for ARM processors). But thanks anyway

    Right now I'm trying to workaround the problem of lacking basic packages. The ipkg scripts doesn't work properly with busybox command - like head, sort, etc.

    I've already installed bash but still have some problem with ssh server.

  6. #6
    Join Date
    Dec 2009
    Posts
    5

    Default

    The workaround for that is to modify the:
    /opt/bin/update-alternatives script

    I've changed 'head' and 'sort' command with '/opt/bin/busybox head'
    and '/opt/bin/busybox sort' and run
    /opt/lib/ipkg/info/busybox-links.postinst

    that helped linking the alternatives and postprocessing downloaded packeges.

    And what is this ipkg surppose to do?
    Optware is a repository of small, popular and very usefull packeges for linux distribution. They are dedicated for device like routers/switches/nas servers etc. And ipkg is a packeging system that help to find, download and install packages from that optware repository. It's similar to debian's apt-get but it's more primitive.

    The main advantage is that that these packages are quite well tested and they install everything in /opt directory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •