[App_rpt-users] compile on debian (was More than 4 nodes on a PC)

Bryan Fields Bryan at bryanfields.net
Tue Jan 27 08:38:27 UTC 2015


On 1/27/15, 1:04 AM, Doug Crompton wrote:
> Bryan,
> 
>  Yes you will need Dahdi source. You need to remove Zaptel stuff. I would
> suggest getting it from the BBB image at hamvoip.org.  It already has the
> Allstar patches in it. It is located in
> /usr/src/utils/dahdi-linux-complete-2.9.1.1+2.9.1     If not you need to
> download that version of the code from Digium and apply the patches from the
> Allstar svn site.

I've got Dahdi from Digium (dahdi-linux-complete-2.10.0.1+2.10.0.1) and
applied the patches from ohnosec svn.  hunk 3 on patch 2 needed to be applied
by hand, the rest went fine.

Dahdi is compiled and installed.

I have the ohnosec svn asterisk compiled as well.  Copied the sounds in place
and started to configure asterisk.

I've run into a bit of a problem while loading the pciradio module however.
I don't know enough about kernel coding in linux to know where to begin
debugging this.

does your version of dahdi on the hamvoip.org site work ok?  perhaps it's new
bug in the Digium code, and I should go with yours in place of it.

> [    4.640361] pciradio 0000:04:00.0: enabling device (0140 -> 0143)
> [    4.640446] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028
> [    4.641765] IP: [<ffffffff811b330e>] vsnprintf+0xbf/0x427
> [    4.642498] PGD 0 
> [    4.642808] Oops: 0002 [#1] SMP 
> [    4.643307] CPU 3 
> [    4.643579] Modules linked in: pciradio(O+) snd_pcsp(-) coretemp dahdi(O) snd_pcm snd_page_alloc snd_timer efivars snd soundcore pcspkr crc_ccitt shpchp joydev evdev acpi_cpufreq mperf button processor ext4 crc16 jbd2 mbcache sg sd_mod crc_t10dif usbhid hid ahci libahci libata xhci_hcd igb scsi_mod usbcore i2c_algo_bit i2c_core dca thermal thermal_sys usb_common [last unloaded: scsi_wait_scan]
> [    4.649576] 
> [    4.649703] Pid: 461, comm: modprobe Tainted: G           O 3.2.0-4-amd64 #1 Debian 3.2.65-1+deb7u1 Supermicro X9SBAA/X9SBAA
> [    4.650939] RIP: 0010:[<ffffffff811b330e>]  [<ffffffff811b330e>] vsnprintf+0xbf/0x427
> [    4.652029] RSP: 0018:ffff880233d53c68  EFLAGS: 00010297
> [    4.652718] RAX: 0000000000000009 RBX: ffff880233d53ce0 RCX: 0000000000000009
> [    4.653632] RDX: ffffffffa0264204 RSI: ffffffffa0264204 RDI: 0000000000000028
> [    4.654543] RBP: 0000000000000028 R08: 0000000000000009 R09: 00000000fffffffb
> [    4.655453] R10: 0000000000000000 R11: ffffea0000c17478 R12: 0000000080000027
> [    4.656368] R13: 0000000000000028 R14: ffffffffa026420d R15: 000000007fffffff
> [    4.657292] FS:  00007f3545dad700(0000) GS:ffff88023fd80000(0000) knlGS:0000000000000000
> [    4.658338] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [    4.659074] CR2: 0000000000000028 CR3: 0000000235d42000 CR4: 00000000000006e0
> [    4.659991] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [    4.661030] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> [    4.662031] Process modprobe (pid: 461, threadinfo ffff880233d52000, task ffff880233d15140)
> [    4.663103] Stack:
> [    4.663376]  000000000000ffff ffffffff810ed3ca ffffffff81617d50 ffffffffa0264204
> [    4.664463]  0000000000008024 0000000000000000 0000000000000100 ffff88023500c000
> [    4.665575]  ffff880236fcb000 0000000000000000 0000000000000001 ffff88023500c004
> [    4.666405] Call Trace:
> [    4.666586]  [<ffffffff810ed3ca>] ? kmem_cache_alloc_trace+0xbe/0xce
> [    4.667225]  [<ffffffff811b36bc>] ? sprintf+0x46/0x4b
> [    4.667876]  [<ffffffff8102bc39>] ? x86_swiotlb_alloc_coherent+0x19/0x40
> [    4.701652]  [<ffffffffa02631b3>] ? pciradio_init_one+0x286/0xa47 [pciradio]
> [    4.735463]  [<ffffffff81071321>] ? arch_local_irq_save+0x11/0x17
> [    4.769150]  [<ffffffff811c7daf>] ? local_pci_probe+0x39/0x68
> [    4.803104]  [<ffffffff811c8858>] ? pci_device_probe+0xcd/0xfa
> [    4.836102]  [<ffffffff81253451>] ? driver_probe_device+0xa8/0x138
> [    4.868469]  [<ffffffff81253530>] ? __driver_attach+0x4f/0x6f
> [    4.900826]  [<ffffffff812534e1>] ? driver_probe_device+0x138/0x138
> [    4.933650]  [<ffffffff81252080>] ? bus_for_each_dev+0x4f/0x7a
> [    4.966721]  [<ffffffff81252dea>] ? bus_add_driver+0xa5/0x1f5
> [    4.999332]  [<ffffffffa0273000>] ? 0xffffffffa0272fff
> [    5.032044]  [<ffffffff81253958>] ? driver_register+0x8d/0xf5
> [    5.064492]  [<ffffffffa0273000>] ? 0xffffffffa0272fff
> [    5.097220]  [<ffffffff811c9073>] ? __pci_register_driver+0x4d/0xb6
> [    5.129685]  [<ffffffffa0273000>] ? 0xffffffffa0272fff
> [    5.161706]  [<ffffffffa027301b>] ? pciradio_init+0x1b/0x1000 [pciradio]
> [    5.195863]  [<ffffffff81002085>] ? do_one_initcall+0x75/0x12c
> [    5.230101]  [<ffffffffa0273000>] ? 0xffffffffa0272fff
> [    5.264410]  [<ffffffff81075c39>] ? sys_init_module+0x10c/0x25b
> [    5.296798]  [<ffffffff81355ed2>] ? system_call_fastpath+0x16/0x1b
> [    5.327170] Code: 02 00 00 40 0f b6 ce ff 24 cd 18 81 42 81 4c 39 e5 73 1a 4c 89 e1 48 63 f0 48 89 ef 48 29 e9 48 39 ce 48 89 d6 0f 4e c8 48 63 c9 <f3> a4 4c 01 c5 e9 28 03 00 00 8b 13 83 fa 30 73 0d 89 d0 83 c2 
> [    5.393777] RIP  [<ffffffff811b330e>] vsnprintf+0xbf/0x427
> [    5.424536]  RSP <ffff880233d53c68>
> [    5.454821] CR2: 0000000000000028
> [    5.484507] ---[ end trace 57c400f595babbfa ]---


-- 
Bryan Fields

727-409-1194 - Voice
727-214-2508 - Fax
http://bryanfields.net



More information about the App_rpt-users mailing list