下载ToolChain 代码: wget https://cndl.synology.cn/download/ToolChain/toolchain/7.2-63134/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-gcc1220_glibc236_x86_64-GPL.txz tar -Jxf epyc7002-gcc1220_glibc236_x86_64-GPL.txz 下载 Linux-5.10.x 官方内核源代码 代码: wget https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/7.2-64570/epyc7002/linux-5.10.x.txz tar -Jxf linux-5.10.x.txz 准备交叉编译 代码: export ARCH=x86_64 export CROSS_COMPILE=/home/parallels/synology/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- cd linux-5.10.x cp synology/synoconfigs/epyc7002 .config make oldconfig && make prepare && make scripts 编译单个模块 ⚠️重新编译前要清理目录否则编译出错 代码: make M=drivers/gpu/ clean make M=drivers/gpu/ CONFIG_DRM=m CONFIG_DRM_TTM=m CONFIG_DRM_TTM_HELPER=m CONFIG_DRM_VRAM_HELPER=m CONFIG_DRM_MIPI_DBI=m CONFIG_DRM_MIPI_DSI=m CONFIG_DRM_I915=m modules -j 12 V=s 安装模块 代码: sudo cp /volume1/Exchange/i915.ko /lib/modules/ sudo chmod 644 /lib/modules/i915.ko sudo insmod /lib/modules/i915.ko 错误:
试试将HDMI和DMA的功能也编译进去。 neither the required HDMI > (CONFIG_HDMI) or DMA kernel options can be built as modules.