Pi3 vchiq driver?

Karl Denninger karl at denninger.net
Fri Feb 10 22:06:24 UTC 2017


I assume this will provide the audio service (which is currently not
available) on the Pi3.

Attempting to include it results in a handful of compilation errors. 
They'd be easy to fix for the instant case but generalizing them so they
ALSO compile on the Pi2 would likely be a good idea, and I'm
less-certain on the "right" way to do that.

The errors are generally of the form (once I fixed a missing include in
atomic.h):

/pics/CrossBuild-12/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.c:1852:
6: error: cast to 'void *' from smaller integer type 'int'
[-Werror,-Wint-to-voi
d-pointer-cast]
                                        (void *)((int *)header->data)[0];
                                        ^
--- pci_host_generic.o ---
cc -target aarch64-unknown-freebsd12.0
--sysroot=/pics/Crochet-work/obj/arm64.aa
rch64/pics/CrossBuild-12/src/tmp -B/usr/local/aarch64-freebsd/bin/ -c -O
-pipe
-g -nostdinc  -I. -I/pics/CrossBuild-12/src/sys
-I/pics/CrossBuild-12/src/sys/co
ntrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h  -fno-
omit-frame-pointer -mno-omit-leaf-frame-pointer -MD 
-MF.depend.pci_host_generic
.o -MTpci_host_generic.o -mgeneral-regs-only -ffixed-x18 -ffreestanding
-fwrapv
-fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs
-Wstrict-pr
ototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-Wundef -Wno-
pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnosti
cs-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare
-Wno-error-e
mpty-body -Wno-error-parentheses-equality -Wno-error-unused-function
-Wno-error-
pointer-sign -Wno-error-shift-negative-value    -std=iso9899:1999
-Werror  /pics
/CrossBuild-12/src/sys/dev/pci/pci_host_generic.c
--- vchiq_kmod.o ---
/pics/CrossBuild-12/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_kmod.c:50:10
: fatal error: 'machine/fdt.h' file not found
#include <machine/fdt.h>
         ^
--- thunder_pcie_pem_fdt.o ---
ctfconvert -L VERSION -g thunder_pcie_pem_fdt.o
--- pci_host_generic_fdt.o ---
cc -target aarch64-unknown-freebsd12.0
--sysroot=/pics/Crochet-work/obj/arm64.aa
rch64/pics/CrossBuild-12/src/tmp -B/usr/local/aarch64-freebsd/bin/ -c -O
-pipe
-g -nostdinc  -I. -I/pics/CrossBuild-12/src/sys
-I/pics/CrossBuild-12/src/sys/co
ntrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h  -fno-
omit-frame-pointer -mno-omit-leaf-frame-pointer -MD 
-MF.depend.pci_host_generic
_fdt.o -MTpci_host_generic_fdt.o -mgeneral-regs-only -ffixed-x18
-ffreestanding
-fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls
-Wnested-externs -Ws
trict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual -Wund
ef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fd
iagnostics-show-option -Wno-unknown-pragmas
-Wno-error-tautological-compare -Wno
-error-empty-body -Wno-error-parentheses-equality
-Wno-error-unused-function -Wn
o-error-pointer-sign -Wno-error-shift-negative-value   
-std=iso9899:1999 -Werro
r  /pics/CrossBuild-12/src/sys/dev/pci/pci_host_generic_fdt.c
--- vchiq_core.o ---
/pics/CrossBuild-12/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.c:3823:
5: error: format specifies type 'unsigned long long' but the argument
has type '
uint64_t' (aka 'unsigned long') [-Werror,-Wformat]

Guidance?


-- 
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2993 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170210/f4f8c54d/attachment.bin>


More information about the freebsd-arm mailing list