This topic contains 9 replies, has 3 voices, and was last updated by  ubld.it 1 year, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #966

    dptrash
    Member

    Hi,

    Are there also mdev rules available?
    My system does not use udev.

    Regards

    #969

    ubld.it
    Keymaster

    Currently one doesn’t exist, but we can look into helping make some.

    The basics are simple,
    * symlink (if you can) to /dev/TrueRNG so if you have multiple ttyACMx devices its easy to find (and start iwth rngd)
    * set the serial port to RAW meaning no control characters
    * maybe something else I’m missing.

    In some systems the udev rules aren’t needed at all, its just over time we’ve found a few quirks with different distros and the udev rules seem to help make things more consistent.

    What distro are you running ? and is mdev the default or your choice ? usually mdev is used on embedded systems with busybox.

    #971

    dptrash
    Member

    What distro are you running ? and is mdev the default or your choice ? usually mdev is used on embedded systems with busybox.

    You are right. My distro is Alpine Linux. mdev is there the default.

    #1131

    giuliano77
    Member

    Any updates in mdev rules? Embedded systems are supposed to be the main target for your product because they lack in good entropy sources. I’m interested in your product also, please make a little effort to create those mdev rules.
    Thank you.

    • This reply was modified 2 years, 10 months ago by  giuliano77.
    #1133

    ubld.it
    Keymaster

    If there is still a need for mdev rules, we’ll start going over the mdev documentation and see what we can put together. Hopefully we’ll have something in the next few days.

    #1135

    ubld.it
    Keymaster

    It took a few days to figure out a solution for mdev systems. The product page download section has been updated with a link to a tgz for mdev systems (link is also here). There are 3 files in the tgz, (with paths to make it easy to extract to /). The first file is “README” this file will explain the install in more detail. The second is “/etc/mdev.conf.truerng.addon” this file contains like 2 lines to be added to the tail end of your /etc/mdev.conf. The 3rd file is /lib/mdev/truerng which needs to be in /lib/mdev with execute permissions.

    The test system was Alpine Linux, since it was referenced above and an ideal candidate for testing. I hope this works with other mdev systems correctly. The scripts will create the /dev/TrueRNG symlink when the TrueRNG is inserted just like its udev counterpart. It will also set the tty correctly to raw mode so that the terminal doesn’t interpret any codes. Lastly it will remove the symlink when the device is removed.

    #1318

    dptrash
    Member

    Thank you! Using it since today. :-)

    One question: Must the add operation not also be in the if-clause which checks the VID/PID?

    • This reply was modified 2 years, 4 months ago by  dptrash.
    • This reply was modified 2 years, 4 months ago by  dptrash.
    #1324

    ubld.it
    Keymaster

    I must have had some other code in there that got taken out in the final version, I had gone through a few iterations of trying to implement a working system before the final version. The vid/pid check at the top is negative, since on the remove event the vid/pid doesn’t exist. So we wouldn’t want to put the add action in that branch.

    The simplest thing to do would be to add a check to the bottom making sure the vid/pid are correct before doing the add [otherwise the whole script needs reworking]

    which would look something like
    if [ "$ACTION" = "add" ] && ["$VID" = "4d8" ] && [ "$PID" = "f5fe" ]; then
    instead of
    if [ "$ACTION" = "add" ]; then

    I would have to test this change before updating the script in the package, but there is room for improvement there.

    #1565

    dptrash
    Member

    Before I buy the TrueRNGpro: Can I reuse these mdev rules for TrueRNGpro?
    I could improve the mdev script – is there some interest from your side?

    • This reply was modified 1 year, 11 months ago by  dptrash.
    #1569

    ubld.it
    Keymaster

    It should be a few minute job to modify the mdev rules for the TrueRNGV2 to work on the pro. the Pro has a different usb PID, aside from that it functions the same way as a USB CDC serial port, except faster and the other shell scripts to put it into RAW mode and what not.

    As for script contributions, we will gladly take any improvements.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.