Skip to content

Commit

Permalink
Site updated at 2015-06-22 14:03:52 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
datawolf committed Jun 22, 2015
1 parent 9839800 commit fd70230
Show file tree
Hide file tree
Showing 25 changed files with 89 additions and 94 deletions.
31 changes: 19 additions & 12 deletions atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Linux Primer]]></title>
<link href="http://datawolf.github.com/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down Expand Up @@ -90,29 +90,33 @@
<h3>配置内核</h3>
<p>make menuconfig</p>
<pre><code>make menuconfig
</code></pre>
<h3>编译内核和模块</h3>
<p>依次执行如下命令:</p>
<p>make
<pre><code>make
make modules
make modules_install
make install</p>
make install
</code></pre>
<h2>使用make-kpkg</h2>
<p>如果是ubuntu的用户,可以使用make-kpkg简化这个流程,而且还能带来额外的好处。
在ubuntu下,安装kernel-package这个包之后,就可以使用make-kpkg了。</p>
在ubuntu下,安装<code>kernel-package</code>这个包之后,就可以使用<code>make-kpkg</code>了。</p>
<p>sudo apt-get install kernel-package</p>
<pre><code>sudo apt-get install kernel-package
</code></pre>
<p>使用make-kpkg编译内核,第一个步骤“配置内核是必不可少的”,在这里,我比较建议在发行版默认的config的基础上再进行配置,这样配置出来的内核和发行版本身具有更好的相容性。比如ubuntu 14.10,可以在运行make menuconfig之前执行命令cp /boot/config-3.13.0-44-generic .config。</p>
<p>使用make-kpkg编译内核,第一个步骤“配置内核是必不可少的”,在这里,我比较建议在发行版默认的config的基础上再进行配置,这样配置出来的内核和发行版本身具有更好的相容性。比如ubuntu 14.10,可以在运行<code>make menuconfig</code>之前执行命令<code>cp /boot/config-3.13.0-44-generic .config</code>。</p>
<p>配置完内核后,接下来执行真正的编译过程。通常我们可以执行如下命令:</p>
<p>make-kpkg &#8211;initrd -j 8 &#8211;append-to-version -20150213001 kernel_image</p>
<pre><code>make-kpkg --initrd -j 8 --append-to-version -20150213001 kernel_image
</code></pre>
<ul>
<li>&#8211;initrd选项会让make-kpkg自动帮助我们生成initramfs</li>
Expand All @@ -126,14 +130,17 @@ make install</p>
<p>使用make-kpkg来编译内核,还有其他好处。因为我们是通过包管理器来安装新的内核,当不再需要这个内核时,就可以简单的通过dpkg命令、新立得软件包管理器或者Ubuntu软件中心来完全卸载,而不需要一个个手动删除修改。</p>
<p>如果需要详细了解make-kpkg的用法,可以查阅manual:
man make-kpkg</p>
<p>如果需要详细了解<code>make-kpkg</code>的用法,可以查阅manual:</p>
<pre><code>man make-kpkg
</code></pre>
<h2>TIPS</h2>
<p>默认的config会编译很多模块,为了尽可能少的编译模块,在配置内核时,可以使用如下命令精简内核模块:</p>
<p>make localmodconfig</p>
<pre><code>make localmodconfig
</code></pre>
]]></content>
</entry>

Expand Down Expand Up @@ -2372,7 +2379,7 @@ man make-kpkg</p>
</entry>

