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

Sheldon
  • 24

在命令行输入: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

回复
阅读 3.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