02-23-2018, 07:56 AM
(02-19-2018, 08:55 AM)xalius Wrote: How did you change the .config exactly? Can you upload it to pastebin? Also upload the output of your kernel build...
Edit: I just saw that linux-lima is a mainline 4.13 source tree, so you better take the .config from ayufan's mainline kernel ( https://github.com/ayufan-rock64/linux-m..._defconfig), but 4.13.x is also too old for RK3328, the HDMI drivers you need for video output are probably arriving in 4.17.x or 4.18.x... so you need to forward port the linux-lima patches, from what I read in the issues in the git repo starting from " f0fddeaf1b7df4f1f7404155ad8b03a5190e5550 : drm/lima: init commit for adding lima driver"
[url=https://github.com/yuq][/url]
When attempting to compile a DRM driver and a LIMA driver in "rock64", the following error occurred.
How can you solve it?
Please cooperate with me.
rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ sudo make -C
/lib/modules/4.4.77-rockchip-ayufan-136/build M=$PWD
CONFIG_ARCH_ROCKCHIP CONFIG_DRM
[sudo] password for rock64:
make: Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'
make: *** No rule to make target 'CONFIG_ARCH_ROCKCHIP'. Stop.
make: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'
rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ sudo make -C
/lib/modules/4.4.77-rockchip-ayufan-136/build M=$PWD CONFIG_DRMmake:
Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'
make: *** No rule to make target 'CONFIG_DRM'. Stop.
make: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'
rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ sudo make -C
/lib/modules/4.4.77-rockchip-ayufan-136/build M=$PWD
CONFIG_ARCH_ROCKCHIP=m CONFIG_DRM=m
make: Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'
CC /home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.o
/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.c:39:10:
fatal error: drm/drm_encoder.h: No such file or directory
#include <drm/drm_encoder.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:258: recipe for target
'/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.o'
failed
make[1]: *** [/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.o]
Error 1
Makefile:1424: recipe for target
'_module_/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm' failed
make: *** [_module_/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm] Error 2
make: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'
rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$