Quantcast
Channel: Developer Group
Viewing all articles
Browse latest Browse all 1888

Forum Post: Problems creating DIVA drivers with kernel 3.16

$
0
0
Help! I have trouble with the installation of: Hilfe! Habe Ärger mit der Installation von: - driver:   Diva4Linux_installer_9.6-117-162.bin - system:   Debian 8 Jessie (Kernel 3.16.0-4-amd64) - hardware: Dialogic Diva UM-BRI-2 PCIe 1. When calling the webinterface via ...:10005 (Config, System, Status ...) 1. Beim Aufrufen des Webinterfaces über ...:10005 (Config, System, Status ...)    kommt/appear: Aug 18 19:34:41 echo kernel: [  268.005406] BUG: unable to handle kernel paging request at 00007f8cacf96720 Aug 18 19:34:41 echo kernel: [  268.005742] IP: [ ffffffff812b8019 ] string.isra.7+0x69/0xe0 Aug 18 19:34:41 echo kernel: [  268.006091] PGD 87857067 PUD 8b36f067 PMD 262fc4067 PTE 800000025b3f2867 Aug 18 19:34:41 echo kernel: [  268.006443] Oops: 0003 [#1] SMP Aug 18 19:34:41 echo kernel: [  268.006806] Modules linked in: Divatty(O) divacapi(O) diva_mtpx(O) diva_idi(O) divas(O) divadidd(O) nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc nls_utf8 nls_cp437 vfat fat x86_pkg_temp_thermal coretemp kvm_intel kvm crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd pcspkr wmi evdev shpchp efi_pstore efivars tpm_tis tpm acpi_pad acpi_cpufreq video battery button processor autofs4 hid_generic usbhid ext4 crc16 mbcache jbd2 sd_mod crc_t10dif crct10dif_generic sg crct10dif_pclmul crct10dif_common xhci_hcd ahci crc32c_intel libahci e1000e ptp pps_core libata hpsa usbcore usb_common scsi_mod thermal fan thermal_sys i2c_hid hid i2c_core Aug 18 19:34:41 echo kernel: [  268.009149] CPU: 0 PID: 1402 Comm: diva_httpd Tainted: G           O  3.16.0-4-amd64 #1 Debian 3.16.43-2+deb8u3 Aug 18 19:34:41 echo kernel: [  268.009668] Hardware name: HPE ML10Gen9/ML10Gen9, BIOS 1.007 06/29/2017 Aug 18 19:34:41 echo kernel: [  268.010196] task: ffff880261d2d3f0 ti: ffff880261cc4000 task.ti: ffff880261cc4000 Aug 18 19:34:41 echo kernel: [  268.010730] RIP: 0010:[ ffffffff812b8019 ]  [ ffffffff812b8019 ] string.isra.7+0x69/0xe0 Aug 18 19:34:41 echo kernel: [  268.011289] RSP: 0018:ffff880261cc7dd0  EFLAGS: 00010206 Aug 18 19:34:41 echo kernel: [  268.011852] RAX: 0000000000000033 RBX: 00007f8cacf96720 RCX: 00007f8cacf96753 Aug 18 19:34:41 echo kernel: [  268.012429] RDX: 0000000000000044 RSI: 0000000000000033 RDI: ffffffffa04c4308 Aug 18 19:34:41 echo kernel: [  268.013012] RBP: ffffffffa04c4308 R08: 000000000000ffff R09: 000000000000ffff Aug 18 19:34:41 echo kernel: [  268.013596] R10: 0000000000000001 R11: 0000000000000293 R12: 00007f8d2cf9671f Aug 18 19:34:41 echo kernel: [  268.014191] R13: 00000000fffffffe R14: 0000000000000000 R15: ffffffffa04c3b75 Aug 18 19:34:41 echo kernel: [  268.014789] FS:  00007f8cacf98700(0000) GS:ffff88026dc00000(0000) knlGS:0000000000000000 Aug 18 19:34:41 echo kernel: [  268.015400] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Aug 18 19:34:41 echo kernel: [  268.016014] CR2: 00007f8cacf96720 CR3: 000000008aaa6000 CR4: 00000000003407f0 Aug 18 19:34:41 echo kernel: [  268.016640] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Aug 18 19:34:41 echo kernel: [  268.017273] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Aug 18 19:34:41 echo kernel: [  268.017905] Stack: Aug 18 19:34:41 echo kernel: [  268.018528]  00007f8cacf96720 00007f8d2cf9671f ffff880261cc7e60 000000007fffffff Aug 18 19:34:41 echo kernel: [  268.019185]  ffffffffa04c3b75 ffffffff812b946d 0000000000000000 ffff8802645b0ae0 Aug 18 19:34:41 echo kernel: [  268.019847]  00007f8cacf96720 ffff88026dff7000 ffffffffff0a0004 ffff8802604ec700 Aug 18 19:34:41 echo kernel: [  268.020509] Call Trace: Aug 18 19:34:41 echo kernel: [  268.021173]  [ ffffffff812b946d ] ? vsnprintf+0x17d/0x5c0 Aug 18 19:34:41 echo kernel: [  268.021848]  [ ffffffff812b99a6 ] ? sprintf+0x46/0x50 Aug 18 19:34:41 echo kernel: [  268.022526]  [ ffffffffa04b4377 ] ? proc_read+0x67/0x1b0 [divadidd] Aug 18 19:34:41 echo kernel: [  268.023209]  [ ffffffff8120a679 ] ? proc_reg_read+0x39/0x70 Aug 18 19:34:41 echo kernel: [  268.023897]  [ ffffffff811aada3 ] ? vfs_read+0x93/0x170 Aug 18 19:34:41 echo kernel: [  268.024586]  [ ffffffff811ab9d2 ] ? SyS_read+0x42/0xa0 Aug 18 19:34:41 echo kernel: [  268.025278]  [ ffffffff8151a48d ] ? system_call_fast_compare_end+0x10/0x15 Aug 18 19:34:41 echo kernel: [  268.025976] Code: 44 39 e8 41 8d 55 ff 7c 74 41 89 d5 66 0f 1f 44 00 00 85 c0 0f 8e 7f 00 00 00 8d 50 ff 48 8d 4c 13 01 49 39 dc 76 06 0f b6 55 00 88 13 48 83 c3 01 48 83 c5 01 48 39 cb 75 e8 41 8d 55 ff 45 0f Aug 18 19:34:41 echo kernel: [  268.027501] RIP  [ ffffffff812b8019 ] string.isra.7+0x69/0xe0 Aug 18 19:34:41 echo kernel: [  268.028239]  RSP ffff880261cc7dd0 Aug 18 19:34:41 echo kernel: [  268.028980] CR2: 00007f8cacf96720 Aug 18 19:34:41 echo kernel: [  268.029721] ---[ end trace 24b12315ba7d632c ]--- 2. The linetest of the webinterface via ...:10005 (Linetest Tool) 2. Der Linetest übers das Webinterfaces über ...:10005 (Linetest Tool)    funktioniert aber ohne Kernel Fehler/but works without kernel errors! Anrufen/calling, Fax senden/sending a fax ... ok 3. At stop, the system usually remains attached to one module? 3. Beim Entladen ./Stop bleibt das System meist bei einem Modul hängen? diva_mtpx # lsmod | grep diva divacapi              448726  0 diva_mtpx             601127  0 diva_idi               61463  2 divas                 261247  0 divadidd               95427  7 divas,diva_mtpx,diva_idi,divacapi,Divatty # modinfo divas modinfo divas filename:       /lib/modules/3.16.0-4-amd64/kernel/drivers/isdn/hardware/eicon/divas.ko license:        GPL author:         Cytronics & Melware, Dialogic description:    Kernel driver for Dialogic DIVA Server cards alias:          pci:v000012C7d0000E046sv000012C7sd0000E046bc*sc*i* ... there are many more aliases ... ... es folgen hier viele weitere aliase ... depends:        divadidd vermagic:       3.16.43 SMP mod_unload modversions parm:           dbgmask:initial debug mask (uint) parm:           disabledac:disable DAC (uint) parm:           xdi_features:XDI features bitmask. Bits: 0 - disable PLX reset, 1 - disable hardware selftest (uint) parm:           no_msi:do not use MSI (uint) parm:           nr_li_exports:LI export descriptors: 0 - extended (default), 1 - disabled (single board only), 2 - standard (uint) parm:           use_timer_irq:use timer for interrupts (uint) parm:           hotplug_map:list type,sn,type,sn,... (array of int) parm:           hotplug_ignore_sn:ignore sn in hotplug_map (uint) parm:           hotplug_autostart:start hardware after insertion (uint) # modinfo diva_mtpx modinfo: ERROR: Module diva_mtpx not found. # modinfo /usr/lib/eicon/divas/diva_mtpx.ko filename:       /usr/lib/eicon/divas/diva_mtpx.ko license:        GPL author:         Dialogic description:    MTPX Kernel driver for Dialogic DIVA Server cards depends:        divadidd vermagic:       3.16.43 SMP mod_unload modversions # modinfo divadidd filename:       /lib/modules/3.16.0-4-amd64/kernel/drivers/isdn/hardware/eicon/divadidd.ko license:        GPL author:         Cytronics & Melware, Dialogic description:    DIDD table driver for diva drivers depends: vermagic:       3.16.43 SMP mod_unload modversions # modinfo divacapi filename:       /lib/modules/3.16.0-4-amd64/kernel/drivers/isdn/hardware/eicon/divacapi.ko license:        GPL author:         Cytronics & Melware, Dialogic description:    CAPI driver for Dialogic DIVA cards depends:        divadidd vermagic:       3.16.43 SMP mod_unload modversions parm:           diva_capi_major:uint # modinfo Divatty modinfo: ERROR: Module Divatty not found. # modinfo /usr/lib/eicon/divas/Divatty.ko filename:       /usr/lib/eicon/divas/Divatty.ko license:        GPL depends:        divadidd vermagic:       3.16.43 SMP mod_unload modversions parm:           global_options:uint parm:           minors_per_major_init:uint parm:           diva_tty_init:string 4. Maybe the modules are not integrated correctly? 4. Eventuell sind die Module nicht richtig eingebunden? diva_mtpx, Divatty *** installation *** * Diva4Linux_installer_9.6-117-162.bin -------------------------------------- # lsb_release -a No LSB modules are available. Distributor ID: Debian Description:    Debian GNU/Linux 8.9 (jessie) Release:        8.9 Codename:       jessie # lspci ... 01:00.0 Network controller: Dialogic Corporation BRI (rev 04) # apt-get install build-essential kernel-package libncurses5-dev module-assistant xinetd module-init-tools zlib1g-dev libssl-dev # ggc --version gcc (Debian 4.9.2-10) 4.9.2 # ln -s /usr/lib /usr/lib64 # uname -r 3.16.0-4-amd64 # apt-cache -n search linux-source- linux-source-3.16 - Linux kernel source for version 3.16 with Debian patches # apt-get install linux-source-3.16 libqt4-dev pkg-config # apt-get install linux-headers-$(uname -r) # cd /usr/src/ # tar -xJ -f linux-source-3.16.tar.xz # ln -s linux-source-3.16 linux # cd linux # cp /boot/config-3.16.0-4-amd64 ./.config # reboot # cd ~ # ./Diva4Linux_installer_9.6-117-162.bin # nano Diva4Linux_installer.log Installing Diva4Linux_installer_9.6-117-162.bin 133331+1 Datensätze ein 133331+1 Datensätze aus 136531750 Bytes (137 MB) kopiert, 1,89443 s, 72,1 MB/s 13441 blocks dpkg-deb: Paket »dialogic+divas+ss7-gcc3x« wird in »debian.deb« gebaut. 304763 blocks dpkg-deb: Paket »divas4linux+source« wird in »debian.deb« gebaut. 29736 blocks dpkg-deb: Paket »divas+sipcontrol-gcc3x« wird in »debian.deb« gebaut. 28511 blocks dpkg-deb: Paket »divas+softip-gcc3x« wird in »debian.deb« gebaut. 7364 blocks dpkg-deb: Paket »divas+ss7+isup+cc+stack-gcc3x« wird in »debian.deb« gebaut. 6523 blocks dpkg-deb: Paket »divas+ss7+mtp3+cmtp2+stack-gcc3x« wird in »debian.deb« gebaut. 15269 blocks dpkg-deb: Paket »dssdk-runtime« wird in »debian.deb« gebaut. dialogic+divas+ss7-gcc3x # dmesg | grep diva [ 1031.262024] divadidd: Rel:2.0  Rev:1.13.6.4  Build:102-51(local) [ 1637.482819] divadidd: module unloaded. [ 1652.264768] divadidd: Rel:2.0  Rev:1.13.6.4  Build:102-51(local) # cd /usr/lib/opendiva/divas/src/ # ./Build # nano divas.log (Auszüge | excerpts) # -------------------------------------------------------------- # # Diva build (c) Copyright by Dialogic 1993 - 2017 # Please read legal notice at begin of reference manual # /usr/lib/opendiva/divas/httpd/guide/reference_manual.html # # BUILD:             117-162 # STARTED AT:        Di 5. Sep 19:02:21 CEST 2017 # HOST:              jessie ... # LOG ---- END SECTION check_files ------------------ OK # LOG ---- START SECTION read kernel version ------------------ #+ LOG INFO: /proc/version:  Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.43-2+deb8u3 (2017-08-15) #+ LOG INFO: /etc/*-release: PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian ... filter "fatal error:" cd /usr/src/linux && make modules M=/usr/lib/eicon/divas/src/tmp/build V=0 make[2]: Entering directory '/usr/src/linux-source-3.16'   CC [M]  /usr/lib/eicon/divas/src/tmp/build/main.o /usr/lib/eicon/divas/src/tmp/build/main.c:9:28: fatal error: linux/smp_lock.h: Datei oder Verzeichnis nicht gefunden  #include linux/smp_lock.h ... filter "fatal error:" /usr/src/linux/include/linux/linkage.h:7:25: fatal error: asm/linkage.h: Datei oder Verzeichnis nicht gefunden  #include asm/linkage.h                          ^ compilation terminated. ... filter "fatal error:" if echo "#include linux/inet.h " | gcc -E -o /dev/null - ; then \     cp src/socket_module.c src/lsocket_module.c; \   else \     sed -e "s/ linux\/inet.h / arpa\/inet.h /" src/socket_module.c src/lsocket_module.c; \   fi stdin :1:24: fatal error: linux/inet.h: Datei oder Verzeichnis nicht gefunden compilation terminated. ... Terminating Diva Web Configuration Server (diva_httpd)... OK # LOG ---- END SECTION 'build threaded diva_httpd' --------- Starting Diva Web Configuration Server (diva_httpd)... Warning: Diva Web Configuration Server not running!OK #+ LOG INFO: pwd:/usr/lib/opendiva/divas/src # LOG ---- END SECTION 'build threaded diva_httpd'------------ # LOG ---- START SECTION 'cleanup_tmp_files' ------------------ # LOG ---- END SECTION 'cleanup_tmp_files' ------------------ OK 5. Maybe there is a major misunderstanding between different gcc versions? 5. Eventuell besteht ein entscheidener Missmatch zwischen verschiedenen gcc Versionen? gcc3x, gcc 4.8.4 und | and gcc 4.9.2 # cd .. # ./Config # echo PASS /usr/lib/opendiva/divas/httpd/login/login # ./Start # ./linetest -t 0 Line Test::Line Check, Controller = 1, Line = 0 # ./Stop # dmesg | grep diva [ 1031.262024] divadidd: Rel:2.0  Rev:1.13.6.4  Build:102-51(local) [ 1637.482819] divadidd: module unloaded. [ 1652.264768] divadidd: Rel:2.0  Rev:1.13.6.4  Build:102-51(local) [ 1961.440092] divadidd: module unloaded. [ 1961.443276] divadidd: Rel:3.0  Rev:1.13  Build:116-135(local) [ 1961.447131] divas: Rel:2.0  Rev:1.46  Build: 116-141(local) [ 1961.447132] divas: support for: BRI/PCI PRI/PCI adapters [ 1961.447165] divas: Dialogic Diva UM-BRI-2 PCIe v2 bus: 00000001 fn: 00000000 insertion. [ 1961.447339] divas 0000:01:00.0: irq 142 for MSI/MSI-X [ 1961.511890] divas: Dialogic Diva UM-BRI-2 PCIe v2 IRQ:142 SerNo:43866 [ 1961.511934] divas: started with major 247 [ 1961.545480] Modules linked in: divas(O) divadidd(O) nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc x86_pkg_temp_thermal coretemp kvm_intel kvm crc32_pclmul asix usbnet libphy sr_mod mii aesni_intel joydev cdrom aes_x86_64 lrw gf128mul glue_helper shpchp ablk_helper cryptd evdev tpm_tis tpm wmi pcspkr video battery acpi_cpufreq button processor acpi_pad autofs4 usb_storage ext4 crc16 mbcache jbd2 hid_generic usbhid sg sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common crc32c_intel e1000e ahci libahci ptp pps_core libata xhci_hcd scsi_mod usbcore usb_common fan thermal thermal_sys i2c_hid hid i2c_core [last unloaded: divadidd] [ 1961.551878]  [ ffffffffa04b96e1 ] ? info_read+0x61/0x3a0 [divas] [ 1976.765997] Modules linked in: divas(O) divadidd(O) nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc x86_pkg_temp_thermal coretemp kvm_intel kvm crc32_pclmul asix usbnet libphy sr_mod mii aesni_intel joydev cdrom aes_x86_64 lrw gf128mul glue_helper shpchp ablk_helper cryptd evdev tpm_tis tpm wmi pcspkr video battery acpi_cpufreq button processor acpi_pad autofs4 usb_storage ext4 crc16 mbcache jbd2 hid_generic usbhid sg sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common crc32c_intel e1000e ahci libahci ptp pps_core libata xhci_hcd scsi_mod usbcore usb_common fan thermal thermal_sys i2c_hid hid i2c_core [last unloaded: divadidd] [ 1976.772421]  [ ffffffffa04b96e1 ] ? info_read+0x61/0x3a0 [divas] [ 2007.754565] diva_idi: Rel:2.0  Rev:1.25  Build: local [ 2007.754764] diva_idi: started with major 246 [ 2008.782572] divacapi: Rel:2.0  Rev:1.24  Build: 116-17(local) [ 2026.249939] diva_idi: module unloaded. [ 2026.280314] divacapi: module unloaded. [ 2027.511338] diva_mtpx: module unloaded. # reboot # dmesg | grep diva [   12.846599] divadidd: Rel:3.0  Rev:1.13  Build:116-135(local) [   12.975106] divas: Rel:2.0  Rev:1.46  Build: 116-141(local) [   12.975107] divas: support for: BRI/PCI PRI/PCI adapters [   12.975126] divas: Dialogic Diva UM-BRI-2 PCIe v2 bus: 00000001 fn: 00000000 insertion. [   12.975249] divas 0000:01:00.0: irq 142 for MSI/MSI-X [   13.039675] divas: Dialogic Diva UM-BRI-2 PCIe v2 IRQ:142 SerNo:43866 [   13.039691] divas: started with major 247 [   16.790253] diva_idi: Rel:2.0  Rev:1.25  Build: local [   16.790260] diva_idi: started with major 246 [   17.983940] divacapi: Rel:2.0  Rev:1.24  Build: 116-17(local) 6. What's wrong here, who can help me? 6. Was läuft hier schief, wer kann mir helfen? Regards Oli

Viewing all articles
Browse latest Browse all 1888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>