<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    2005年6月2日

    最近弄了臺T43 2688CT1,天生就討厭MS,打算裝個linux,原先一直用slackware,裝好10.1才發現kernel是2.4的好多設備都不能正常運行,找找資料,發現升級kernel最方便還是debian,于是就打算裝一個干凈的系統,原來的slackware和其他的發行版,都會給自己裝一些一輩子都用不到幾次的東西。參照一些說明如下

    Installation

    The notebook came pre-installed with Windows XP Professional. After finishing the Windows installation, I decided to create the recovery media first, because IBM doesn't put them in the box anymore. Better safe than sorry. Using the software in the "Access IBM" folder and two blank DVD-RWs that was quickly done.

    Then I booted grml, my favorite Linux Live-CD, and used ntfsresize and cfdisk to resize the NTFS partition (/dev/sda1) to 15GB, but left alone the recovery partition (partition type in cfdisk is "Compaq diagnostics").

    After that I booted the Debian Sarge DVD and tried the installation using version 2.6 of the linux kernel by typing "linux26" at the boot prompt. Unfortunately that didn't work, because the harddisk is connected to a SATA controller and the installation kernel didn't recognize it. So I restarted the installation, using the standard kernel instead. This time around the harddisk was recognized, although via the old IDE-sata interface of the kernel, so the disk was called /dev/hda. But at least I could start the installation.

    I used the Debian installer to partition the harddisk, creating a swap partition (/dev/hda5) and the root partition (/dev/hda6), 1GB each. For the rest (~36GB) I used LVM and created logical volumes for /home (10GB), /tmp (1GB), /usr (2GB) and /var (1GB).

    Then I did a minimal installation, and rebooted into the fresh system using the installed kernel (version 2.4). Everything was working so far, but I decided to compile a new kernel from the 2.6 series to use the harddisk via the new SATA interface.
     

    Kernel Configuration

    First I installed the necessary packages to build the kernel from source with
    apt-get install gcc make ncurses-dev

    Then I downloaded the source code of kernel 2.6.12.3 from the Linux Kernel Archives. (at first I was using 2.6.12.2, but at the time of writing I already did the small maintainance upgrade to 2.6.12.3)

    After extracting the compressed tar archive and studying the ThinkWiki a bit, I also applied the trackpoint patch, a patch relevant to get powermanagement for the SATA harddisk so it plays nice with suspend-to-ram and another to make sure the infrared device is detected (both available at http://shamrock.dyndns.org/~ln/linux/). (note: the last 2 patches are attached to this page for completeness sake only, in case the current download URL vanishes)

    I also decided to use Software Suspend 2 (version 2.1.9.5 for kernel 2.6.12) because I used it on various other notebooks in the past with good results.

    I used the menu configuration of the kernel via
    make menuconfig
    in the kernel source tree. Important settings to change are:
    • in "Processor type and features" select "Pentium M" for the processor familiy to optimize for the Pentium-M
    • in "Power management options (ACPI, APM)" enable ACPI (I don't use APM) and Software Suspend 2. Note: to use a newer version of the "IBM ThinkPad Laptop Extras" you have to compile it as module so it can be easily replaced later on.
    • enable CPU frequency scaling, select scaling governors ("ondemand" and "conservative" are the ones I use, but be sure to also select "userspace" if you want some external program like cpufreqd to do the frequency scaling) and enabe the processor driver for Centrino ("Intel Enhanced SpeedStep")
    • for the harddisk SCSI has to be enabled and in the low-level SCSI drivers section Serial ATA and "Intel PIIX/ICH SATA support" need to be selected
    • to get the kernel to recognize the CD-RW/DVD-RW I also needed to enable ACPI Plug'n'Play support (and of course the ATAPI/IDE CD-ROM driver)
    My currently used kernel configuration is attached at the bottom of this page. Afterwards I compilied the kernel by issuing
    make
    and after switching to the root account I installed the kernel modules, the System.map file and the kernel image with
    make modules_install
    cp System.map /boot/System.map-2.6.12.3
    cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.12.3
    Then I added a new entry in the GRUB menu file in /boot/grub/menu.lst:
    title           Debian GNU/Linux, kernel 2.6.12.3
    root            (hd0,5)
    kernel          /boot/vmlinuz-2.6.12.3 root=/dev/sda6 ro video=vesafb,nomtrr,ywrap vga=836 acpi_sleep=s3_bios resume2=swap:/dev/sda5 processor.max_cstate=2 elevator=cfq
    

    Note: not all of the kernel parameters are necessary, video and vga give a higher resolution in the text consoles (if the vesa framebuffer driver is compiled into the kernel), resume2 is for Software Resume 2, elevator=cfq selects a different scheduling mechanism more suitable for desktop use, acpi_sleep is needed to circumvent a problem with suspend-to-ram.

    Since switching to SCSI-SATA also meant that the harddisk would be called /dev/sda after the reboot, I also changed all occurences of "/dev/hda" to "/dev/sda" in /etc/fstab.

    One
    init 6

    later and I was running the shiny new kernel.

    失敗了3次了,編譯和patch都沒有問題,難道是分區格式?我用的ext2可能太老了,總之就是一種折磨阿
    看來還要多學習。

    posted @ 2005-09-14 10:25 有個空間 閱讀(251) | 評論 (0)編輯 收藏

    jxta shell 基本語法
    man----幫助
    env----SHELL 變量及其對應值
    cat----輸出變量值
    peers----列出所有對等體
    mkadv-----創建通告
    mkpgrp-----創建組
    groups-----列出所有組
    join-------加入組
    chpgrp-----改變組
    leave------離開組

    posted @ 2005-06-02 16:33 有個空間 閱讀(279) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 亚洲AV无码一区二区三区鸳鸯影院 | 精品国产香蕉伊思人在线在线亚洲一区二区| 亚洲综合图片小说区热久久| av电影在线免费看| 亚洲精品国产美女久久久| 三年在线观看免费观看完整版中文| 精品亚洲一区二区三区在线播放| j8又粗又长又硬又爽免费视频| 一本色道久久综合亚洲精品高清| baoyu777永久免费视频 | 日本免费中文视频| 亚洲综合精品一二三区在线| 1024免费福利永久观看网站| 亚洲国产成人精品激情| 成人免费无码大片A毛片抽搐色欲| 亚洲成a∨人片在无码2023| 久久亚洲国产精品| 99久久久国产精品免费牛牛四川| 亚洲高清无在码在线电影不卡| 久草视频免费在线观看| 亚洲人成自拍网站在线观看| 免费又黄又爽的视频| 亚洲大香伊人蕉在人依线| 丁香花在线观看免费观看图片 | 国产免费女女脚奴视频网| 亚洲精品国产日韩| 亚洲 国产 图片| 国产拍拍拍无码视频免费| 亚洲另类自拍丝袜第1页| 韩国18福利视频免费观看| 人人爽人人爽人人片av免费| 亚洲国产精品久久| 国产麻豆视频免费观看| 香蕉视频免费在线播放| 亚洲电影免费在线观看| 无码专区永久免费AV网站| 一个人看的www免费高清| 亚洲国产成人精品青青草原| 亚洲第一区精品日韩在线播放| 久久国产乱子伦精品免费一| 亚洲高清乱码午夜电影网|