From nobody Wed Sep 7 04:46:59 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MMqVJ4q13z4bW9B for ; Wed, 7 Sep 2022 04:47:04 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from atl4mhob10.registeredsite.com (atl4mhob10.registeredsite.com [209.17.115.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MMqVH6BSfz3W7x for ; Wed, 7 Sep 2022 04:47:03 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from atl4dcobm03pod7.mgt.hosting.qts.netsol.com ([10.30.35.45]) by atl4mhob10.registeredsite.com (8.14.4/8.14.4) with ESMTP id 2874l1AQ008798; Wed, 7 Sep 2022 00:47:01 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 atl4mhob10.registeredsite.com 2874l1AQ008798 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thegalacticzoo.com; s=default; t=1662526022; bh=g6AHuVkhmdYlymV/vL3PqH+Xr2xmlZmn+Na9JhkMSYM=; h=Date:From:Subject:To:References:In-Reply-To:From; b=t2kGGQ2+Kw3GGayTBinss67+ABkN+9yONvltLd4Y3NtbOjbKxIW1dU6QfGHpjn/ft fIlJFaXrrwOXv/BuCQYE8EANSdKuLngMK6l7AyALjIVKR8eOZPzSVrNxWYPR2eRc9n F+gqA9SZm96hl54pvP8w+dgpW8s3zkkbSejExqnI= X-TCPREMOTEIP: 76.14.221.149 X-Authenticated-UID: fred@thegalacticzoo.com Received: from [192.168.1.37] (76-14-221-149.or.wavecable.com [76.14.221.149]) (Authenticated sender: fred@thegalacticzoo.com) by atl4dcobm03pod7.mgt.hosting.qts.netsol.com (Postfix) with ESMTPA id 6751380E6933; Wed, 7 Sep 2022 00:47:00 -0400 (EDT) Message-ID: <64423b82-7ec1-f2c6-344b-25a48ea4fa37@thegalacticzoo.com> Date: Tue, 6 Sep 2022 21:46:59 -0700 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 From: Fred Finster Subject: Re: VCHIQ sound does WORK on Raspi4B 2711 CPU chip. Which DTB to include on config.txt file, Any other missing pieces? NO To: Marco Devesas Campos , freebsd-arm@freebsd.org References: <0ec5a701-908f-fc15-ef8b-401c1553e194@thegalacticzoo.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MMqVH6BSfz3W7x X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=thegalacticzoo.com header.s=default header.b=t2kGGQ2+; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com; spf=none (mx1.freebsd.org: domain of fred@thegalacticzoo.com has no SPF policy when checking 209.17.115.48) smtp.mailfrom=fred@thegalacticzoo.com X-Spamd-Result: default: False [-3.80 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_DKIM_ALLOW(-0.20)[thegalacticzoo.com:s=default]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:19871, ipnet:209.17.115.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.17.115.48:from]; DKIM_TRACE(0.00)[thegalacticzoo.com:+]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TAGGED_RCPT(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_NA(0.00)[no SPF record]; TO_MATCH_ENVRCPT_SOME(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 9/6/22 04:23, Marco Devesas Campos wrote: > Hi > >> On 7 Sep 2022, at 06:04, Fred Finster wrote: >> >> VCHIQ sound on Raspi4B HDMI audio. Which DTB to include on config.txt file, Any other missing pieces? > stock confit.txt and dtb-s. > > dmesg should then show > > vchiq0: mem 0x7e00b840-0x7e00b87b irq 72 on simplebus0 > vchiq: local ver 8 (min 3), remote ver 8. > pcm0: on vchiq0 > > and > cat /dev/random > /dev/dsp > should play static > > If nothing’s playing, flipping the sysctl dev.pcm.0.dest through > - 0: both hdmi and headphones > - 1: headphones > - 2: hdmi > usually brings the audio back to life. > > Best, > Marco Thank you so very much for this missing piece of setting up the Sound for VCHIQ and the GENERIC_VCHIQ.conf  file.   I built the kernel GENERIC-VCHIQ in the following manner: login as "root" cd /usr/src patch -v (play) default No devices installed from userspace. root@Fred_RasPi4B:~ # uname -a FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n257130-c0665d5c824-dirty: Tue Sep  6 23:52:55 PDT 2022 fred@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 root@Fred_RasPi4B:~ # freebsd-version -kru 14.0-CURRENT 14.0-CURRENT 14.0-CURRENT root@Fred_RasPi4B:~ # root@Fred_RasPi4B:~ # dmesg | grep -i vchiq fred@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 vchiq0: mem 0x7e00b840-0x7e00b87b irq 72 on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: on vchiq0 root@Fred_RasPi4B:~ # uname -a FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n257130-c0665d5c824-dirty: Tue Sep  6 23:52:55 PDT 2022 fred@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 I hope this little bit of feedback helps you.  I need to go to work, now for 12 hours.  Thanks ago so very much.   This FreeBSD has come alive on the Raspberry Pi 4B with 8 GB of dram memory, to be able to play video and HEAR SOUND!!.  Youtube.com comes alive! I can share more test data if you need, Marco.  Just ask and I will test.  https://www.frankspeech.com is a good site to test video hardware Fred L. Finster probably missing something here, Marcos. fred@thegalacticzoo.com 971-718-9144 https://ghostbsd-arm64.blogspot.com ps.  Looking forward to this VCHIQ code patch being included in the tree and in a new snapshot FreeBSD 14.0 arm64 image. https://freebsd.org/where