I'm trying to compile the drivers to use a TBS 5922 (not SE) in Ubuntu on ARM64 architecture using the following instructions from the TBS Forum. Kernel version is '5.4.0-67-generic'
However on the "make -j4" step I come across the following error:
...
CC [M] /home/ste/media_build/v4l/nal-hevc.o
CC [M] /home/ste/media_build/v4l/aspeed-video.o
CC [M] /home/ste/media_build/v4l/cdns-csi2rx.o
CC [M] /home/ste/media_build/v4l/cdns-csi2tx.o
CC [M] /home/ste/media_build/v4l/cafe-driver.o
CC [M] /home/ste/media_build/v4l/mcam-core.o
CC [M] /home/ste/media_build/v4l/vpdma.o
CC [M] /home/ste/media_build/v4l/sc.o
CC [M] /home/ste/media_build/v4l/csc.o
CC [M] /home/ste/media_build/v4l/cal.o
CC [M] /home/ste/media_build/v4l/cal-camerarx.o
/home/ste/media_build/v4l/cal.c: In function 'cal_init_camerarx_regmap':
/home/ste/media_build/v4l/cal.c:917:11: error: implicit declaration of function 'syscon_regmap_lookup_by_phandle_args'; did you mean 'syscon_regmap_lookup_by_phandle'? [-Werror=implicit-function-declaration]
917 | syscon = syscon_regmap_lookup_by_phandle_args(np, "ti,camerrx-control",
| ^~~~~~~~
| syscon_regmap_lookup_by_phandle
/home/ste/media_build/v4l/cal.c:917:9: warning: assignment to 'struct regmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
917 | syscon = syscon_regmap_lookup_by_phandle_args(np, "ti,camerrx-control",
| ^
CC [M] /home/ste/media_build/v4l/cal-video.o
CC [M] /home/ste/media_build/v4l/coda-common.o
cc1: some warnings being treated as errors
make[3]: [scripts/Makefile.build:271: /home/ste/media_build/v4l/cal.o] Error 1
make[3]: Waiting for unfinished jobs....
make[2]: [Makefile:1760: /home/ste/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-67-generic'
make[1]: [Makefile:53: default] Error 2
make[1]: Leaving directory '/home/ste/media_build/v4l'
make: *** [Makefile:26: all] Error 2
Hi,
I'm trying to compile the drivers to use a TBS 5922 (not SE) in Ubuntu on ARM64 architecture using the following instructions from the TBS Forum. Kernel version is '5.4.0-67-generic'
mkdir tbsdriver cd tbsdriver git clone https://github.com/tbsdtv/media_build.git. git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media. cd media_build make dir DIR=../media make distclean make -j4 make install reboot
However on the "make -j4" step I come across the following error:
... CC [M] /home/ste/media_build/v4l/nal-hevc.o CC [M] /home/ste/media_build/v4l/aspeed-video.o CC [M] /home/ste/media_build/v4l/cdns-csi2rx.o CC [M] /home/ste/media_build/v4l/cdns-csi2tx.o CC [M] /home/ste/media_build/v4l/cafe-driver.o CC [M] /home/ste/media_build/v4l/mcam-core.o CC [M] /home/ste/media_build/v4l/vpdma.o CC [M] /home/ste/media_build/v4l/sc.o CC [M] /home/ste/media_build/v4l/csc.o CC [M] /home/ste/media_build/v4l/cal.o CC [M] /home/ste/media_build/v4l/cal-camerarx.o /home/ste/media_build/v4l/cal.c: In function 'cal_init_camerarx_regmap': /home/ste/media_build/v4l/cal.c:917:11: error: implicit declaration of function 'syscon_regmap_lookup_by_phandle_args'; did you mean 'syscon_regmap_lookup_by_phandle'? [-Werror=implicit-function-declaration] 917 | syscon = syscon_regmap_lookup_by_phandle_args(np, "ti,camerrx-control", | ^
~~~~~~~| syscon_regmap_lookup_by_phandle /home/ste/media_build/v4l/cal.c:917:9: warning: assignment to 'struct regmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 917 | syscon = syscon_regmap_lookup_by_phandle_args(np, "ti,camerrx-control", | ^ CC [M] /home/ste/media_build/v4l/cal-video.o CC [M] /home/ste/media_build/v4l/coda-common.o cc1: some warnings being treated as errors make[3]: [scripts/Makefile.build:271: /home/ste/media_build/v4l/cal.o] Error 1 make[3]: Waiting for unfinished jobs.... make[2]: [Makefile:1760: /home/ste/media_build/v4l] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-67-generic' make[1]: [Makefile:53: default] Error 2 make[1]: Leaving directory '/home/ste/media_build/v4l' make: *** [Makefile:26: all] Error 2Can anyone suggest anything? Thanks in advance.
Stephen