Date: Fri, 10 Feb 2017 16:06:12 -0600 From: Karl Denninger <karl@denninger.net> To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Pi3 vchiq driver? Message-ID: <f5ecf842-8151-bb67-6056-f73f4c302cd4@denninger.net>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
[-- Attachment #2 --]
0 *H
010
`He 0 *H
\0X0@=0
*H
010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA0
161218194535Z
211217194535Z0W10 UUS10UFlorida10U
Cuda Systems LLC10Ukarl@denninger.net0"0
*H
0
͍fd`1ie6";fSz`5¹/?{=Ӵowjħ_fnӴMG\ҢҖ4ib}>@mJo&mM;
Q9U cj]p퐆W.2E=
^¢tzĄ'5i7_`~#dY
`]R]N%R}EXzqV@[oN T>5AwYˡA"\v&YG]+($p:M,T?=mJkMљg*ym
L!J[./d?W^LysD'1
+V'~{-SSX= q-f=%&V<m4BeSet|
l2m 6iO{wv
+aHXˈ5=~é*C!?uJr3tb'3`Oe)üLxt&3N526llU
.|Cp[l? 007++0)0'+0http://cudasystems.net:88880 U0 0 `HB0U0, `HB
OpenSSL Generated Certificate0U/Zi
0GhG0U#0$q}ݽʒm50U0karl@denninger.net0
*H
b%X%gwq
Ɂэr K[DMJ35W6
sz8d|qB2Cyw2PbV}
â[!W{HD7oD.TZ'w6~g( -,]R8P{*[f<1=7jGj9铚~3f2AʺN k~@vz^j(>ͺyh2y{/9}4.45#S|<fW!.,Bss*Q+h=}l@ "q "M&6J5*,G {hɫjbNgǠ.ЃXȶ4$O.5evHlZba!4eE!x|Za1nZ5TuPvW|#G+ DZpI7S'n0 haGa@vZ e|]Cu+))vRyY100010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA=0
`He M0 *H
1 *H
0 *H
1
170210220612Z0O *H
1B@gn%?un,`rp'~kv[GdJ2p4iTno<$<5(i60l *H
1_0]0 `He*0 `He0
*H
0*H
0
*H
@0+0
*H
(0 +710010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA=0*H
1010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA=0
*H
+ `gXy<0A~s
ùwk_P"F%)f}i6Z
R
aBk#b5'VNme#_W1:'N3J%ZͧhQ#E<*1G" M]=`ьdˇ-ͭ3U֫:Ef]n;$T+T`
R.zҺy\D+89B5GC)1yt@[Hfbݐ/h7B'P8|p
iA},BS+' !
;Gnj7JL%*{*NL@C~KR[Sjef|,L
yA1TJF(vL$mQm;g|fXڮ0r)?lD(^KPM۵K#̹K/&iGc
T`{I.ǹU<-'7A[8Ǜ2\ʶWq+7k9El0_
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f5ecf842-8151-bb67-6056-f73f4c302cd4>
