Skip to content

minisatip and James Donkey HD DUO #1107

Closed

Description

@lars18th

Hi @catalinii and others,

I've now one unit of the cheap James Donkey HD DUO. And after a lot of testing over several weeks I can finally run minisatip on this device, albeit with fairly limited capabilities. So first of all I want to share the facts I have discovered:

  • The unit can run minisatip if you install the last version of the OpenATV firmware version 6.4. One relevant aspect is to use the driver version: 20210607 (kernel 4.4.35).
  • To run minisatip you need to use the option -1 1 because the stream can only be readed from the /dev/dvb/adapter0/demuxX and not the common /dev/dvb/adapter0/dvrX.
  • The "streaming" mode requires to be enabled using echo 1 > /proc/stb/parameters/ts_tap (already set by the script /etc/init.d/dinobot-pvr.sh).
  • The firmware has some bug regarding the background splash image. Therefore you need to kill the showiframe process that is consuming a lot of CPU resources.
  • Current minisatip ARM binaries can't be run because a mismatch with the GLIBC version. You need to recompile it with an older toolchain with ./configure --enable-static --host=arm-linux-gnueabihf --disable-dvbca --disable-dvbcsa and make EXTRA_CFLAGS="-DNEEDS_SENDMMSG_SHIM".
  • The pid filtering implemented inside the dvb driver is very buggy. With the simple dmesg command you can see a lot of errors. And now I discovered that the driver only supports up to 10 "service" pids plus another 10 "psi" pids. So you have to request the opening of the pids in this order: first you can request up to 10 pids from the range 32-8190, and then continue with another 10 pids from the range 0-31. This is very crazy. But if you request the opening of the pids not using this technique, then you can open only a small number of pids. If you request for example: 100,0,101,1,102,16 then you will recive only pids 100 and 0, and nothing else! So the golden strategy is to open (0-10)service_pids, (0-10)psi_pids.
  • But anything else seems to work very well. I can use the two tuners independently, and stream multiple pids with a bandwith of 30mbps from each tuner without troubles.

Therefore, I request if you can help to improve the support for this device:

  1. The first "simple" question is to provide a compatible binary. I suggest to add to the releases another ARM target compiled with an older toolchain, and with EXTRA_CFLAGS="-DNEEDS_SENDMMSG_SHIM". I feel several low cost devices with ARM cores will agree. You accept this @catalinii ?
  2. The second question is how to handle the "limited pid list". My first idea is to ordering the received pid list, split it in two groups, and send it in the correct way limiting to 10 pids per list. However, a lot of edges cases can appear. So any idea to almost improve the current behaviour with minimal changes?

Please, comment anything you want, and let me know if you want me to perform any concrete test.

