13
0
Fork 1
dedected/com-on-air_cs-linux/tools
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
..
dectshark HACK: Use "0xDE" instead of "0xDEC" for the major number 2023-12-16 14:49:30 +01:00
Makefile dump_dip: add a Sitel SC144xx DIP Disassembler 2009-02-14 21:01:30 +00:00
coa_syncsniff.c HACK: Use "0xDE" instead of "0xDEC" for the major number 2023-12-16 14:49:30 +01:00
dect_c_channel.h initial commit of the linux driver 2008-12-29 00:56:07 +00:00
dect_cli.c HACK: Use "0xDE" instead of "0xDEC" for the major number 2023-12-16 14:49:30 +01:00
dect_cli.h dectshark now saves pcaps 2009-03-29 03:45:05 +00:00
dump_dip.c dump_dip: add a Sitel SC144xx DIP Disassembler 2009-02-14 21:01:30 +00:00
dump_dip.h dump_dip: add a Sitel SC144xx DIP Disassembler 2009-02-14 21:01:30 +00:00
dump_eeprom.c dump EEPROM tool, run dump_eeprom send the resulting eeprom_*.bin to team@dedected.org 2009-01-26 22:07:11 +00:00
pcap2cchan.c Fixed potential Saegfault in printf, also fixes a compiler warning. 2009-01-02 16:58:31 +00:00
pcapstein.c pcapstein: Fix conflicting types for 'shutdown' 2023-12-16 13:12:47 +01:00
pcapstein.h initial commit of the linux driver 2008-12-29 00:56:07 +00:00