<h2><span style="font-size:14px"><span style="font-size:18px"><span style="line-height:26px">一 配置编译内核,使其支持netfilter</span></span><br> </span></h2>
<p><span style="font-size:14px"><span style="line-height:26px"> Netfilter是内核态提供的包过滤框架,其中包含了各种各样的过滤表,默认的内核配置一般不包含这个框架,所以我们要先配置内核选项让其支持netfilte才行。</span></span></p>
<p><span style="font-size:14px"><span style="line-height:26px"></span></span></p>
<pre class="blockcode"><code class="language-html"><span style="font-size:14px;">$cd ~work/my6410Kernel/linux-2.6.38
</span></code></pre>
<span style="font-size:14px"> 拷贝mini6410配置文件:</span>
<p><span style="font-size:14px"><br> <span style="line-height:26px"></span></span></p>
<pre class="blockcode"><code class="language-html"><span style="font-size:14px;">cp config_mini6410_a70 .config </span></code></pre>
<p><span style="font-size:14px"><span style="line-height:26px"> 完成以上操作后,执行make menuconfig命令,进入基于文本模式的菜单型的Linux内核配置:</span></span></p>
<p><span style="font-size:14px"><span style="line-height:26px"></span></span></p>
<pre class="blockcode"><code class="language-html"><span style="font-size:14px;">.config - Linux/arm 2.6.38 Kernel Configuration
──────────────────────────────────────────────────────────────────────────────
┌───────────────── Linux/arm 2.6.38 Kernel Configuration ─────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. │
│ Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, │
│ <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> │
│ for Search. Legend: [*] built-in [ ] excluded <M> module < > │
│ ┌────^(-)─────────────────────────────────────────────────────────────┐ │
│ │ Power management options ---> │ │
│ │ [*] Networking support ---> │ │
│ │ Device Drivers ---> │ │
│ │ File systems ---> │ │
│ │ Kernel hacking ---> │ │
│ │ Security options ---> │ │
│ │ -*- Cryptographic API ---> │ │
│ │ Library routines ---> │ │
│ │ --- │ │
│ │ Load an Alternate Configuration File │ │
│ └────v(+)─────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > │
└─────────────────────────────────────────────────────────────────────────┘
</span></code></pre>
<p><span style="font-size:14px"><span style="line-height:26px">进入networking support ---></span></span></p>
<p><span style="font-size:14px"><span style="line-height:26px">进入networking options --></span></span></p>
<p><span style="font-size:14px"><span style="font-family:宋体; color:#333333"><span style="line-height:26px">将 “Network packet filtering framework (Netfilter)”选中;</span></span><br> </span></p>
<span style="font-size:14px"><br> </span>
<pre class="blockcode"><code class="language-html"><span style="font-size:14px;">.config - Linux/arm 2.6.38 Kernel Configuration
──────────────────────────────────────────────────────────────────────────────
┌────────────────────────── Networking options ───────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. │
│ Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, │
│ <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> │
│ for Search. Legend: [*] built-in [ ] excluded <M> module < > |
|