| 1 | = 瞭解 Etherboot 如何加入新的網路卡驅動程式 = |
| 2 | == STEP 1: 從 Etherboot 原始碼開始 == |
| 3 | * 源起: |
| 4 | * 目前有很多新的網路卡雖然有支援 PXE 但是卻沒有正式被 PXELinux 支援. 所以必須要找到可以自行加入新網路卡的方法. |
| 5 | * 作法: |
| 6 | * 測試環境: Debian Etch 4.0r1 |
| 7 | * 下載 git 版本控制軟體 |
| 8 | {{{ |
| 9 | # apt-get install git cogito git-core |
| 10 | }}} |
| 11 | * 修改 git 預設對應 |
| 12 | {{{ |
| 13 | # update-alternative --config git |
| 14 | There are 2 alternatives which provide `git'. |
| 15 | |
| 16 | Selection Alternative |
| 17 | ----------------------------------------------- |
| 18 | + 1 /usr/bin/git.transition |
| 19 | * 2 /usr/bin/git-scm |
| 20 | |
| 21 | Press enter to keep the default[*], or type selection number: 2 |
| 22 | }}} |
| 23 | * 如果不修改預設 git 對應為 git-scm 會出現以下錯誤訊息 |
| 24 | {{{ |
| 25 | # git clone git://git.etherboot.org/scm/gpxe.git |
| 26 | |
| 27 | git, the filemanager with GNU Interactive Tools, is now called gitfm. |
| 28 | |
| 29 | If you are looking for git, Linus Torvald's content tracker, install |
| 30 | the cogito and git-core packages and see README.Debian and git(7). |
| 31 | |
| 32 | This transition script will be removed in the debian stable |
| 33 | release after etch. |
| 34 | |
| 35 | If you wish to complete the transition early, install git-core |
| 36 | and use (as root): |
| 37 | update-alternatives --config git |
| 38 | |
| 39 | Press RETURN to run gitfm |
| 40 | |
| 41 | |
| 42 | GNU Interactive Tools 4.3.20 (i586-pc-linux-gnu), 10:15:20 Aug 21 2006 |
| 43 | GIT is free software; you can redistribute it and/or modify it under the |
| 44 | terms of the GNU General Public License as published by the Free Software |
| 45 | Foundation; either version 2, or (at your option) any later version. |
| 46 | Copyright (C) 1993-1999 Free Software Foundation, Inc. |
| 47 | Written by Tudor Hulubei and Andrei Pitis, Bucharest, Romania |
| 48 | |
| 49 | /usr/bin/gitfm: fatal error: `chdir' failed: permission denied. |
| 50 | }}} |
| 51 | * 下載 Etherboot 最新版原始碼 |
| 52 | {{{ |
| 53 | # git clone git://git.etherboot.org/scm/gpxe.git |
| 54 | }}} |