亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? linux-kernel.html

?? Linus guide, Linus guide, Linus guide,
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><TITLE>Josh's Linux Guide - Compiling a New Kernel</TITLE>    <META NAME="Description" CONTENT="A Linux guide on compiling a new kernel from the viewpoint of a beginner.">    <META NAME="Keywords" CONTENT="beginners, Linux, #LinuxHelp, Joshua, Go, kernel, new, Josh"></HEAD><LINK REL="stylesheet" TYPE="text/css" HREF="default.css"><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#7F007F">    <H2><A NAME="0">Compiling a New Kernel</A></H2><FONT SIZE="-1"><B>Created on: April 4, 1998</B></FONT><BR><FONT SIZE="-1"><B>Last Modified: April 20, 1999</B></FONT><BR><FONT SIZE="-1"><B>Development stage: Alpha</B></FONT><BR><P>The kernel is a file that is the most important part of any operatingsystem. The kernel sets up a basic interface between the hardware andsoftware. It's also what distinguishes Linux from other Unix operatingsystems. Most of what people think is Linux is actually from the FreeSoftware Foundation and other GNU authors. In addition to hardware, theLinux kernel is responsible for supporting protocols like TCP, IP, PPP,and all the filesystems out there.</P><P>Compiling the kernel should be one of the easiest things to do, but aswith most things dealing with Linux, there are problems people encounteralong the way. Let's just save that thought for later.</P><OL>	<LI><A HREF="#dl">Downloading and Unpacking the Kernel Source</A>		<UL>		<LI><A HREF="#dl-dl">Download</A>		<LI><A HREF="#dl-mirrors">Kernel.org Mirror Sites</A>		<LI><A HREF="#dl-unpack">Unpacking the source</A>		<LI><A HREF="#dl-patch">Patching</A>		<LI><A HREF="#dl-depend">Checking Dependencies</A>		</UL>	<LI><A HREF="#compile">Compiling the Kernel</A>		<UL>	  	<LI><A HREF="#compile-configure">Configuring the Kernel</A>		<LI><A HREF="#compile-compile">Compiling the Kernel</A>		<LI><A HREF="#compile-notes">Notes on Compiliation</A>		</UL>	<LI><A HREF="#install-lilo">Installing LILO</A>	<LI><A HREF="#notes">Various Authors' Notes</A></OL><H3><A NAME="1"><A NAME="dl">Downloading and Unpacking the Kernel Source</A></A></H3><P>This is the first (and arguably most frustrating) step in the kernelupgrade process.</P><H4><A NAME="2"><A NAME="dl-dl">Downloading the Kernel</A></A></H4><P>The latest Linux kernel can be downloaded from the following sites withthe file name <TT>linux-x.y.z.tar.gz</TT>, &quot;x&quot; is the&quot;2&quot; in <TT>linux-2.2.4</TT>, &quot;y&quot; is the &quot;2&quot;,and &quot;z&quot; is the &quot;4&quot;. When the &quot;y&quot; value isodd-numbered, as such in &quot;2.1.109&quot;, it is a development kernel(like beta software, but less stable) and isn't considered to be stableenough for the average Linux user. If you're reading this document, you'reprobably much better off with a stable kernel.  <EM>As of the writing ofthis document, there is no development tree. 2.2.x is your bestbet!</EM></P><H4><A NAME="3"><A NAME="dl-mirrors">Kernel.org Mirror Sites</A></A></H4><P>The Linux kernel source can be downloaded from the following sites.</P><UL>      <LI><A HREF="ftp://ftp.kernel.org/pub/linux/kernel/v2.2/">kernel.org (ftp.kernel.org/pub/linux/kernel/v2.2/)</A>      <LI><A TARGET="_top" HREF="ftp://sunsite.unc.edu/pub/Linux/kernel/v2.2/">Sunsite (sunsite.unc.edu/pub/Linux/kernel/v2.2/)</A>      <LI>ftp://ftp.XX.kernel.org/, where XX is your ISO-country code (United Kingdom = ftp.uk.kernel.org; Canada = ftp.ca.kernel.org; Russia = ftp.ru.kernel.org; etc)</UL><P>Once you find the kernel you want to install, download it into thedirectory <TT>/usr/src/</TT>. This is a moderately large file (at least10MB as a gzip'd tarball for the 2.2.x kernel), so go do something elsewhile downloading it. Of course, if you've got a fast connection, then itwon't take as long to download. Generally you want the latest version ofthe latest stable kernel: currently 2.2.zz. Remember that ftp sites go inraw numerical order - <TT>linux-2.2.1.tar.gz</TT> comes before<TT>linux-2.2.12</TT> on the list, even though<TT>linux-2.2.12.tar.gz</TT> is newer.  This should not be an issue forseveral months, as <TT>2.2.4</TT> is the current version (25mar1999).</P><H4><A NAME="4"><A NAME="dl-unpack">Unpacking the Kernel Sources</A></A></H4><P>When you're done downloading it, extract it with <TT>tar -zxvflinux-2.2.zz.tar.gz</TT>, where linux-2.2.zz.tar.gz is the file that youdownloaded. This will extract everything into the <tt>linux</tt>subdirectory. It might take a while, so be patient. If you have compiledthe kernel before (or installed any kernel header/source packages), youwill need to <tt>mv</tt> the old files out of the way before unpacking thekernel.  Simply do <TT>mv linux/ linux-2.0.35/</TT>, or whatever versionof the kernel the headers/source is for.</P><H4><A NAME="5"><A NAME="dl-patch">Patching</A></A></H4><P>If you're downloading a new kernel and don't already have the sourcelying around, you can't patch yet. If you're downloading a kernel forthe first time, skip this subsection and go on to the next one.</P><P>It's such a big drag to download the entire kernel source tree everytime a new version comes out, so I recommend using patches. A patchcontains information on the differences between a previous version and thecurrent one. For example, if you have kernel 2.2.5 and want to upgrade to2.2.6, you need to get the patch that contains the differences between2.2.5 and 2.2.6.</P><P>Kernel patches have filenames such as <TT>patch-2.2.6.bz2</TT>. In thisexample, it's the patch to upgrade from 2.2.5 to 2.2.6. You shoulddownload patches into the <TT>/usr/src/linux/</TT> directory. Depending onwhat compression format you downloaded the patch in, you uncompress itdifferently. For bzip2, the compression format this patch uses, you usethe commandline <TT>bzcat patch-2.2.6.bz2 | patch -p1</TT>. If youdownloaded it in a gzipped format, you would type <TT>zcat patch-2.2.6.gz| patch -p1</TT>.</P><P>At first, the term <I>patch</I> gave me a connotation that this wasonly a quick fix. (I had a mental image of a piece of cloth sewed on tocover a hole on a jacket.) It's not really that. It's just something thatfixes the source tree accordingly.</P><H4><A NAME="6"><A NAME="dl-depend">Checking Dependencies</A></A></H4><P>When compiling and running the kernel, the system expects certainthings to be in place.  For example, you need to have a compiler to getfrom the source code to a binary format the system can execute.  You alsoneed the <TT>modutils</TT> if you plan on using modules, and<TT>autofs</TT> for automounting, etc.  To know what the most recentversions are, see the file <TT>linux/Documentation/Changes</TT>. This filewill list what packages you need, what the base version is (lowest versionyou need to compile--it's usually a good idea to try out the newestversion of a given package), and where to get new copies of them. Thisfile also contains vast amounts of unneeded information. What you're mostinterested in is the table of most recent versions and the info on gettingnew versions.</P><P>Here's a sample of the most recent version chart (taken from Changesfor 2.2.3):</P><PRE>Current Minimal Requirements****************************   Upgrade to at *least* these software revisions before thinking you'veencountered a bug!  If you're unsure what version you're currentlyrunning, the suggested command should tell you.- Kernel modules         2.1.121                 ; insmod -V- Gnu C                  2.7.2.3                 ; gcc --version- Binutils               2.8.1.0.23              ; ld -v- Linux libc5 C Library  5.4.46                  ; ls -l /lib/libc.so.*- Linux libc6 C Library  2.0.7pre6               ; ls -l /lib/libc.so.*- Dynamic Linker (ld.so) 1.9.9                   ; ldd --version or ldd -v- Linux C++ Library      2.7.2.8                 ; ls -l /usr/lib/libg++.so.*- Procps                 1.2.9                   ; ps --version- Procinfo               15                      ; procinfo -v</PRE><P>Now, if you run a libc5 system (most older distributions), you will nothave a libc6. And some of these packages are entirely optional -- if youdon't currently have it, you probably don't need it, assuming your systemhas the ability to compile C programs.</P><P>So, you need to go through the list and double-check your dependencies.  If something is old, look further down in Changes for itshomepage/distribution site.  Let's say your Module utilities wereoutdated. You'd look further down in Changes and find the lines:</P><PRE>Modules utilities=================The 2.1.121 release:ftp://ftp.us.kernel.org/pub/linux/kernel/v2.1/modutils-2.1.121.tar.gz</PRE><P>Which, gives you the release number and a location to download themost recent version.</P><P>After you download the updated files, you will need to move them to anappropriate location (9 out of 10 hackers agree on <TT>/usr/local</TT> asa stuff-compiled-locally directory), and unpack them (<TT>tar xzffoobar-1.2.3.tar.gz</TT>).  Most kernel packages are well-behaved and willuntar into their own subdirectory. <TT>cd</TT> into this directory and<EM>follow their instructions</EM>, usually found in INSTALL or README(<TT>less INSTALL</TT> or <TT>less README</TT>).  If these directions fail, mail us. But not until you've read theinstructions. We'll probably grab the package and try installing itourselves, to see if it's broken or not.</P><P>You should now have your kernel downloaded, unpacked into<TT>/usr/src/linux</TT>, and all the things you need installed.</P><H3><A NAME="7">Compiling the Kernel</A></H3><P>Now that most of the hard work is taken care of, it's time tobegin the dull part!</P><P>Here is a basic outline of the kernel-compilation process:</P><UL><LI><TT>cd /usr/src/linux</TT> (just in case you're in the wrong directory)<LI><TT>make mrproper</TT><LI><TT>make menuconfig</TT> (If this doesn't work out, use <TT>make config</TT>)<LI><TT>make dep</TT><LI><TT>make clean</TT><LI><TT>make zImage (Usually the longest part of the process)</TT><LI><TT>make modules</TT><LI><TT>make modules_install</TT><LI><TT>cp arch/i386/boot/zImage /boot/vmlinuz-2.2.zz-new</TT><LI>(edit <TT>/etc/lilo.conf</TT>)<LI><TT>lilo</TT><LI><TT>reboot</TT> (no need to do it immediately but the new kernel won't be loaded until you reboot)</UL><P>I will not go into great detail about what every command above does; ifyou want to know, read the <AHREF="http://sunsite.unc.edu/LDP/HOWTO/Kernel-HOWTO.html"TARGET="_top">Linux Kernel HOWTO</A>.</P><P>Start by doing <TT>cd /usr/src/linux</TT> and <TT>make mrproper</TT>.  These first two steps simply clean up any cruft that might haveaccidentally been left in the source tree by the development team.  Thenread on.</P><H4><A NAME="8"><A NAME="compile-configure">Configuring the Kernel</A></A></H4><P>Like all other powerful software, the Linux kernel has to beconfigured.  This is done during the <TT>make menuconfig</TT> step.  <TT>make menuconfig</TT> starts an application that allows you to browsethrough the options available for the kernel and make settings. To movearound, use the arrow keys.  Enter allows you to open up a menu, and tabgets you down to the "buttons" at the bottom.  When you want a specificpart of the system compiled into the kernel, hit 'y' while it ishighlighted.  If you realize that you don't need or don't want something,go back and hit 'n' over it.  If you just want to try something out or useit occasionally, you can usually compile it as a module.  All this (andmore) is documented in <TT>menuconfig</TT>'s docs.</P><P>While doing <TT>make menuconfig</TT>, a lot of the things that you haveto configure are pre-set, so if you don't know what it is, leave it alone.However, if you are pretty sure it won't hurt to disable support forsomething in the kernel, disable it, because the defaults are not alwaysright for everybody. I usually have to change the settings a little bit tokeep my kernel small.</P><P>If you use <TT>make menuconfig</TT>, you can hit &quot;?&quot; if you're not surewhat an option does. This will bring up a small amount of text describingthem, and usually a hint as to what the best option is if you don't knowwhat it is (some things don't have a ? screen, so you're best off to gowith the defaults on those if you're not sure what they do)</P><H4><A NAME="9"><A NAME="compile-compile">Compiling the Kernel</A></A></H4><P>After you finish configuring things, do <tt>make dep; make clean</TT>.This does a few technical things regarding dependencies and oldcompiliations lying around. 蛅's just something you need to do and need not worry about as to why.</P><P>Next, do <tt>make zImage</tt>. This may take a long time dependingon your system (on my K6-2-300/64M it takes about 10 minutes with Xrunning.  On my friend's 386sx-16/8M it took several hours withnothing else running; on another friend's dual p100/48M it takes about14mins -jbm).  Usually it's a good idea to watch it compile and keepan eye on possible warning messages. In particular, <tt>signal 11</tt>messages are Bad News.  If you get any <tt>signal 11</tt>s, see the <AHREF="#compile-notes-sig11">note on sig11</A>. Another common problemis the kernel being too big. If your kernel is too big, try doing<tt>make bzImage</tt> after the <tt>make zImage</tt>.  A<tt>zImage</TT> is a gzip'd kernel--it's compressed down to a moremanageble size, which makes booting a little slower.  A<tt>bzImage</tt> is a bigger zImage kernel. (It still uses gzip.) I(jbm) have to use <tt>make bzImage</tt> because my kernel has gottentoo large for <tt>zImage</tt>.  If you have use a <tt>bzImage</tt>,please replace the references to <tt>zImage</tt> with<tt>bzImage</tt>. It's a common problem and most people probably use<B><TT>make bzImage</TT></B> anyway these days.</P><P><tt>make modules; make modules_install</TT>: these compile and'install' any modules you selected.  You will also need to set up the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一个色在线综合| 99精品国产视频| 奇米在线7777在线精品| 亚洲h动漫在线| 亚洲成人先锋电影| 日韩国产欧美三级| 久久国产福利国产秒拍| 韩国精品在线观看| 国产精品18久久久| www.色精品| 91蝌蚪porny成人天涯| 色婷婷亚洲综合| 欧美猛男超大videosgay| 欧美乱妇一区二区三区不卡视频| 欧美男男青年gay1069videost| 欧美精品日韩综合在线| 日韩精品一区二区在线观看| 久久综合视频网| 国产精品热久久久久夜色精品三区 | 欧美疯狂性受xxxxx喷水图片| 欧美日韩国产在线播放网站| 69成人精品免费视频| 日韩美一区二区三区| 久久久精品免费观看| 最新日韩av在线| 亚洲国产日韩精品| 另类小说欧美激情| 国产精品夜夜爽| 一本色道久久综合亚洲91 | 久久婷婷色综合| 国产精品视频免费看| 亚洲亚洲人成综合网络| 麻豆专区一区二区三区四区五区| 国内成+人亚洲+欧美+综合在线| 国产高清精品网站| 欧美性一级生活| 亚洲精品一区二区三区蜜桃下载 | 丝袜诱惑制服诱惑色一区在线观看 | 亚洲线精品一区二区三区八戒| 欧美aaaaaa午夜精品| 成人综合在线观看| 欧美美女bb生活片| 中文天堂在线一区| 男女男精品视频网| 91美女蜜桃在线| 欧美r级在线观看| 一区二区三区在线视频免费观看 | 欧美视频日韩视频| 久久久www成人免费无遮挡大片| 亚洲视频一区二区在线| 久久99久久久久| 91精品1区2区| 国产日产精品1区| 午夜精品在线看| 不卡一区二区中文字幕| 欧美一区二区免费| 一区二区三区美女| 成人免费毛片片v| 精品日韩在线一区| 亚洲国产人成综合网站| 欧美一级二级三级蜜桃| 中文字幕精品一区二区精品绿巨人 | 亚洲私人影院在线观看| 国产一区二区精品在线观看| 欧美视频中文一区二区三区在线观看| 久久久久久一二三区| 石原莉奈在线亚洲三区| 色8久久精品久久久久久蜜| 国产日韩欧美激情| 蜜臀精品一区二区三区在线观看| 一本色道久久综合精品竹菊| 国产三级精品视频| 欧美aaaaaa午夜精品| 欧美三级日韩三级| 亚洲欧美一区二区不卡| 成人影视亚洲图片在线| 久久只精品国产| 美女脱光内衣内裤视频久久网站| 欧美探花视频资源| 亚洲激情欧美激情| 91麻豆高清视频| 综合久久国产九一剧情麻豆| 国产乱人伦偷精品视频不卡| 制服丝袜一区二区三区| 亚洲一区影音先锋| 91久久久免费一区二区| 国产精品美女久久久久久2018| 精品无码三级在线观看视频| 337p亚洲精品色噜噜| 午夜日韩在线观看| 欧美三区在线视频| 亚洲成人动漫在线免费观看| 色偷偷久久人人79超碰人人澡| 成人欧美一区二区三区小说| 粉嫩蜜臀av国产精品网站| 久久九九国产精品| 国产一区二区三区四区五区入口 | 亚洲欧美色图小说| av不卡免费电影| 亚洲私人黄色宅男| 一本一道综合狠狠老| 亚洲靠逼com| 91国偷自产一区二区三区成为亚洲经典| 亚洲欧洲精品一区二区三区 | 精品电影一区二区三区| 国产综合久久久久久久久久久久| 精品91自产拍在线观看一区| 黄页视频在线91| 久久久99精品免费观看不卡| 国产麻豆精品theporn| 国产欧美日本一区二区三区| 成人福利视频网站| 亚洲欧美电影院| 欧洲生活片亚洲生活在线观看| 樱桃国产成人精品视频| 欧美性色综合网| 日韩成人免费看| 久久综合给合久久狠狠狠97色69| 国产乱子轮精品视频| 国产免费久久精品| 色女孩综合影院| 婷婷综合另类小说色区| 日韩视频一区二区三区在线播放 | 国产盗摄女厕一区二区三区| 国产欧美日本一区二区三区| 99国产精品久久久久| 亚洲综合成人在线视频| 日韩一级黄色大片| 国产精品77777竹菊影视小说| 亚洲欧美在线aaa| 欧美日韩大陆一区二区| 欧美性大战久久久久久久蜜臀 | 99精品视频在线观看| 亚洲va中文字幕| 久久人人爽爽爽人久久久| 色综合天天在线| 手机精品视频在线观看| 久久久噜噜噜久久人人看 | 26uuu欧美| 99久久综合国产精品| 婷婷久久综合九色综合伊人色| 精品国产一区二区三区忘忧草 | 国产精品每日更新| 精品1区2区3区| 国产伦精品一区二区三区免费迷 | 一二三区精品福利视频| 日韩欧美综合在线| 99久久久久久99| 免费在线欧美视频| 亚洲三级在线免费观看| 日韩欧美中文字幕公布| gogo大胆日本视频一区| 日韩电影在线免费观看| 国产精品欧美一区喷水| 欧美男生操女生| 99久久99久久久精品齐齐| 免费三级欧美电影| 亚洲人快播电影网| 久久人人超碰精品| 欧美日韩国产影片| 国产91丝袜在线观看| 日韩国产成人精品| 亚洲裸体在线观看| 久久综合色播五月| 欧美精品久久一区| 色乱码一区二区三区88| 国产高清不卡二三区| 青青草原综合久久大伊人精品优势| 国产精品女主播在线观看| 日韩精品一区二区三区四区视频| 91麻豆视频网站| 国产盗摄一区二区三区| 蜜臀a∨国产成人精品| 亚洲国产精品久久一线不卡| 国产日韩欧美综合在线| 日韩精品中文字幕在线不卡尤物| 欧美中文字幕一区二区三区亚洲| 国产mv日韩mv欧美| 国内一区二区在线| 青青青爽久久午夜综合久久午夜| 亚洲综合区在线| 最近日韩中文字幕| 欧美国产97人人爽人人喊| 精品成人一区二区三区| 欧美一区日本一区韩国一区| 在线一区二区三区做爰视频网站| 成人黄色网址在线观看| 美女精品自拍一二三四| 日日夜夜免费精品| 午夜精品久久久久久久99水蜜桃 | 日韩成人午夜电影| 亚洲成人先锋电影| 亚洲电影你懂得| 一区二区三区在线免费播放| 国产精品美女久久久久久2018| 久久久久久亚洲综合| 久久综合久久综合久久综合| 精品国产一区二区三区久久久蜜月| 欧美一区在线视频| 日韩亚洲欧美成人一区|