weixin_43711766 2021-04-26 14:24 采纳率: 0%
浏览 35

openBMC开发中配置kernel后报错too large

It shows as follow:

using linux-kernel default .config can compile well, but I want to add nfs support and some other drivers, after do sth in menuconfig, compile obmc-phosphor-image,it shows the error,how to deal with it?? I need your help!!!

Best wishes 

  • 写回答

1条回答 默认 最新

  • 码农阿豪@新空间代码工作室 Java领域优质创作者 2024-07-14 20:34
    关注
    让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
    To add NFS support and other drivers to the Linux kernel configuration and resolve any compilation errors, you can follow these steps:
    1. First, make sure you have the necessary development tools and dependencies installed on your system. This includes gcc, make, and the headers for your kernel version.
    2. Enter the Linux kernel source directory and run make menuconfig to configure the kernel. Navigate to the desired options under "File systems" for NFS support and "Device drivers" for additional drivers.
    3. After selecting the required options, save your configuration and exit the menuconfig interface.
    4. Run the following commands to compile the kernel image:
    make
    make modules_install
    
    1. If you encounter any errors during compilation, carefully read the error messages to identify the issue. Common errors may include missing dependencies or incompatible configurations.
    2. Resolve any compilation errors by installing missing dependencies, adjusting configurations, or seeking help from the Linux kernel community or forums.
    3. Once the compilation is successful, install the new kernel image and reboot your system.
    4. Verify that NFS support and the additional drivers are working as expected by testing the functionality. Here is an example of a compilation error when adding NFS support:
    ERROR: "rpc_init_wait_queue" [fs/nfs/nfs.ko] undefined!
    

    In this case, the error indicates that the symbol "rpc_init_wait_queue" is undefined. To resolve this error, you may need to enable the necessary kernel configuration options related to RPC services. By following these steps and carefully addressing any compilation errors, you should be able to add NFS support and other drivers to the Linux kernel successfully. Good luck with your kernel customization!

    评论

报告相同问题?

悬赏问题

  • ¥15 校内二手商品转让网站
  • ¥20 高德地图聚合图层MarkerCluster聚合多个点,但是ClusterData只有其中部分数据,原因应该是有经纬度重合的地方点,现在我想让ClusterData显示所有点的信息,如何实现?
  • ¥100 求Web版SPC控制图程序包调式
  • ¥20 指导如何跑通以下两个Github代码
  • ¥15 大家知道这个后备文件怎么删吗,为啥这些文件我只看到一份,没有后备呀
  • ¥15 C++为什么这个代码没报错运行不出来啊
  • ¥15 一道ban了很多东西的pyjail题
  • ¥15 关于#r语言#的问题:如何将生成的四幅图排在一起,且对变量的赋值进行更改,让组合的图漂亮、美观@(相关搜索:森林图)
  • ¥15 C++识别堆叠物体异常
  • ¥15 微软硬件驱动认证账号申请