Wissensdatenbank
Digital Devices > Digital Devices Support > Wissensdatenbank

Suchbegriff(e)


Digital Devices scripts for Linux

Lösung

 

Digital Devices scripts. 

List of scripts: 

Preparations

For a fast executing of script(s), you will need to install the 'cURL' utility

$sudo apt install curl

Or you may download scripts with the "wget" (or any other method), make them executable and run by path ./path/to/script.sh

In order to make a script executable on Linux, use the “chmod” command and assign “execute” permissions to the file.

You can either use the binary or the symbolic notation in order to make it executable.

$chmod u+x script

or

$chmod 744 script

 

Run Bash Script from script path

In order to run a Bash script on Linux, simply specify the full path to the script and provide arguments that may needed in order to run your Bash script.

$./path/to/script <arg1> <arg2> ... <argn>

Scripts

1.     ddinfo.sh  -  script for retrieving information about Digital Devices cards, such as: Card Number in system, Name, PCI address, Firmware/drivers version, temperature, etc. That information may be requested by support team for better supporting purposes. 

 

 Options:
               -v     Verbose mode (-vv or -vvv for more Verbose)

Location: http://linuxsupport.digital-devices.eu/ddinfo.sh

Examples:

$curl -s http://linuxsupport.digital-devices.eu/ddinfo.sh | bash

If you prefer wget, you can run this command:

$wget -qO- http://linuxsupport.digital-devices.eu/ddinfo.sh | bash

Or for verbose use <-v> option:

$curl -s http://linuxsupport.digital-devices.eu/ddinfo.sh | bash /dev/stdin -v

 

 2. dddvb_build.sh - script for building dddvb drivers. This script requires root rights, so please login as root or run command with root rights.

 

Options:

-g|--git

download and build latest Git version of dddvb drivers. (By default the Release version is downloaded)

-v|--version

dddvb release version to build. Accepts the short form or the full version number. Any published release can be requested – there is no fixed list of allowed values, and suffixed tags such as 0.9.40a are accepted. Default: 0.9.41

          -v 41         =  dddvb-0.9.41

          -v 0.9.40a  =  dddvb-0.9.40a

-l|--list

list the dddvb releases currently published upstream and exit. Use it to check which values <-v> will accept.

-f|--fmode

set *MODE for Max S8/SX8/SX8 Basic cards. Requires value 0; 1; 2 or 3 (ex. –f 2 - to set fmode=2 in ddbridge.conf file)

The value is written to ddbridge.conf only when this option is given. If it is omitted, an existing configuration is left untouched, so rebuilding the drivers after a kernel update will not reset your fmode. When ddbridge.conf does not exist yet, fmode=0 is used.

-M|--msi

If you have I²C-Timeouts, please disable MSI for ddbridge.

Possible values: 0-disable, 1-enable (default). As with <-f>, the value is written to ddbridge.conf only when the option is given.

-m|--max-adapters

set MAX ADAPTERS value (upstream default is 64).

Possible values: 128; 256 (the older shorthand 1 and 2 still works)

          -m 128  (or -m 1) = MAX ADAPTERS 128

          -m 256  (or -m 2) = MAX ADAPTERS 256

-j|--jobs

number of parallel make jobs. Defaults to the number of CPU cores. Lower it (ex. -j 1) if the build runs out of memory on a small system.

--no-deps

skip installation of build dependencies. Use this if you manage the toolchain and kernel headers yourself.

--no-modprobe

build and install the modules, but do not unload or load anything. The new driver becomes active after a reboot.

-h|--help

print help

 Location: http://linuxsupport.digital-devices.eu/dddvb_build.sh

⚠️ Build log: every run writes a complete log to /var/log/dddvb_build/. If the build fails, the script prints the path to that log together with the last lines of output. Please attach this file when contacting support instead of copying the terminal output. ⚠️

Before you start:

  • The script needs kernel headers for the running kernel. If you have just installed a kernel update, reboot first, then run the script.
  • If Secure Boot is enabled, the kernel will refuse to load unsigned out-of-tree modules. The script warns about this. You will need to sign the modules with an enrolled MOK, or disable Secure Boot in the firmware settings.
  • A reboot is recommended after a successful build.

 Examples:

 

Execute without options to build the current release (0.9.41) with default settings:

#curl -s http://linuxsupport.digital-devices.eu/dddvb_build.sh | bash

 

Or for building the Git version of drivers, use <-g> option:

#curl -s http://linuxsupport.digital-devices.eu/dddvb_build.sh | bash /dev/stdin -g

 

Building the Git version of drivers and set fmode=2:

#curl -s http://linuxsupport.digital-devices.eu/dddvb_build.sh | bash /dev/stdin -g -f 2

 

Building the 0.9.40 version of drivers and set fmode=3:

#curl -s http://linuxsupport.digital-devices.eu/dddvb_build.sh | bash /dev/stdin -v 0.9.40 -f 3

 

Building the 0.9.37 version of drivers and set fmode=1:

#curl -s http://linuxsupport.digital-devices.eu/dddvb_build.sh | bash /dev/stdin -v 37 -f 1

 

List the available release versions:

#curl -s http://linuxsupport.digital-devices.eu/dddvb_build.sh | bash /dev/stdin -l

 

If you plan to run the script more than once (for example to try different options), download it first instead of piping it into bash:

#wget http://linuxsupport.digital-devices.eu/dddvb_build.sh

#chmod u+x dddvb_build.sh

#./dddvb_build.sh -v 41 -f 2

 

*Modes for Max S8/SX8/SX8 Basic:

§  fmode=0

4 tuner mode ( Internal multiswitch disabled )

§  fmode=1

Quad LNB / normal outputs of multiswitches

§  fmode=2

Quattro - LNB / cascade outputs of multiswitches

§  fmode=3

Unicable LNB or JESS / Unicabel output of the multiswitch

 

⚠️ Note**Driver Installation Error for Linux Mint (Distribution: linux mint 22.2; Linux Kernel:6.14.0-37-generic)

Issue observed:
Initial installation command failed. Compilation errors. 

Resolution steps (client-provided): 

  1. During the Linux Mint upgrade wizard, disable all services at the automation stage.
  2. Perform a cold boot (full system restart, not just logout/reboot).
  3. Re-run the driver installation.

 

 

3. dd_fw_update.sh script for updating of firmwares for all cards in the system. This script requires root rights, so please login as root or run command with root rights.

 Be careful, this script will update FW for all cards which are in system. If you want to do it for single card, better to go with steps from this link 

#curl -s http://linuxsupport.digital-devices.eu/dd_fw_update.sh | bash 

If you find any mistakes or have something to add/ask, please write to the author and he will correct the article)

Palii Dmytro

paliydmn@digitaldevices.de

 

 
War dieser Artikel hilfreich? ja / nein
Artikeldetails
Artikel-ID: 184
Kategorie: Linux
Datum (erstellt): 15-11-2022 12:17:31
Aufrufe: 10708
Bewertung (Stimmen): Artikelbewertung 4.6/5.0 (36)

 
« Zurück

Datenschutzerklärung | Impressum