Date: Mon, 30 Oct 2023 04:47:55 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 274804] [PATCH] KERNCONF=GENERIC-VCHIQ enable HDMI AUDIO on Raspberry Pi 4B,400,3B Message-ID: <bug-274804-7@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274804 Bug ID: 274804 Summary: [PATCH] KERNCONF=3DGENERIC-VCHIQ enable HDMI AUDIO on Raspberry Pi 4B,400,3B Product: Base System Version: 14.0-STABLE Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: wb7odyfred@yahoo.com Created attachment 245983 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D245983&action= =3Dedit tar.gz compressed file containing several patch files. example CLI patch= < vchiq_arm.c.patch Testing Support of Marcos Patch review D37878=20 https://reviews.freebsd.org/D37878 for Supporting Raspberry Pi 4B HDMI AUDIO output on HDMI TV Speakers. Must be a newer code commit review somewhere. Does someone build Raspberry Pi 4B FreeBSD kernel code with GENERIC-VCHIQ = for a test? https://forums.raspberrypi.com/viewtopic.php?t=3D343233 Fred Finster post = to Raspberry Pi Forums on using Marcos patch file. https://bsdnow.tv/489 minutes 12:00-17:00 Speak about the above forums Pos= t. # Check for existence of configuration file GENERIC-VCHIQ ls -l /usr/src/sys/arm64/conf/GENERIC-VCHIQ # Build the kernel make -j4 buildkernel TARGET_ARCH=3Daarch64 KERNCONF=3DGENERIC-VCHIQ many errors of Format string size not matching, the argument size being pas= sed Since most of these error where in debug log messages=20 Changed (unsigned int) into (unsigned long) Changed format string from %x to %lx vchiq_core.h=20 added for arm64 bit 'dsb(sy)' where for armv7a 'dsb()' #if defined(__arm64__) dsb(sy) #else=20=20 dsb() #endif=20 Yes, I had Compile fail error for ROCKPI device 'dsb()' so changed both s= ides of logic if dsb(sy) else dsb(sy) endif Yes, know that is bad form, to NOT support armv7a 32bit C functions. Someone smarter than I, can offer code change to make 64/32 bit function proper. Happy with the FreeBSD.org/where RPI arm64 snapshot images, so far. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274804-7>