LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1143|回复: 9

内核编译问题+2006.0安装心得

[复制链接]
发表于 2006-3-5 16:33:34 | 显示全部楼层 |阅读模式
不明白为什么这次装2005.1,内核死活也弄不好.
问题1:我昨天emerge 2.6.15-r5,然后编译了N次都不成功.刚才emerge了2.6.15-r7的内核,问如何用emerge删掉以前的内核(内核是用genkernel编译的,并且是安装过,但安装不成功.在/boot下可以看到内核,但是没有cram的那个.)
问题2:一下我genkernel的日志.不知道什么问题.帮我看看.说找不到klibc的tarball
[php]
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map  2.6.15-gentoo-r1; fi
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.15-gentoo-r1
* Gentoo Linux Genkernel; Version 3.3.10
* Running with options: all

* ERROR: Could not find klibc tarball:
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
[/php]
发表于 2006-3-5 16:38:29 | 显示全部楼层
为啥不自己手动编译呢?这个不用 emerge 的东西也可以了。
klibc是一个小型的工具箱,一般用在 initramfs 里边的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-5 16:41:36 | 显示全部楼层
initramfs
对就是它.用genkernel编译完之后没有它.并且它说找不到klic.
自己编译内核我想让他支持fb但是老出错,想直接用genkernel将就将就.可是还说不行.
我emerge klic 之后再genkernel all还是说找不到klibc找不到
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-5 21:13:24 | 显示全部楼层
2006 Installer error
  1. GLI: March 05 2006 20:47:16 - Setting root password.
  2. GLI: March 05 2006 20:47:16 - Livecd root password set.
  3. GLI: March 05 2006 20:47:16 - Portmap started.
  4. GLI: March 05 2006 20:47:16 - Completed pre_install steps
  5. GLI: March 05 2006 21:10:25 - partitioning: Processing /dev/sda...
  6. GLI: March 05 2006 21:10:25 -   Partition 1 has origminor 1...saving start sector 63 and end sector 20482874
  7. GLI: March 05 2006 21:10:25 -   Partition 4 has origminor 4...saving start sector 82558035 and end sector 312576704
  8. GLI: March 05 2006 21:10:25 -   Partition 6 has origminor 6...saving start sector 84614418 and end sector 312576704
  9. GLI: March 05 2006 21:10:25 -   Deleting old minor 1 to be recreated later
  10. GLI: March 05 2006 21:10:25 -   Deleting old minor 6 to be recreated later
  11. GLI: March 05 2006 21:10:25 -   Deleting extended partition with minor 4
  12. GLI: March 05 2006 21:10:25 - Partitioning: Second pass...
  13. GLI: March 05 2006 21:10:25 - Partitioning: Third pass....creating partitions
  14. GLI: March 05 2006 21:10:25 -   Drive has 312581808 sectors
  15. GLI: March 05 2006 21:10:25 -   Partition 1 has 10001MB
  16. GLI: March 05 2006 21:10:25 -     Old start sector 63 retrieved
  17. GLI: March 05 2006 21:10:25 -     Retrieved start sector is not the same as the calculated next start sector
  18. GLI: March 05 2006 21:10:25 -     Old end sector 20482874 retrieved
  19. GLI: March 05 2006 21:10:25 -   Adding primary partition 1 from 63 to 20482874
  20. GLI: March 05 2006 21:10:25 -   Partition 2 has 30310MB
  21. GLI: March 05 2006 21:10:25 -     Start sector calculated to be 20482875
  22. GLI: March 05 2006 21:10:25 -     End sector calculated to be 82557755
  23. GLI: March 05 2006 21:10:25 -   Adding primary partition 2 from 20482875 to 82557755
  24. GLI: March 05 2006 21:10:26 -   Formatting partition 2 as ext3 with: mkfs.ext3  /dev/sda2
  25. GLI: March 05 2006 21:10:40 -   Partition 4 has 112313MB
  26. GLI: March 05 2006 21:10:40 -     Old start sector 82558035 retrieved
  27. GLI: March 05 2006 21:10:40 -     Retrieved start sector is not the same as the calculated next start sector
  28. GLI: March 05 2006 21:10:40 -     Old end sector 312576704 retrieved
  29. GLI: March 05 2006 21:10:40 -   Adding extended partition 4 from 82558035 to 312576704
  30. GLI: March 05 2006 21:10:40 - This is a bad thing. An exception occured outside of the normal install errors. The error was: 'partition not found'
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-5 23:13:13 | 显示全部楼层
  1. GLI: March 05 2006 21:36:06 - Setting root password.
  2. GLI: March 05 2006 21:36:06 - Livecd root password set.
  3. GLI: March 05 2006 21:36:07 - Portmap started.
  4. GLI: March 05 2006 21:36:07 - Completed pre_install steps
  5. GLI: March 05 2006 21:37:19 - partitioning: Processing /dev/sda...
  6. GLI: March 05 2006 21:37:19 -   Partition 1 has origminor 1...saving start sector 63 and end sector 20482874
  7. GLI: March 05 2006 21:37:19 -   Deleting old minor 1 to be recreated later
  8. GLI: March 05 2006 21:37:19 - Partitioning: Second pass...
  9. GLI: March 05 2006 21:37:19 - Partitioning: Third pass....creating partitions
  10. GLI: March 05 2006 21:37:19 -   Drive has 312581808 sectors
  11. GLI: March 05 2006 21:37:19 -   Partition 1 has 10001MB
  12. GLI: March 05 2006 21:37:19 -     Old start sector 63 retrieved
  13. GLI: March 05 2006 21:37:19 -     Retrieved start sector is not the same as the calculated next start sector
  14. GLI: March 05 2006 21:37:19 -     Old end sector 20482874 retrieved
  15. GLI: March 05 2006 21:37:19 -   Adding primary partition 1 from 63 to 20482874
  16. GLI: March 05 2006 21:37:19 -   Partition 2 has 30000MB
  17. GLI: March 05 2006 21:37:19 -     Start sector calculated to be 20482875
  18. GLI: March 05 2006 21:37:19 -     End sector calculated to be 81922875
  19. GLI: March 05 2006 21:37:19 -   Adding primary partition 2 from 20482875 to 81922875
  20. GLI: March 05 2006 21:37:20 -   Formatting partition 2 as ext3 with: mkfs.ext3  /dev/sda2
  21. GLI: March 05 2006 21:37:34 -   Partition 3 has 1000MB
  22. GLI: March 05 2006 21:37:34 -     Start sector calculated to be 81922876
  23. GLI: March 05 2006 21:37:34 -     End sector calculated to be 83970876
  24. GLI: March 05 2006 21:37:34 -   Adding primary partition 3 from 81922876 to 83970876
  25. GLI: March 05 2006 21:37:35 -   Formatting partition 3 as linux-swap with: mkswap  /dev/sda3
  26. GLI: March 05 2006 21:37:36 -   Partition 3.03125 has 111623MB
  27. GLI: March 05 2006 21:37:36 -     Start sector calculated to be 83970877
  28. GLI: March 05 2006 21:37:36 -     End sector calculated to be 312574781
  29. GLI: March 05 2006 21:37:39 - Mounted mountpoint: /
  30. GLI: March 05 2006 21:37:40 - Fetching and unpacking tarball: http://mirror.gentoo.gr.jp/releases/x86/2006.0/stages/stage3-i686-2006.0.tar.bz2
  31. GLI: March 05 2006 22:09:23 - http://mirror.gentoo.gr.jp/releases/x86/2006.0/stages/stage3-i686-2006.0.tar.bz2 was fetched and unpacked.
  32. GLI: March 05 2006 22:09:26 - fstab configured.
  33. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/rc.conf
  34. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/conf.d/keymaps
  35. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/make.conf
  36. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/conf.d/clock
  37. GLI: March 05 2006 22:09:26 - Config files updated using etc-update.  make.conf/fstab/rc.conf restored.
  38. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/make.conf
  39. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/make.conf
  40. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/make.conf
  41. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/make.conf
  42. GLI: March 05 2006 22:09:26 - Edited Config file /mnt/gentoo/etc/make.conf
  43. GLI: March 05 2006 22:09:26 - Make.conf configured
  44. GLI: March 05 2006 22:09:27 - Chroot environment ready.
  45. GLI: March 05 2006 23:08:35 - This is a bad thing. An exception occured outside of the normal install errors. The error was: '[Errno 30] Read-only file system'
  46. GLI: March 05 2006 23:08:35 - Traceback (most recent call last):
  47. GLI: March 05 2006 23:08:35 - File "/opt/installer/GLIClientController.py", line 165, in run
  48.     self._install_steps[self._install_step]['function']()
  49. GLI: March 05 2006 23:08:35 - File "/opt/installer/GLIArchitectureTemplate.py", line 545, in install_portage_tree
  50.     exitstatus = GLIUtility.spawn("emerge sync", chroot=self._chroot_dir, display_on_tty8=True, logfile=self._compile_logfile, append_log=True)
  51. GLI: March 05 2006 23:08:35 - File "/opt/installer/GLIUtility.py", line 350, in spawn
  52.     fd_logfile.write(data)
  53. GLI: March 05 2006 23:08:35 - IOError: [Errno 30] Read-only file system
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-3-6 01:45:55 | 显示全部楼层
不如自己编吧
第一次配置会麻烦点
不过也就是这一次
以后make oldconfig就好了
回复 支持 反对

