当前位置:   article > 正文

openEuler 20.03 LTS SP3系统 DF723 FT2000+ 标准版本4.19.90内核编译安装后不能启动故障 exiting boot services_exiting boot services and installing virtual addre

exiting boot services and installing virtual address map

标准版本内核编译过程

  1. wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.90.tar.gz
  2. tar -xf linux-4.19.90.tar.gz
  3. cd linux-4.19.90
  4. make defconfig
  5. make -j64
  6. make modules_install
  7. make install

故障现象

重启后,卡在 EFI stub: Exiting boot services and installing virtual address map...

故障分析

经过实验,已知采用系统自带的config文件(config-4.19.90-2112.8.0.0131.oe1.aarch64)可以正常引导启动。对比config-4.19.90-2112.8.0.0131.oe1.aarch64 与 make defconfig 生成出来的.config文件,发现关键差异

实验1:添加一项:CONFIG_ARCH_PHYTIUM=y

测试重新准备干净的源码,make defconfig后,手动在.config配置

CONFIG_ARCH_PHYTIUM=y

重新编译,安装有以下报错

实验结果(失败)

仍然卡在 EFI stub: Exiting boot services and installing virtual address map...

原版的代码并没有CONFIG_ARCH_PHYTIUM的定义及应用

并且make之后,编译器自动去掉了这个无效的配置

实验2:采用系统默认config,make以后对比差异

  1. [root@localhost yeqiang]# rm linux-4.19.90 -rf
  2. [root@localhost yeqiang]# tar -xf linux-4.19.90.tar.gz
  3. [root@localhost yeqiang]# cp /boot/config-4.19.90-2112.8.0.0131.oe1.aarch64 linux-4.19.90/.config
  4. [root@localhost yeqiang]# cd linux-4.19.90
  5. [root@localhost yeqiang]# make -j64

差异较多,重点筛选ARM64相关差异,调整后,与原来的defconfig差异如下

  1. [root@localhost linux-4.19.90]# diff ../4.19.90-defconfig.config .config
  2. 160d159
  3. < CONFIG_HAVE_UID16=y
  4. 164d162
  5. < CONFIG_UID16=y
  6. 213,217c211,215
  7. < CONFIG_ARM64_PAGE_SHIFT=12
  8. < CONFIG_ARM64_CONT_SHIFT=4
  9. < CONFIG_ARCH_MMAP_RND_BITS_MIN=18
  10. < CONFIG_ARCH_MMAP_RND_BITS_MAX=33
  11. < CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
  12. ---
  13. > CONFIG_ARM64_PAGE_SHIFT=16
  14. > CONFIG_ARM64_CONT_SHIFT=5
  15. > CONFIG_ARCH_MMAP_RND_BITS_MIN=14
  16. > CONFIG_ARCH_MMAP_RND_BITS_MAX=29
  17. > CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=7
  18. 234c232
  19. < CONFIG_PGTABLE_LEVELS=4
  20. ---
  21. > CONFIG_PGTABLE_LEVELS=3
  22. 372d369
  23. < CONFIG_ARM64_ERRATUM_845719=y
  24. 387c384
  25. < CONFIG_ARM64_4K_PAGES=y
  26. ---
  27. > # CONFIG_ARM64_4K_PAGES is not set
  28. 389,390c386,387
  29. < # CONFIG_ARM64_64K_PAGES is not set
  30. < # CONFIG_ARM64_VA_BITS_39 is not set
  31. ---
  32. > CONFIG_ARM64_64K_PAGES=y
  33. > # CONFIG_ARM64_VA_BITS_42 is not set
  34. 393a391
  35. > # CONFIG_ARM64_PA_BITS_52 is not set
  36. 398c396
  37. < CONFIG_NR_CPUS=64
  38. ---
  39. > CONFIG_NR_CPUS=1024
  40. 401c399
  41. < CONFIG_NODES_SHIFT=2
  42. ---
  43. > CONFIG_NODES_SHIFT=4
  44. 420d417
  45. < CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
  46. 429c426
  47. < CONFIG_FORCE_MAX_ZONEORDER=11
  48. ---
  49. > CONFIG_FORCE_MAX_ZONEORDER=14
  50. 434d430
  51. < # CONFIG_ARMV8_DEPRECATED is not set
  52. 458,459c454,455
  53. < # CONFIG_ARM64_ACPI_PARKING_PROTOCOL is not set
  54. < CONFIG_CMDLINE=""
  55. ---
  56. > CONFIG_ARM64_ACPI_PARKING_PROTOCOL=y
  57. > CONFIG_CMDLINE="console=ttyAMA0"
  58. 464,465d459
  59. < CONFIG_COMPAT=y
  60. < CONFIG_SYSVIPC_COMPAT=y
  61. 581d574
  62. < CONFIG_MESON_SM=y
  63. 714,716c707
  64. < CONFIG_ARCH_MMAP_RND_BITS=18
  65. < CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
  66. < CONFIG_ARCH_MMAP_RND_COMPAT_BITS=11
  67. ---
  68. > CONFIG_ARCH_MMAP_RND_BITS=14
  69. 718,720d708
  70. < CONFIG_OLD_SIGSUSPEND3=y
  71. < CONFIG_COMPAT_OLD_SIGACTION=y
  72. < CONFIG_COMPAT_32BIT_TIME=y
  73. 768d755
  74. < CONFIG_BLOCK_COMPAT=y
  75. 804d790
  76. < CONFIG_COMPAT_BINFMT_ELF=y
  77. 2261d2246
  78. < # CONFIG_VMXNET3 is not set
  79. 5925d5909
  80. < CONFIG_MESON_EFUSE=m
  81. 6190d6173
  82. < CONFIG_KEYS_COMPAT=y
  83. 6430d6412
  84. < CONFIG_AUDIT_COMPAT_GENERIC=y

重新基于defconfig,操作上述差异修改

实验结果(失败)

仍然卡在 EFI stub: Exiting boot services and installing virtual address map...

说明关键配置没找到或者不全,后续有空再继续。

简单的解决方案

方案一:使用openEuler自带的源码及内核配置编译(稳妥)

参考:https://blog.csdn.net/hknaruto/article/details/129360777

方案二:基于官网4.19.90版本+系统自带的内核配置编译

注意:openEuler 20.03版本内核与标准版本有较大差异,部分配置是无效的,如CONFIG_ARCH_PHYTIUM

参考过程

  1. wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.90.tar.gz
  2. tar -xf linux-4.19.90.tar.gz
  3. cd linux-4.19.90
  4. cp /boot/config-4.19.90-2112.8.0.0131.oe1.aarch64 .config
  5. make -j64
  6. make modules_install
  7. make install

效果

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/67286?site
推荐阅读
相关标签
  

闽ICP备14008679号