1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IPC support of kernel/ semget

Discussion in 'Tomato Firmware' started by ElKnatt, Nov 27, 2013.

  1. ElKnatt

    ElKnatt Reformed Router Member

    Hello everyone,

    at least DarkKnight93 is having the same issue as I do with shibby's current builds: Since 109 it is missing IPC support of the kernel, namely semget.

    I am running a DVB stick on my ASUS RT-N66U. However, the driver fails to load with
    There are a few options now:
    1) roll back to 108
    2) build a separate libc incl. semget
    3) re-include semget into the shipped libc (requiring shibby to do that)

    Unfortunately, I am not very familiar with embedded development (though starting to learn). Thus, 2) is a nice project for me but I am not really getting anywhere... :(

    Anyone willing to help?

    darkknight93 likes this.
  2. darkknight93

    darkknight93 Networkin' Nut Member

    I have solved this issue with starting mediasrv and mediaclient via Ld_preload option specifying the link to.an old libc.so I copied from v108

    I will attach the file and my scripts for tuning so you can use them.

    But this is just a work around for something that stopped working or was removed. Semget IMHO is an important feature!
  3. koitsu

    koitsu Network Guru Member

    Agreed -- I don't see why SysV semaphore support was removed from libc, unless it was a change by the uClibc folks. It's obvious it wasn't removed from the kernel else using an alternate libc.so.0 wouldn't work.

    SysV semaphores aren't the only form of IPC available (there are many on *IX; the term IPC is fairly vague -- the mmap method is highly preferred), but it's obvious some things do use it.
  4. ElKnatt

    ElKnatt Reformed Router Member

    That'd be solution #4. Great idea!

    Did you forget to attach it? I cannot see the file.

    I could certainly also just get it myself -- but I only have one productive router here == lots of effort just to get file. Unless I can "install" (i.e. extract) a trx on my Linux.

    Thank you again. I will also post that solution to the sundtek forum. Just in case someone else is having the same issue.
  5. darkknight93

    darkknight93 Networkin' Nut Member

    I will post description and files as soon as I have access to my home router this evening
  6. darkknight93

    darkknight93 Networkin' Nut Member

    So for starting mediasrv i use:
    LD_PRELOAD=/mnt/DATA/scripts/rrd/libc.so.0 mediasrv -d -c /mnt/DATA/scripts/sundtekd.conf --pluginpath=/opt/bin
    where /mnt/DATA/scripts/rrd is the path where libc.so.0 goes. -c /mnt..../sundtekd.conf you can just leave there or slash it out.

    For using mediaclient you also have to specify:
    LD_PRELOAD=/mnt/DATA/scripts/rrd/libc.so.0 mediaclient -m DVBC -f ${freq} -S 6952000 -M Q256
    I attached my libc.so.0 for Asus RT N66U :)

    Attached Files:

    ElKnatt likes this.
  7. ElKnatt

    ElKnatt Reformed Router Member

    Excellent. Thank you very much.

Share This Page