LFS7.3 安装过程的问题

   

        原文地址:http://blog.csdn.net/cokychen/article/details/9105723


        偶然间在网上看到有LFS(Linux from scratch)这个项目,于是就去测试安装了一下,经过近一个星期的努力,总算完成了。整体上还算比较顺利,现将安装过程中遇到的一些问题记录如下:

安装环境

        Host Manchine: VMware Workstation9.0 + Ubuntu12.04

        LFS: LFS-BOOK-7.3

        LFS官网是有提供LiveCD来安装作为host system的, 但是目前只能作为安装LFS7.0版本之前使用。经测试Ubuntu12.04作为host system来安装LFS7.3,目前为止是可以的。

安装步骤

        请参考LFS-BOOK-7.3,按照书上的步骤一步一步做下来就可以,由于使用的是虚拟机,这个安装过程耗时较长!

安装过程中出现的问题

  •   5.13. Check-0.9.9 build error

        现象:在安装到这一步时,按照书上的操作,会出现类似下面的编译错误:

[cpp]  view plain copy
  1. note: 'pthread_create <at>  <at> GLIBC_2.2.5' is defined in DSO /tools/lib/libpthread.so.0 so try adding it to the linker command line  
  2. /tools/lib/libpthread.so.0: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status  
  3. make[3]: *** [check_thread_stress] Error 1  
  4. make[3]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'  
  5. make[2]: *** [all-recursive] Error 1  
  6. make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9'  
  7. make[1]: *** [all] Error 2  
  8. make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'  

        解决方法: 按如下重新配置后再编译

[cpp]  view plain copy
  1. #./configure --prefix=/tools LDFLAGS=-pthread  
  2. #make  
  •   安装完毕,重启系统,准备进入LFS时,Mount FS error

        现象:系统通过grub引导,在初始化Linux kernel时,出现以下错误:

[cpp]  view plain copy
  1. VFS:Cannot open root device "sda" or unknow-block(0,0)  
  2. Please append a correct "root=" boot option  
  3. kernel panic:VFS:Unable to mount root fs on unknown-block(0,0)  


       解决方法:这估计是VMWare的问题,修改虚拟机目录下的“.vmx” 文件,如果 scsi0.virtualDev = "lsilogic", 则改为scsi0.virtualDev = "buslogic", 同时kernel 做如下配置:

[cpp]  view plain copy
  1. Linux Kernel Configuration  
  2.     -> Device Drivers  
  3.        -> SCSI device support  
  4.             -> SCSI low-level drivers  
  5.                -> BusLogic SCSI support  


这样重新编译启动后即可。

  •  无法找到网卡

        现象:进入登录界面前会提示类似以下信息:           

[cpp]  view plain copy
  1. Interface eth0 doesn't exist  

        解决方法:重新配置kernel, 支持VMWare虚拟网卡,kernel configure 如下:

[cpp]  view plain copy
  1. Linux Kernel Configuration  
  2.     -> Device Drivers  
  3.        -> Network device support  
  4.         -> Ethernet driver support  
  5.           -> AMD PCnet32 PCI support  

总结

解决以上的问题,就可以登录到自己的LFS中,体验一下使用自己编译的Linux系统的快感。目前的这个LFS还是比较简陋的,想完善自己的系统,可以参考LFS官网的其他项目!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值