编译linux内核,ubuntu,x86的环境出现warning,然后就出现无法启动ubuntu

发布于 2022-09-07 12:12:53 字数 6298 浏览 22 评论 0

在命令行输入:make ARCH=x86 modules_install

      INSTALL fs/ext3/ext3.ko
      INSTALL fs/jbd/jbd.ko
      INSTALL kernel/configs.ko
      INSTALL sound/core/oss/snd-pcm-oss.ko
      INSTALL sound/core/snd-page-alloc.ko
      INSTALL sound/core/snd-pcm.ko
      INSTALL sound/core/snd-timer.ko
      INSTALL sound/core/snd.ko
      INSTALL ubuntu/fsam7400/fsam7400.ko
      DEPMOD  3.2.79
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_enable_device
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_enable_msi_block
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol __pci_register_driver
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_disable_msi
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol _raw_spin_lock_irqsave
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol _raw_spin_lock
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol kmem_cache_alloc_trace
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_unregister_driver
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol __stack_chk_fail
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol _raw_spin_unlock_bh
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol kmap
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol dma_alloc_from_coherent
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol dma_release_from_coherent
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol mcount
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol copy_to_user
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol kunmap
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol _raw_spin_unlock_irqrestore
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_enable_msix
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_set_master
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol _raw_spin_lock_bh
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_disable_msix
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pci_disable_device
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol pv_lock_ops
    WARNING: /lib/modules/3.2.79/misc/vmci.ko needs unknown symbol kmalloc_caches
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol _raw_spin_lock
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol kmem_cache_alloc_trace
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol _raw_spin_unlock_bh
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol kmap
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol __kunmap_atomic
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol mcount
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol kunmap
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol _raw_spin_lock_bh
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol pv_lock_ops
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol kmalloc_caches
    WARNING: /lib/modules/3.2.79/misc/vmhgfs.ko needs unknown symbol __kmap_atomic
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol security_sock_graft
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol _raw_write_lock_bh
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol _raw_write_unlock_bh
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol _raw_spin_lock
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol kmem_cache_alloc_trace
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol __stack_chk_fail
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol _raw_spin_unlock_bh
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol mcount
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol copy_to_user
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol _raw_spin_lock_bh
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol pv_lock_ops
    WARNING: /lib/modules/3.2.79/misc/vsock.ko needs unknown symbol kmalloc_caches
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pci_enable_device
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pci_choose_state
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol __pci_register_driver
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pci_set_power_state
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol _raw_spin_lock_irqsave
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol _raw_spin_lock
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pci_unregister_driver
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol dma_alloc_from_coherent
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol dma_release_from_coherent
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol mcount
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol _raw_spin_unlock_irqrestore
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol del_timer_sync
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pci_set_master
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pci_disable_device
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol page_address
    WARNING: /lib/modules/3.2.79/misc/vmxnet.ko needs unknown symbol pv_lock_ops
    

接着执行make install,完成内核的安装,重启后,就会启动失败,跳出:

    Gave up waiting for root device. Common problems: 
-boot args (cat.proc/cmdline) 
-check root delay=(did the system wait long enough?) 
-check root=(did teh system wait for the right device?) 
-miss modules (cat/proc/modules;ls/dev) 
ALERT! /dev/disk/by-uuid/acc3414d-926c-453c-b458-cf47088d77d2 does not exist.dropping to a shell! 
busybox v1.10.2(ubuntu 1:1.10.2-lubuntu6)bulit-in shell (ash). 

enter 'help' for a list of built-in commands

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文