Activity

  1. catalinii commented on May 22, 2023

    @catalinii
    Owner

    Hey @lars18th,

    IMHO we should not really support such devices.
    There are few reasons for that:

    1. the driver is buggy and we will have to cary those patches for a long time which will complicate minisatip and potentially break also this device in the long run.
    2. Basically there is no open source version of any of the drivers so we can improve those.
    3. Those devices will not get an update. Kernel 4.4 is no longer supported for more than 1 year.

    I honestly feel disappointed by my gigablue (quad 4k) that takes 1s to set a pid filter, which makes tuning to a channel a 10s deal.

    I understand that the device is cheaper than a regular one (50EUR vs 100-150EUR), but you will pay 10x that difference in time spent to make it work and keep supporting it.
    IMHO I am ok if we do not support devices for which the company that creates them does not do the minimum of providing a device that can handle the DVBAPI.

  2. Jalle19 commented on May 22, 2023

    @Jalle19
    Collaborator

    I agree with @catalinii , some devices are just not worth the trouble. It's already somewhat of a pain tl support AXE devices, and those at least have some unique capabilities (cheap, fast quad tuner with internal switching matrix, custom OS). But an aliexpress dual tuner, meh 🤷

    Providing a pre-built binary on the other hand could be done, especially if there are other old Enigma device that would benefit from that. Feel free to make the necessary changes to the GitHub workflow.

  3. lars18th commented on May 23, 2023

    @lars18th
    ContributorAuthor

    Hi,

    Thank you for your comments. Regarding this:

    Providing a pre-built binary on the other hand could be done, especially if there are other old Enigma device that would benefit from that. Feel free to make the necessary changes to the GitHub workflow.

    OK, and I can do it.
    However, before changing the /workflows/binaries.yml, we need to update the container catalinii/minisatip-build-image:latest to add the "legacy" toolchain for ARM. The one that I've used searching from the Internet is this: http://tropical.jungle-team.online/utilidades/toolchains.tar.gz.

    If @catalinii updates the container and he put the toolchain (this or anything else similar) in one alternative path (like /opt/arm-legacy/), then I'll update the workflow to generate the new target: ARM-legacy.

    You agree?

  4. catalinii commented on May 23, 2023

    @catalinii
    Owner

    The issue here is that the toolchain contains an old gcc version (4.8.3). I am trying to use newer C features and not really enjoying keeping old gcc supported.

    Why not update openatv: http://images.mynonpublic.com/openatv/7.2/index.php?open=jdhdduo

  5. lars18th commented on May 24, 2023

    @lars18th
    ContributorAuthor

    Why not update openatv: http://images.mynonpublic.com/openatv/7.2/index.php?open=jdhdduo

    Because this version has some troubles with this device. I've tested 7.x and 6.x, and the most reliable version (for running minisatip) is the 6.4 (LTS). I do the same with my other Enigma boxes (Edision and ZGemma). So please, continue supporting old compilers. With embedded devices is quite common to it have only ancient toolchains.

    So, direct question: You agree to include inside a separate subdirectory (i.e. /opt/legacy-toolchain/) the older toolchain in the docker container? If you agree then I'll prepare a PR for it.

    Regards.

  6. Jalle19 commented on May 24, 2023

    @Jalle19
    Collaborator

    What kind of troubles?

  7. catalinii commented on May 24, 2023

    @catalinii
    Owner

    IMHO if we have to use a older version of glibc that could be ok, but we still need a new compiler. Was wondering how that would work with clang.

    Which glibc version is openatv running?

  8. lars18th commented on May 24, 2023

    @lars18th
    ContributorAuthor

    Which glibc version is openatv running?

    $ strings /lib/libc.so.6 | grep LIBC --> GLIBC_2.30

    This is true on both ARM (JamesDonkey) and MIPS (Edision).

    The errors running the current minisatip binaries in ARM are:

    ./minisatip: /lib/libc.so.6: version `GLIBC_2.33' not found (required by ./minisatip)
    ./minisatip: /lib/libc.so.6: version `GLIBC_2.34' not found (required by ./minisatip)
    

    The same version in MIPS is not generating any error. Any idea @catalinii ?
    I don't know how to link to an specific previous version of glibc with the toolchain.

  9. lars18th commented on May 24, 2023

    @lars18th
    ContributorAuthor

    Hi @Jalle19 ,

    What kind of troubles?

    With OpenATV 7.x in the James Donkey HD DUO the system seems to run very slowly. For this reason I prefer to stay running 6.4, because I run only minisatip and nothing else (enigma2 is off). I the rest of boxes I continue with 6.4 because I don't need nothing more... minisatip just runs ok.

  10. lars18th commented on May 24, 2023

    @lars18th
    ContributorAuthor

    Hi @catalinii ,

    FYI, the last "binary release" ARM compatible with GLIBC is v1.1.92 (Apr 28, 2022). And the first with errors is v1.2.1 (May 2, 2022). Checking the docker image seems that this is the change that has broked the compatiblity (Apr 29, 2022): catalinii/minisatip-build-image@6314dff

    It could be that you compile the OpenSSL for ARM with a different toolchain?

  11. Jalle19 commented on May 24, 2023

    @Jalle19
    Collaborator

    @lars18th does it run so slow that minisatip can't be used? Seems odd.

  12. catalinii commented on May 24, 2023

    @catalinii
    Owner

    The driver does not seem to have been updates in the last 5 years: https://github.com/oe-alliance/oe-alliance-core/blame/4.1/meta-brands/meta-dinobot/recipes-linux/linux-dinobot_4.4.35.bb
    so to run minisatip just libc is probably changed between versions (6.4 -> 7.x)

  13. lars18th commented on May 26, 2023

    @lars18th
    ContributorAuthor

    Hi @catalinii ,

    Regarding the Docker Container to generate the binaries:

    • I do this check changing the last version of the Dockerfile: using FROM ubuntu:20.04 insted of FROM ubuntu:lunar.
    • I compile manually the ARM target with ./configure --enable-static --host=arm-linux-gnueabihf --disable-dvbca --disable-dvbcsa && make.
    • With the resulting binary the command objdump -T minisatip | grep -Eo 'GLIBC_\S+' | sort -u displays this:
    GLIBC_2.12
    GLIBC_2.14
    GLIBC_2.16
    GLIBC_2.17
    GLIBC_2.28
    GLIBC_2.4
    GLIBC_2.7
    
    • And the binary will run without errors in the device.

    Therefore, I suggest these changes:

    1. Continue generating the binaries with the "ubuntu:lunar" base.
    2. Add the layer "ubuntu:20.04" to compile after new x64 and ARM "legacy" binaries.
    3. Add the minimum target GLIBC version as a text file in the asset zip file (executing the objdump command after the compilation ends).

    Futhermore, I see that for MIPS platform you are'nt using any Ubuntu package, but a custom "ancient" toolchain. Doing this you can't use new GCC versions, because you're limited to this ancient toolchain. Why not convert this in a "legacy" asset, and use the "mipsel-unknown-linux-musl" stock packages to compile using the Ubuntu toolchain?

    Regards.

  14. lars18th commented on May 26, 2023

    @lars18th
    ContributorAuthor

    Hi @Jalle19 ,

    @lars18th does it run so slow that minisatip can't be used? Seems odd.

    The OpenATV firmware is not just the "driver" package and the "enigma2" process. Using the 6.4 firmware (remember LTS, so with all updates and the last driver version) the system seems to be more reliable. And this is true without running any enigma process and only minisatip driving the tuners. Any other daemons are still there. So, I don't know the root cause for the difference in the performance. But if the branch 6.4 is more robust than 7.x with some devices without updated drivers and kernels, then I prefer to continue to use this "legacy branch". Don't you think so?

    Hi @catalinii ,

    The driver does not seem to have been updates in the last 5 years: https://github.com/oe-alliance/oe-alliance-core/blame/4.1/meta-brands/meta-dinobot/recipes-linux/linux-dinobot_4.4.35.bb
    so to run minisatip just libc is probably changed between versions (6.4 -> 7.x)

    In OpenATV the drivers are updated based on the kernel, and not in the firmware version (6.x or 7.x). Therefore, nothing is erroneous if the device uses a 5 years old driver. This driver (linux-dinobot_4.4.35 version 20210607) is fine except for the limited pid filtering handle (and used on more devices). Futhermore comparing my "Edision OS nino+" with dual tuner (C/T + S2) with this dumb "James Donkey HD DUO", the ARM mono-core CPU of the last is three times faster than the dual core MIPS of the first. So, the box is good to drive two DVB-S2 tuners using minisatip. The problem is only the uggly driver.

    Anyway, at time the "official" minisatip binaries for MIPS are using an ancient toolchain. But this is not true for the ARM platform. And these binaries have sense only on systems without a compiler. Therefore IMHO it's preferable to offer binaries for a large "legacy" level of platforms. Don't you think so?

    Regards.

  15. catalinii commented on May 28, 2023

    @catalinii
    Owner
    1. My point was that minisatip needs a kernel (which contains the DVB drivers) and glibc. Of course other libc-like projects works for minisatip as well. I've not heard of glibc to cause minisatip perf issues (which uses syscalls which are wrappers for the kernel functionality) so my intuition was that 7.x and 6.4 should be similar from minisatip perspective.

    Basically what I am trying to say brings back to @Jalle19's point about supporting axe. The short story is that it becomes a hassle. Maybe now is ok to support openatv 6.4, but I am not sure this is a long term solution.

    Does the minisatip build with ubuntu:22.04 works ?
    Will try to move off that old toolchain for MIPS.

  16. 39 remaining items

  17. Jalle19 commented on Jun 24, 2024

    @Jalle19
    Collaborator

    Can this be closed?

  18. lars18th commented on Jun 25, 2024

    @lars18th
    ContributorAuthor

    Hi @Jalle19 ,

    I prefer that you leave it open. This issue contains interesting information (for not buying this type of device).

  19. Jalle19 commented on Jun 25, 2024

    @Jalle19
    Collaborator

    The information can just as easily be found even though the issue is closed

  20. lars18th commented on Jun 25, 2024

    @lars18th
    ContributorAuthor

    The information can just as easily be found even though the issue is closed

    Not really. I suggest to leave it open. Please.

  21. catalinii commented on Jun 25, 2024

    @catalinii
    Owner

    We can add it to the README, maybe make a unsupported devices section

  22. Repository owner locked and limited conversation to collaborators on Nov 25, 2025
  23. converted this issue into a discussion #1330 on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions