13
0
Fork 1
Commit Graph

4 Commits

Author SHA1 Message Date
Martin Hauke e8cfb775e7 HACK: Use "0xDE" instead of "0xDEC" for the major number
Workaround the issues that the com_on_air_cs.ko kernel module could not be loaded:

insmod com_on_air_cs.ko
-> insmod: ERROR: could not insert module com_on_air_cs.ko: Invalid parameters

dmesg
-> CHRDEV "com_on_air_cs" major requested (3564) is greater than the maximum (511)

CHRDEV_MAJOR_MAX is set to "512" in the kernel
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/fs.h
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/fs/char_dev.c

com_on_air_cs uses 0xDEC (int 3564) which is greater than this maximum.
 -> Workaround: Use 0xDE (int  222) instead.

This already conflicts with a reserved (but probably not widely used) allocation:
https://www.kernel.org/doc/Documentation/admin-guide/devices.txt

Real fix:
* Use Dynamic Major Number allocation instead of assigning a static one.
2023-12-16 14:49:30 +01:00
krater 7d89c2acbf some pthread bugfixes in dectshark
git-svn-id: https://dedected.org/svn/trunk@101 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
2010-12-08 14:14:07 +00:00
krater 9e4a12118c cleaned warnings in dectshark
git-svn-id: https://dedected.org/svn/trunk@82 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
2009-02-25 18:27:13 +00:00
krater 4f5fd297ca big enhancements on dectshark
git-svn-id: https://dedected.org/svn/trunk@81 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
2009-02-25 18:21:00 +00:00