Closed hartontw closed 1 year ago
Thanks for the response.
I've repeated the process described with the same result.
I've checked first v4l/versions.txt
.
Hardware: RockPro64
Arch: aarch64
OS: Armbian 23.8 Bookworm
Kernel: 6.1.50-current-rockchip64
Same workaround, same errors.
Kernel: 5.15.93-rockchip64
Error:
/root/media_build/v4l/adv748x-core.c:851:19: error: initialization of 'int (*)(struct i2c_client *)' from incompatible pointer type 'void (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
851 | .remove = adv748x_remove,
| ^~~~~~~~~~~~~~
I've found the problem and the solution. Tomorrow I will do a Pull Request with a better solution.
For now this is a quick fix:
apt install gcc make git patchutils libproc-processtable-perl linux-headers-current-rockchip64
git clone https://github.com/tbsdtv/media_build.git
git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
Edit ./media/drivers/media/platform/verisilicon/rockchip_av1_filmgrain.c
commenting lines 195-198
:
//static inline s32 clamp(s32 value, s32 low, s32 high)
//{
// return value < low ? low : (value > high ? high : value);
//}
cd media_build
make dir DIR=../media
make allyesconfig
sed -i -r 's/(^CONFIG.*_RC.*=)./\1n/g' v4l/.config
sed -i -r 's/(^CONFIG.*_IR.*=)./\1n/g' v4l/.config
make -j4
make install
reboot
Hello,
I'm following the guide in the wiki. Probably I'm doing something wrong but I'm not able to determine what.
Hardware:
RockPro64
Arch:aarch64
OS:DietPi v8.21.1 (Bookworm)
Kernel:6.1.50-current-rockchip64
Workaround (fresh install):
Errors:
Log Error
```shell make -C /home/drivers/media_build/v4l make[1]: Entering directory '/home/drivers/media_build/v4l' make -C firmware prep creating symbolic links... make[2]: Entering directory '/home/drivers/media_build/v4l/firmware' make[2]: Nothing to be done for 'prep'. make[2]: Leaving directory '/home/drivers/media_build/v4l/firmware' make -C firmware make[2]: Entering directory '/home/drivers/media_build/v4l/firmware' make[2]: Nothing to be done for 'default'. make[2]: Leaving directory '/home/drivers/media_build/v4l/firmware' Kernel build directory is /lib/modules/6.1.50-current-rockchip64/build make -C ../linux apply_patches make[2]: Entering directory '/home/drivers/media_build/linux' Syncing with dir ../../media Patches for 6.1.50-current-rockchip64 already applied. make[2]: Leaving directory '/home/drivers/media_build/linux' make -C /lib/modules/6.1.50-current-rockchip64/build M=/home/drivers/media_build/v4l modules make[2]: Entering directory '/usr/src/linux-headers-6.1.50-current-rockchip64' CC [M] /home/drivers/media_build/v4l/rockchip_av1_filmgrain.o CC [M] /home/drivers/media_build/v4l/hantro_h264.o CC [M] /home/drivers/media_build/v4l/hantro_hevc.o CC [M] /home/drivers/media_build/v4l/hantro_mpeg2.o In file included from