免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1866 | 回复: 0
打印 上一主题 下一主题

Report for kernel building... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-27 12:25 |只看该作者 |倒序浏览
Requirements:

       (1) list exactly the H/W components of your NB.
       (2) describe the yours steps of kernel building. the more details the better!
       (3) attach your final .config file



Reports:

   (1) There are my note_book components as follow:
            
            --CPU:  
                     product: Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz;
                     size: 933MHz
                     capacity: 933MHz
                     width: 64 bits


            --Memory:
                    description: System memory
                    size: 1949MiB

                          
            --Audio device:
                    description: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
                    product: Manhattan HDMI Audio [Mobility Radeon HD 5000 Series]
                    vendor: ATI Technologies Inc
                    width: 64 bits
                    clock: 33MHz

                  
           --VGA compatible controller:
                     description: VGA compatible controller
                     product: ATI Technologies Inc Device 68e1
   
           --Network controller:
                     description: Wireless interface
                     product: AR9285 Wireless Network Adapter (PCI-Express)
                     vendor: Atheros Communications Inc.
                     width: 64 bits
                     clock: 33MHz
                     capabilities: bus_master cap_list ethernet physical wireless

                    description: Ethernet interface
                    product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
                    vendor: Realtek Semiconductor Co., Ltd.
                    width: 64 bits
                    clock: 33MHz
                    capabilities: bus_master cap_list rom ethernet physical

        
(2) Steps for Kernel building:

           ---Instruction in Shell-window:

                   ~/linux-2.6.36-rc5$ make -j4
                   ~/linux-2.6.36-rc5$ sudo make modules_install &&  sudo make install
                   ~/linux-2.6.36-rc5$ sudo mkinitramfs -o /boot/initrd.img-`uname -r`  `uname -r`


         ---Add in grub.cfg:

                    63 ### BEGIN /etc/grub.d/10_linux ###
                    64 menuentry 'Kunkkas ubuntu for test'{
                    65     recordfail
                    66     insmod ext2
                    67     set root='(hd0,3)'
                    68     search --no-floppy --fs-uuid --set 308f6cd8-7164-4f2b-8b05-ccf06ba7dc 36
                    69     linux   /boot/vmlinuz-2.6.36-rc5 root=/dev/sda3   quiet splash
                    70     initrd  /boot/initrd.img-2.6.36-rc5
                    71 }


          ---在编译内核过程中遇到的一些问题以及解决方法:

                1)  NFS 不能正常启动
                     
                    问题描述:
                              使用2.6.34.1版本内核时,发现用mount命令mount不上,
                              于是我重新启动NFS service:

                               $ sudo /etc/init.d/nfs-kernel-server restart
                                       
                               输入命令之后, 终端提示错误 " kernel not support in current kernel  "(凭记忆大概是这样子),
                               之后我重新 在 menuconfig 修改选项, 把与NFS有关的选项基本都选完了,
                               然后重新 build 内核, 结果还是不能正常启动NFS,

                   解决方法:
                               把内核换成了 2.6.36-rc5,选项和2.6.34.1内核里选的一样,结果NFS终于可以正常启动了.


                  2) 使用2.6.36-rc5内核Virtual-box不能正常启动

                      问题描述:
                              因为使用了新的内核,所以Virtual-box不能正常启动。于是我重新编译了Virtual-box, 使用的命令如下:

                              $ sudo /etc/init.d/vboxdrv setup

                              出现error, 终端提示去 /var/log/vbox-install.log 文件查看错误提示,
                              在vbox-install.log文件里发现了错误信息:

                             ...
                             /tmp/vbox.0/linux/VBoxNetAdp-linux.c:86: error: unknown field ‘ioctl’ specified in initializer
                            /tmp/vbox.0/linux/VBoxNetAdp-linux.c:86: warning: initialization from incompatible pointer type
                            make[2]: *** [/tmp/vbox.0/linux/VBoxNetAdp-linux.o] Error 1
                            make[1]: *** [_module_/tmp/vbox.0] Error 2
                            make: *** [vboxnetadp] Error 2
                           

                     解决方法:
                            我想可能是2.6.36-rc5 版本内核的linux-headers 不完整,
                            于是我重新更新了内核的头文件:

                             $ sudo apt-get install linux-headers-`uname -r`

                             终端提示没有可更新的内容,
                             后面我突然间想到了之前也是因为系统不能正常启动Virtual-box, 后来在/etc/modprobe/blacklist.conf 文件里加了一行:

                             blacklist kvm
                             
                             于是我把这行命令屏蔽掉,重启电脑后Virtual-box可以启动了.


   (3)             vmlinuz-2.6.36-rc5        Size: 3.5M;
                     initrd.img-2.6.36-rc5     Size: 2.6M;

config-2.6.36-rc5.tar.gz

132 Bytes, 下载次数: 29

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP