[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev rule for SCC device (z8530-utils2 package)



Tony,

I have a Baycom USCC>4 card with modems 1x9k6, 2x1k2 (TCM3105) and 1xok3/1k2(AMD7911) and might be able to help with some basic testing.

Ray vk2tv

On 25/9/19 2:14 pm, tony mancill wrote:
Hello Debian Hams,

I am preparing an update for z8530-utils2 [1] and would like to address
this lintian warning with the next upload:

W: z8530-utils2: depends-exclusively-on-makedev depends
N: 
N:    This package depends on makedev without a udev alternative. This
N:    probably means that it doesn't have udev rules and relies on makedev to
N:    create devices, which won't work if udev is installed and running.
N:    Alternatively, it may mean that there are udev rules, but udev was not
N:    added as an alternative to the makedev dependency.

This would allow the package to install on systems that run udev.
However, I don't have any experience writing udev rules and don't have
the hardware to test it with anyway.  I can find a few references to the
SCC cards on the web, for example [2].  And it appears that the kernel
knows about these things and expects them to be character devices,
device number 34 [3]:

  34 char       Z8530 HDLC driver
                  0 = /dev/scc0         First Z8530, first port
                  1 = /dev/scc1         First Z8530, second port
                  2 = /dev/scc2         Second Z8530, first port
                  3 = /dev/scc3         Second Z8530, second port
                    ...

Is knowing the device number enough information to write the udev rule?

Thank you in advance for any ideas.
tony

[1] https://packages.debian.org/sid/z8530-utils2
[2] http://pe1chl.nl.eu.org/SCC/
[3] https://www.kernel.org/doc/html/v4.14/admin-guide/devices.html


Reply to: