Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Raspberry Pi 3B+ problems: no audio, no multimedia



Hi!

I have a Raspberry Pi 3B+ and tried running NetBSD-current on it,
using the arm7hf distribution.

NetBSD armv7 9.99.92 NetBSD 9.99.92 (GENERIC) #0: Sat Nov 20 01:52:51 UTC 2021  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm

1. audio does not seem to work. From dmesg:

vchiq0: interrupting on icu irq 66
vchiq: vchiq_init_state: slot_zero = 0xbc140000, is_master = 0
vchiq: local ver 8 (min 3), remote ver 8.
vcaudio0 at vchiq0: auds
audio0 at vcaudio0: playback
audio0: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for playback
spkr0 at audio0: PC Speaker (synthesized)

it looks good, but when I 'audioplay' a file that works fine on an amd64 machine

foo.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz

audioplay runs for the appropriate amount of time, but I hear nothing.

2. ld0 throws a lot of errors

ld0a: error writing fsbn 2214784 of 2214784-2214911 (ld0 bn 2411392; cn 1177 tn 28 sn 0), retrying
ld0a: error writing fsbn 2279680 of 2279680-2279807 (ld0 bn 2476288; cn 1209 tn 8 sn 0), retrying
ld0a: error writing fsbn 2279936 of 2279936-2280063 (ld0 bn 2476544; cn 1209 tn 16 sn 0), retrying
ld0a: error writing fsbn 2279680 of 2279680-2279807 (ld0 bn 2476288; cn 1209 tn 8 sn 0), retrying
ld0a: error writing fsbn 2434688 of 2434688-2434815 (ld0 bn 2631296; cn 1284 tn 52 sn 0), retrying
ld0a: error writing fsbn 2279680 of 2279680-2279807 (ld0 bn 2476288; cn 1209 tn 8 sn 0), retrying
ld0a: error writing fsbn 2675840 of 2675840-2675967 (ld0 bn 2872448; cn 1402 tn 36 sn 0), retrying
ld0a: error writing fsbn 2724352 of 2724352-2724479 (ld0 bn 2920960; cn 1426 tn 16 sn 0), retrying
ld0a: error writing fsbn 2279936 of 2279936-2280063 (ld0 bn 2476544; cn 1209 tn 16 sn 0), retrying
ld0a: error writing fsbn 2940288 of 2940288-2940415 (ld0 bn 3136896; cn 1531 tn 44 sn 0), retrying
ld0a: error writing fsbn 2280064 of 2280064-2280191 (ld0 bn 2476672; cn 1209 tn 20 sn 0), retrying
ld0a: error writing fsbn 2280064 of 2280064-2280191 (ld0 bn 2476672; cn 1209 tn 20 sn 0), retrying
ld0a: error writing fsbn 2280192 of 2280192-2280319 (ld0 bn 2476800; cn 1209 tn 24 sn 0), retrying
ld0a: error writing fsbn 3115520 of 3115520-3115647 (ld0 bn 3312128; cn 1617 tn 16 sn 0), retrying
ld0a: error writing fsbn 3125248 of 3125248-3125375 (ld0 bn 3321856; cn 1622 tn 0 sn 0), retrying
ld0a: error writing fsbn 2280320 of 2280320-2280447 (ld0 bn 2476928; cn 1209 tn 28 sn 0), retrying
ld0a: error writing fsbn 4602240 of 4602240-4602367 (ld0 bn 4798848; cn 2343 tn 12 sn 0), retrying
ld0a: error writing fsbn 3116416 of 3116416-3116543 (ld0 bn 3313024; cn 1617 tn 44 sn 0), retrying
ld0a: error writing fsbn 3349248 of 3349248-3349343 (ld0 bn 3545856; cn 1731 tn 24 sn 0), retrying
ld0a: error writing fsbn 4558976 of 4558976-4559103 (ld0 bn 4755584; cn 2322 tn 4 sn 0), retrying
ld0a: error writing fsbn 3552640 of 3552640-3552767 (ld0 bn 3749248; cn 1830 tn 44 sn 0), retrying
ld0a: error writing fsbn 4682496 of 4682496-4682623 (ld0 bn 4879104; cn 2382 tn 24 sn 0), retrying
ld0a: error writing fsbn 4730880 of 4730880-4731007 (ld0 bn 4927488; cn 2406 tn 0 sn 0), retrying
ld0a: error writing fsbn 4778240 of 4778240-4778367 (ld0 bn 4974848; cn 2429 tn 8 sn 0), retrying
ld0a: error writing fsbn 4901120 of 4901120-4901247 (ld0 bn 5097728; cn 2489 tn 8 sn 0), retrying
ld0a: error writing fsbn 4997376 of 4997376-4997503 (ld0 bn 5193984; cn 2536 tn 8 sn 0), retrying
ld0a: error writing fsbn 5046400 of 5046400-5046527 (ld0 bn 5243008; cn 2560 tn 4 sn 0), retrying
ld0a: error writing fsbn 5093760 of 5093760-5093887 (ld0 bn 5290368; cn 2583 tn 12 sn 0), retrying
ld0a: error writing fsbn 22054144 of 22054144-22054271 (ld0 bn 22250752; cn 10864 tn 40 sn 0), retrying

The SD card came new with the Pi. Is it already dying?

3. omxplayer does not work

I first tried installing a 9.0 binary package, which didn't work, then
I built it myself (from pkgsrc, from scratch, in a sandbox on an
external SSD drive).  The symptoms are that it plays the mp4 file for
a some seconds and then either hangs or segfaults. Backtrace for the
segfault is

(gdb) bt
#0  0x7598be84 in _lwp_kill () from /usr/lib/libc.so.12
#1  0x7598a9e4 in abort () from /usr/lib/libc.so.12
#2  0x0c7c1320 in sig_handler (s=<optimized out>) at omxplayer.cpp:135
#3  sig_handler (s=<optimized out>) at omxplayer.cpp:120
#4  0x7598be8c in _lwp_kill () from /usr/lib/libc.so.12
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


4. mpv does not work

Also tried 9.0 binary package first, then built it myself.
It segfaults before it plays anything. The backtrace is

(gdb) bt
#0  0x7890a178 in memcpy () from /usr/lib/libc.so.12
#1  0x03f085ac in __memcpy_ichk (len=4294967295, src=0x77994730, dst=<optimized out>) at /usr/include/ssp/string.h:82
#2  strndup_append_at (str=0x747ff404, str@entry=0x747ff3fc, at=0, append=0x77994730 "pid", append_len=<optimized out>, append_len@entry=4294967295) at ../ta/ta_utils.c:100
#3  0x03f08acc in ta_strdup_append_buffer (str=str@entry=0x747ff3fc, a=<optimized out>) at ../ta/ta_utils.c:149
#4  0x03f08078 in ta_talloc_strdup_append_buffer (s=<optimized out>, a=<optimized out>) at ../ta/ta_talloc.c:31
#5  0x03e4a920 in print_str_list (opt=opt@entry=0x747ff470, src=src@entry=0x747ff440) at ../options/m_option.c:1572
#6  0x03e57488 in m_option_print (val_ptr=0x747ff438, opt=0x747ff468) at ../options/m_option.h:520
#7  m_property_do (log=0x0, prop_list=0x7878b3f0, name=name@entry=0x761fe170 "property-list", action=action@entry=6, arg=0x747ff5b0, arg@entry=0x747ff5a8, ctx=ctx@entry=0x78ecf830) at ../options/m_property.c:127
#8  0x03e73294 in mp_property_do (name=0x761fe170 "property-list", action=action@entry=6, val=<optimized out>, val@entry=0x747ff5a8, ctx=0x78ecf830) at ../player/command.c:3887
#9  0x03e60a2c in getproperty_fn (arg=0x747ff5f0, arg@entry=0x747ff5e8) at ../player/client.c:1430
#10 0x03e61c38 in run_locked (fn_data=0x747ff5e8, fn=0x3e6081c <getproperty_fn>, ctx=0x78dad930) at ../player/client.c:1086
#11 mpv_get_property (ctx=0x78dad930, name=<optimized out>, format=format@entry=MPV_FORMAT_STRING, data=data@entry=0x747ff618) at ../player/client.c:1505
#12 0x03e82640 in script_get_property_base (L=0x776a9000, tmp=0x76d93f60, is_osd=0) at ../player/lua.c:811
#13 0x78dbe25c in luaD_precall (L=L@entry=0x776a9000, func=<optimized out>, nresults=-1) at ldo.c:319
#14 0x78dbe7ec in luaD_call (L=0x776a9000, func=<optimized out>, nResults=<optimized out>, allowyield=<optimized out>) at ldo.c:401
#15 0x78dbd9f8 in luaD_rawrunprotected (L=0x78df934c, L@entry=0x776a9000, f=0x776a9000, ud=0x5, ud@entry=0x747ff7cc) at ldo.c:131
#16 0x78dbeb20 in luaD_pcall (L=L@entry=0x776a9000, func=<optimized out>, u=u@entry=0x747ff7cc, old_top=592, ef=0) at ldo.c:603
#17 0x78db82c8 in lua_pcallk (L=L@entry=0x776a9000, nargs=2, nresults=nresults@entry=-1, errfunc=errfunc@entry=0, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:949
#18 0x03e816c4 in script_autofree_trampoline (L=0x776a9000) at ../player/lua.c:1296
#19 0x78dbe25c in luaD_precall (L=L@entry=0x776a9000, func=<optimized out>, func@entry=0x7614d240, nresults=nresults@entry=1) at ldo.c:319
#20 0x78dcdd30 in luaV_execute (L=L@entry=0x776a9000) at lvm.c:709
#21 0x78dbe818 in luaD_call (L=L@entry=0x776a9000, func=<optimized out>, nResults=nResults@entry=1, allowyield=allowyield@entry=0) at ldo.c:402
#22 0x78db81c0 in lua_callk (L=L@entry=0x776a9000, nargs=nargs@entry=0, nresults=nresults@entry=1, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:905
#23 0x03e8026c in load_builtin (L=0x776a9000) at ../player/lua.c:270
#24 0x78dbe25c in luaD_precall (L=L@entry=0x776a9000, func=<optimized out>, nresults=1) at ldo.c:319
#25 0x78dbe7ec in luaD_call (L=L@entry=0x776a9000, func=<optimized out>, nResults=nResults@entry=1, allowyield=allowyield@entry=0) at ldo.c:401
#26 0x78db81c0 in lua_callk (L=L@entry=0x776a9000, nargs=nargs@entry=2, nresults=nresults@entry=1, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:905
#27 0x78dde180 in ll_require (L=0x776a9000) at loadlib.c:520
#28 0x78dbe25c in luaD_precall (L=L@entry=0x776a9000, func=<optimized out>, func@entry=0x76204650, nresults=nresults@entry=0) at ldo.c:319
#29 0x78dcdd30 in luaV_execute (L=L@entry=0x776a9000) at lvm.c:709
#30 0x78dbe818 in luaD_call (L=L@entry=0x776a9000, func=<optimized out>, nResults=nResults@entry=0, allowyield=allowyield@entry=0) at ldo.c:402
#31 0x78db81c0 in lua_callk (L=L@entry=0x776a9000, nargs=nargs@entry=0, nresults=nresults@entry=0, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:905
#32 0x03e81f74 in require (L=L@entry=0x776a9000, name=0x747ffaa4 "require '@stats.lua'", name@entry=0x7624ea30 "@stats.lua") at ../player/lua.c:288
#33 0x03e82130 in load_scripts (L=0x776a9000) at ../player/lua.c:316
#34 0x78dbe25c in luaD_precall (L=L@entry=0x776a9000, func=<optimized out>, nresults=0) at ldo.c:319
#35 0x78dbe7ec in luaD_call (L=0x776a9000, func=<optimized out>, nResults=<optimized out>, allowyield=<optimized out>) at ldo.c:401
#36 0x78dbd9f8 in luaD_rawrunprotected (L=0x78df934c, L@entry=0x776a9000, f=0x776a9000, ud=0x1, ud@entry=0x747ffcbc) at ldo.c:131
#37 0x78dbeb20 in luaD_pcall (L=L@entry=0x776a9000, func=<optimized out>, u=u@entry=0x747ffcbc, old_top=48, ef=32) at ldo.c:603
#38 0x78db82c8 in lua_pcallk (L=L@entry=0x776a9000, nargs=nargs@entry=0, nresults=nresults@entry=0, errfunc=errfunc@entry=-2, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:949
#39 0x03e83540 in run_lua (L=0x776a9000) at ../player/lua.c:426
#40 0x78dbe25c in luaD_precall (L=L@entry=0x776a9000, func=<optimized out>, nresults=0) at ldo.c:319
#41 0x78dbe7ec in luaD_call (L=0x776a9000, func=<optimized out>, nResults=<optimized out>, allowyield=<optimized out>) at ldo.c:401
#42 0x78dbd9f8 in luaD_rawrunprotected (L=0x78df934c, L@entry=0x776a9000, f=0x776a9000, ud=0x0, ud@entry=0x747ffeac) at ldo.c:131
#43 0x78dbeb20 in luaD_pcall (L=L@entry=0x776a9000, func=<optimized out>, u=u@entry=0x747ffeac, old_top=16, ef=0) at ldo.c:603
#44 0x78db82c8 in lua_pcallk (L=L@entry=0x776a9000, nargs=nargs@entry=1, nresults=nresults@entry=0, errfunc=errfunc@entry=0, ctx=ctx@entry=0, k=k@entry=0x0) at lapi.c:949
#45 0x03e83158 in mp_cpcall (func=0x3e83244 <run_lua>, ud=0x78631030, L=0x776a9000) at ../player/lua.c:110
#46 load_lua (args=<optimized out>) at ../player/lua.c:467
#47 0x03e8cc0c in run_script (arg=arg@entry=0x7863e690) at ../player/scripting.c:91
#48 0x03e8d0ec in script_thread (p=0x7863e690) at ../player/scripting.c:103
#49 0x7a97c4e8 in ?? () from /usr/lib/libpthread.so.1
#50 0x7890b9b0 in __mknod50 () from /usr/lib/libc.so.12
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


Does any of these work for anyone else?

I used armv7hf because I thought omxplayer would be useful due to the
hardware acceleration, but perhaps aarch64 is better?

Thanks,
 Thomas


Home | Main Index | Thread Index | Old Index