<entry>
<title type="html"><![CDATA[Zombie Ninjas Attack: A survivor's retrospective]]></title>
<title type="html"><![CDATA[Sandbox]]></title>
<link href="http://datawolf.github.com/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/"/>
<updated>2013-03-29T16:24:00+08:00</updated>
<id>http://datawolf.github.com/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective</id>
Expand Down
Expand Up @@ -5,7 +5,7 @@
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Zombie Ninjas Attack: A survivor's retrospective - Linux Primer</title>
<title>Sandbox - Linux Primer</title>
<meta name="author" content="datawolf">


Expand Down Expand Up @@ -80,7 +80,7 @@ <h2>Dive into linux kernel</h2>

<header>

<h1 class="entry-title">Zombie Ninjas Attack: A Survivor's Retrospective</h1>
<h1 class="entry-title">Sandbox</h1>


<p class="meta">
Expand All @@ -98,8 +98,6 @@ <h1 class="entry-title">Zombie Ninjas Attack: A Survivor's Retrospective</h1>

<time datetime="2013-03-29T16:24:00+08:00" pubdate data-updated="true">Mar 29<span>th</span>, 2013</time>

| <a href="#disqus_thread">Comments</a>

</p>

</header>
Expand Down Expand Up @@ -222,7 +220,7 @@ <h4>If you want to be awesome.</h4>

<span class="categories">

<a class='category' href='/blog/categories/saas/'>Saas</a>
<a class='category' href='/blog/categories/sandbox/'>Sandbox</a>

</span>

Expand All @@ -245,12 +243,6 @@ <h4>If you want to be awesome.</h4>
</footer>
</article>

<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite"><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
</section>

</div>

<aside class="sidebar">
Expand All @@ -270,22 +262,6 @@ <h1>Comments</h1>
</footer>


<script type="text/javascript">
var disqus_shortname = 'datawolf';


// var disqus_developer = 1;
var disqus_identifier = 'http://datawolf.github.com/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/';
var disqus_url = 'http://datawolf.github.com/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/';
var disqus_script = 'embed.js';

(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>




Expand Down
2 changes: 1 addition & 1 deletion blog/2013/04/01/git-xue-xi-bi-ji-1/index.html
Expand Up @@ -747,7 +747,7 @@ <h1>举例说明</h1>

<p class="meta">

<a class="basic-alignment left" href="/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/" title="Previous Post: Zombie Ninjas Attack: A survivor's retrospective">&laquo; Zombie Ninjas Attack: A survivor's retrospective</a>
<a class="basic-alignment left" href="/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/" title="Previous Post: Sandbox">&laquo; Sandbox</a>


<a class="basic-alignment right" href="/blog/2013/04/01/git-xue-xi-bi-ji-2/" title="Next Post: git 学习笔记 2">git 学习笔记 2 &raquo;</a>
Expand Down
Expand Up @@ -108,29 +108,33 @@ <h1 class="entry-title">How to Build Linux Kernel in Ubuntu Faster?</h1>

<h3>配置内核</h3>

<p>make menuconfig</p>
<pre><code>make menuconfig
</code></pre>

<h3>编译内核和模块</h3>

<p>依次执行如下命令:</p>

<p>make
<pre><code>make
make modules
make modules_install
make install</p>
make install
</code></pre>

<h2>使用make-kpkg</h2>

<p>如果是ubuntu的用户,可以使用make-kpkg简化这个流程,而且还能带来额外的好处。
在ubuntu下,安装kernel-package这个包之后,就可以使用make-kpkg了</p>
在ubuntu下,安装<code>kernel-package</code>这个包之后,就可以使用<code>make-kpkg</code></p>

<p>sudo apt-get install kernel-package</p>
<pre><code>sudo apt-get install kernel-package
</code></pre>

<p>使用make-kpkg编译内核,第一个步骤“配置内核是必不可少的”,在这里,我比较建议在发行版默认的config的基础上再进行配置,这样配置出来的内核和发行版本身具有更好的相容性。比如ubuntu 14.10,可以在运行make menuconfig之前执行命令cp /boot/config-3.13.0-44-generic .config</p>
<p>使用make-kpkg编译内核,第一个步骤“配置内核是必不可少的”,在这里,我比较建议在发行版默认的config的基础上再进行配置,这样配置出来的内核和发行版本身具有更好的相容性。比如ubuntu 14.10,可以在运行<code>make menuconfig</code>之前执行命令<code>cp /boot/config-3.13.0-44-generic .config</code></p>

<p>配置完内核后,接下来执行真正的编译过程。通常我们可以执行如下命令:</p>

<p>make-kpkg &#8211;initrd -j 8 &#8211;append-to-version -20150213001 kernel_image</p>
<pre><code>make-kpkg --initrd -j 8 --append-to-version -20150213001 kernel_image
</code></pre>

<ul>
<li>&#8211;initrd选项会让make-kpkg自动帮助我们生成initramfs</li>
Expand All @@ -144,14 +148,17 @@ <h2>使用make-kpkg</h2>

<p>使用make-kpkg来编译内核,还有其他好处。因为我们是通过包管理器来安装新的内核,当不再需要这个内核时,就可以简单的通过dpkg命令、新立得软件包管理器或者Ubuntu软件中心来完全卸载,而不需要一个个手动删除修改。</p>

<p>如果需要详细了解make-kpkg的用法,可以查阅manual:
man make-kpkg</p>
<p>如果需要详细了解<code>make-kpkg</code>的用法,可以查阅manual:</p>

<pre><code>man make-kpkg
</code></pre>

<h2>TIPS</h2>

<p>默认的config会编译很多模块,为了尽可能少的编译模块,在配置内核时,可以使用如下命令精简内核模块:</p>

<p>make localmodconfig</p>
<pre><code>make localmodconfig
</code></pre>
</div>


Expand Down
4 changes: 2 additions & 2 deletions blog/archives/index.html
Expand Up @@ -230,11 +230,11 @@ <h1><a href="/blog/2013/04/01/git-xue-xi-bi-ji-1/">git 学习笔记 1</a></h1>

<article>

<h1><a href="/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/">Zombie Ninjas Attack: A survivor&#8217;s retrospective</a></h1>
<h1><a href="/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/">Sandbox</a></h1>
<time datetime="2013-03-29T16:24:00+08:00" pubdate><span class='month'>Mar</span> <span class='day'>29</span> <span class='year'>2013</span></time>

<footer>
<span class="categories">posted in <a class='category' href='/blog/categories/saas/'>Saas</a></span>
<span class="categories">posted in <a class='category' href='/blog/categories/sandbox/'>Sandbox</a></span>
</footer>


Expand Down
2 changes: 1 addition & 1 deletion blog/categories/bat/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: bat | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/bat/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/clock/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: Clock | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/clock/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/eclipse/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: eclipse | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/eclipse/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/java/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: java | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/java/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/jdk/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: jdk | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/jdk/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/linux/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: linux | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/linux/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/mysql/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: mysql | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/mysql/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/python/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: python | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/python/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title><![CDATA[Category: Saas | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/saas/atom.xml" rel="self"/>
<title><![CDATA[Category: Sandbox | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/sandbox/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand All @@ -14,7 +14,7 @@


<entry>
<title type="html"><![CDATA[Zombie Ninjas Attack: A survivor's retrospective]]></title>
<title type="html"><![CDATA[Sandbox]]></title>
<link href="http://datawolf.github.com/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/"/>
<updated>2013-03-29T16:24:00+08:00</updated>
<id>http://datawolf.github.com/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective</id>
Expand Down
Expand Up @@ -5,11 +5,11 @@
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Category: Saas - Linux Primer</title>
<title>Category: Sandbox - Linux Primer</title>
<meta name="author" content="datawolf">


<meta name="description" content="Category: Saas">
<meta name="description" content="Category: Sandbox">


<!-- http://t.co/dKP3o1e -->
Expand All @@ -18,7 +18,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">


<link rel="canonical" href="http://datawolf.github.comblog/categories/saas">
<link rel="canonical" href="http://datawolf.github.comblog/categories/sandbox">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Linux Primer" type="application/atom+xml">
Expand Down Expand Up @@ -73,7 +73,7 @@ <h2>Dive into linux kernel</h2>
<article role="article">

<header>
<h1 class="entry-title">Category: Saas</h1>
<h1 class="entry-title">Category: Sandbox</h1>

</header>

Expand All @@ -86,11 +86,11 @@ <h2>2013</h2>

<article>

<h1><a href="/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/">Zombie Ninjas Attack: A survivor's retrospective</a></h1>
<h1><a href="/blog/2013/03/29/zombie-ninjas-attack-a-survivors-retrospective/">Sandbox</a></h1>
<time datetime="2013-03-29T16:24:00+08:00" pubdate><span class='month'>Mar</span> <span class='day'>29</span> <span class='year'>2013</span></time>

<footer>
<span class="categories">posted in <a class='category' href='/blog/categories/saas/'>Saas</a></span>
<span class="categories">posted in <a class='category' href='/blog/categories/sandbox/'>Sandbox</a></span>
</footer>


Expand Down
2 changes: 1 addition & 1 deletion blog/categories/shell/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: shell | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/shell/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down
2 changes: 1 addition & 1 deletion blog/categories/time/atom.xml
Expand Up @@ -4,7 +4,7 @@
<title><![CDATA[Category: time | Linux Primer]]></title>
<link href="http://datawolf.github.com/blog/categories/time/atom.xml" rel="self"/>
<link href="http://datawolf.github.com/"/>
<updated>2015-06-22T11:05:56+08:00</updated>
<updated>2015-06-22T22:03:42+08:00</updated>
<id>http://datawolf.github.com/</id>
<author>
<name><![CDATA[datawolf]]></name>
Expand Down

0 comments on commit fd70230

Please sign in to comment.