Building ipk for OE1.6 and OE2.0

  • Hi,


    I want to build IPK file which will be installable both in OE1.6 and OE2.0 firmware.


    I know that in control file i shopuld specifies architecture.


    Is inscription:


    Code
    Architecture: mipsel, mips32el


    correct and plugin will be installed on OE1.6 and OE2.0?


    Please Give me an answer because I don't have possibility to check it on those two OEs.

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • I know "all" solution but I have some anxiety that it will not be the best sollution because the IPK will contain binaries files compiled directly form C with "gcc --arch=linux-mipsel" parameter so I want to restrict ipk installation to OE1.6 and OE2.0 (and I want to have one ipk file because I don't have time to maintain few files).


    Also I don't want to use "all" because ipk are also for other distribution with other processors and I want to make one idiot proof IPK not instalable without mipsel ans mips32el.


    So is there another option that "all" and two ipk files solution?

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • I dont think you have many other options than using 'all' if you don't want to build multiple packages, also don't forget the mips32el-nf then for old DM800 :pinch:

    Theorie ist, wenn man alles weiß, aber nichts funktioniert.
    Praxis ist, wenn alles funktioniert aber niemand weiß warum.

  • Take architecture all and use a preinst script to prohibit installation on boxes it was not built for.

  • Take architecture all and use a preinst script to prohibit installation on boxes it was not built for.

    I think that is the best solution.


    Can someon who have OE1.6 installed log in to telnet and give me answer what is feedback of command:


    uname -m (I have OE20. and it gives me mips - prapobly 1.6 will be the same but I want to be sure).

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

    Einmal editiert, zuletzt von silelis ()

  • I would use /proc/stb/info/model or /proc/cpuinfo or /etc/hostname


    SqueezeOut checkes for 800se and 500hd like this - as it makes only sense on these 2 boxes:


    if grep -qs dm500hd /proc/stb/info/model ; then
    exit 0
    fi
    if grep -qs dm500hd /etc/hostname ; then
    exit 0
    fi
    if grep -qs dm800se /proc/stb/info/model ; then
    exit 0
    fi
    if grep -qs dm800se /etc/hostname ; then
    exit 0
    fi
    echo "only 500hd and 800se make sense for squeezeout"
    exit 1

  • I have another questoin.


    If in the past I built bin (cross compilatoion on gcc) with parameter --arch=linux-mipsel


    and it worked on OE1.6 so should it work on OE2.0?


    Is there difference between those two OE which don't allow to use bins from mipsel architecture on mips32el? And if yes how --arch parameter should be written to compile bins (on gcc) to mips32el (OE2.0)?

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • a developer must always test on different platforms.
    as Homey mentioned do not forget mips32el-nf arch

    i have a dream !!!


    3x DM500HD
    1x DM800se
    ----------------
    Kubuntu 12.10 x64
    Windows 7 Ultimate x64
    Intel i7 950@3200 10GB DDR3
    MSI 7522 X58 Platinum SLI
    MSI N560GTX-Ti Hawk