keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.

X204e card driver causes reboot loop on PBX server

6 years 2 months ago - 6 years 2 months ago #11737 by gadamo
I am configuring the OpenVox X204 card with a B200M module and an FXS200M module on a Dell r230 system, running FreePBX distro (SNG7-PBX-64bit-1712-2, released on December '17).

I installed the DAHDi kernel modules following the guidelines from the manual

The kernel modules were successfully loaded the first time, and the span ports were listed on FreePBX webui.

Nevertheless, when reloading the dahdi modules, the system fails to recognize the FXS module. This is easily reproduced by running
dmesg -c && rmmod fxs200m && modprobe fxs200m && dmesg
, which will show the following errors during module load:
[  503.500334] ProSLIC on chan 0 insane (1) 0 should be 2
[  503.500337] -----------------!!!!!!! wujc-debug: init_proslic ret=fffffffe  !!!!!!!!!!!!!!!!!-------------------
[  503.500375] ProSLIC on chan 1 insane (1) 0 should be 2
[  503.500376] -----------------!!!!!!! wujc-debug: init_proslic ret=fffffffe  !!!!!!!!!!!!!!!!!-------------------
[  503.500379] fxs200m_driver: probe of x200_fxs200m_0_0_1 failed with error -2

Also, when i try to reboot (i.e. simple restart, without shutdown), the system enters a reboot loop. Escaping the boot loop is only possible by cold booting the server (e.g. using power button). This one does not leave a log trail, but i managed to pin-down the issue on loading of the x200 module, by doing the following:
  1. Cold boot the server
  2. blacklist x200 b200m & fxs200m on
    /etc/modprobe.d/dahdi-blacklist.conf
  3. Cold boot the server again
  4. Run
    modprobe x200
  5. Reboot the server
  6. Running
    modprobe x200
    causes server to crash and enter the reboot loop

Both issues are independently reproducable on my machine. Any ideas on how to fix?

Thank you,

EDIT: I reached a point where i can reboot the server without entering a reboot loop. Before issuing the reboot command, i made sure to first unload the modules, running
modprobe -rv fxs200m b200m x200 && reboot
To my understanding this ensures a proper card detach, which yields the following kernel log entries:
[   78.744192] x200: Stop DMA
[   78.744193] x200: Disable interrupts!
[   78.944479] Free a OpenVox x200 card
Uppon loading the drivers no reboot is caused and the fxs200m driver is loaded correctly as well. So it seems that unloading dahdi modules is required prior to a reboot, at least on my setup.
6 years 2 months ago #11741 by Dario.hu
Hi gadamo, you can add my skype :dario.hu2 and prepare teamview. i will help you.
Time to create page: 0.033 seconds
Powered by Kunena Forum