使用道具 举报

发表于 2006-3-6 01:48:36 | 显示全部楼层
内核编译熟悉后,,其实选择起来也很快的,,,5分钟我基本上就可以从头到尾选一个基本合适我机器内核了。(当然,也要熟悉我机器的硬件)。因为有的时候新的内核修改的东西并不是你想要的。:(。还是自己看一次比较好。。。
回复 支持 反对

使用道具 举报

发表于 2006-3-6 01:55:23 | 显示全部楼层
make oldconfig时
很多新增选项看一眼就可以知道是否需要了,比如硬件驱动,自己没有的,自然不选
如果不知道是否需要就按"?"
这样就可以显示帮助信息,以此决定是否需要
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-6 12:20:42 | 显示全部楼层
2006好象跟我却是没什么缘分哦.
在我这里问题多多.
晚上回去把Installer BS10000遍,然后自己手动把2006.0装上.
说一下用Installer千万不用用拓展分区,我上面说的找不到分区的问题就是因为拓展分区问题,因为拓展分区是从4起算.而Installer可能以为123456这样是绝对没问题的.就没想到会有1,2,4,5这样的情况.
另外呢Installer里面没有设置gentoo_mirrors的地方,所以必须手动修改make.conf,不然如果你连国外的去了.网速上不去它又会说xxx错误的.
还有安装开始以后千万打开一个终端cd /mnt/gentoo/去,我有4次是这样,装着装着就把/mnt/gentoo给umount掉了.不知道为什么.
另外还有报Read Only的错,这个就不太明白了.
另外尽量不要用Installer帮你装程序,这要用很多时间,夜长梦多,它会无缘无故的说什么什么错误.然后整个安装失败.其实内核等东西都编译后了.就是没有装grub,但是它会先装别的软件比如如果选上了xorg它弄完所有软件之后才emerge grub的,尽量不要让它帮你装太多东西,还是自己来吧.
还有安装之前自己去下载stage.
第一步是把Live cd的shadow文件备份一下.因为安装程序在每次安装前会设置一下live cd的root 密码.万一安装失败,你就必须重启才能再来一次了.而把这个文件备份一下呢就可以等它失败后把 密码覆盖一下.然后可以不重启就可以再来了.
还有配置完成之后把installprofile.xml保存.然后修改一下.在edit make.conf段加上GENTOO_MIRRORS的信息,不然它自己选镜像真的很慢.除非你的网速巨牛.

[color="Red"]另外还有一个不明白的.它竟然给我装了xorg-6.8
回复 支持 反对

使用道具 举报

发表于 2006-3-7 00:56:20 | 显示全部楼层
i install a amd64-hardend from stage1, must be changed the gcc profile before compiling xorg-x11 to "x86_64-pc-linux-gnu-3.4.4-vanilla", otherwise the X will report Elf_RelocateXXX unsupport , and some utilities can not work under GNOME, include SCIM, suffering...
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表