From nobody Mon Sep 11 06:27:31 2023 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 4RkcG85nWqz4sp8h for ; Mon, 11 Sep 2023 06:27:44 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao201.oxsus-vadesecure.net (mta-231a.oxsus-vadesecure.net [15.204.3.4]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RkcG66d80z3gGK; Mon, 11 Sep 2023 06:27:42 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=webcom.xion.oxcs.net header.s=mail1 header.b=gZYG2Rg0; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 15.204.3.4 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com DKIM-Signature: v=1; a=rsa-sha256; bh=GH3nmCjSjR0Yy6PtNnnkaHf4fAzMjt1fgq0uiA 0WKgM=; c=relaxed/relaxed; d=webcom.xion.oxcs.net; h=from:reply-to: subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc: in-reply-to:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=mail1; t=1694413655; x=1695018455; b=gZYG2Rg0xO0EEDuhk0aFoadQe1bNCcbo82FSXgM8W J34jG3znsq08qXgQRKwZUd3AYSJjjIALS/hYeZ9Yj06+kWFTjNg2RJLfzNPuicmrT3kn5fj Rc4JKj8iehxL+ituo8Nk4IA1DTC8ED9fnIgv1F9EHTxr4eUlPotmIG8iMYuzkX8P40jT2Sd paBJl4rLiy3NXbSsI8JNWQT0AQjUBr5PkPrPHBhS49KNgYVnWfWNDzCCBsOEeRyy32RSYX+ S1jknujlOS83z4Kw5TYpYjKf2wolPwP1zfI0QPqotYTfQ4/+pQJYtxFbvsKtp6ObEdwE6Go 6CmezMda/2amw8wUw== Received: from proxy-17.proxy.cloudus.ewr.xion.oxcs.net ([76.14.244.154]) by oxsus2nmtao01p.internal.vadesecure.com with ngmta id b72aefe5-1783c43d7dbc865f; Mon, 11 Sep 2023 06:27:35 +0000 To: Scottph@freebsd.org From: "Fred G. Finster" Subject: vchiq_core.c fails to compile when using KERNCONF=GENERIC-VCHIQ Cc: devesas.campos@gmail.com, void@f-m.fm, freebsd-arm@freebsd.org Message-ID: <41e5da5d-3902-71ab-06e2-da0dd91dd7dd@thegalacticzoo.com> Date: Sun, 10 Sep 2023 23:27:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.80 / 15.00]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; RWL_MAILSPIKE_EXCELLENT(-0.40)[15.204.3.4:from]; R_DKIM_ALLOW(-0.20)[webcom.xion.oxcs.net:s=mail1]; R_SPF_ALLOW(-0.20)[+ip4:15.204.3.4/30]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[15.204.3.4:from]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TAGGED_RCPT(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:16276, ipnet:15.204.0.0/17, country:FR]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[webcom.xion.oxcs.net:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,f-m.fm,freebsd.org]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4RkcG66d80z3gGK Hello Scott, I have a Raspberry Pi 4B with 8 gigs of dram.  I added the Marco patch file Revision D37878 last year Sept 5, 2022 and was quite happy with playing youtube.com videos and having sound come out the TV/Monitor HDMI audio speakers. Now I have updated to the latest FreeBSD 14.0-CURRENT software, and having compile errors. https://ghostbsd-arm64.blogspot.com/2022/09/freebsd-140-compiling-kernel-for.html Here is Sept 7 2022 blog post about patching for HDMI Audio Here is my blog describing the error and how to reproduce this compile error.  I corrected the few files by editing several files to compile the /usr/src with make -j4 buildkernel KERNCONF=GENERIC-VCHIQ with out errors. edited files:  vchiq_core.c vchiq_kern_lib.c vchiq_shim.c vchiq_2835_arm.c cd /usr/src time make -j4 buildkernel  TARGET_ARCH=aarch64 KERNCONF=GENERIC-VCHIQ -DNO_CLEAN https://ghostbsd-arm64.blogspot.com/2023/08/vchiqcorec-freebsd-140-current-has.html Here is the error written up Can you point to the page in the handbook for correctly making patch files, either using  git diff or diff -u or diff -C 5 Please help a newbie to have a correctly working flow, to create patch files that you can test.  What every I need to do to make it easy for you. How many people use a Raspberry Pi 4B with a FreeBSD desktop like XFCE4 or MATE?.  How many use the HDMI Audio function of the Raspberry Pi 4B to have audio come out the TV/Monitor speakers? instead of the 3.5mm jack or useing USB headphones? https://lists.freebsd.org/archives/freebsd-arm/2022-September/001718.html Sept 7 2022 email about VCHIQ sound working on Raspberry Pi 4B. https://reviews.freebsd.org/D37878  revision I was doing this work with FreeBSD 14.0-CURRENT source code files. I can share patch files for updating the files, but What I have made are not exactly working for my use, so could use an example to make a correct patch file. Just a note to make contact, and asking how to proceed.  Sorry for the noise. I will read the fine FreeBSD Handbook. Fred Finster fred@thegalacticzoo.com ps.  In working to be complete, it seems the details make a short email long, trying to explain completely. https://forums.raspberrypi.com/viewtopic.php?t=343233 HDMI Audio sound writeup on RaspberryPi.com forums https://forums.raspberrypi.com/viewtopic.php?t=343233#p2074412 post with mention at 12 minutes on https://BSDNOW.tv/489 podcast Advertising FreeBSD running on Raspberry Pi 4B aarch64