Hello
My current Linux BSP version is 3.14.38.
I has been ported pulseaudio and bluez5 to imx6dl.
I tried to execute the command “pulseaudio --system --realtime &” to start pulseaudio. But the error is as follows:
root@imx6qsabresd:/tmp/usr/lib# pulseaudio --system --realtime
W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
W: [pulseaudio] main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that.
W: [pulseaudio] main.c: If you do it nonetheless then it's your own fault if things don't work as expected.
W: [pulseaudio] main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea.
Inconsistency detected by ld.so: dl-open.c: 678: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
root@imx6qsabresd:/tmp/usr/lib#
I execute the command “pulseaudio --vvvv”, the phenomenon is as follows:
root@imx6qsabresd:/tmp/usr/lib# pulseaudio -vvvv
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: setpriority() worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 8.0
D: [pulseaudio] main.c: Compilation host: arm-poky-linux-gnueabi
D: [pulseaudio] main.c: Compilation CFLAGS: -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/user/linyicai/linux/fsl-release-bsp/build-wayland/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/pulseaudio/8.0-r0=/usr/src/debug/pulseaudio/8.0-r0 -fdebug-prefix-map=/home/user/linyicai/linux/fsl-release-bsp/build-wayland/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/user/linyicai/linux/fsl-release-bsp/build-wayland/tmp/sysroots/imx6qsabresd= -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux armv7l 3.14.38-6UL_ga-svn11837 #12 SMP PREEMPT Wed Oct 16 14:33:15 CST 2019
D: [pulseaudio] main.c: Found 2 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is imx6qsabresd.
I: [pulseaudio] main.c: Using runtime directory /home/root/.config/pulse/imx6qsabresd-runtime.
I: [pulseaudio] main.c: Using state directory /home/root/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-8.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
W: [pulseaudio] pid.c: Stale PID file, overwriting.
I: [pulseaudio] main.c: System supports high resolution timers
D: [pulseaudio] memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
D: [pulseaudio] memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65496
I: [pulseaudio] cpu-arm.c: CPU flags: V6 V7 VFP EDSP NEON VFPV3
I: [pulseaudio] svolume_arm.c: Initialising ARM optimized volume functions.
I: [pulseaudio] sconv_neon.c: Initialising ARM NEON optimized conversions.
I: [pulseaudio] mix_neon.c: Initialising ARM NEON optimized mixing functions.
I: [pulseaudio] remap_neon.c: Initialising ARM NEON optimized remappers.
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/home/root/.config/pulse/imx6qsabresd-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/home/root/.config/pulse/imx6qsabresd-stream-volumes'.
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added for object /org/pulseaudio/stream_restore1
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: [pulseaudio] module-card-restore.c: Successfully opened database file '/home/root/.config/pulse/imx6qsabresd-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/usr/lib/pulse-8.0/modules/module-udev-detect.so': success
Inconsistency detected by ld.so: dl-open.c: 678: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
root@imx6qsabresd:/tmp/usr/lib#
How to solve this problem?
Thank you!
Hi weibin
one can look at
BCM4343W bluetooth audio PCM driver | Cypress Developer Community
and use NXP Linux documentation
i.MX Software | NXP
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello
Thank you for your answer.
Can you analyze the possible causes and give me solutions?
Hi weibin
for detailed analysis and solutions may be suggested to proceed with
extended support of Commercial Support and Engineering Services | NXP
Best regards
igor
Hello igor
Now, I have another wrong.
When I execute the following command:pulseaudio --system. The phenomenon is as follows:
root@imx6qsabresd:/etc# pulseaudio --system --realtime &
28092
root@imx6qsabresd:/etc# W: main.c: Running in system mode, but --disallow-exit not set.
W: main.c: Running in system mode, but --disallow-module-loading not set.
N: main.c: Running in system mode, forcibly disabling SHM mode.
W: main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that.
W: main.c: If you do it nonetheless then it's your own fault if things don't work as expected.
W: main.c: Please read http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ for an explanation why system mode is usually a bad idea.
E: main.c: Failed to acquire org.pulseaudio.Server: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.25" is not allowed to own the service "org.pulseaudio.Server" due to security policies in the configuration file
E: bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.25" (uid=100 pid=28092 comm="pulseaudio --system --realtime ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=22025 comm="/usr/libexec/bluetooth/bluetoothd -C ")
How to solve it?
Thank you