yunsur / phicomm-n1

Armian for Phicomm N1
GNU General Public License v2.0
193 stars 75 forks source link

dev版本编译出错 #11

Closed carrot0219 closed 2 years ago

carrot0219 commented 2 years ago
    == kernel ==
drivers/video/fbdev/core/fbcon.c: In function ‘fbcon_scrolldelta’:
drivers/video/fbdev/core/fbcon.c:2969:14: error: ‘struct fbcon_display’ has no member named ‘scrollmode’
 2969 |  switch (disp->scrollmode) {
      |              ^~
make[4]: *** [scripts/Makefile.build:277:drivers/video/fbdev/core/fbcon.o] 错误 1
make[3]: *** [scripts/Makefile.build:540:drivers/video/fbdev/core] 错误 2
make[2]: *** [scripts/Makefile.build:540:drivers/video/fbdev] 错误 2
make[1]: *** [scripts/Makefile.build:540:drivers/video] 错误 2
make: *** [Makefile:1868:drivers] 错误 2
make: *** 正在等待未完成的任务....

最新dev版本编译出错,大佬指点下问题所在

young40 commented 2 years ago

我把相关的模块都禁用了. 貌似是和显示相关的. 编译后, HDMI无显示了.

暂时也用不到hdmi显示, 我是服务器, 4k屏幕下, 字小得眼疼.

Linux phicomm-n1 5.15.27-arm-64 #21.11.0 SMP PREEMPT Wed Mar 9 15:40:52 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

young40 commented 2 years ago

config/kernel/linux-arm-64-current.config

下面改了一些. CONFIG_DRM_FBDEV_EMULATION=n FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION=n

CONFIG_DRM_FBDEV_EMULATION=y

回头再研究研究.

young40 commented 2 years ago

不用上面的修改:

注释掉下面几行: lib/compilation-prepare.sh

`

if linux-version compare "${version}" ge 5.10; then

 # process_patch_file "${SRC}/patch/misc/bootsplash-5.10.y-0003-Revert-fbcon-remove-soft-scrollback-code.patch" "applying"

else

     # process_patch_file "${SRC}/patch/misc/bootsplash-5.8.10-0003-Revert-fbcon-remove-soft-scrollback-code.patch" "applying"
 # fi

`

估计是一个和版本相关的修改, 导致无法编译.

carrot0219 commented 2 years ago

好的 感谢

yunsur commented 2 years ago

1、dev 分支已经同步 armbian/build 的 22.02。 2、修复不能了编译的问题。 3、已在最新5.15.28内核验证过了。