keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Porting A800P driver on FreeBSD by myself

12 years 9 months ago #7012 by citycat4
Well. Receintly I have tried to port opvxa1200.c on FreeBSD by myself, using FreeBSD version of wctdm.c driver as base and apply changes to it, made in opvxa1200.c driver. Well, driver is ported - it compiled and loaded without any troubles:

Jun 23 17:31:11 glance kernel: opvxa8000: vendor=e159 device=1 subvendor=9500
Jun 23 17:31:11 glance kernel: opvxa8000: <OpenVox A1200P/A800P> port 0xd000-0xd0ff mem 0xe0520000-0xe0520fff irq 20 at device 0.0 on pci4
Jun 23 17:31:11 glance kernel: opvxa8000: [FILTER]
Jun 23 17:31:11 glance kernel: OpenVox A800P version: 1.4
Jun 23 17:31:11 glance kernel: OpenVox A800P passed register test
Jun 23 17:31:11 glance kernel: Module 0: Installed -- AUTO FXS/DPO
Jun 23 17:31:11 glance kernel: DC-DC cal has a surprising direct 107 of 0x01!
Jun 23 17:31:11 glance kernel: Module 1: Installed -- AUTO FXS/DPO
Jun 23 17:31:11 glance kernel: Module 2: Installed -- AUTO FXS/DPO
Jun 23 17:31:11 glance kernel: Module 3: Not installed
Jun 23 17:31:11 glance kernel: Module 4: Installed -- AUTO FXS/DPO
Jun 23 17:31:11 glance kernel: ProSLIC on module 5 insane (1) 0 should be 2
Jun 23 17:31:11 glance kernel: Module 5: Not installed
Jun 23 17:31:11 glance kernel: Module 6: Not installed
Jun 23 17:31:11 glance kernel: Module 7: Not installed
Jun 23 17:31:11 glance kernel: dahdi: Detected time shift.
Jun 23 17:31:11 glance kernel: Found an OpenVox A800P: Version 1.4 (4 modules)
Jun 23 17:31:11 glance kernel: opvxa800: buffer sync missed!
Jun 23 17:31:11 glance kernel: opvxa800: buffer re-sync occur from -1 to 3

But:
- why it found only 4 modules? Installed all 8 cards.
- what does mean a "DC-DC surprising direct..."?
- what does mean "ProSLIC on module 5 insane..."?

There are hardware troubles, so I should return it by supplier, or bug in ported driver?

Alas, "opvxa800" does not look to good driver name - FreeBSD automatically adds digit at end of name, so I'll rename it in near future
12 years 9 months ago #7013 by jun
Hi

You can try the driver installation file of this:
http://downloads.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-current.tar.gz

You can execute the following conmmand:
make
make install
make config
12 years 9 months ago #7078 by citycat4
Under Linux these cards detects all modules, so there aren't hardware troubles, exclude messages "DC-DC cal has surprising direct" - this message means, that we haven't sufficient DC power? And again, what's mean "ProSLIC on module N insane" - result of incorrect module probe?
12 years 9 months ago #7082 by jun
Those are load dirver information.

If you interested in these, you can go to lean.
12 years 8 months ago #7195 by citycat4
WOW! I had have sent driver code to more powerful programmer, and it had have detetced code error. Now all 8 modules are found:

Aug 2 12:02:29 glance kernel: opvxa12xx0: vendor=e159 device=1 subvendor=9500
Aug 2 12:02:29 glance kernel: opvxa12xx0: <OpenVox A1200P/A800P> port 0xc000-0xc0ff mem 0xd0500000-0xd0500fff irq 22 at device 4.0 on pci4
Aug 2 12:02:29 glance kernel: opvxa12xx0: [FILTER]
Aug 2 12:02:29 glance kernel: OpenVox A800P version: 1.4
Aug 2 12:02:29 glance kernel: OpenVox A800P passed register test
Aug 2 12:02:29 glance kernel: Module 0: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 1: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 2: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 3: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 4: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 5: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 6: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: Module 7: Installed -- AUTO FXS/DPO
Aug 2 12:02:29 glance kernel: dahdi: Detected time shift.
Aug 2 12:02:29 glance kernel: Found an OpenVox A800P: Version 1.4 (8 modules)
Aug 2 12:02:29 glance kernel: opvxa12xx: buffer re-sync occur from -1 to 3

Process to install full asterisk and test functionality...
12 years 8 months ago #7196 by jun
Congratulations.
Time to create page: 0.058 seconds
Powered by Kunena Forum