Group Details Private

Global Moderators

Forum wide moderators

  • RE: @Omega2 LTE Customization

    @Mo47 Omega2 has no HDMI support.

    Android does have support for MIPS, but I'm not aware of anyone who has tried this on an Omega.

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    @optech we're always happy to help, I hope you can complete your work successfully.

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    @optech Just step line by line through the script, it's not that complex, it's just copying files to our packing folder in the structure we need the files placed on the target system. Then running a few command to create the files required for an opkg repository and signing them using usign.

    The structure of the directories is the key to the building of the package. The cool parts are in the CONTROL directory where there are 4 files that get executed depending on what opkg is doing, ie before installing your package (CONTROL/preinst), after installing your package (CONTROL/postinst), before removing your package (CONTROL/prerm) and after removing your package (CONTROL/postrm)

    The final ipk will be in the "repo" directory
    ipk_dir.png
    ipk_CONTROL.png

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    @optech 2 points to note.

    1. The script uses the build system scripts to create the final package, this script just makes it easy for me to copy the required files into the correct directory structure. You can see towards the end of the scripts ~/source/scripts/ipkg-build and ~/source/scripts/ipkg-make-index.sh

    2. You need to sign your packages, so if you look at the section towards the end with ********************* this I have masked out my public and private keys. You need to create these using usign package. You can install usign like so:

    git clone https://git.openwrt.org/project/usign.git
    cd usign
    cmake .
    make
    sudo make install

    Then use usign to create your keys. I'll leave you to look at that.

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    #!/bin/sh

    File: make_ipk.sh

    Author: Chris

    Created on 22 September 2019, 01:40:00

    while getopts "v:d:" opt;
    do
    case "${opt}" in
    v) version=${OPTARG};;
    d) directory=${OPTARG};;
    esac
    done

    if [ -z "$version" ]
    then
    echo "Version not set, use parameter -v <version>"
    exit 1;
    fi

    if [ -z "$directory" ]
    then
    echo "Output path for ipk not set, use parameter -d <path>"
    exit 1;
    fi

    mkdir $directory
    cd $directory
    mkdir -p usr/sbin
    mkdir -p etc/myapp/scripts
    mkdir -p etc/myapp/certs
    mkdir -p etc/opkg

    cp -rf /home/chris/NetBeansProjects/MyApp/dist/Release/GNU_OpenWRT-Linux/myappd usr/sbin/
    cp -rf /home/chris/source/files/www www
    cp -rf /home/chris/source/files/etc/myapp/site etc/myapp
    cp -rf /home/chris/source/files/etc/myapp/scripts etc/myapp
    cp -rf /home/chris/source/files/etc/myapp/certs etc/myapp
    cp -rf /home/chris/source/files/etc/myapp/crontab-input etc/myapp

    #cp /home/chris/update_feeds.sh etc/myapp/scripts

    copy certificates

    #cp /home/chris/source/files/etc/myapp/certs/ca.crt etc/myapp/certs
    #cp /home/chris/source/files/etc/myapp/certs/client.crt etc/myapp/certs
    #cp /home/chris/source/files/etc/myapp/certs/client.key etc/myapp/certs

    mkdir CONTROL

    echo "Package: myapp" >> CONTROL/control
    echo "Version: $version" >> CONTROL/control
    echo "Description: MyApp" >> CONTROL/control
    echo "Section: extras" >> CONTROL/control
    echo "Priority: optional" >> CONTROL/control
    echo "Maintainer: admin@myapp.com" >> CONTROL/control
    echo "License: CLOSED" >> CONTROL/control
    echo "Architecture: mipsel_24kc" >> CONTROL/control
    echo "OE: myappd" >> CONTROL/control
    echo "Homepage: www.myapp.com" >> CONTROL/control
    echo "Depends: libc, libuci, libubus, libubox, libsqlite3, libgcrypt, libgnutls" >> CONTROL/control

    echo "#!/bin/sh" >> CONTROL/preinst
    echo "#Add your scripts here" >> CONTROL/preinst
    echo "" >> CONTROL/preinst

    chmod +x CONTROL/preinst

    echo "#!/bin/sh" >> CONTROL/postinst
    echo "#Add your scripts here" >> CONTROL/postinst
    echo "cwv=$(/usr/sbin/myappd -n)" >> CONTROL/postinst
    echo "" >> CONTROL/postinst
    echo "uci set myapp.@main[0].version=$cwv" >> CONTROL/postinst
    echo "uci set myapp.@main[0].version=$(myappd -n)" >> CONTROL/postinst
    echo "ls=$(uci get myapp.@license[0].data_collection)" >> CONTROL/postinst
    echo "uci commit myapp" >> CONTROL/postinst
    echo "crontab /etc/myapp/crontab-input" >> CONTROL/postinst
    echo "rm /etc/myapp/crontab-input" >> CONTROL/postinst
    echo "/etc/init.d/cron restart" >> CONTROL/postinst
    echo "" >> CONTROL/postinst

    echo "/etc/myapp/scripts/update_banner.sh" >> CONTROL/postinst
    #echo "/etc/myapp/scripts/update_feeds.sh" >> CONTROL/postinst
    echo "/etc/init.d/myappd restart" >> CONTROL/postinst

    chmod +x CONTROL/postinst

    echo "#!/bin/sh" >> CONTROL/prerm
    echo "#Add your scripts here" >> CONTROL/prerm
    echo "" >> CONTROL/prerm
    chmod +x CONTROL/prerm

    echo "#!/bin/sh" >> CONTROL/postrm
    echo "#Add your scripts here" >> CONTROL/postrm
    echo "" >> CONTROL/postrm
    chmod +x CONTROL/postrm

    ~/source/scripts/ipkg-build ./

    Now we can create the repository files

    #*********************************************************************************************************
    export PATH="$PATH:/home/chris/source/staging_dir/host/bin"
    echo "MyApp repository: private key XXXXXXXXXXXXX" >> myapp.key
    echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" >> myapp.key
    #**********************************************************************************************************

    mkdir repo
    mv *.ipk repo
    cd repo
    ~/source/scripts/ipkg-make-index.sh . 2>/dev/null > Packages.manifest
    grep -vE '^(Maintainer|LicenseFiles|Source|Require)' Packages.manifest > Packages
    gzip -9nc Packages > Packages.gz
    usign -S -m Packages -s ../myapp.key

    rm Packages
    rm Packages.manifest
    rm ../myapp.key

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    @optech ok sorry I thought you had added the package to menuconfig and were compiling that way. I haven't been following closely as @tjoseph1 has been doing a lot to help out.

    Making an ipk is not well documented, well not that I found when I was trying to learn how to manually make them. So I made a script to create the ipk for my custom package I build outside of the build system. I need to clean out some proprietary stuff out of my script then I will post it here in a short time.

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    @optech If you have set chirpstack in make menuconfig to M the ipk will be in <source>/staging_dir/packages/ramips

    I would be interested to know if transferring the package to your earlier 19 system gives you the same error as I suspect this may be an issue related to the included libs.

    posted in Omega Talk
  • RE: installing an ipk package and incompatible with the architecture error

    @optech Have you checked that the make file is not redefining those exports?

    posted in Omega Talk
  • RE: [need help] bought a 4 bits digital LED module

    @kottes Please create a new thread for this question, this thread is 3 years old. I'll answer on the new thread.

    posted in Omega Talk

Looks like your connection to Community was lost, please wait while we try to reconnect.