于 2013年06月29日 14:54, Niels Terp 写道: > > -----Oprindelig meddelelse----- > Fra: [email protected] > [mailto:[email protected]] På vegne af Chen Qi > Sendt: 29. juni 2013 06:51 > Til: [email protected] > Emne: [lfs-support] LFS-7.3: Kernel hang problem > > Hi all, > > I've followed all instructions in the LFS stable 7.3 book, and made a USB > containing my LFS system. > > As I don't know exactly which drivers and modules should be compiled into my > LFS kernel to make it work on my DELL laptop, I made a 'allyesconfig' and > compiled the kernel. > > I thought 'make allyesconfig' would make the kernel work. > However, when it started up, the kernel was loaded but hung at 'TCP > established hash table entries'. > > A previous message that might appear to be an error was 'ACPI png driver > unregistered'. > > Can somebody give me a hand? > > Thanks in advance. > > //Chen Qi > > -- > Allyesconfig will give you a kernel wich is very "fat" and slow to load. I > suggest the opposite approach: For a beginning, try "make defconfig" and > then enable "Maintain a devtmpfs filesystem to mount at /dev". This single > setting is normally enough to make your LFS boot, from there you find out > what you are missing and install this. > > Throughout BLFS the book gives you advice on which kernel settings to apply, > and then recompile the kernel. > > Another possibility is that you can use the configuration from your host > system, if you have the configuration file for that (will normaly be found > in /boot). Run make mrproper, copy the configuration file to your linux > source folder, rename it to .config and run make oldconfig. That way, > anything that works in your host system should also work in LFS. > > Good luck ! > > Niels > Thanks for your reply.
I tried both approaches. No matter I used the 'defconfig + devtmpfs' approach or I used the 'host config file' approach, I always met the following error. ''' VFS: Cannot open root device "sdb1" or unknown-block(0,0) ''' I figured maybe I made the whole LFS system on a USB, and thus the rootfs on the USB cannot be mounted when the kenel starts up. But it's kind of strange. As the grub information is also on the USB (/dev/sdb1). The grub.cfg is under /mnt/lfs/boot/grub while /mnt/lfs is a mount point for /dev/sdb1. So if the rootfs cannot be mounted, how the system knows the information in the grub.cfg? I googled a little, the information indicated that some pci drivers might be missing in my kernel. And they suggested using 'lspci' to examine which driver to compiled into the kernel. However, the whole approach to associate the output of the 'lspci' command to the corresponding kernel config items seems to be a *really* easy thing that they don't say anything about it ... To conclue, I have basically two questions here: 1. Which modules/drivers are essential to make a rootfs on a USB media mounted correctly when the kernel starts up? 2. How could I know which kernel config items to enable from the output of 'lspci'? Any resource on documents on this area? Best Regards, Chen Qi To provide some more details, I pasted the output from 'lspci' and 'lsmod' below. $ lspci 00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Device 0166 (rev 09) 00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04) 00:1a.0 USB Controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4) 00:1c.3 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 4 (rev c4) 00:1c.5 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 6 (rev c4) 00:1d.0 USB Controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA AHCI Controller (rev 04) 00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04) 02:00.0 3D controller: nVidia Corporation Device 1140 (rev a1) 07:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01) 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07) $ lsmod Module Size Used by parport_pc 36784 0 ppdev 17030 0 arc4 12529 2 ath9k 121377 0 mac80211 452164 1 ath9k snd_hda_codec_hdmi 31706 1 nouveau 722417 0 snd_hda_intel 32910 2 snd_hda_codec 103933 2 snd_hda_codec_hdmi,snd_hda_intel ath9k_common 13839 1 ath9k bnep 18294 2 snd_hwdep 13563 1 snd_hda_codec pci_stub 12622 1 vboxpci 23200 0 vboxnetadp 13382 0 vboxnetflt 23441 0 vboxdrv 282548 3 vboxpci,vboxnetadp,vboxnetflt ath9k_hw 304879 2 ath9k,ath9k_common snd_pcm 95859 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec snd_seq_midi 13324 0 kvm_intel 60830 0 kvm 375381 1 kvm_intel snd_rawmidi 30368 1 snd_seq_midi i915 565127 2 snd_seq_midi_event 14899 1 snd_seq_midi ath 23780 2 ath9k,ath9k_hw snd_seq 61520 2 snd_seq_midi,snd_seq_midi_event cfg80211 198140 3 ath9k,mac80211,ath ums_realtek 13111 0 usb_storage 53295 2 ums_realtek snd_timer 29533 2 snd_pcm,snd_seq snd_seq_device 14497 3 snd_seq_midi,snd_rawmidi,snd_seq nfsd 318936 13 nfs 334019 0 lockd 85235 2 nfsd,nfs fscache 61069 1 nfs auth_rpcgss 52923 2 nfsd,nfs nfs_acl 12837 2 nfsd,nfs binfmt_misc 17431 1 sunrpc 238645 19 nfsd,nfs,lockd,auth_rpcgss,nfs_acl snd 67877 13 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device uvcvideo 71531 0 rfcomm 47004 8 ttm 76163 1 nouveau soundcore 12680 1 snd snd_page_alloc 18484 2 snd_hda_intel,snd_pcm videodev 92609 1 uvcvideo v4l2_compat_ioctl32 16692 1 videodev drm_kms_helper 42205 2 nouveau,i915 drm 235135 5 nouveau,i915,ttm,drm_kms_helper i2c_algo_bit 13272 2 nouveau,i915 dell_wmi 12681 0 sparse_keymap 13890 1 dell_wmi dell_laptop 13831 0 dcdbas 14438 1 dell_laptop psmouse 72891 0 mei 40611 0 mxm_wmi 12979 1 nouveau btusb 18600 2 bluetooth 159177 23 bnep,rfcomm,btusb serio_raw 13166 0 wmi 19070 2 dell_wmi,mxm_wmi video 19337 2 nouveau,i915 lp 17759 0 parport 46354 3 parport_pc,ppdev,lp usbhid 46738 0 hid 95027 1 usbhid ahci 25854 1 libahci 26659 1 ahci r8169 56504 0 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
