Closed alastair-bor closed 2 years ago
@alastair-bor - thanks for reporting this problem.
I just ran a quick test running OpenWebRX + Codec Server (this morning I did a 'git pull' and I noticed it had a few recent changes, so I rebuilt and reinstalled it) + this codecserver-mbelib-module
(which I rebuilt and reinstalled too, to make sure it was consistent with the recent changes in Codec Server), and I was able to decode a local D-Star repeater without any problem.
This is what my codecserver log looks like:
Feb 04 06:31:10 fvdesktop codecserver[3910]: Hello, I'm the codecserver.
Feb 04 06:31:10 fvdesktop codecserver[3910]: now scanning for modules...
Feb 04 06:31:10 fvdesktop codecserver[3910]: registering new driver: "ambe3k"
Feb 04 06:31:10 fvdesktop codecserver[3910]: registering new driver: "mbelib"
Feb 04 06:31:10 fvdesktop codecserver[3910]: loading devices from configuration...
Feb 04 06:31:10 fvdesktop codecserver[3910]: registering new device for codecs: ambe,
Feb 04 06:31:10 fvdesktop codecserver[3910]: auto-detecing devices...
Feb 04 06:31:10 fvdesktop codecserver[3910]: scanning for "ambe3k" devices...
Feb 04 06:31:10 fvdesktop codecserver[3910]: scanning for "mbelib" devices...
Feb 04 06:31:10 fvdesktop codecserver[3910]: device scan complete.
Feb 04 06:31:10 fvdesktop codecserver[3910]: check for codec: ambe
Feb 04 06:31:10 fvdesktop codecserver[3910]: client requests codec ambe
Feb 04 06:31:10 fvdesktop codecserver[3910]: starting new session
Feb 04 06:31:11 fvdesktop codecserver[3910]: renegotiating: direction: decode; ratep: 0130:0763:4000:0000:0000:0048
Feb 04 06:31:11 fvdesktop codecserver[3910]: client requests codec ambe
Feb 04 06:31:11 fvdesktop codecserver[3910]: starting new session
...
The clue about your problem is that line 'received signal: 15' (SIGTERM) right after the message 'device scan complete' (same second). If you are using the standard OpenWebRX configuration and settings, Codec Server runs under the account 'codecserver', while the Python script openwebrx.py
runs under a different account, so in this scenario that signal cannot come from the OpenWebRX process, but it must come from somewhere else.
At this point I would try to figure out either from journalctl
or from /var/log/messages
the cause of that signal 15 - that could help us understand what's going on and why.
Franco
Thanks Franco for the clues and I appreciate your time on this.
My installation started with the image file here: https://www.openwebrx.de/download/rpi.php I didn't do a fresh install using these instructions: https://github.com/jketterl/openwebrx/wiki/Manual-Package-installation-(including-digital-voice)
So my user account situation is what would be from the Pi image. From your instructions I did as follows:
sudo useradd -r -d /nonexistent -c 'OpenWebRX Codec Server' codecserver
The full journalctl
from a fresh boot looks like this:
-- Logs begin at Mon 2022-02-07 02:41:39 UTC, end at Mon 2022-02-07 02:51:14 UTC. --
Feb 07 02:41:39 openwebrx kernel: Booting Linux on physical CPU 0x0
Feb 07 02:41:39 openwebrx kernel: Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1496 SMP Wed Dec 1 15:58:56 GMT 20
Feb 07 02:41:39 openwebrx kernel: CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
Feb 07 02:41:39 openwebrx kernel: CPU: div instructions available: patching division code
Feb 07 02:41:39 openwebrx kernel: CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Feb 07 02:41:39 openwebrx kernel: OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.4
Feb 07 02:41:39 openwebrx kernel: random: fast init done
Feb 07 02:41:39 openwebrx kernel: Memory policy: Data cache writealloc
Feb 07 02:41:39 openwebrx kernel: Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
Feb 07 02:41:39 openwebrx kernel: OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
Feb 07 02:41:39 openwebrx kernel: Zone ranges:
Feb 07 02:41:39 openwebrx kernel: DMA [mem 0x0000000000000000-0x000000002fffffff]
Feb 07 02:41:39 openwebrx kernel: Normal empty
Feb 07 02:41:39 openwebrx kernel: HighMem [mem 0x0000000030000000-0x00000001ffffffff]
Feb 07 02:41:39 openwebrx kernel: Movable zone start for each node
Feb 07 02:41:39 openwebrx kernel: Early memory node ranges
Feb 07 02:41:39 openwebrx kernel: node 0: [mem 0x0000000000000000-0x000000003b3fffff]
Feb 07 02:41:39 openwebrx kernel: node 0: [mem 0x0000000040000000-0x00000000fbffffff]
Feb 07 02:41:39 openwebrx kernel: node 0: [mem 0x0000000100000000-0x00000001ffffffff]
Feb 07 02:41:39 openwebrx kernel: Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
Feb 07 02:41:39 openwebrx kernel: On node 0 totalpages: 2061312
Feb 07 02:41:39 openwebrx kernel: DMA zone: 1728 pages used for memmap
Feb 07 02:41:39 openwebrx kernel: DMA zone: 0 pages reserved
Feb 07 02:41:39 openwebrx kernel: DMA zone: 196608 pages, LIFO batch:63
Feb 07 02:41:39 openwebrx kernel: HighMem zone: 1864704 pages, LIFO batch:63
Feb 07 02:41:39 openwebrx kernel: percpu: Embedded 20 pages/cpu s50828 r8192 d22900 u81920
Feb 07 02:41:39 openwebrx kernel: pcpu-alloc: s50828 r8192 d22900 u81920 alloc=20*4096
Feb 07 02:41:39 openwebrx kernel: pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
Feb 07 02:41:39 openwebrx kernel: Built 1 zonelists, mobility grouping on. Total pages: 2059584
Feb 07 02:41:39 openwebrx kernel: Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=DC:A6:32:D1:A1:B5 vc_mem.mem_base=0x3ec00000 vc_me
Feb 07 02:41:39 openwebrx kernel: Kernel parameter elevator= does not have any effect anymore.
Please use sysfs to set IO scheduler for individual devices.
Feb 07 02:41:39 openwebrx kernel: Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: mem auto-init: stack:off, heap alloc:off, heap free:off
Feb 07 02:41:39 openwebrx kernel: software IO TLB: mapped [mem 0x0000000012400000-0x0000000016400000] (64MB)
Feb 07 02:41:39 openwebrx kernel: Memory: 7758572K/8245248K available (10240K kernel code, 1364K rwdata, 3192K rodata, 2048K init, 891K bss, 158996K reserved, 327680K cma-reserved, 7458816K highmem)
Feb 07 02:41:39 openwebrx kernel: SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Feb 07 02:41:39 openwebrx kernel: ftrace: allocating 34315 entries in 68 pages
Feb 07 02:41:39 openwebrx kernel: ftrace: allocated 68 pages with 2 groups
Feb 07 02:41:39 openwebrx kernel: rcu: Hierarchical RCU implementation.
Feb 07 02:41:39 openwebrx kernel: Rude variant of Tasks RCU enabled.
Feb 07 02:41:39 openwebrx kernel: Tracing variant of Tasks RCU enabled.
Feb 07 02:41:39 openwebrx kernel: rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
Feb 07 02:41:39 openwebrx kernel: NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
Feb 07 02:41:39 openwebrx kernel: GIC: Using split EOI/Deactivate mode
Feb 07 02:41:39 openwebrx kernel: random: get_random_bytes called from start_kernel+0x3c8/0x59c with crng_init=1
Feb 07 02:41:39 openwebrx kernel: sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
Feb 07 02:41:39 openwebrx kernel: clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
Feb 07 02:41:39 openwebrx kernel: bcm2835: system timer (irq = 25)
Feb 07 02:41:39 openwebrx kernel: arch_timer: cp15 timer(s) running at 54.00MHz (phys).
Feb 07 02:41:39 openwebrx kernel: clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
Feb 07 02:41:39 openwebrx kernel: sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
Feb 07 02:41:39 openwebrx kernel: Switching to timer-based delay loop, resolution 18ns
Feb 07 02:41:39 openwebrx kernel: Console: colour dummy device 80x30
Feb 07 02:41:39 openwebrx kernel: printk: console [tty1] enabled
Feb 07 02:41:39 openwebrx kernel: Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
Feb 07 02:41:39 openwebrx kernel: pid_max: default: 32768 minimum: 301
Feb 07 02:41:39 openwebrx kernel: LSM: Security Framework initializing
Feb 07 02:41:39 openwebrx kernel: Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: cgroup: Disabling memory control group subsystem
Feb 07 02:41:39 openwebrx kernel: CPU: Testing write buffer coherency: ok
Feb 07 02:41:39 openwebrx kernel: CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Feb 07 02:41:39 openwebrx kernel: Setting up static identity map for 0x200000 - 0x20003c
Feb 07 02:41:39 openwebrx kernel: rcu: Hierarchical SRCU implementation.
Feb 07 02:41:39 openwebrx kernel: smp: Bringing up secondary CPUs ...
Feb 07 02:41:39 openwebrx kernel: CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Feb 07 02:41:39 openwebrx kernel: CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
Feb 07 02:41:39 openwebrx kernel: CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
Feb 07 02:41:39 openwebrx kernel: smp: Brought up 1 node, 4 CPUs
Feb 07 02:41:39 openwebrx kernel: SMP: Total of 4 processors activated (432.00 BogoMIPS).
Feb 07 02:41:39 openwebrx kernel: CPU: All CPU(s) started in HYP mode.
Feb 07 02:41:39 openwebrx kernel: CPU: Virtualization extensions available.
Feb 07 02:41:39 openwebrx kernel: devtmpfs: initialized
Feb 07 02:41:39 openwebrx kernel: VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
Feb 07 02:41:39 openwebrx kernel: clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Feb 07 02:41:39 openwebrx kernel: futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: pinctrl core: initialized pinctrl subsystem
Feb 07 02:41:39 openwebrx kernel: NET: Registered protocol family 16
Feb 07 02:41:39 openwebrx kernel: DMA: preallocated 1024 KiB pool for atomic coherent allocations
Feb 07 02:41:39 openwebrx kernel: audit: initializing netlink subsys (disabled)
Feb 07 02:41:39 openwebrx kernel: audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1
Feb 07 02:41:39 openwebrx kernel: thermal_sys: Registered thermal governor 'step_wise'
Feb 07 02:41:39 openwebrx kernel: hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
Feb 07 02:41:39 openwebrx kernel: hw-breakpoint: maximum watchpoint size is 8 bytes.
Feb 07 02:41:39 openwebrx kernel: Serial: AMBA PL011 UART driver
Feb 07 02:41:39 openwebrx kernel: bcm2835-mbox fe00b880.mailbox: mailbox enabled
Feb 07 02:41:39 openwebrx kernel: raspberrypi-firmware soc:firmware: Attached to firmware from 2021-12-01T15:01:54, variant start
Feb 07 02:41:39 openwebrx kernel: raspberrypi-firmware soc:firmware: Firmware hash is 71bd3109023a0c8575585ba87cbb374d2eeb038f
Feb 07 02:41:39 openwebrx kernel: Kprobes globally optimized
Feb 07 02:41:39 openwebrx kernel: bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
Feb 07 02:41:39 openwebrx kernel: vgaarb: loaded
Feb 07 02:41:39 openwebrx kernel: SCSI subsystem initialized
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver usbfs
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver hub
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new device driver usb
Feb 07 02:41:39 openwebrx kernel: usb_phy_generic phy: supply vcc not found, using dummy regulator
Feb 07 02:41:39 openwebrx kernel: clocksource: Switched to clocksource arch_sys_counter
Feb 07 02:41:39 openwebrx kernel: VFS: Disk quotas dquot_6.6.0
Feb 07 02:41:39 openwebrx kernel: VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Feb 07 02:41:39 openwebrx kernel: FS-Cache: Loaded
Feb 07 02:41:39 openwebrx kernel: CacheFiles: Loaded
Feb 07 02:41:39 openwebrx kernel: NET: Registered protocol family 2
Feb 07 02:41:39 openwebrx kernel: IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: TCP: Hash tables configured (established 8192 bind 8192)
Feb 07 02:41:39 openwebrx kernel: UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
Feb 07 02:41:39 openwebrx kernel: NET: Registered protocol family 1
Feb 07 02:41:39 openwebrx kernel: RPC: Registered named UNIX socket transport module.
Feb 07 02:41:39 openwebrx kernel: RPC: Registered udp transport module.
Feb 07 02:41:39 openwebrx kernel: RPC: Registered tcp transport module.
Feb 07 02:41:39 openwebrx kernel: RPC: Registered tcp NFSv4.1 backchannel transport module.
Feb 07 02:41:39 openwebrx kernel: PCI: CLS 0 bytes, default 64
Feb 07 02:41:39 openwebrx kernel: Initialise system trusted keyrings
Feb 07 02:41:39 openwebrx kernel: workingset: timestamp_bits=14 max_order=21 bucket_order=7
Feb 07 02:41:39 openwebrx kernel: zbud: loaded
Feb 07 02:41:39 openwebrx kernel: FS-Cache: Netfs 'nfs' registered for caching
Feb 07 02:41:39 openwebrx kernel: NFS: Registering the id_resolver key type
Feb 07 02:41:39 openwebrx kernel: Key type id_resolver registered
Feb 07 02:41:39 openwebrx kernel: Key type id_legacy registered
Feb 07 02:41:39 openwebrx kernel: nfs4filelayout_init: NFSv4 File Layout Driver Registering...
Feb 07 02:41:39 openwebrx kernel: nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
Feb 07 02:41:39 openwebrx kernel: Key type asymmetric registered
Feb 07 02:41:39 openwebrx kernel: Asymmetric key parser 'x509' registered
Feb 07 02:41:39 openwebrx kernel: bounce: pool size: 64 pages
Feb 07 02:41:39 openwebrx kernel: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
Feb 07 02:41:39 openwebrx kernel: io scheduler mq-deadline registered
Feb 07 02:41:39 openwebrx kernel: io scheduler kyber registered
Feb 07 02:41:39 openwebrx kernel: brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
Feb 07 02:41:39 openwebrx kernel: brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
Feb 07 02:41:39 openwebrx kernel: brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000
Feb 07 02:41:39 openwebrx kernel: brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
Feb 07 02:41:39 openwebrx kernel: brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
Feb 07 02:41:39 openwebrx kernel: brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
Feb 07 02:41:39 openwebrx kernel: pci_bus 0000:00: root bus resource [bus 00-ff]
Feb 07 02:41:39 openwebrx kernel: pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
Feb 07 02:41:39 openwebrx kernel: pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
Feb 07 02:41:39 openwebrx kernel: pci 0000:00:00.0: PME# supported from D0 D3hot
Feb 07 02:41:39 openwebrx kernel: PCI: bus0: Fast back to back transfers disabled
Feb 07 02:41:39 openwebrx kernel: pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
Feb 07 02:41:39 openwebrx kernel: pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
Feb 07 02:41:39 openwebrx kernel: pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
Feb 07 02:41:39 openwebrx kernel: pci 0000:01:00.0: PME# supported from D0 D3hot
Feb 07 02:41:39 openwebrx kernel: PCI: bus1: Fast back to back transfers disabled
Feb 07 02:41:39 openwebrx kernel: pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
Feb 07 02:41:39 openwebrx kernel: pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
Feb 07 02:41:39 openwebrx kernel: pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
Feb 07 02:41:39 openwebrx kernel: pci 0000:00:00.0: PCI bridge to [bus 01]
Feb 07 02:41:39 openwebrx kernel: pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
Feb 07 02:41:39 openwebrx kernel: pcieport 0000:00:00.0: enabling device (0140 -> 0142)
Feb 07 02:41:39 openwebrx kernel: pcieport 0000:00:00.0: PME: Signaling with IRQ 62
Feb 07 02:41:39 openwebrx kernel: iproc-rng200 fe104000.rng: hwrng registered
Feb 07 02:41:39 openwebrx kernel: vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
Feb 07 02:41:39 openwebrx kernel: gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
Feb 07 02:41:39 openwebrx kernel: brd: module loaded
Feb 07 02:41:39 openwebrx kernel: loop: module loaded
Feb 07 02:41:39 openwebrx kernel: Loading iSCSI transport class v2.0-870.
Feb 07 02:41:39 openwebrx kernel: libphy: Fixed MDIO Bus: probed
Feb 07 02:41:39 openwebrx kernel: bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
Feb 07 02:41:39 openwebrx kernel: libphy: bcmgenet MII bus: probed
Feb 07 02:41:39 openwebrx kernel: unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver r8152
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver lan78xx
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver smsc95xx
Feb 07 02:41:39 openwebrx kernel: xhci_hcd 0000:01:00.0: xHCI Host Controller
Feb 07 02:41:39 openwebrx kernel: xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
Feb 07 02:41:39 openwebrx kernel: xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000060000000890
Feb 07 02:41:39 openwebrx kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
Feb 07 02:41:39 openwebrx kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 07 02:41:39 openwebrx kernel: usb usb1: Product: xHCI Host Controller
Feb 07 02:41:39 openwebrx kernel: usb usb1: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
Feb 07 02:41:39 openwebrx kernel: usb usb1: SerialNumber: 0000:01:00.0
Feb 07 02:41:39 openwebrx kernel: hub 1-0:1.0: USB hub found
Feb 07 02:41:39 openwebrx kernel: hub 1-0:1.0: 1 port detected
Feb 07 02:41:39 openwebrx kernel: xhci_hcd 0000:01:00.0: xHCI Host Controller
Feb 07 02:41:39 openwebrx kernel: xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
Feb 07 02:41:39 openwebrx kernel: xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
Feb 07 02:41:39 openwebrx kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
Feb 07 02:41:39 openwebrx kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 07 02:41:39 openwebrx kernel: usb usb2: Product: xHCI Host Controller
Feb 07 02:41:39 openwebrx kernel: usb usb2: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd
Feb 07 02:41:39 openwebrx kernel: usb usb2: SerialNumber: 0000:01:00.0
Feb 07 02:41:39 openwebrx kernel: hub 2-0:1.0: USB hub found
Feb 07 02:41:39 openwebrx kernel: hub 2-0:1.0: 4 ports detected
Feb 07 02:41:39 openwebrx kernel: dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
Feb 07 02:41:39 openwebrx kernel: dwc_otg: FIQ enabled
Feb 07 02:41:39 openwebrx kernel: dwc_otg: NAK holdoff enabled
Feb 07 02:41:39 openwebrx kernel: dwc_otg: FIQ split-transaction FSM enabled
Feb 07 02:41:39 openwebrx kernel: Module dwc_common_port init
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver uas
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver usb-storage
Feb 07 02:41:39 openwebrx kernel: mousedev: PS/2 mouse device common for all mice
Feb 07 02:41:39 openwebrx kernel: bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
Feb 07 02:41:39 openwebrx kernel: sdhci: Secure Digital Host Controller Interface driver
Feb 07 02:41:39 openwebrx kernel: sdhci: Copyright(c) Pierre Ossman
Feb 07 02:41:39 openwebrx kernel: mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
Feb 07 02:41:39 openwebrx kernel: sdhci-pltfm: SDHCI platform and OF driver helper
Feb 07 02:41:39 openwebrx kernel: ledtrig-cpu: registered to indicate activity on CPUs
Feb 07 02:41:39 openwebrx kernel: hid: raw HID events driver (C) Jiri Kosina
Feb 07 02:41:39 openwebrx kernel: usbcore: registered new interface driver usbhid
Feb 07 02:41:39 openwebrx kernel: usbhid: USB HID core driver
Feb 07 02:41:39 openwebrx kernel: Initializing XFRM netlink socket
Feb 07 02:41:39 openwebrx kernel: NET: Registered protocol family 17
Feb 07 02:41:39 openwebrx kernel: Key type dns_resolver registered
Feb 07 02:41:39 openwebrx kernel: Registering SWP/SWPB emulation handler
Feb 07 02:41:39 openwebrx kernel: registered taskstats version 1
Feb 07 02:41:39 openwebrx kernel: Loading compiled-in X.509 certificates
Feb 07 02:41:39 openwebrx kernel: Key type ._fscrypt registered
Feb 07 02:41:39 openwebrx kernel: Key type .fscrypt registered
Feb 07 02:41:39 openwebrx kernel: Key type fscrypt-provisioning registered
Feb 07 02:41:39 openwebrx kernel: uart-pl011 fe201000.serial: there is not valid maps for state default
Feb 07 02:41:39 openwebrx kernel: uart-pl011 fe201000.serial: cts_event_workaround enabled
Feb 07 02:41:39 openwebrx kernel: fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
Feb 07 02:41:39 openwebrx kernel: bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
Feb 07 02:41:39 openwebrx kernel: mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
Feb 07 02:41:39 openwebrx kernel: mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
Feb 07 02:41:39 openwebrx kernel: of_cfs_init
Feb 07 02:41:39 openwebrx kernel: of_cfs_init: OK
Feb 07 02:41:39 openwebrx kernel: mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
Feb 07 02:41:39 openwebrx kernel: mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
Feb 07 02:41:39 openwebrx kernel: mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
Feb 07 02:41:39 openwebrx kernel: mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
Feb 07 02:41:39 openwebrx kernel: mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
Feb 07 02:41:39 openwebrx kernel: mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
Feb 07 02:41:39 openwebrx kernel: Waiting for root device PARTUUID=bd50336f-02...
Feb 07 02:41:39 openwebrx kernel: mmc1: new high speed SDIO card at address 0001
Feb 07 02:41:39 openwebrx kernel: mmc0: new ultra high speed DDR50 SDHC card at address aaaa
Feb 07 02:41:39 openwebrx kernel: mmcblk0: mmc0:aaaa SC16G 14.8 GiB
Feb 07 02:41:39 openwebrx kernel: mmcblk0: p1 p2
Feb 07 02:41:39 openwebrx kernel: EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Feb 07 02:41:39 openwebrx kernel: VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
Feb 07 02:41:39 openwebrx kernel: devtmpfs: mounted
Feb 07 02:41:39 openwebrx kernel: Freeing unused kernel memory: 2048K
Feb 07 02:41:39 openwebrx kernel: usb 1-1: new high-speed USB device number 2 using xhci_hcd
Feb 07 02:41:39 openwebrx kernel: Run /sbin/init as init process
Feb 07 02:41:39 openwebrx kernel: with arguments:
Feb 07 02:41:39 openwebrx kernel: /sbin/init
Feb 07 02:41:39 openwebrx kernel: with environment:
Feb 07 02:41:39 openwebrx kernel: HOME=/
Feb 07 02:41:39 openwebrx kernel: TERM=linux
Feb 07 02:41:39 openwebrx kernel: usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
Feb 07 02:41:39 openwebrx kernel: usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Feb 07 02:41:39 openwebrx kernel: usb 1-1: Product: USB2.0 Hub
Feb 07 02:41:39 openwebrx kernel: hub 1-1:1.0: USB hub found
Feb 07 02:41:39 openwebrx kernel: hub 1-1:1.0: 4 ports detected
Feb 07 02:41:39 openwebrx systemd[1]: System time before build time, advancing clock.
Feb 07 02:41:39 openwebrx kernel: usb 1-1.2: new high-speed USB device number 3 using xhci_hcd
Feb 07 02:41:39 openwebrx kernel: NET: Registered protocol family 10
Feb 07 02:41:39 openwebrx kernel: Segment Routing with IPv6
Feb 07 02:41:39 openwebrx systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN
Feb 07 02:41:39 openwebrx systemd[1]: Detected architecture arm.
Feb 07 02:41:39 openwebrx kernel: usb 1-1.2: New USB device found, idVendor=0bda, idProduct=2838, bcdDevice= 1.00
Feb 07 02:41:39 openwebrx kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 07 02:41:39 openwebrx kernel: usb 1-1.2: Product: RTL2838UHIDIR
Feb 07 02:41:39 openwebrx kernel: usb 1-1.2: Manufacturer: Realtek
Feb 07 02:41:39 openwebrx kernel: usb 1-1.2: SerialNumber: 00000001
Feb 07 02:41:39 openwebrx systemd[1]: Set hostname to
@alastair-bor - thanks for the detailed report.
I have a Raspberry Pi too (model 4); tomorrow I'll try the installation of OpenWebRX + CodecServer from the official Raspberry Pi image (the only difference with you is that I'll be trying with the SDRplay RSPdx, since I do not have an RTL-SDR dongle), and I'll let you know how it goes.
Franco
@alastair-bor I downloaded the official Raspberry Pi image from the link you mentioned in your comment (https://www.openwebrx.de/download/rpi.php), and I noticed that it already contains Codec Server, so some of the instructions from the README (which I wrote based on my own OpenWebRx installation on my desktop) do not apply in this case.
I followed roughly the steps discussed in a previous issue in this repository (https://github.com/fventuri/codecserver-mbelib-module/issues/2) and I was able to get Codec Server to see this module and OpenWebRX to use it to decode digital voice traffic.
Here are exactly all the commands I ran on my Raspberry Pi after booting it with the image 2021-08-03-OpenWebRX-full.img
:
(assign IP address)
(enable SSH)
(remote login as user pi)
sudo apt update
sudo apt full-upgrade
sudo reboot
(after reboot)
git clone https://github.com/szechyjs/mbelib.git
cd mbelib
mkdir build
cd build
cmake ..
make
sudo make install
cd
sudo ldconfig
sudo apt install libcodecserver-dev libprotobuf-dev protobuf-compiler
git clone https://github.com/fventuri/codecserver-mbelib-module.git
cd codecserver-mbelib-module
mkdir build
cd build
cmake -DCMAKE_INSTALL_LIBDIR='/usr/lib/arm-linux-gnueabihf' ..
make
sudo make install
cd
sudo ldconfig
{ echo; echo '[device:mbelib]'; echo 'driver=mbelib'; echo 'unvoiced_quality=3'; } | sudo tee -a /etc/codecserver/codecserver.conf
sudo systemctl restart codecserver
I then connected to OpenWebRX on port 8073, saw that it showed the digital voice decoders options; to test this module, I set up a simple profile for a local D-Star repeater on 2m, and I was able to decode the D-Star traffic there (I didn't try DMR or YSF but I imagine they should work too).
Please give it a try using the instructions above (starting from a fresh Raspberry Pi image) and let me know how it goes; if these commands work for you too, I'll add the detailed instructions to the README.
Franco
PS: I too saw that signal 15 here in the logs from journalctl
when I restarted Codec Server, and I think it is just systemd terminating the codecserver
process before restarting it, so it is nothing to worry about; sorry for pointing you in the wrong direction earlier.
Excellent! I built it out on a brand new RPi3 test device and it worked per your instructions. Thank you very much. I haven't yet tested the DMR because there is nothing active at the moment, but the menu item appears. Will test it tonight and report back.
I'll have a little play with why my existing system (which shouldn't be too far off the base config) isn't working... I tried your instructions as an overlay on the existing system and it didn't fix it.
@fventuri - I can confirm that this fully works for DMR! Thanks for the support.
@alastair-bor - glad to hear the instructions worked for you.
I just added a section with those same instructions to the README file: https://github.com/fventuri/codecserver-mbelib-module#how-to-build---openwebrx-raspberry-pi-images
Franco
Using all recommended settings and followed instructions exactly. No errors in compliation, etc. but OpenwebRX doesn't "enable" the codecserver.
Feb 04 09:17:33 openwebrx codecserver[374]: Hello, I'm the codecserver. Feb 04 09:17:33 openwebrx codecserver[374]: now scanning for modules... Feb 04 09:17:33 openwebrx codecserver[374]: registering new driver: "ambe3k" Feb 04 09:17:33 openwebrx codecserver[374]: registering new driver: "mbelib" Feb 04 09:17:33 openwebrx codecserver[374]: loading devices from configuration... Feb 04 09:17:33 openwebrx codecserver[374]: registering new device for codecs: ambe, Feb 04 09:17:33 openwebrx codecserver[374]: auto-detecing devices... Feb 04 09:17:33 openwebrx codecserver[374]: scanning for "ambe3k" devices... Feb 04 09:17:33 openwebrx codecserver[374]: scanning for "mbelib" devices... Feb 04 09:17:33 openwebrx codecserver[374]: device scan complete. Feb 04 09:17:33 openwebrx codecserver[374]: received signal: 15