Alphaの話題

  • XP1000備忘録(2015.11.28)
  • PC164SX備忘録(2016.5.14)
  • UP1100備忘録(2018.11.10)
  • AlphaXL備忘録(2015.11.15)
  • PC164備忘録(2016.5.14)
  • PC164LX備忘録(2016.5.14)
  • UP1100 NetBSD-8.0インストール備忘録(2018.12.24)
  • XP1000 Gentoo Linuxインストール備忘録(2020.8.21)
  • Gentoo openssl-1.1.1d-r2パッケージ(2020.8.21)
  • ---
  • DEC3000備忘録

  • XP1000備忘録(2015.11.28)

    メモリー(2015.11.28)

    メモリーはResistered ECC PC100 SDRAMを4枚ずつ2セット(バンク)まで増設可能です。

    PC133のモジュールも試しましたが、エラーで立ち上がりませんでした。他の機器で動作確認がOKだったモジュールもNGでした。

    各モジュールの最大容量は256MBです。512MBのモジュールも試しましたが、エラーで立ち上がりませんでした。このため、最大メモリー量は2GBです。

    両方のバンクのメモリー量(すなわち、メモリーモジュール)は異なっていてもかまいません。私の所有する内の1台は1GB(256MBx4)と512MB(128MBx4)の合計1.5GBで運用しています。


    PC164SX備忘録(2016.5.14)

    CPUファン(2016.5.14)

    PC164SXはCPUファンが回転していないと起動しません。私の入手時はCPUファンが故障していたため、不動マシンとされていました。

    もともと搭載されていた(故障した)CPUファンは、シコー(現ICファンV-TECH)製のF5210AP-12NCWという、パルスセンサー付きの52mm角DCファンでした。

    52mm角というのがくせもので、50mm角であれば一般市場に出回っているのですが、52mm角のものはほとんど見かけません。ICファンV-TECHでも現行ラインナップにはないようです。また、パルスセンサーつきなので3ピンコネクタなのですが、ピンアサインがPC用に流通しているものとは異なっています。

    上記、2つの理由から、代替ファンを調達してコネクタを取り付けることにしました。

    ファンは結局1社3製品しか見つかりませんでした。山洋電気109P0512[MHA]701です。MHAの違いは、ファンの回転数でそれぞれ3,700rpm、4,600rpm、6,800rpmです。ただし、ファンの厚みが15mmと、故障したファンの10mmより厚くなっています。また、PCパーツとして売っているファンとは異なり、ケーブルにコネクタがついていないので、別途コネクタを取り付ける必要があります。(今回のように特殊なピンアサインの場合はこちらの方が好都合です。)

    コネクタも結局1社の1製品しか見つかりませんでした。Molex5051-03 2.5mmピッチ 電線対基板用ハウジング 3Pです。ただし、つのの部分が故障したファンより長くなっています。5051-03はハウジングだけで電極がないので、別途5159Tも3つ入手します。

    購入先ですが、ファンはモノタロウAmazon.co.jpで調達しました。モノタロウは価格が安かったのですが1回の注文で3,000円未満の場合、送料がかかります。Amazon.co.jpは既に登録していたためすぐに注文できましたが、価格が高く納期が少しかかりました。

    コネクタとターミナルは千石電商で調達しました。それぞれ、5051-035159Tです。千石電商のページを見て気づいたのですが、Molexの互換品を扱っているようです。それぞれ、2500-3 FAN用電源ハウジングコネクタ(3P)2500-10T FAN電源コネクタ用コンタクトピンです。私はこれらの互換品は入手していません。

    ターミナルの圧着はかなりてこずりました。まず、ターミナルを分離して、バリを取り除くのに一苦労します。その後、ケーブル長を整えて、ターミナルとケーブルを圧着するのですが、何度も失敗してようやく成功しました。

    圧着さえすんでしまえば、あとはそれをコネクタに差し込むだけなのですが、こちらも少し苦労しました。ここでもターミナルのバリが影響しているのか、スッと入っていかないことが何度かありました。いずれにせよ、ピン配列を故障したファンと同じになるように気を付けて挿入すれば、完成です。

    最後に、故障したファンをヒートシンクから取り外して、代わりに新しいファンをヒートシンクにネジ止めし、コネクタをマザーボードにさせば、作業終了です。

    2015/11/7に起動確認したところ、無事起動しました。

    作業中に、ファンのねじを1本紛失してしまいました。マニュアルには「Screw,6-32×0.625 in」とあり、インチねじのようです。私は、株式会社 大里のPC-014(鉄ニッケルメッキインチ小ネジナベ 6#×20 10入)を購入しました。問題なく使用できています。

    メモリー(2015.11.28)

    メモリーはUnbufferedまたはRegistered PC100 ECC SDRAMを2枚ずつ2セット(バンク)まで増設可能です。また、Registered PC133 ECC SDRAMの動作も確認しました。

    各モジュールの最大容量は256MBです。このため、最大メモリー量は1GBです。マニュアルには128MBまでのモジュール、最大容量512MBまでとの記述がありますが、古い情報です。念のため、512MBのモジュールも試しましたが、認識しませんでした。

    両方のバンクのメモリー量(すなわち、メモリーモジュール)は異なっていてもかまいません。私の所有する機器は512MB(256MBx2)と256MB(128MBx2)の合計768GBで運用していました。

    片面実装のメモリーモジュールは認識しませんでした。256MBのモジュール4枚を刺して電源投入したところ、ビープ音が5回鳴り、起動しませんでした。マニュアルによるとビープ音5回は「No memory found」とのことです。

    ATA(E-IDE)インタフェース(2015.11.08)

    基板上のATA(E-IDE)コネクタは、2ポートとも誤挿入防止キー(20番ピン)がない(ピンが付いている)ため、最近のATAケーブルは刺せません。

    私は手元に20番ポートの空いたケーブルがなかったため、ATAを使用するのはあきらめ、SCSIを使用することにしました。

    ところが、CDROMドライブ用の50ピン(narrow)ケーブルがなかったため、別途調達する羽目になりました。

    SRM(2016.5.14)

    SRMの最新バージョンでは、多くの機器を自動認識してくれます。

    Number Nine GXE 64 Trio64(S3 Trio64) 2MBは「S3 Trio64/Trio32」として認識されました。

    Adaptec AHA-2940UWは、「Adaptec AIC-7880」として認識されました。

    IntraServer 4280UE-4Vは、PCI-PCIブリッジ(DECchip 21152-AA)の下に、「NCR 53C875」が2つと「DE500-AA Network Controller」1つとして認識されました。

    Adaptec ASC-39160(DELL OEM)は、「Adaptec AIC-7899」(2つ)として認識されました。ただし、もう一枚のDELL OEM ASC-39160は認識されませんでした。また、Compaq OEM ASC-39160はボードは認識されますが、接続したデバイスを認識しませんでした。

    SYMBIOS SYM8952Uは、「NCR 59C895」として認識されました。

    DEC DE500(21143-PCチップ)は、「DE500-BA Network Controller」として認識されました。

    WISECOM WS-D400/D(21140-AFチップ)は、「DECchip 21140-AA」として認識されました。

    Adaptec ASC-39320(DELL OEM)、ASC-29320ALP、ASC-29160(Compaq OEM)、ASC-29160LP、ASC-29160N、AHA-2940U2Wは、認識されませんでした。

    SMC 9332BDT(21140-AFチップ)は、「DECchip 21140-AA」として認識されました。

    Fail-Safe Booter(2015.11.28)

    SRMが飛んでしまったり、挙動不信になった場合、Fail-Safe Booterにより、SRMを復活できます。マニュアルに記載がありますが、簡単に手順を示します。

    1. 電源OFF時に、マザーボード上のSW1(DIPスイッチ)のCF7を0(OFF)にする。
    2. FATフォーマットしたFDにSRMのexeファイル(たとえば、sx164_v5_8.exe)をfwupdate.exeにリネームしてコピーする。
    3. 電源を投入する。BEEPが「1-2-3」で鳴ったあと、FDが読み込まれる。
    4. sx164_v5_8.exeの場合、option firmwareはないので、FDを抜いてリターンキーを押す。
    5. アップデートプログラムが起動する。
    6. listコマンドで、アップデート先のSRMがあることを確認する。
    7. updateコマンドで、アップデートをする。
    8. verifyコマンドで、ベリファイする。(アップデート時にベリファイされているので気休めとして実施。)
    9. 電源を切る。
    10. CF7を1(ON)にする。
    11. 電源を投入すると、SRMが起動する。

    UP1100備忘録(2018.11.10)

    メモリー(2015.11.28)

    メモリーはUnbuffered ECC PC100 SDRAMを1枚ずつ3枚まで増設可能です。ECCなしメモリーは使用不可です。

    各モジュールの最大容量は256MBです。このため、最大メモリー量は768MBです。なお、モジュールを搭載する順序が変則的なので、マニュアルを参照して適切に挿入してください。

    512MBのメモリーを刺したところ、半分の256MBを認識しました。現在は私の環境では、512MB 3枚、計768MBで稼働しています。

    片面実装のメモリーモジュールでは、半分の容量しか認識しませんでした。

    SRM(2018.11.10)

    SRMの最新バージョンでは、多くの機器を自動認識してくれます。

    AGPのMatrox Millennium G400 Dual Headは「Matrox Millennium G400/ZX」として認識されました。

    Adaptec ASC-39160(DELL OEM)は、「Adaptec AIC-7899」(2つ)として認識されました。ただし、もう一枚のDELL OEM ASC-39160は認識されませんでした。

    Adaptec ASC-39320(DELL OEM)は、認識されませんでした。

    Adaptec ASC-29160、ASC-29160N、AHA-2940U2Wは、「Adaptec AIC-78xx」として認識されました。

    SMC 9332BDT(21140-AFチップ)は、「DECchip 21140-AA」として認識されました。

    AGPのATI Radeon 7500は、認識されませんでした。

    Intel Pro/1000GTは、認識されませんでした。

    Adaptec ASC-19160は、認識されませんでした。

    AGPの3Dlabs Oxygen VX1は、認識されませんでした。

    BEEP用スピーカー(2015.11.15)

    最近のATXケースにはBEEP用のスピーカーが搭載されていません。このため、スピーカーピンに直付固定できる小型のスピーカーを接続しました。

    下記の3つが見つかりましたが、私はGroovyのGN-SW04BUを使用しました。

    SRMのsoundコマンドでメロディーが鳴ることを確認しました。


    AlphaXL備忘録(2015.11.15)

    スペック(2015.11.15)

    私の所有しているAlphaXL 300のスペックは下記のとおりです。

    私が初めて入手したAlphaマシンですが、2015/11/14現在、電源が投入が出来ない状況です。このため、いくつかのスペックが確認できていません。13年ぶりぐらいに電源を入れたので、仕方ないかもしれません。

    いろいろカスタマイズしてお気に入りかつ唯一のAlphaBIOS(ARC)マシンだったので、惜しいですが保管しておくことにしました。

    メモリー(2015.11.15)

    メモリーはパリティー付きSIMMを4枚ずつ8枚まで増設可能です。

    最大容量は256MBか512MBだと思うのですが、確認できていません。


    PC164備忘録(2016.5.14)

    メモリー(2016.5.14)

    メモリーはパリティー付きの72pin SIMMを4枚または8枚1セット搭載可能です。搭載枚数によってジャンパーピンの設定が必要です。

    SRM(2016.5.14)

    SRMの最新バージョンでも、それほど多くの機器は認識してくれません。特にSCSI HBAがUltra Wide世代のものまでしか認識しないため、せっかくの64bit PCIスロットがもったいないことになっています。

    DEC KZPBR-CXは、「QLogic ISP1020 Scsi Controller」として認識されました。

    Adaptec ASC-39320、ASC-39160、ASC-29160N、AHA-2940U2Wは、認識されませんでした。

    SYMBIOS SYM8952Uは、認識されませんでした。


    PC164LX備忘録(2016.5.14)

    メモリー(2016.5.14)

    メモリーはUnbufferedまたはRegistered PC100 ECC SDRAMを2枚ずつ2セット(バンク)まで増設可能です。

    各モジュールの最大容量は256MBです。このため、最大メモリー量は1GBです。マニュアルには128MBまでのモジュール、最大容量512MBまでとの記述がありますが、古い情報です。

    両方のバンクのメモリー量(すなわち、メモリーモジュール)は異なっていてもかまいません。

    SRM(2016.5.14)

    SRMの最新バージョンでは、多くの機器を自動認識してくれます。ほぼPC164SXと同等です。

    DEC DE500(21143-PCチップ)は、「DE500-BA Network Controller」として認識されました。

    Adaptec ASC-39160(DELL OEM)は、「Adaptec AIC-7899」(2つ)として認識されました。ただし、もう一枚のDELL OEM ASC-39160は認識されませんでした。また、Compaq OEM ASC-39160はボードは認識されますが、接続したデバイスを認識しませんでした。

    Adaptec ASC-39320(DELL OEM)、ASC-29320ALP、ASC-29160(Compaq OEM)、ASC-29160LP、ASC-29160N、AHA-2940U2Wは、認識されませんでした。

    Compaq NC7770、NC7771は、認識されませんでした。

    Matrox Millennium IIは、認識されませんでした。

    SMC 9332BDT(21140-AFチップ)は、「DECchip 21140-AA」として認識されました。

    UP1100 NetBSD-8.0備忘録(2018.12.24)

    UP1100にNetBSD-8.0/alphaをインストールしたときの顛末です。

    インストールしたマシンのスペックは下記の通りです。

    HDD全体を利用して、インストーラーにおまかせパーティションを切らせてそれにインストールしました。インストールしたパッケージは、kernel source以外すべてです。インストールは特に問題なく完了しました。気になっていたHDDへのブートコード設定のalphaの特殊性はなく、何も指示することなくHDDからブートできるようになりました。

    このUP1100には、以前Debian GNU/Linuxをインストールしており、SRMの変数boot_osflagsおよびbootdef_devがDebian用に設定されていたため、NetBSD用に設定し直しました。bootdef_devは自明ですが、boot_osflagsについては、NetBSDはTru64 UNIX互換で、Aまたはaに設定すれば、マルチユーザーモードで起動します。

    当初boot_osflagsに設定されていた値はTru64 UNIXの標準とはかけ離れていた("0(ゼロ)"だった)ので、/etc/rc.confがrc_configured=YESなのに、マルチユーザーモードで起動しなくて悩んでしまいました。boot_osflagsAまたはa以外か、空だった場合、NetBSDはシングルユーザーモードで起動します。

    NetBSDにboot_osflagsが期待どおりわたったかは、セカンダリーブートローダーで表示する下記の行で確認できます。

    
    Boot flags: xxx
    
    

    xxxの部分に設定した値、もしくは、空の場合は空白が表示されます。

    pcictlでデバイスのリストを取ってみました。アタッチできなかったデバイスはありません。

    
    # pcictl pci0 list -N
    000:01:0: AMD AMD751 PCI-PCI Bridge (PCI bridge, revision 0x01) [ppb0]
    000:06:0: Acer Labs M5451 AC-Link Controller Audio Device (audio multimedia, revision 0x01) [autri0]
    000:07:0: Acer Labs M1533 PCI-ISA Bridge (ISA bridge) [sio0]
    000:09:0: Intel i82540EM 1000baseT Ethernet (ethernet network, revision 0x02) [wm0]
    000:10:0: Adaptec (2nd PCI Vendor ID) AIC-7892A U160 (SCSI mass storage, revision 0x02) [ahc0]
    000:11:0: Digital Equipment DC21142/21143 10/100 Ethernet (ethernet network, revision 0x41) [tlp0]
    000:16:0: Acer Labs M5229 UDMA IDE Controller (IDE mass storage, interface 0xfa, revision 0xc3) [aceride0]
    000:17:0: Acer Labs M7101 Power Management Controller (miscellaneous prehistoric) [alipm0]
    000:20:0: Acer Labs M5237 USB 1.1 Host Controller (USB serial bus, OHCI, revision 0x03) [ohci0]
    002:05:0: ATI Technologies Radeon 7500 QW (VGA display) [radeonfb0]
    
    

    インストール後の素の状態で2週間程度稼働させましたが、特に不安定になることはありませんでした。

    alphaの電源スイッチはソフトウェアコントロールではないので、本体の電源を落とす際にいったんSRMに移行してから電源スイッチをオフにするのですが、うまくhaltできないことがあります。仕方ないので、ある程度待ってSRMに落ちなかったら、電源スイッチをオフにしています。

    グラフィックカードにATI Radeon 7500(AGP)を調達できたので、Xサーバーが動作するかを確認しました。

    How to use X Window System on NetBSD/alpha?にしたがって、wsfbを使用します。具体的には、下記の通りです。

    1. # X -configure
    2. ~/xorg.conf.newのDeviceセクションで、Driverをradeonからwsfsに変更
    3. # cp ~/xorg.conf.new /etc/X11/xorg.conf
    4. startx

    マウスカーソルが表示され、マウスに追従して動くのですが、デスクトップが表示されません。背面にテキストが残ったままです。ビデオ出力が2系統あるので両方で確認しましたが、どちらも同様でした。

    プロセスの状況を確認すると、Xサーバーも、xtermもtwmも動いていますが、期待する表示にはなりませんでした。


    XP1000 Gentoo Linux備忘録(2020.8.21)

    XP1000にGentoo Linux/alphaをインストールしたときの顛末です。

    インストールしたマシンのスペックは下記の通りです。

    SRMに認識されるHBAに接続されたHDDに/bootパーティションを格納し、/パーティションは高速な(しかし、SRMには認識されない)Ultra320 SCSI HDDに格納します。

    インストールに使用したブートメディアはinstall-alpha-minimal-20190813T014117Z.iso、Stage 3アーカイブはstage3-alpha-20190820T015341Z.tar.bz2です。alphaアーキテクチャー用の配布ファイルは、あまり頻繁には更新されていません。私はそれぞれ最新版を使用しました。

    インストールは、Gentoo Alpha Handbookの"Installing Gentoo"にしたがいます。ただし、内容が今となっては古いものもあるので、多少手直しが必要でした。なお、一部日本語に翻訳されていますので、日本語のページを参照したい場合は、ページトップの「Other languages:」で、「日本語」をクリックしてください。

    インストールは、コンソールで最低限の設定を行った後、sshでリモートログインして行います。なお、シリアルコンソールから行うこともできます。

    ちなみに、このインストールでどうしようもなかったのは、ファイルシステムとしてXFSが使用できなかったことです。代わりにExt4を使用しました。

    1. ブートメディアから起動。この環境では、CD-ROMドライブは、dqa0です。また、SRMの変数boot_osflagsに影響を受けないように-flagsは付加するのが無難です
      
      >>> boot dqa0 -flags 0
      
      
    2. 必要なら、キーボードのkeymapを変更。デフォルトはusで、これでよければRET。日本語jp22です。何も入力しないでしばらくすると、デフォルトの設定のまま起動します。
    3. デバイスが認識されているか確認
      
      # lspci
      # lspci -v
      # dmesg
      
      

      lspci -vdmesgの結果は1画面ではおさまらないので、適切なオプションやgrepなどかけます。一例として、lspciのオプション-sで識別番号を指定し、個々のデバイスを表示できます

      
      # lspci
      0000:00:07.0 ISA bridge: Contaq Microsystems 82c693
      0000:00:07.1 IDE interface: Contaq Microsystems 82c693
      0000:00:07.2 IDE interface: Contaq Microsystems 82c693
      0000:00:07.3 USB controller: Contaq Microsystems 82c693
      0000:00:0b.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5703 Gigabit Ethernet (rev 10)
      0000:00:0c.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV200 [Radeon 7500/7500 LE]
      0000:00:0d.0 SCSI storage controller: Adaptec ASC-39320A U320 (rev 10)
      0000:00:0d.1 SCSI storage controller: Adaptec ASC-39320A U320 (rev 10)
      0001:01:03.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
      0001:01:06.0 SCSI storage controller: QLogic Corp. ISP1020 Fast-wide SCSI (rev 06)
      0001:01:08.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
      #
      # lspci -s 0000:00:0b.0 -v
      0000:00:0b.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5703 Gigabit Ethernet (rev 10)
              Subsystem: Compaq Computer Corporation NC7771 Gigabit Server Adapter (PCI-X, 10,100,1000-T)
              Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 40
              Memory at 09130000 (64-bit, non-prefetchable) [size=64K]
              Expansion ROM at 09140000 [disabled] [size=64K]
              Capabilities: [40] PCI-X non-bridge device
              Capabilities: [48] Power Management version 2
              Capabilities: [50] Vital Product Data
              Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
              Kernel driver in use: tg3
              Kernel modules: tg3
      
      # 
      
      
    4. rootのパスワードを設定
      
      # passwd
      
      
    5. sshdの設定ファイルを変更
      
      # vi /etc/ssh/sshd_config
      
      

      下記の3行を変更しました。なお、amd64のブートメディア(install-amd64-minimal-20191006T214502Z)では、PermitRootLoginは標準でyesでした。

      
      PermitRootLogin yes
      PasswordAuthentication yes
      PermitEmptyPasswords no
      
      
    6. sshdデーモンを開始
      
      # rc-service sshd start
      
      
    7. NIC設定。今回はNC7771を使用。なお、dmesgでNICは2つとも認識されているのですが、ifconfigしても、loしか表示されませんでした。このような場合、ifconfig -aします。また、複数のNICがある場合、ifconfigの出力だけではどのNICを使用すべきか判断つかないかも知れません。その場合は、dmesgなどの出力結果でデバイスドライバー名とマッチングさせるなどして、判断してください
      
      # ifconfig
      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
              inet 127.0.0.1  netmask 255.0.0.0
              inet6 ::1 prefixlen 128  scopeid 0x10<host>
              loop  txqueuelen 1000  (Local Loopback)
              RX packets 12  bytes 792 (792.0 B)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 12  bytes 792 (792.0 B)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
      
      # 
      # ifconfig -a
      enP1p1s3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
              ether 00:00:f8:71:bb:14  txqueuelen 1000  (Ethernet)
              RX packets 0  bytes 0 (0.0 B)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 0  bytes 0 (0.0 B)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
      
      enp0s11: flags=4098<BROADCAST,MULTICAST>  mtu 1500
              ether 00:10:18:0c:53:83  txqueuelen 1000  (Ethernet)
              RX packets 0  bytes 0 (0.0 B)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 0  bytes 0 (0.0 B)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
              device interrupt 40
      
      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
              inet 127.0.0.1  netmask 255.0.0.0
              inet6 ::1 prefixlen 128  scopeid 0x10<host>
              loop  txqueuelen 1000  (Local Loopback)
              RX packets 12  bytes 792 (792.0 B)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 12  bytes 792 (792.0 B)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
      
      #
      # net-setup enp0s11
      
      

      なお、インタフェース名を指定せず、# net-setupとすれば、インタフェース名の選択をうながされます。

      NC7771のインタフェース名称は、dmesgの下記の部分から、見つけています。

      
      [   40.329080] tg3 0000:00:0b.0 eth1: Tigon3 [partno(268496-002) rev 1100] (PCI:33MHz:64-bit) MAC address 00:10:18:0c:53:83
      [   76.776327] tg3 0000:00:0b.0 enp0s11: renamed from eth1
      
      
    8. 疎通確認。IPでのリーチャビリティとDNS名前解決の確認を行います
      
      # ping -c 3 www.gentoo.org
      
      
    9. これ以降は、リモートからsshでログインして作業実施。上記のsshdの設定により、rootユーザのパスワード認証によるログインが可能です
    10. インストール先のHDDの設定。インストールしたいディスクにディスクラベルを設定し、パーティションを切る。最初に記載した通り、今回、/bootパーティション用のHDDと/パーティション用のHDDは分けるつもりで、2台用意しています。しかし、HDDがsdaの1台しか認識されていません
      
      # dmesg | grep scsi
      [    4.958005] scsi host0: pata_cypress
      [    4.959958] scsi host1: pata_cypress
      [   16.268546] scsi 0:0:0:0: CD-ROM            COMPAQ   CRD-8322B        1.07 PQ: 0 ANSI: 5
      [   16.284171] sr 0:0:0:0: [sr0] scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
      [   16.287101] sr 0:0:0:0: Attached scsi CD-ROM sr0
      [   16.287101] sr 0:0:0:0: Attached scsi generic sg0 type 5
      [   23.999987] scsi host2: Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 3.0
      [   24.000964] scsi 2:0:0:0: Direct-Access     SEAGATE  ST336607LW       0008 PQ: 0 ANSI: 3
      [   24.000964] scsi target2:0:0: asynchronous
      [   24.000964] scsi2:A:0:0: 
      [   24.000964] scsi target2:0:0: Beginning Domain Validation
      [   24.004870] scsi target2:0:0: wide asynchronous
      [   24.007800] scsi target2:0:0: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RDSTRM RTI WRFLOW PCOMP (6.25 ns, offset 63)
      [   24.018542] scsi 2:0:0:0: Power-on or device reset occurred
      [   24.021472] scsi target2:0:0: Ending Domain Validation
      [   24.022448] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [   24.280261] scsi2: Invalid Sequencer interrupt occurred, resetting channel.
      [   25.699205] scsi2: Invalid Sequencer interrupt occurred, resetting channel.
      [   27.118150] scsi2: Invalid Sequencer interrupt occurred, resetting channel.
      [   33.499982] scsi3: Missing case in ahd_handle_scsiint. status = 0
                     scsi3: Dumping Card State at program address 0x0 Mode 0x33
                     scsi3: FIFO0 Free, LONGJMP == 0x8002, SCB 0x0
                     scsi3: FIFO1 Free, LONGJMP == 0x80d5, SCB 0x0
      [   33.499982] scsi3: LQISTATE = 0x0, LQOSTATE = 0x0, OPTIONMODE = 0x52
      [   33.499982] scsi3: OS_SPACE_CNT = 0x20 MAXCMDCNT = 0x0
      [   33.499982] scsi3: SAVED_SCSIID = 0x0 SAVED_LUN = 0x0
      [   33.499982] scsi3: REG0 == 0x66ab, SINDEX = 0x0, DINDEX = 0x0
      [   33.499982] scsi3: SCBPTR == 0x1ff, SCB_NEXT == 0xff00, SCB_NEXT2 == 0x0
      [   33.500959] scsi host3: Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 3.0
      [   37.804668] scsi(4): initialize: pci probe failed!
      #
      # dmesg | grep sd
      [   24.022448] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [   24.023425] sd 2:0:0:0: [sda] 71687372 512-byte logical blocks: (36.7 GB/34.2 GiB)
      [   24.281237] sd 2:0:0:0: [sda] Write Protect is off
      [   24.281237] sd 2:0:0:0: [sda] Mode Sense: ab 00 10 08
      [   25.441393] sd 2:0:0:0: Power-on or device reset occurred
      [   26.860337] sd 2:0:0:0: Power-on or device reset occurred
      [   27.119126] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
      [   28.149399] sd 2:0:0:0: Power-on or device reset occurred
      [   28.166977]  sda: sda1
      [   28.171860] sd 2:0:0:0: [sda] Attached SCSI disk
      # 
      # # ls -laF /dev/sd*
      brw-rw---- 1 root disk 8, 0 Nov  4 02:10 /dev/sda
      brw-rw---- 1 root disk 8, 1 Nov  4 02:10 /dev/sda1
      # 
      
      

      dmesgからすると、ASC-39320Aに接続されたHDDしか認識されておらず、オンボードのISP1020に接続されたHDDが認識されていないようです。ISP1020のデバイスドライバーはqla1280なので、これをたどりに再度dmesgを見てみると、下記のログがありました。

      
      [   37.803691] qla1280: QLA1040 found on PCI bus 1, dev 6
      [   37.804668] qla1280 0001:01:06.0: Direct firmware load for qlogic/1040.bin failed with error -2
      [   37.804668] Failed to load image "qlogic/1040.bin" err -2
      [   37.804668] scsi(4): initialize: pci probe failed!
      
      

      デバイスドライバーがファームウェアの読み込みに失敗しているようです。initramfsの中身を見てみると、ファームウェア(/lib/firmware/qlogic/1040.bin)は含まれていません。下記のgentoo.igzはブートメディアのinitramfsです。(amd64のブートメディアのinitramfsにもファームウェアは含まれていませんでした。)

      
      # xzcat gentoo.igz | cpio -ivt | grep firmware
      
      

      一方、/ファイルシステムにはファームウェアが置かれているので、ブートメディアのSCSI HBAドライバーがモジュール化されていることを利用して、一度モジュールをアンロード、再度ロードすることで、デバイスドライバーが動作するようになりました。

      
      # lsmod | grep qla1280
      qla1280                34382  0
      # 
      # rmmod qla1280
      # 
      # lsmod | grep qla1280
      # 
      # modprobe qla1280
      # lsmod | grep qla1280
      qla1280                34382  0
      #
      # dmesg
      (省略)
      [  297.765472] qla1280: QLA1040 found on PCI bus 1, dev 6
      [  298.423675] scsi(4:0): Resetting SCSI BUS
      [  301.437345] scsi host4: QLogic QLA1040 PCI to SCSI Host Adapter
                            Firmware version:  7.65.06, Driver version 3.27.1
      [  301.443205] scsi 4:0:0:0: Direct-Access     DEC      RZ2DD-KS (C) DEC 0306 PQ: 0 ANSI: 2
      [  301.444181] scsi(4:0:0:0):
      [  301.444181]  Sync: period 10, offset 12
      [  301.444181] , Wide
      [  301.444181] , Tagged queuing: depth 31
      
      [  301.447111] sd 4:0:0:0: Power-on or device reset occurred
      [  301.447111] sd 4:0:0:0: Attached scsi generic sg2 type 0
      [  301.448087] sd 4:0:0:0: [sdb] 17773524 512-byte logical blocks: (9.10 GB/8.47 GiB)
      [  301.616056] sd 4:0:0:0: [sdb] Write Protect is off
      [  301.616056] sd 4:0:0:0: [sdb] Mode Sense: f3 00 10 08
      [  302.120939] scsi 4:0:5:0: Sequential-Access DEC      TLZ10    (C) DEC 04a8 PQ: 0 ANSI: 2
      [  302.120939] sd 4:0:0:0: [sdb] Write cache: disabled, read cache: enabled, supports DPO and FUA
      [  302.121915] scsi(4:0:5:0):
      [  302.121915]  Sync: period 10, offset 12
      
      [  302.125821] scsi 4:0:5:0: Attached scsi generic sg3 type 1
      [  302.138517] st: Version 20160209, fixed bufsize 32768, s/g segs 256
      [  302.147306] st 4:0:5:0: Attached scsi tape st0
      [  302.147306] st 4:0:5:0: st0: try direct i/o: yes (alignment 4 B)
      [  303.648282]  sdb: sdb1 sdb2 sdb3
      [  303.662930] sd 4:0:0:0: [sdb] Attached SCSI disk
      # 
      # ls -laF /dev/sd*
      brw-rw---- 1 root disk 8,  0 Nov  4 03:23 /dev/sda
      brw-rw---- 1 root disk 8,  1 Nov  4 03:23 /dev/sda1
      brw-rw---- 1 root disk 8, 16 Nov  4 03:27 /dev/sdb
      brw-rw---- 1 root disk 8, 17 Nov  4 03:27 /dev/sdb1
      brw-rw---- 1 root disk 8, 18 Nov  4 03:27 /dev/sdb2
      brw-rw---- 1 root disk 8, 19 Nov  4 03:27 /dev/sdb3
      # 
      
      

      これで、インストールに使用するHDDが2台とも準備できました。デバイス名は、/bootパーティション用が/dev/sdb、/パーティション用が/dev/sdaです。念のため、ディスクラベルを消去します。

      
      #  dd if=/dev/zero of=/dev/sda bs=512 count=1
      1+0 records in
      1+0 records out
      512 bytes copied, 0.002931 s, 175 kB/s
      # 
      # fdisk -l /dev/sda
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      # 
      # dd if=/dev/zero of=/dev/sdb bs=512 count=1
      1+0 records in
      1+0 records out
      512 bytes copied, 0.014655 s, 34.9 kB/s
      # 
      # fdisk -l /dev/sdb
      Disk /dev/sdb: 8.5 GiB, 9100044288 bytes, 17773524 sectors
      Disk model: RZ2DD-KS (C) DEC
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      # 
      
      

      次にfdiskコマンドでディスクラベルを書き込むのですが、これがうまくいきません。

      
      # fdisk /dev/sda
      
      Welcome to fdisk (util-linux 2.33.2).
      Changes will remain in memory only, until you decide to write them.
      Be careful before using the write command.
      
      Device does not contain a recognized partition table.
      Created a new DOS disklabel with disk identifier 0x87ebb23a.
      
      Command (m for help): m
      
      Help:
      
        DOS (MBR)
         a   toggle a bootable flag
         b   edit nested BSD disklabel
         c   toggle the dos compatibility flag
      
        Generic
         d   delete a partition
         F   list free unpartitioned space
         l   list known partition types
         n   add a new partition
         p   print the partition table
         t   change a partition type
         v   verify the partition table
         i   print information about a partition
      
        Misc
         m   print this menu
         u   change display/entry units
         x   extra functionality (experts only)
      
        Script
         I   load disk layout from sfdisk script file
         O   dump disk layout to sfdisk script file
      
        Save & Exit
         w   write table to disk and exit
         q   quit without saving changes
      
        Create a new label
         g   create a new empty GPT partition table
         G   create a new empty SGI (IRIX) partition table
         o   create a new empty DOS partition table
         s   create a new empty Sun partition table
      
      
      Command (m for help): b
      There is no *BSD partition on /dev/sda.
      
      The device (null) does not contain BSD disklabel.
      
      Do you want to create a BSD disklabel? [Y]es/[N]o: Y
      There is no *BSD partition on /dev/sda.
      
      Command (m for help): p
      
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: dos
      Disk identifier: 0x87ebb23a
      
      Command (m for help): q
      
      # 
      
      

      ブートディスク付属のfdiskコマンドは、入れ子形式(nested)のBSDディスクラベルしか作成できないようです。検索してみたところ、partedコマンドでHDD全体のBSDディスクラベルが作成できると分かりました。

      
      # parted /dev/sda
      GNU Parted 3.2
      Using /dev/sda
      Welcome to GNU Parted! Type 'help' to view a list of commands.
      (parted) help
        align-check TYPE N                        check partition N for TYPE(min|opt)
              alignment
        help [COMMAND]                           print general help, or help on
              COMMAND
        mklabel,mktable LABEL-TYPE               create a new disklabel (partition
              table)
        mkpart PART-TYPE [FS-TYPE] START END     make a partition
        name NUMBER NAME                         name partition NUMBER as NAME
        print [devices|free|list,all|NUMBER]     display the partition table,
              available devices, free space, all found partitions, or a particular
              partition
        quit                                     exit program
        rescue START END                         rescue a lost partition near START
              and END
        resizepart NUMBER END                    resize partition NUMBER
        rm NUMBER                                delete partition NUMBER
        select DEVICE                            choose the device to edit
        disk_set FLAG STATE                      change the FLAG on selected device
        disk_toggle [FLAG]                       toggle the state of FLAG on selected
              device
        set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
        toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
              NUMBER
        unit UNIT                                set the default unit to UNIT
        version                                  display the version number and
              copyright information of GNU Parted
      (parted) help mktable
        mklabel,mktable LABEL-TYPE               create a new disklabel (partition
              table)
      
      	LABEL-TYPE is one of: aix, amiga, bsd, dvh, gpt, mac, msdos, pc98, sun,
              loop
      (parted) mktable bsd
      (parted) q
      Information: You may need to update /etc/fstab.
      
      # 
      # fdisk -l /dev/sda
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      # 
      # parted /dev/sdb
      GNU Parted 3.2
      Using /dev/sdb
      Welcome to GNU Parted! Type 'help' to view a list of commands.
      (parted) mktable bsd
      (parted) q
      Information: You may need to update /etc/fstab.
      
      # 
      # fdisk -l /dev/sdb
      Disk /dev/sdb: 8.5 GiB, 9100044288 bytes, 17773524 sectors
      Disk model: RZ2DD-KS (C) DEC
      Geometry: 255 heads, 63 sectors/track, 1106 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      # 
      
      

      いちどBSDディスクラベルとして認識すれば、fdiskコマンドでパーティションを切ることが可能です。

      パーティションは下記のようにしました。

      /bootパーティション
      /bootパーティション用HDDのaパーティション(/dev/sdb1)。1GB
      swap
      /パーティション用HDDのbパーティション(/dev/sda2)。4GB
      /パーティション
      /パーティション用HDDのgパーティション(/dev/sda7)。ディスクの残り全部

      fdiskコマンドの実行は下記の通りです。なお、/パーティション用HDDに未使用のaパーティション(/dev/sda1)を作っています。(bパーティションからはじまるのは気持ち悪かったので。)

      
      # fdisk /dev/sdb
      
      Welcome to fdisk (util-linux 2.33.2).
      Changes will remain in memory only, until you decide to write them.
      Be careful before using the write command.
      
      
      Command (m for help): m
      
      Help:
      
        BSD
         e   edit drive data
         i   install bootstrap
         s   show complete disklabel
         x   link BSD partition to non-BSD partition
      
        Generic
         d   delete a partition
         F   list free unpartitioned space
         l   list known partition types
         n   add a new partition
         p   print the partition table
         t   change a partition type
         i   print information about a partition
      
        Misc
         m   print this menu
         u   change display/entry units
      
        Script
         I   load disk layout from sfdisk script file
         O   dump disk layout to sfdisk script file
      
        Save & Exit
         w   write table to disk
         q   quit without saving changes
      
      
      Command (m for help): p
      Disk /dev/sdb: 8.5 GiB, 9100044288 bytes, 17773524 sectors
      Disk model: RZ2DD-KS (C) DEC
      Geometry: 255 heads, 63 sectors/track, 1106 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Command (m for help): n
      Partition number (a-p, default a): c
      First sector (0-17767889, default 0): 
      Last sector, +/-sectors or +/-size{K,M,G,T,P} (0-17767889, default 17767889): 
      
      Command (m for help): p
      
      Disk /dev/sdb: 8.5 GiB, 9100044288 bytes, 17773524 sectors
      Disk model: RZ2DD-KS (C) DEC
      Geometry: 255 heads, 63 sectors/track, 1106 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice Start      End  Sectors  Size Type     Fsize Bsize Cpg
      c         0 17767889 17767890  8.5G unused       0     0   0
      
      Command (m for help): n
      Partition number (a,b,d-p, default a): a
      First sector (0-17767889, default 0): 16065
      Last sector, +/-sectors or +/-size{K,M,G,T,P} (16065-17767889, default 17767889):: +1024M
      
      Command (m for help): t
      Partition number (a,c, default c): a
      Hex code (type L to list all codes): L
      
       0  unused           5  4.1BSD           9  4.4LFS           d  boot           
       1  swap             6  Eighth Edition   a  unknown          e  ADOS           
       2  Version 6        7  4.2BSD           b  HPFS             f  HFS            
       3  Version 7        8  ext2             c  ISO-9660        10  AdvFS          
       4  System V       
      Hex code (type L to list all codes): 8
      
      Changed type of partition 'unused' to 'ext2'.
      
      Command (m for help): p
      Disk /dev/sdb: 8.5 GiB, 9100044288 bytes, 17773524 sectors
      Disk model: RZ2DD-KS (C) DEC
      Geometry: 255 heads, 63 sectors/track, 1106 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice Start      End  Sectors  Size Type     Fsize Bsize Cpg
      a     16065  2113217  2097153    1G ext2         0     0   0
      c         0 17767889 17767890  8.5G unused       0     0   0
      
      Partition table entries are not in disk order.
      
      Command (m for help): w
      Syncing disks.
      Disklabel written to /dev/sdb.
      The partition table has been altered.
      Calling ioctl() to re-read partition table.
      Syncing disks.
      
      # 
      # fdisk /dev/sda
      
      Welcome to fdisk (util-linux 2.33.2).
      Changes will remain in memory only, until you decide to write them.
      Be careful before using the write command.
      
      
      Command (m for help): p
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Command (m for help): n
      Partition number (a-p, default a): c
      First sector (0-71682029, default 0): 
      Last sector, +/-sectors or +/-size{K,M,G,T,P} (0-71682029, default 71682029): 
      
      Command (m for help): p
      
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice Start      End  Sectors  Size Type     Fsize Bsize Cpg
      c         0 71682029 71682030 34.2G unused       0     0   0
      
      Command (m for help): n
      Partition number (a,b,d-p, default a): a
      First sector (0-71682029, default 0): 16065
      Last sector, +/-sectors or +/-size{K,M,G,T,P} (16065-71682029, default 71682029):: +1024M
      
      Command (m for help): p
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice Start      End  Sectors  Size Type     Fsize Bsize Cpg
      a     16065  2113217  2097153    1G unused       0     0   0
      c         0 71682029 71682030 34.2G unused       0     0   0
      
      Partition table entries are not in disk order.
      
      Command (m for help): n
      Partition number (b,d-p, default b): b
      First sector (0-71682029, default 0): 2113218
      Last sector, +/-sectors or +/-size{K,M,G,T,P} (2113218-71682029, default 716820299): +4096M
      
      Command (m for help): t
      Partition number (a-c, default c): L
      Value out of range.
      Partition number (a-c, default c): b
      Hex code (type L to list all codes): L
      
       0  unused           5  4.1BSD           9  4.4LFS           d  boot           
       1  swap             6  Eighth Edition   a  unknown          e  ADOS           
       2  Version 6        7  4.2BSD           b  HPFS             f  HFS            
       3  Version 7        8  ext2             c  ISO-9660        10  AdvFS          
       4  System V       
      Hex code (type L to list all codes): 1
      
      Changed type of partition 'unused' to 'swap'.
      
      Command (m for help): p
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice   Start      End  Sectors  Size Type     Fsize Bsize Cpg
      a       16065  2113217  2097153    1G unused       0     0   0
      b     2113218 10501826  8388609    4G swap         0     0   0
      c           0 71682029 71682030 34.2G unused       0     0   0
      
      Partition table entries are not in disk order.
      
      Command (m for help): n
      Partition number (d-p, default d): g
      First sector (0-71682029, default 0): 10501827
      Last sector, +/-sectors or +/-size{K,M,G,T,P} (10501827-71682029, default 716820229): 
      
      Command (m for help): t
      Partition number (a-c,g, default g): g
      Hex code (type L to list all codes): L
      
       0  unused           5  4.1BSD           9  4.4LFS           d  boot           
       1  swap             6  Eighth Edition   a  unknown          e  ADOS           
       2  Version 6        7  4.2BSD           b  HPFS             f  HFS            
       3  Version 7        8  ext2             c  ISO-9660        10  AdvFS          
       4  System V       
      Hex code (type L to list all codes): a
      
      Changed type of partition 'unused' to 'unknown'.
      
      Command (m for help): p
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice    Start      End  Sectors  Size Type     Fsize Bsize Cpg
      a        16065  2113217  2097153    1G unused       0     0   0
      b      2113218 10501826  8388609    4G swap         0     0   0
      c            0 71682029 71682030 34.2G unused       0     0   0
      g     10501827 71682029 61180203 29.2G unknown      0     0   0
      
      Partition table entries are not in disk order.
      
      Command (m for help): w
      Syncing disks.
      Disklabel written to /dev/sda.
      The partition table has been altered.
      Calling ioctl() to re-read partition table.
      Syncing disks.
      
      # 
      # fdisk -l /dev/sdb
      Disk /dev/sdb: 8.5 GiB, 9100044288 bytes, 17773524 sectors
      Disk model: RZ2DD-KS (C) DEC
      Geometry: 255 heads, 63 sectors/track, 1106 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice Start      End  Sectors  Size Type     Fsize Bsize Cpg
      a     16065  2113217  2097153    1G ext2         0     0   0
      c         0 17767889 17767890  8.5G unused       0     0   0
      
      Partition table entries are not in disk order.
      # 
      # fdisk -l /dev/sda
      Disk /dev/sda: 34.2 GiB, 36703934464 bytes, 71687372 sectors
      Disk model: ST336607LW      
      Geometry: 255 heads, 63 sectors/track, 4462 cylinders
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: bsd
      
      Slice    Start      End  Sectors  Size Type     Fsize Bsize Cpg
      a        16065  2113217  2097153    1G unused       0     0   0
      b      2113218 10501826  8388609    4G swap         0     0   0
      c            0 71682029 71682030 34.2G unused       0     0   0
      g     10501827 71682029 61180203 29.2G unknown      0     0   0
      
      Partition table entries are not in disk order.
      # 
      
      

      Handbookとの違いは下記の通りです。

    11. ファイルシステム作成。abootはExt2またはExt3しか認識できないので、/bootパーティションはExt2にする。/パーティションはXFSにする
      
      # mkfs.ext2 /dev/sdb1
      mke2fs 1.45.2 (27-May-2019)
      Creating filesystem with 262144 4k blocks and 65536 inodes
      Filesystem UUID: 7c8964ed-906c-477e-be74-971ce0dd388f
      Superblock backups stored on blocks: 
      	32768, 98304, 163840, 229376
      
      Allocating group tables: 0/8   done                            
      Writing inode tables: 0/83/8   done                            
      Writing superblocks and filesystem accounting information: 0/8   done
      
      # 
      # mkfs.xfs /dev/sda7
      meta-data=/dev/sda7              isize=512    agcount=4, agsize=1911882 blks
               =                       sectsz=512   attr=2, projid32bit=1
               =                       crc=1        finobt=1, sparse=1, rmapbt=0
               =                       reflink=0
      data     =                       bsize=4096   blocks=7647525, imaxpct=25
               =                       sunit=0      swidth=0 blks
      naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
      log      =internal log           bsize=4096   blocks=3734, version=2
               =                       sectsz=512   sunit=0 blks, lazy-count=1
      realtime =none                   extsz=4096   blocks=0, rtextents=0
      # 
      
      
    12. swapの有効化
      
      # swapon -s 
      # 
      # mkswap /dev/sda2
      Setting up swapspace version 1, size = 4 GiB (4294959104 bytes)
      no label, UUID=55496905-65ca-414f-8c31-29c475e46cbe
      # swapon /dev/sda2
      # 
      # swapon -s
      Filename				Type		Size	Used	Priority
      /dev/sda2                              	partition	4194296	0	-2
      # 
      
      
    13. /ファイルシステムのマウント

      システムのインストール先として、/ファイルシステムを/mnt/gentooにマウントします。しかし、エラーでマウントできませんでした。

      
      # mount /dev/sda7 /mnt/gentoo
      mount: /mnt/gentoo: unknown filesystem type 'xfs'.
      # 
      # mount
      proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=96153,mode=755)
      devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
      sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      tmpfs on / type tmpfs (rw,relatime)
      /dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
      /mnt/cdrom/image.squashfs on /mnt/livecd type squashfs (ro,relatime)
      tmpfs on /run type tmpfs (rw,nodev,relatime,size=154320k,mode=755)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
      cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
      openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
      none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
      shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
      binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
      # 
      
      

      dmesgを確認すると、以下のログがありました。

      
      [   39.954081] module xfs: Relocation (type 4) overflow vs xfs_btree_init_block
      [   39.970682] module xfs: Relocation (type 4) overflow vs xfs_btree_init_block
      
      

      また、mountを実行したタイミングでも、下記ログが記録されていました。

      
      [  948.756350] module xfs: Relocation (type 4) overflow vs xfs_btree_init_block
      
      

      いずれも、XFSモジュールをロードするのに失敗しているようです。実際、XFSモジュールはロードされていません。

      
      # lsmod
      Module                  Size  Used by
      binfmt_misc            10654  1
      tg3                   217446  0
      e1000                 148587  0
      msdos                  11343  0
      fat                    81110  1 msdos
      fuse                  124203  1
      nfs                   190302  0
      lockd                  95434  1 nfs
      grace                   2569  1 lockd
      sunrpc                279108  2 lockd,nfs
      jfs                   236417  0
      reiserfs              317686  0
      linear                  5192  0
      raid10                 57429  0
      raid456               147797  0
      async_raid6_recov       1897  1 raid456
      async_memcpy            1238  1 raid456
      async_pq                3036  1 raid456
      raid6_pq               93971  3 async_pq,raid456,async_raid6_recov
      async_xor               2009  2 async_pq,raid456
      xor                     7332  1 async_xor
      async_tx                1833  5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
      libcrc32c               1422  1 raid456
      raid1                  42315  0
      raid0                   9909  0
      md_mod                159681  5 raid1,raid10,raid0,linear,raid456
      dm_snapshot            45345  0
      dm_mirror              19442  0
      dm_region_hash         10499  1 dm_mirror
      dm_log                 12064  2 dm_region_hash,dm_mirror
      dm_crypt               39083  0
      dm_bufio               23230  1 dm_snapshot
      dm_mod                144781  5 dm_crypt,dm_log,dm_snapshot,dm_mirror,dm_bufio
      usb_storage            61353  0
      aic94xx               111915  0
      qla2xxx               990179  0
      megaraid_sas          181936  0
      megaraid_mbox          39664  0
      megaraid_mm            11481  1 megaraid_mbox
      aacraid               147874  0
      DAC960                102839  0
      3w_9xxx                42599  0
      3w_xxxx                33065  0
      mptsas                 55299  0
      mptfc                  15473  0
      mptspi                 19061  0
      mptscsih               24637  3 mptsas,mptspi,mptfc
      mptbase                75622  4 mptsas,mptspi,mptfc,mptscsih
      atp870u                35293  0
      dc395x                 49830  0
      sim710                  3739  0
      53c700                 30629  1 sim710
      qla1280                34382  0
      dmx3191d               16273  0
      sym53c8xx              98513  0
      qlogicfas408            9005  0
      gdth                  110926  0
      advansys               92053  0
      initio                 33883  0
      BusLogic              120744  0
      arcmsr                 59332  0
      aic7xxx               167177  0
      aic79xx               187328  0
      sata_sil24             16023  0
      sata_sil                9621  0
      pata_via                9139  0
      pata_pdc202xx_old       6377  0
      pata_hpt366             5827  0
      pata_pdc2027x           8718  0
      # 
      # lsmod | grep xfs
      # 
      
      

      検索してみたところ、モジュールをロードできないのは、根深い問題であることが分かりました。このため、XFSを使用するのはあきらめ、Ext4に変更しました。

      
      # mkfs.ext4 /dev/sda7
      mke2fs 1.45.2 (27-May-2019)
      /dev/sda7 contains a xfs file system
      Proceed anyway? (y,N) y
      Creating filesystem with 7647524 4k blocks and 1913184 inodes
      Filesystem UUID: 71dd7c65-e725-41f7-a340-dc571854f741
      Superblock backups stored on blocks: 
      	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
      	4096000
      
      Allocating group tables:   0/234       done                            
      Writing inode tables:   0/234       done                            
      Creating journal (32768 blocks): 
      done
      Writing superblocks and filesystem accounting information:   0/234       done
      
      # 
      # mount /dev/sda7 /mnt/gentoo
      # 
      # mount
      proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=96153,mode=755)
      devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
      sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      tmpfs on / type tmpfs (rw,relatime)
      /dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
      /mnt/cdrom/image.squashfs on /mnt/livecd type squashfs (ro,relatime)
      tmpfs on /run type tmpfs (rw,nodev,relatime,size=154320k,mode=755)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
      cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
      openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
      none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
      shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
      binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
      /dev/sda7 on /mnt/gentoo type ext4 (rw,relatime)
      # 
      
      
    14. 日付時刻を合わせる
      
      # date
      Thu Nov  4 03:39:44 UTC 1999
      # ntpd -q -g
       4 Nov 03:39:48 ntpd[8158]: ntpd 4.2.8p13@1.3847-o Wed Mar 20 09:30:47 UTC 2019 (1): Starting
       4 Nov 03:39:48 ntpd[8158]: Command line: ntpd -q -g
       4 Nov 03:39:48 ntpd[8158]: proto: precision = 977.001 usec (-10)
       4 Nov 03:39:48 ntpd[8158]: proto: fuzz beneath 0.988 usec
       4 Nov 03:39:48 ntpd[8158]: basedate set to 2019-03-08
       4 Nov 03:39:48 ntpd[8158]: gps base set to 2019-03-10 (week 2044)
       4 Nov 03:39:48 ntpd[8158]: Listen and drop on 0 v6wildcard [::]:123
       4 Nov 03:39:48 ntpd[8158]: Listen and drop on 1 v4wildcard 0.0.0.0:123
       4 Nov 03:39:48 ntpd[8158]: Listen normally on 2 lo 127.0.0.1:123
       4 Nov 03:39:48 ntpd[8158]: Listen normally on 3 enp0s11 192.168.65.24:123
       4 Nov 03:39:48 ntpd[8158]: Listen normally on 4 lo [::1]:123
       4 Nov 03:39:48 ntpd[8158]: Listen normally on 5 enp0s11 [fe80::210:18ff:fe0c:5383%3]:123
       4 Nov 03:39:48 ntpd[8158]: Listening on routing socket on fd #22 for interface updates
       4 Nov 03:40:14 ntpd[8158]: ntpd: time set +631152010.480586 s
      ntpd: time set +631152010.480586s
      # date
      Mon Nov  4 03:40:15 UTC 2019
      # 
      
      
    15. stage3 tarballインストール

      今回はWindows 10に事前にダウンロードし、チェックサムを確認済みのstage3 tarballをscpで転送しました。

      
      # cd /mnt/gentoo
      # scp -p xxxx@xxx.xxx.xxx.xxx:stage3-alpha-20190820T0155341Z.tar.bz2 .
      (省略)
      # tar xpvf stage3-*.tar.bz2 --xattrs-include='*.*' --numeric-oowner
      ./
      ./tmp/
      ./tmp/.keep
      ./bin/
      ./bin/awk
      ./bin/bzip2
      ./bin/bunzip2
      ./bin/bzcat
      ./bin/gzip
      (省略)
      ./var/log/tallylog
      ./var/spool/
      ./var/spool/.keep
      ./var/tmp/
      ./var/tmp/.keep
      # 
      
      
    16. コンパイルオプション設定

      CFLAGSCXXFLAGSおよびMAKEOPTSを設定します。具体的には、/mnt/gentoo/etc/portage/make.conf(インストール後の/etc/portage/make.conf)のCOMMON_FLAGS-mcpuオプションをCPUに合わせて変更するのと、CPU数に合わせてMAKEOPTS-jオプションを追加します。

      CFLAGSCXXFLAGSは、それぞれ、Cコンパイラー、C++コンパイラーのコンパイルオプションですが、Alphaアーキテクチャーでは-mcpuオプションで、CPUモデルを指定し、スケジューリングや命令セットを最適化します。-mcpuの有効な値(cpu_type)は下記の通りです。

      cpu_type スケージューリング 命令セット拡張
      ev4 ev45 21064 EV4 (no extensions)
      ev5 21164 EV5 (no extensions)
      ev56 21164a EV5 BWX
      pca56 21164pc 21164PC EV5 BWX MAX
      ev6 21264 EV6 BWX FIX MAX
      ev67 21264a EV6 BWX CIX FIX MAX
      native 実行機器に最適化

      MAKEOPTSは、makeコマンドにわたりますが、-jオプションは並列度を示します。一般的には、プロセッサーの数+1を指定します。

      今回インストールしたXP1000は、EV67のシングルプロセッサーなので、本来-mcpuev67が最適なのですが、ev6にしてしまいました。配布からの変更点は下記の2行です。

      
      COMMON_FLAGS="-mieee -pipe -O2 -mcpu=ev6"
      MAKEOPTS="-j2"
      
      

      ファイル全体は下記の通りです。

      
      # cat /mnt/gentoo/etc/portage/make.conf
      # These settings were set by the catalyst build script that automatically
      # built this stage.
      # Please consult /usr/share/portage/config/make.conf.example for a more
      # detailed example.
      COMMON_FLAGS="-mieee -pipe -O2 -mcpu=ev6"
      CFLAGS="${COMMON_FLAGS}"
      CXXFLAGS="${COMMON_FLAGS}"
      FCFLAGS="${COMMON_FLAGS}"
      FFLAGS="${COMMON_FLAGS}"
      # WARNING: Changing your CHOST is not something that should be done lightly.
      # Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
      CHOST="alpha-unknown-linux-gnu"
      
      # NOTE: This stage was built with the bindist Use flag enabled
      PORTDIR="/usr/portage"
      DISTDIR="/usr/portage/distfiles"
      PKGDIR="/usr/portage/packages"
      
      # This sets the language of build output to English.
      # Please keep this setting intact when reporting bugs.
      LC_MESSAGES=C
      
      MAKEOPTS="-j2"
      # 
      
      
    17. ミラーサーバーの設定

      ハンドブックには、# mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.confするようにあるのですが、何が起きるのか見たかったので、リダイレクトはせずに実行しました。

      
      # mirrorselect -i -o
      
      (メニュー形式で、ミラーサーバーの選択をSPCにて選択。今回は、http://ftp.iij.ad.jp/pub/linux/gentoo/およびhttp://ftp.jaist.ac.jp/pub/Linux/Gentoo/の2つ)
      
      GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
      # 
      
      

      選択したミラーサーバーのURLを変数に包んでくれました。手作業で、これを/mnt/gentoo/etc/portage/make.confに追加しました。

    18. ebuildリポジトリの設定
      
      # mkdir --parents /mnt/gentoo/etc/portage/repos.conf
      # cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/genttoo/etc/portage/repos.conf/gentoo.conf
      # cat /mnt/gentoo/etc/portage/repos.conf/gentoo.conf 
      [DEFAULT]
      main-repo = gentoo
      
      [gentoo]
      location = /usr/portage
      sync-type = rsync
      sync-uri = rsync://rsync.gentoo.org/gentoo-portage
      auto-sync = yes
      sync-rsync-verify-jobs = 1
      sync-rsync-verify-metamanifest = yes
      sync-rsync-verify-max-age = 24
      sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
      sync-openpgp-keyserver = hkps://keys.gentoo.org
      sync-openpgp-key-refresh-retry-count = 40
      sync-openpgp-key-refresh-retry-overall-timeout = 1200
      sync-openpgp-key-refresh-retry-delay-exp-base = 2
      sync-openpgp-key-refresh-retry-delay-max = 60
      sync-openpgp-key-refresh-retry-delay-mult = 4
      sync-webrsync-verify-signature = yes
      
      # for daily squashfs snapshots
      #sync-type = squashdelta
      #sync-uri = mirror://gentoo/../snapshots/squashfs
      # 
      
      
    19. DNS名前解決設定のコピー。先にnet-setupで設定した内容をインストール先にコピー
      
      # cp --dereference /etc/resolv.conf /mnt/gentoo/etc/
      
      
    20. インストール先のchroot環境で必要なファイル群をマウント
      
      # mount --types proc /proc /mnt/gentoo/proc
      # mount --rbind /sys /mnt/gentoo/sys
      # mount --make-rslave /mnt/gentoo/sys
      # mount --rbind /dev /mnt/gentoo/dev
      # mount --make-rslave /mnt/gentoo/dev
      # 
      # mount
      proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=96153,mode=755)
      devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
      sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      tmpfs on / type tmpfs (rw,relatime)
      /dev/sr0 on /mnt/cdrom type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
      /mnt/cdrom/image.squashfs on /mnt/livecd type squashfs (ro,relatime)
      tmpfs on /run type tmpfs (rw,nodev,relatime,size=154320k,mode=755)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
      cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
      openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
      none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
      shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
      binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
      /dev/sda7 on /mnt/gentoo type ext4 (rw,relatime)
      /proc on /mnt/gentoo/proc type proc (rw,relatime)
      sysfs on /mnt/gentoo/sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      fusectl on /mnt/gentoo/sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
      cgroup_root on /mnt/gentoo/sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
      openrc on /mnt/gentoo/sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
      none on /mnt/gentoo/sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
      udev on /mnt/gentoo/dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=96153,mode=755)
      devpts on /mnt/gentoo/dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
      shm on /mnt/gentoo/dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
      # 
      
      
    21. インストール先にchroot
      
      # chroot /mnt/gentoo /bin/bash
      # source /etc/profile
      # export PS1="(chroot) ${PS1}"
      # 
      
      
    22. /bootパーティションのマウント
      
      # mount /dev/sdb1 /boot
      #
      # mount
      /dev/sda7 on / type ext4 (rw,relatime)
      /proc on /proc type proc (rw,relatime)
      sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
      cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
      openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc)
      none on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
      udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=96153,mode=755)
      devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
      shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdb1 on /boot type ext2 (rw,relatime)
      # 
      
      
    23. ebuildリポジトリのスナップショットをインストール
      
      # emerge-webrsync
      !!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
      !!! Invalid Repository Location (not a dir): '/usr/portage'
      Fetching most recent snapshot ...
      Trying to retrieve 20191103 snapshot from http://ftp.jaist.ac.jp/pub/Linux/Gentoo ...
      Fetching file portage-20191103.tar.xz.md5sum ...
      Fetching file portage-20191103.tar.xz.gpgsig ...
      Fetching file portage-20191103.tar.xz ...
      Checking digest ...
      Getting snapshot timestamp ...
      Syncing local tree ...
      
      Number of files: 161,228 (reg: 134,252, dir: 26,976)
      Number of created files: 161,227 (reg: 134,252, dir: 26,975)
      Number of deleted files: 0
      Number of regular files transferred: 134,252
      Total file size: 216.74M bytes
      Total transferred file size: 216.74M bytes
      Literal data: 216.74M bytes
      Matched data: 0 bytes
      File list size: 4.32M
      File list generation time: 0.003 seconds
      File list transfer time: 0.000 seconds
      Total bytes sent: 114.46M
      Total bytes received: 2.67M
      
      sent 114.46M bytes  received 2.67M bytes  428.26K bytes/sec
      total size is 216.74M  speedup is 1.85
      Cleaning up ...
      
      Performing Global Updates
      (Could take a couple of minutes if you have a lot of binary packages.)
      
      
      
       * IMPORTANT: 6 news items need reading for repository 'gentoo'.
       * Use eselect news read to view new items.
      
      # 
      
      
    24. ebuildリポジトリ更新
      
      # emerge --sync
      >>> Syncing repository 'gentoo' into '/usr/portage'...
       * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
       * Refreshing keys via WKD ...                                           [ ok ]
      >>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
      >>> Checking server timestamp ...
      Welcome to turnstone.gentoo.org / rsync.gentoo.org
      
      Server Address : 89.238.71.6, 2a00:1828:a00d:ffff::6
      Contact Name   : mirror-admin@gentoo.org
      Hardware       : 16 x Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 24160MB RAM
      Sponsor        : Manitu GmbH, St. Wendel, Germany
      
      Please note: common gentoo-netiquette says you should not sync more
      than once a day.  Users who abuse the rsync.gentoo.org rotation
      may be added to a temporary ban list.
      
      MOTD autogenerated by update-rsync-motd on Thu Apr  4 19:04:00 UTC 2019
      
      receiving incremental file list
      timestamp.chk
      
      Number of files: 1 (reg: 1)
      Number of created files: 0
      Number of deleted files: 0
      Number of regular files transferred: 1
      Total file size: 32 bytes
      Total transferred file size: 32 bytes
      Literal data: 32 bytes
      Matched data: 0 bytes
      File list size: 41
      File list generation time: 0.001 seconds
      File list transfer time: 0.000 seconds
      Total bytes sent: 104
      Total bytes received: 132
      
      sent 104 bytes  received 132 bytes  67.43 bytes/sec
      total size is 32  speedup is 0.14
      Welcome to turnstone.gentoo.org / rsync.gentoo.org
      
      Server Address : 89.238.71.6, 2a00:1828:a00d:ffff::6
      Contact Name   : mirror-admin@gentoo.org
      Hardware       : 16 x Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 24160MB RAM
      Sponsor        : Manitu GmbH, St. Wendel, Germany
      
      Please note: common gentoo-netiquette says you should not sync more
      than once a day.  Users who abuse the rsync.gentoo.org rotation
      may be added to a temporary ban list.
      
      MOTD autogenerated by update-rsync-motd on Thu Apr  4 19:04:00 UTC 2019
      
      receiving incremental file list
      Manifest
      Manifest.files.gz
      gui-libs/Manifest.gz
      gui-libs/wlroots/Manifest
      gui-libs/wlroots/wlroots-0.8.1.ebuild
      metadata/.checksum-test-marker
      metadata/Manifest.gz
      metadata/timestamp
      metadata/timestamp.chk
      metadata/timestamp.commit
      metadata/timestamp.x
      metadata/dtd/timestamp.chk
      metadata/glsa/Manifest
      metadata/glsa/timestamp.chk
      metadata/md5-cache/Manifest.gz
      metadata/md5-cache/gui-libs/Manifest.gz
      metadata/md5-cache/gui-libs/wlroots-0.8.1
      metadata/news/Manifest
      metadata/news/timestamp.chk
      metadata/xml-schema/timestamp.chk
      
      Number of files: 161,231 (reg: 134,255, dir: 26,976)
      Number of created files: 3 (reg: 3)
      Number of deleted files: 0
      Number of regular files transferred: 20
      Total file size: 216.75M bytes
      Total transferred file size: 72.80K bytes
      Literal data: 72.80K bytes
      Matched data: 0 bytes
      File list size: 3.47M
      File list generation time: 0.001 seconds
      File list transfer time: 0.000 seconds
      Total bytes sent: 30.01K
      Total bytes received: 4.05M
      
      sent 30.01K bytes  received 4.05M bytes  50.11K bytes/sec
      total size is 216.75M  speedup is 53.07
       * Manifest timestamp: 2019-11-04 03:38:49 UTC
       * Valid OpenPGP signature found:
       * - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
       * - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
       * - timestamp: 2019-11-04 03:38:49 UTC
       * Verifying /usr/portage/.tmp-unverified-download-quarantine ...        [ ok ]
      === Sync completed for gentoo
      q: Updating ebuild cache for /usr/portage ... 
      q: Finished 36016 entries in 1.816244 seconds
      
       * IMPORTANT: 6 news items need reading for repository 'gentoo'.
       * Use eselect news read to view new items.
      
      
      Action: sync for repo: gentoo, returned code = 0
      
       * An update to portage is available. It is _highly_ recommended
       * that you update portage now, before any other packages are updated.
      
       * To update portage, run 'emerge --oneshot portage' now.
      
      
      
      # 
      
      

      今回は、(emerge-webrsyncで取得した)スナップショット作成後にebuildリポジトリにほとんど変更が入らなかったようでした。頻繁に修正が行われたタイミングだと、emerge --syncの処理が長くなります。

    25. ニュースを読む
      
      # eselect news list
      News items:
        [1]   N  2015-08-13  OpenSSH 7.0 disables ssh-dss keys by default
        [2]   N  2015-10-22  GCC 5 Defaults to the New C++11 ABI
        [3]   N  2016-06-19  L10N USE_EXPAND variable replacing LINGUAS
        [4]   N  2017-10-10  Perl 5.26 update: possible breakage
        [5]   N  2018-08-07  Migration required for OpenSSH with LDAP
        [6]   N  2019-05-23  Change of ACCEPT_LICENSE default
      # eselect news read
      2015-08-13-openssh-weak-keys
        Title                     OpenSSH 7.0 disables ssh-dss keys by default
        Author                    Mike Frysinger <vapier@gentoo.org>
        Posted                    2015-08-13
        Revision                  1
      
      Starting with the 7.0 release of OpenSSH, support for ssh-dss keys has
      been disabled by default at runtime due to their inherit weakness.  If
      (省略)
      [4] https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage#Licenses
      [5] https://wiki.gentoo.org/wiki/License_groups
      
      # 
      
      
    26. profile選択
      
      # eselect profile list
      Available profile symlink targets:
        [1]   default/linux/alpha/17.0 (stable) *
        [2]   default/linux/alpha/17.0/desktop (stable)
        [3]   default/linux/alpha/17.0/desktop/gnome (stable)
        [4]   default/linux/alpha/17.0/desktop/gnome/systemd (stable)
        [5]   default/linux/alpha/17.0/developer (stable)
      # 
      
      

      現在選択されているprofileの末尾に"*"がついています。現在は、[1]の"default/linux/alpha/17.0 (stable)"が選択されています。今回はデスクトップ環境(X Window System関連)はインストールせず、おいおい環境を整えていくため、インストール時間の削減のためもあり、profileを変更しません。profileを変更する場合、eselect profile set <profile number>とします。

    27. portage更新

      先のemerge --sync実行時のメッセージに、portageのアップデートせよとあったので、アップデートします。

      
      # emerge --oneshot portage
      (省略)
      # 
      
      
    28. @world更新
      
      # emerge --ask --verbose --update --deep --newuse @world
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild     U  ] sys-devel/gnuconfig-20180101::gentoo [20170101::gentoo] 51 KiB
      [ebuild     U  ] dev-lang/python-exec-2.4.6-r1:2::gentoo [2.4.6:2::gentoo] PYTHON_TARGETS="(python2_7) (python3_5) (python3_6) (-jython2_7) (-pypy) (-pypy3) (-python3_7)" 86 KiB
      [ebuild     U  ] dev-util/pkgconf-1.6.3:0/3::gentoo [1.5.4:0/3::gentoo] USE="pkg-config -test" 285 KiB
      [ebuild     U  ] dev-libs/libffi-3.3_rc0:0/7::gentoo [3.2.1:0/0::gentoo] USE="-debug -pax_kernel -static-libs -test" 1060 KiB
      [ebuild     U  ] app-misc/editor-wrapper-4-r1::gentoo [4::gentoo] 0 KiB
      [ebuild     U  ] sys-libs/timezone-data-2019c::gentoo [2019a::gentoo] USE="nls -leaps-timezone% (-leaps_timezone%)" 631 KiB
      [ebuild     U  ] sys-devel/binutils-config-5.1-r1::gentoo [5-r4::gentoo] 0 KiB
      [ebuild     U  ] virtual/libffi-3.3_rc0:0/7::gentoo [3.0.13-r1:0/0::gentoo] 0 KiB
      [ebuild     U  ] sys-libs/readline-7.0_p5-r1:0/7::gentoo [7.0_p5:0/7::gentoo] USE="(split-usr) unicode%* -static-libs -utils" 2851 KiB
      [ebuild     U  ] sys-libs/e2fsprogs-libs-1.45.4::gentoo [1.45.2::gentoo] USE="(split-usr) -static-libs" 5437 KiB
      [ebuild     U  ] dev-libs/gmp-6.1.2-r1:0/10.4::gentoo [6.1.2:0/10.4::gentoo] USE="asm cxx -doc -static-libs" 1901 KiB
      [ebuild     U  ] sys-devel/patch-2.7.6-r4::gentoo [2.7.6-r3::gentoo] USE="xattr -static -test" 766 KiB
      [ebuild  N     ] dev-libs/libbsd-0.9.1::gentoo  USE="-static-libs" 379 KiB
      [ebuild     U  ] app-admin/eselect-1.4.15::gentoo [1.4.14::gentoo] USE="-doc -emacs -vim-syntax" 175 KiB
      [ebuild     U  ] dev-libs/libassuan-2.5.3::gentoo [2.5.1::gentoo] USE="-static-libs" 559 KiB
      [ebuild     U  ] sys-apps/iproute2-5.2.0-r1::gentoo [4.19.0-r1::gentoo] USE="berkdb iptables ipv6 (-atm) -caps -elf -minimal (-selinux)" 713 KiB
      [ebuild     U  ] dev-libs/expat-2.2.8::gentoo [2.2.6::gentoo] USE="(split-usr) unicode -examples -static-libs" 413 KiB
      [ebuild     U  ] dev-libs/libgcrypt-1.8.5:0/20::gentoo [1.8.3:0/20::gentoo] USE="-doc -o-flag-munging -static-libs" 2922 KiB
      [ebuild  N     ] app-crypt/libb2-0.98.1-r1::gentoo  USE="openmp -native-cflags -static-libs" 275 KiB
      [ebuild     U  ] net-libs/libtirpc-1.1.4:0/3::gentoo [1.0.2-r1:0/3::gentoo] USE="ipv6 (split-usr) -kerberos -static-libs" 508 KiB
      [ebuild     U  ] sys-fs/e2fsprogs-1.45.4::gentoo [1.45.2::gentoo] USE="nls (split-usr) -cron -fuse -static-libs" 0 KiB
      [ebuild     U  ] sys-apps/help2man-1.47.10::gentoo [1.47.6::gentoo] USE="nls" 198 KiB
      [ebuild     U  ] sys-apps/hwids-20190316::gentoo [20180917::gentoo] USE="net pci udev usb" 3236 KiB
      [ebuild     U  ] dev-libs/openssl-1.1.1d-r2:0/1.1::gentoo [1.0.2r:0/0::gentoo] USE="asm zlib -bindist* -rfc3779 -sctp -sslv3* -static-libs -test -tls-heartbeat* -vanilla (-gmp%) (-kerberos%) (-sslv2%)" 8639 KiB
      [ebuild  rR    ] net-misc/wget-1.20.3-r1::gentoo  USE="ipv6 nls pcre ssl zlib -debug -gnutls -idn (-libressl) -ntlm -static -test -uuid" 4385 KiB
      [ebuild  rR    ] net-misc/iputils-20180629::gentoo  USE="arping ipv6 ssl -SECURITY_HAZARD -caps -clockdiff -doc -filecaps -gcrypt -idn (-libressl) -nettle -rarpd -rdisc -static -tftpd -tracepath -traceroute6" 220 KiB
      [ebuild     U  ] dev-lang/python-3.6.9:3.6/3.6m::gentoo [3.6.5:3.6/3.6m::gentoo] USE="gdbm ipv6 ncurses readline ssl (threads) xml (-bluetooth) -build -examples (-hardened) (-libressl) -sqlite -test -tk -wininst" 16820 KiB
      [ebuild     U  ] dev-lang/python-2.7.16:2.7::gentoo [2.7.15:2.7::gentoo] USE="gdbm ipv6 ncurses readline ssl (threads) (wide-unicode) xml (-berkdb) (-bluetooth) -build -doc -examples (-hardened) (-libressl) -sqlite -tk -wininst" 12467 KiB
      [ebuild  rR    ] net-misc/curl-7.65.0::gentoo  USE="ipv6 ssl -adns -brotli -http2 -idn -kerberos -ldap (-metalink) (-rtmp) -samba -ssh -static-libs -test -threads" CURL_SSL="openssl -gnutls (-libressl) -mbedtls -nss (-winssl)" 2337 KiB
      [ebuild     U  ] net-misc/openssh-8.0_p1-r4::gentoo [8.0_p1-r2::gentoo] USE="pam pie ssl -X -X509 -audit -bindist* -debug -hpn -kerberos -ldns -libedit (-libressl) -livecd -sctp (-selinux) -static -test -xmss%" 1561 KiB
      [blocks b      ] <net-misc/openssh-8.0_p1-r3 ("<net-misc/openssh-8.0_p1-r3" is blocking dev-libs/openssl-1.1.1d-r2)
      [ebuild  N     ] app-crypt/gpgme-1.13.0-r1:1/11::gentoo  USE="cxx -common-lisp -python (-qt5) -static-libs" PYTHON_TARGETS="python2_7 python3_6 -python3_5 (-python3_7)" 1778 KiB
      [ebuild     U  ] app-portage/portage-utils-0.80::gentoo [0.74::gentoo] USE="nls openmp%* qmanifest%* qtegrity%* (-libressl) -static" 1722 KiB
      [ebuild     U  ] dev-python/certifi-2019.6.16::gentoo [2018.4.16::gentoo] PYTHON_TARGETS="python2_7 python3_6 (-pypy) (-pypy3) -python3_5 (-python3_7)" 154 KiB
      
      Total: 33 packages (27 upgrades, 3 new, 3 reinstalls), Size of downloads: 72514 KiB
      Conflict: 1 block
      
      The following packages are causing rebuilds:
      
        (dev-libs/openssl-1.1.1d-r2:0/1.1::gentoo, ebuild scheduled for merge) causes rebuilds for:
          (net-misc/wget-1.20.3-r1:0/0::gentoo, ebuild scheduled for merge)
          (net-misc/iputils-20180629:0/0::gentoo, ebuild scheduled for merge)
          (net-misc/curl-7.65.0:0/0::gentoo, ebuild scheduled for merge)
      
      !!! The following installed packages are masked:
      - virtual/pam-0-r1::gentoo (masked by: package.mask)
      /usr/portage/profiles/package.mask:
      # Mikle Kolyada <zlogene@gentoo.org> (2019-10-16)
      # not needed due to openpam removal. Please
      # update your packages running emerge with the
      # --changed-deps option if you have problems
      # with your system.
      
      For more information, see the MASKED PACKAGES section in the emerge
      man page or refer to the Gentoo Handbook.
      
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      >>> Running pre-merge checks for net-misc/openssh-8.0_p1-r4
      
      >>> Emerging (1 of 33) sys-devel/gnuconfig-20180101::gentoo
       * Fetching files in the background.
       * To view fetch progress, run in another terminal:
       * tail -f /var/log/emerge-fetch.log
       * gnuconfig-20180101.tar.bz2 BLAKE2B SHA512 size ;-) ...                [ ok ]
      >>> Unpacking source...
      (省略)
      
      

      ビルドに問題がなければ、下記のようなメッセージで終了します。パッケージからのメッセージが表示されるので、読んでおきます。

      
      
       * Messages for package app-portage/portage-utils-0.80:
      
       * This version of Portage utils has undergone significant changes.
       * Please read the elog manpages for applets like qlop(1) and
       * qfile(1) where argument options have changed.
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * Regenerating GNU info directory index...
       * Processed 83 info files.
       * After world updates, it is important to remove obsolete packages with
       * emerge --depclean. Refer to `man emerge` for more information.
      # 
      
      

      今回のインストールでは、openssl-1.1.1d-r2パッケージのビルドに失敗しました。発生した内容と対応方法は、こちらの通りです。

    29. USE変数設定

      現在のUSE変数の内容を確認します。profileにdesktopを含まないものを選択したため、多少シンプルです。

      
      # emerge --info | grep ^USE
      USE="acl alpha berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
      # 
      
      

      後日、X Window System関連をインストールすることを想定して、下記を設定します。最終的には、"X"を追加する予定です。

      
      USE="-gtk -gnome -qt4 -qt5 -kde"
      
      

      設定は、/etc/portage/make.confに行います。

      
      # cat /etc/portage/make.conf
      # These settings were set by the catalyst build script that automatically
      # built this stage.
      # Please consult /usr/share/portage/config/make.conf.example for a more
      # detailed example.
      COMMON_FLAGS="-mieee -pipe -O2 -mcpu=ev6"
      CFLAGS="${COMMON_FLAGS}"
      CXXFLAGS="${COMMON_FLAGS}"
      FCFLAGS="${COMMON_FLAGS}"
      FFLAGS="${COMMON_FLAGS}"
      # WARNING: Changing your CHOST is not something that should be done lightly.
      # Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
      CHOST="alpha-unknown-linux-gnu"
      
      # NOTE: This stage was built with the bindist Use flag enabled
      PORTDIR="/usr/portage"
      DISTDIR="/usr/portage/distfiles"
      PKGDIR="/usr/portage/packages"
      
      # This sets the language of build output to English.
      # Please keep this setting intact when reporting bugs.
      LC_MESSAGES=C
      
      MAKEOPTS="-j2"
      
      USE="-gtk -gnome -qt4 -qt5 -kde"
      
      GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/"
      # 
      
      
    30. タイムゾーン設定
      
      # ls /usr/share/zoneinfo/
      Africa      Chile    GB-Eire    Israel     Navajo     US
      America     Cuba     GMT        Jamaica    PRC        UTC
      Antarctica  EET      GMT+0      Japan      PST8PDT    Universal
      Arctic      EST      GMT-0      Kwajalein  Pacific    W-SU
      Asia        EST5EDT  GMT0       Libya      Poland     WET
      Atlantic    Egypt    Greenwich  MET        Portugal   Zulu
      Australia   Eire     HST        MST        ROC        iso3166.tab
      Brazil      Etc      Hongkong   MST7MDT    ROK        leap-seconds.list
      CET         Europe   Iceland    Mexico     Singapore  posixrules
      CST6CDT     Factory  Indian     NZ         Turkey     zone.tab
      Canada      GB       Iran       NZ-CHAT    UCT        zone1970.tab
      # ls /usr/share/zoneinfo/Asia/
      Aden        Chongqing    Jerusalem     Novokuznetsk   Tashkent
      Almaty      Chungking    Kabul         Novosibirsk    Tbilisi
      Amman       Colombo      Kamchatka     Omsk           Tehran
      Anadyr      Dacca        Karachi       Oral           Tel_Aviv
      Aqtau       Damascus     Kashgar       Phnom_Penh     Thimbu
      Aqtobe      Dhaka        Kathmandu     Pontianak      Thimphu
      Ashgabat    Dili         Katmandu      Pyongyang      Tokyo
      Ashkhabad   Dubai        Khandyga      Qatar          Tomsk
      Atyrau      Dushanbe     Kolkata       Qostanay       Ujung_Pandang
      Baghdad     Famagusta    Krasnoyarsk   Qyzylorda      Ulaanbaatar
      Bahrain     Gaza         Kuala_Lumpur  Rangoon        Ulan_Bator
      Baku        Harbin       Kuching       Riyadh         Urumqi
      Bangkok     Hebron       Kuwait        Saigon         Ust-Nera
      Barnaul     Ho_Chi_Minh  Macao         Sakhalin       Vientiane
      Beirut      Hong_Kong    Macau         Samarkand      Vladivostok
      Bishkek     Hovd         Magadan       Seoul          Yakutsk
      Brunei      Irkutsk      Makassar      Shanghai       Yangon
      Calcutta    Istanbul     Manila        Singapore      Yekaterinburg
      Chita       Jakarta      Muscat        Srednekolymsk  Yerevan
      Choibalsan  Jayapura     Nicosia       Taipei
      # 
      # echo "Asia/Tokyo" > /etc/timezone
      # cat /etc/timezone 
      Asia/Tokyo
      # 
      # emerge --config sys-libs/timezone-data
      
      
      Configuring pkg...
      
       * Updating /etc/localtime with /usr/share/zoneinfo/Asia/Tokyo
      
      # 
      
      
    31. ロケール設定

      /etc/locale.genに使用したいロケールを列挙します。無難に日本語UTF-8にしました。/etc/locale.genにコメントでの記述があったので、有効にし、locale-genで生成し、システムのロケールをeselect locale setで選択します。

      
      # cat /etc/locale.gen 
      # /etc/locale.gen: list all of the locales you want to have on your system.
      # See the locale.gen(5) man page for more details.
      #
      # The format of each line:
      # <locale name> <charset>
      #
      # Where <locale name> starts with a name as found in /usr/share/i18n/locales/.
      # It must be unique in the file as it is used as the key to locale variables.
      # For non-default encodings, the <charset> is typically appended.
      #
      # Where <charset> is a charset located in /usr/share/i18n/charmaps/ (sans any
      # suffix like ".gz").
      #
      # All blank lines and lines starting with # are ignored.
      #
      # For the default list of supported combinations, see the file:
      # /usr/share/i18n/SUPPORTED
      #
      # Whenever glibc is emerged, the locales listed here will be automatically
      # rebuilt for you.  After updating this file, you can simply run `locale-gen`
      # yourself instead of re-emerging glibc.
      
      #en_US ISO-8859-1
      #en_US.UTF-8 UTF-8
      #ja_JP.EUC-JP EUC-JP
      ja_JP.UTF-8 UTF-8
      #ja_JP EUC-JP
      #en_HK ISO-8859-1
      #en_PH ISO-8859-1
      #de_DE ISO-8859-1
      #de_DE@euro ISO-8859-15
      #es_MX ISO-8859-1
      #fa_IR UTF-8
      #fr_FR ISO-8859-1
      #fr_FR@euro ISO-8859-15
      #it_IT ISO-8859-1
      # 
      # locale-gen
       * Generating 2 locales (this might take a while) with 1 jobs
       *  (1/2) Generating ja_JP.UTF-8 ...
        [ ok ]
       *  (2/2) Generating C.UTF-8 ...
        [ ok ]
       * Generation complete
       * Adding locales to archive ...
        [ ok ]
      # 
      # eselect locale list
      Available targets for the LANG variable:
        [1]   C
        [2]   C.utf8
        [3]   POSIX
        [4]   ja_JP.utf8
        [ ]   (free form)
      # eselect locale set 4
      Setting LANG to ja_JP.utf8 ...
      Run ". /etc/profile" to update the variable in your shell.
      # eselect locale list
      Available targets for the LANG variable:
        [1]   C
        [2]   C.utf8
        [3]   POSIX
        [4]   ja_JP.utf8 *
        [ ]   (free form)
      # 
      
      
    32. 環境のリロード
      
      # date
      Tue Nov  5 18:52:36 JST 2019
      # 
      # env-update && source /etc/profile && export PS1="(chroot) ${PS1}"
      >>> Regenerating /etc/ld.so.cache...
      # 
      # date
      2019年 11月  5日 火曜日 18:52:54 JST
      # 
      
      

      以後、コマンドの出力結果などは、ロケールにしたがった挙動になります。

    33. kernelソースのインストール
      
      # emerge --ask sys-kernel/gentoo-sources
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   - | / | \ \ \ \ | / / / / | \ \ / | - | - - | / / \ - \ / / / - - / \ | - \ | / - \ | \ - / | \ - / | \ - / | \ / | / - \ | / - \ - | / - \ \ - | \ - | / | / \ - | / \ | \ - / \ - / | \ \ / \ - \ | - | - | \ / / | / \ \ | - | / | | - - | - | | - / | | - | / \ \ - / | | \ | \ \ \ / / \... done!
      [ebuild  N     ] dev-libs/elfutils-0.176-r1  USE="bzip2 nls utils -lzma -static-libs -test (-threads)" 
      [ebuild  N     ] sys-devel/bc-1.06.95-r2  USE="readline -libedit -static" 
      [ebuild  N     ] virtual/libelf-3 
      [ebuild  N     ] sys-kernel/gentoo-sources-4.19.66  USE="-build -experimental -symlink" 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 4) dev-libs/elfutils-0.176-r1::gentoo
       * Fetching files in the background.
      (省略)
      
      >>> Recording sys-kernel/gentoo-sources in "world" favorites file...
      
       * Messages for package sys-kernel/gentoo-sources-4.19.66:
      
       * If you are upgrading from a previous kernel, you may be interested
       * in the following document:
       *   - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * Regenerating GNU info directory index...
       * Processed 85 info files.
      #
      # ls -l /usr/src/linux
      lrwxrwxrwx 1 root root 20 11月  5 19:30 /usr/src/linux -> linux-4.19.66-gentoo
      # 
      
      
    34. pciutilsパッケージインストール
      
      # emerge --ask sys-apps/pciutils
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] acct-group/kmem-0 
      [ebuild  N     ] acct-group/tty-0 
      [ebuild  N     ] acct-group/audio-0 
      [ebuild  N     ] acct-group/cdrom-0 
      [ebuild  N     ] acct-group/dialout-0 
      [ebuild  N     ] acct-group/disk-0 
      [ebuild  N     ] acct-group/lp-0 
      [ebuild  N     ] acct-group/tape-0 
      [ebuild  N     ] acct-group/video-0 
      [ebuild  N     ] dev-util/re2c-1.1.1 
      [ebuild  N     ] dev-util/ninja-1.8.2  USE="-doc -emacs -test -vim-syntax" 
      [ebuild  N     ] dev-util/meson-0.51.2  USE="-test" PYTHON_TARGETS="python3_6 -python3_5 (-python3_7)" 
      [ebuild  N     ] sys-libs/libcap-2.26-r2  USE="pam (split-usr) -static-libs" 
      [ebuild  NS    ] app-text/docbook-xml-dtd-4.5-r1 [4.1.2-r6]
      [ebuild  NS    ] app-text/docbook-xml-dtd-4.2-r2 [4.1.2-r6]
      [ebuild  N     ] sys-fs/udev-242  USE="acl kmod (-selinux)" 
      [uninstall     ] sys-fs/eudev-3.2.5 
      [blocks b      ] sys-fs/udev ("sys-fs/udev" is blocking sys-fs/eudev-3.2.5)
      [ebuild  N     ] virtual/libudev-232-r1  USE="-systemd" 
      [ebuild  N     ] sys-apps/pciutils-3.5.6-r1  USE="kmod udev zlib -dns -static-libs" 
      
      !!! The following installed packages are masked:
      - virtual/pam-0-r1::gentoo (masked by: package.mask)
      /usr/portage/profiles/package.mask:
      # Mikle Kolyada <zlogene@gentoo.org> (2019-10-16)
      # not needed due to openpam removal. Please
      # update your packages running emerge with the
      # --changed-deps option if you have problems
      # with your system.
      
      For more information, see the MASKED PACKAGES section in the emerge
      man page or refer to the Gentoo Handbook.
      
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      >>> Running pre-merge checks for acct-group/kmem-0
      >>> Running pre-merge checks for acct-group/tty-0
      >>> Running pre-merge checks for acct-group/audio-0
      >>> Running pre-merge checks for acct-group/cdrom-0
      >>> Running pre-merge checks for acct-group/dialout-0
      >>> Running pre-merge checks for acct-group/disk-0
      >>> Running pre-merge checks for acct-group/lp-0
      >>> Running pre-merge checks for acct-group/tape-0
      >>> Running pre-merge checks for acct-group/video-0
      
      >>> Emerging (1 of 18) acct-group/kmem-0::gentoo
       * Fetching files in the background.
      (省略)
      
       * Messages for package sys-fs/udev-242:
      
       * 
       * Starting from version >= 197 the new predictable network interface names are
       * used by default, see:
       * https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
       * https://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c
       * 
       * Example command to get the information for the new interface name before booting
       * (replace <ifname> with, for example, eth0):
       * # udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null
       * 
       * You can use either kernel parameter "net.ifnames=0", create empty
       * file /etc/systemd/network/99-default.link, or symlink it to /dev/null
       * to disable the feature.
       * 
       * You need to restart udev as soon as possible to make the upgrade go
       * into effect.
       * The method you use to do this depends on your init system.
       * For sys-apps/openrc users it is:
       * # /etc/init.d/udev --nodeps restart
       * 
       * For more information on udev on Gentoo, upgrading, writing udev rules, and
       * fixing known issues visit:
       * https://wiki.gentoo.org/wiki/Udev
       * https://wiki.gentoo.org/wiki/Udev/upgrade
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      
       * IMPORTANT: config file '/etc/udev/udev.conf' needs updating.
       * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
       * sections of the emerge man page to learn how to update config files.
      # 
      
      
    35. emergeのメッセージに従い、/etc/udev/udev.confを更新
      
      # etc-update
      Scanning Configuration files...
      Automerging trivial changes in: /etc/udev/udev.conf
      Exiting: Nothing left to do; exiting. :)
      # 
      
      
    36. lspciでデバイスを確認
      
      # lspci
      0000:00:07.0 ISA bridge: Contaq Microsystems 82c693
      0000:00:07.1 IDE interface: Contaq Microsystems 82c693
      0000:00:07.2 IDE interface: Contaq Microsystems 82c693
      0000:00:07.3 USB controller: Contaq Microsystems 82c693
      0000:00:0b.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5703 Gigabit Ethernet (rev 10)
      0000:00:0c.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV200 [Radeon 7500/7500 LE]
      0000:00:0d.0 SCSI storage controller: Adaptec ASC-39320A U320 (rev 10)
      0000:00:0d.1 SCSI storage controller: Adaptec ASC-39320A U320 (rev 10)
      0001:01:03.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
      0001:01:06.0 SCSI storage controller: QLogic Corp. ISP1020 Fast-wide SCSI (rev 06)
      0001:01:08.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
      # lspci -v
      0000:00:07.0 ISA bridge: Contaq Microsystems 82c693
      	Flags: bus master, medium devsel, latency 0
      lspci: Unable to load libkmod resources: error -12
      
      0000:00:07.1 IDE interface: Contaq Microsystems 82c693 (prog-if 80 [ISA Compatibility mode-only controller, supports bus mastering])
      	Flags: bus master, medium devsel, latency 0, IRQ 14
      	I/O ports at 01f0 [size=8]
      	I/O ports at 03f4
      	I/O ports at 9400 [size=16]
      	Kernel driver in use: pata_cypress
      
      0000:00:07.2 IDE interface: Contaq Microsystems 82c693 (prog-if 00 [ISA Compatibility mode-only controller])
      	Flags: bus master, medium devsel, latency 0, IRQ 15
      	I/O ports at 0170 [size=8]
      	I/O ports at 0374
      	Memory at 09120000 (32-bit, non-prefetchable) [disabled] [size=64K]
      
      0000:00:07.3 USB controller: Contaq Microsystems 82c693 (prog-if 10 [OHCI])
      	Flags: bus master, medium devsel, latency 248, IRQ 10
      	Memory at 09164000 (32-bit, non-prefetchable) [size=4K]
      
      0000:00:0b.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5703 Gigabit Ethernet (rev 10)
      	Subsystem: Compaq Computer Corporation NC7771 Gigabit Server Adapter (PCI-X, 10,100,1000-T)
      	Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 40
      	Memory at 09130000 (64-bit, non-prefetchable) [size=64K]
      	Expansion ROM at 09140000 [disabled] [size=64K]
      	Capabilities: [40] PCI-X non-bridge device
      	Capabilities: [48] Power Management version 2
      	Capabilities: [50] Vital Product Data
      	Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
      	Kernel driver in use: tg3
      
      0000:00:0c.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV200 [Radeon 7500/7500 LE] (prog-if 00 [VGA controller])
      	Subsystem: Tul Corporation / PowerColor RV200 QW [Radeon 7500 PCI Dual Display]
      	Flags: bus master, stepping, medium devsel, latency 255, IRQ 36
      	Memory at 10000000 (32-bit, prefetchable) [size=128M]
      	I/O ports at 8000 [size=256]
      	Memory at 09150000 (32-bit, non-prefetchable) [size=64K]
      	Expansion ROM at 09100000 [disabled] [size=128K]
      	Capabilities: [50] Power Management version 2
      	Kernel driver in use: radeonfb
      
      0000:00:0d.0 SCSI storage controller: Adaptec ASC-39320A U320 (rev 10)
      	Subsystem: Adaptec ASC-39320A U320
      	Flags: bus master, 66MHz, slow devsel, latency 252, IRQ 32
      	I/O ports at 8400 [disabled] [size=256]
      	Memory at 09160000 (64-bit, non-prefetchable) [size=8K]
      	I/O ports at 8800 [disabled] [size=256]
      	Expansion ROM at 09000000 [disabled] [size=512K]
      	Capabilities: [dc] Power Management version 2
      	Capabilities: [a0] MSI: Enable- Count=1/2 Maskable- 64bit+
      	Capabilities: [94] PCI-X non-bridge device
      	Kernel driver in use: aic79xx
      
      0000:00:0d.1 SCSI storage controller: Adaptec ASC-39320A U320 (rev 10)
      	Subsystem: Adaptec ASC-39320A U320
      	Flags: bus master, 66MHz, slow devsel, latency 252, IRQ 33
      	I/O ports at 8c00 [disabled] [size=256]
      	Memory at 09162000 (64-bit, non-prefetchable) [size=8K]
      	I/O ports at 9000 [disabled] [size=256]
      	Expansion ROM at 09080000 [disabled] [size=512K]
      	Capabilities: [dc] Power Management version 2
      	Capabilities: [a0] MSI: Enable- Count=1/2 Maskable- 64bit+
      	Capabilities: [94] PCI-X non-bridge device
      	Kernel driver in use: aic79xx
      
      0001:01:03.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
      	Flags: bus master, medium devsel, latency 255, IRQ 45
      	I/O ports at 200008400 [size=128]
      	Memory at 209051000 (32-bit, non-prefetchable) [size=1K]
      	Expansion ROM at 209000000 [disabled] [size=256K]
      	Kernel driver in use: tulip
      
      0001:01:06.0 SCSI storage controller: QLogic Corp. ISP1020 Fast-wide SCSI (rev 06)
      	Flags: bus master, medium devsel, latency 248, IRQ 47
      	I/O ports at 200008000 [size=256]
      	Memory at 209050000 (32-bit, non-prefetchable) [size=4K]
      	Expansion ROM at 209040000 [disabled] [size=64K]
      	Capabilities: [44] Power Management version 1
      	Kernel driver in use: qla1280
      
      0001:01:08.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03) (prog-if 00 [Normal decode])
      	Flags: bus master, medium devsel, latency 255
      	Bus: primary=01, secondary=02, subordinate=02, sec-latency=255
      	I/O behind bridge: None
      	Memory behind bridge: None
      	Prefetchable memory behind bridge: None
      	Capabilities: [dc] Power Management version 1
      
      # 
      
      
    37. kernelのコンフィグ
      
      # cd /usr/src/linux
      # make menuconfig
      
      
    38. kernel構築
      
      # make -j2 && make modules_install
        WRAP    arch/alpha/include/generated/uapi/asm/bpf_perf_event.h
        UPD     include/config/kernel.release
        WRAP    arch/alpha/include/generated/uapi/asm/ipcbuf.h
        WRAP    arch/alpha/include/generated/uapi/asm/msgbuf.h
      
      (省略)
      
        INSTALL sound/pci/snd-ens1371.ko
        INSTALL sound/soundcore.ko
        INSTALL sound/synth/emux/snd-emux-synth.ko
        INSTALL sound/synth/snd-util-mem.ko
        DEPMOD  4.19.66-gentoo
      # 
      # make boot
        CALL    scripts/checksyscalls.sh
      :1332:2: 警告: #warning syscall io_pgetevents not implemented [-Wcpp]
      :1335:2: 警告: #warning syscall rseq not implemented [-Wcpp]
        CHK     include/generated/compile.h
        AS      arch/alpha/lib/strcpy.o
        AS      arch/alpha/lib/strcat.o
        AS      arch/alpha/lib/stxcpy.o
        LD      arch/alpha/lib/stycpy.o
        AS      arch/alpha/lib/strncpy.o
        AS      arch/alpha/lib/strncat.o
        AS      arch/alpha/lib/stxncpy.o
        LD      arch/alpha/lib/styncpy.o
        AR      arch/alpha/lib/lib.a
        EXPORTS arch/alpha/lib/lib-ksyms.o
        AR      arch/alpha/lib/built-in.a
        GEN     .version
        CHK     include/generated/compile.h
        UPD     include/generated/compile.h
        CC      init/version.o
        AR      init/built-in.a
        AR      built-in.a
        LD      vmlinux.o
        MODPOST vmlinux.o
      WARNING: "saved_config" [vmlinux] is COMMON symbol
        KSYM    .tmp_kallsyms1.o
        KSYM    .tmp_kallsyms2.o
        LD      vmlinux
        SYSMAP  System.map
        STRIP  arch/alpha/boot/vmlinux
        GZIP    arch/alpha/boot/vmlinux.gz
        Kernel arch/alpha/boot/vmlinux.gz is ready
      # 
      
      
    39. kernelのインストール
      
      # cp arch/alpha/boot/vmlinux.gz /boot/
      # 
      
      
    40. initramfsの作成1
      
      # emerge --ask sys-kernel/genkernel
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] app-arch/cpio-2.12-r1  USE="nls" 
      [ebuild  N     ] sys-kernel/linux-firmware-20191022  USE="redistributable (-initramfs) -savedconfig (-unknown-license)" 
      [ebuild   R    ] sys-apps/util-linux-2.33.2  USE="static-libs*" 
      [ebuild  N     ] sys-kernel/genkernel-3.5.3.3  USE="firmware -cryptsetup (-ibm) (-selinux)" 
      
      The following USE changes are necessary to proceed:
       (see "package.use" in the portage(5) man page for more details)
      # required by sys-kernel/genkernel-3.5.3.3::gentoo
      # required by sys-kernel/genkernel (argument)
      >=sys-apps/util-linux-2.33.2 static-libs
      
      The following license changes are necessary to proceed:
       (see "package.license" in the portage(5) man page for more details)
      # required by sys-kernel/genkernel-3.5.3.3::gentoo[firmware]
      # required by sys-kernel/genkernel (argument)
      =sys-kernel/linux-firmware-20191022 linux-fw-redistributable no-source-code
      
      Would you like to add these changes to your config files? [Yes/No] Yes
      
      Autounmask changes successfully written.
      
       * IMPORTANT: 2 config files in '/etc/portage' need updating.
       * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
       * sections of the emerge man page to learn how to update config files.
      
      !!! The following installed packages are masked:
      - virtual/pam-0-r1::gentoo (masked by: package.mask)
      /usr/portage/profiles/package.mask:
      # Mikle Kolyada  (2019-10-16)
      # not needed due to openpam removal. Please
      # update your packages running emerge with the
      # --changed-deps option if you have problems
      # with your system.
      
      For more information, see the MASKED PACKAGES section in the emerge
      man page or refer to the Gentoo Handbook.
      
      # 
      
      
    41. emergeのメッセージに従い、/etc/portage/配下のファイルを更新
      
      # etc-update
      Scanning Configuration files...
      The following is the list of files which need updating, each
      configuration file is followed by a list of possible replacement files.
      1) /etc/portage/package.license (1)
      2) /etc/portage/package.use/releng/no-filecaps (1)
      Please select a file to edit by entering the corresponding number.
                    (don't use -3, -5, -7 or -9 if you're unsure what to do)
                    (-1 to exit) (-3 to auto merge all files)
                                 (-5 to auto-merge AND not use 'mv -i')
                                 (-7 to discard all updates)
                                 (-9 to discard all updates AND not use 'rm -i'): 1
      
      Showing differences between /etc/portage/package.license and /etc/portage/._cfg0 000_package.license
      --- /var/tmp/etc-update-12865/symdiff-ewJ/0     2019-11-06 08:30:31.278267738 +0 900
      +++ /etc/portage/._cfg0000_package.license      2019-11-06 08:29:20.094951879 +0 900
      @@ -1 +1,3 @@
      -/dev/null
      +# required by sys-kernel/genkernel-3.5.3.3::gentoo[firmware]
      +# required by sys-kernel/genkernel (argument)
      +=sys-kernel/linux-firmware-20191022 linux-fw-redistributable no-source-code
      lines 1-8/8 (END)
      File: /etc/portage/._cfg0000_package.license
      1) Replace original with update
      2) Delete update, keeping original as is
      3) Interactively merge original with update
      4) Show differences again
      5) Save update as example config
      Please select from the menu above (-1 to ignore this update): 1
      Replacing /etc/portage/package.license with /etc/portage/._cfg0000_package.license
      
      The following is the list of files which need updating, each
      configuration file is followed by a list of possible replacement files.
      2) /etc/portage/package.use/releng/no-filecaps (1)
      Please select a file to edit by entering the corresponding number.
                    (don't use -3, -5, -7 or -9 if you're unsure what to do)
                    (-1 to exit) (-3 to auto merge all files)
                                 (-5 to auto-merge AND not use 'mv -i')
                                 (-7 to discard all updates)
                                 (-9 to discard all updates AND not use 'rm -i'): 2
      
      Showing differences between /etc/portage/package.use/releng/no-filecaps and /etc /portage/package.use/releng/._cfg0000_no-filecaps
      --- /etc/portage/package.use/releng/no-filecaps 2018-10-16 16:14:57.777132347 +0 900
      +++ /etc/portage/package.use/releng/._cfg0000_no-filecaps       2019-11-06 08:29 :20.090066874 +0900
      @@ -5,3 +5,6 @@
       # support.
       
       */* -filecaps
      +# required by sys-kernel/genkernel-3.5.3.3::gentoo
      +# required by sys-kernel/genkernel (argument)
      +>=sys-apps/util-linux-2.33.2 static-libs
      lines 1-10/10 (END)
      File: /etc/portage/package.use/releng/._cfg0000_no-filecaps
      1) Replace original with update
      2) Delete update, keeping original as is
      3) Interactively merge original with update
      4) Show differences again
      5) Save update as example config
      Please select from the menu above (-1 to ignore this update): 1
      Replacing /etc/portage/package.use/releng/no-filecaps with /etc/portage/package.use/releng/._cfg0000_no-filecaps
      mv: '/etc/portage/package.use/releng/no-filecaps' を上書きしますか? y
      
      Exiting: Nothing left to do; exiting. :)
      # 
      
      
    42. initramfsの作成2
      
      # emerge --ask sys-kernel/genkernel
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] app-arch/cpio-2.12-r1  USE="nls" 
      [ebuild  N     ] sys-kernel/linux-firmware-20191022  USE="redistributable (-initramfs) -savedconfig (-unknown-license)" 
      [ebuild   R    ] sys-apps/util-linux-2.33.2  USE="static-libs*" 
      [ebuild  N     ] sys-kernel/genkernel-3.5.3.3  USE="firmware -cryptsetup (-ibm) (-selinux)" 
      
      !!! The following installed packages are masked:
      - virtual/pam-0-r1::gentoo (masked by: package.mask)
      /usr/portage/profiles/package.mask:
      # Mikle Kolyada  (2019-10-16)
      # not needed due to openpam removal. Please
      # update your packages running emerge with the
      # --changed-deps option if you have problems
      # with your system.
      
      For more information, see the MASKED PACKAGES section in the emerge
      man page or refer to the Gentoo Handbook.
      
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      >>> Running pre-merge checks for sys-kernel/linux-firmware-20191022
      >>> Running pre-merge checks for sys-kernel/genkernel-3.5.3.3
      
      >>> Emerging (1 of 4) app-arch/cpio-2.12-r1::gentoo
       * Fetching files in the background.
       * To view fetch progress, run in another terminal:
       * tail -f /var/log/emerge-fetch.log
       * cpio-2.12.tar.bz2 BLAKE2B SHA512 size ;-) ...                         [ ok ]
      >>> Unpacking source...
      >>> Unpacking cpio-2.12.tar.bz2 to /var/tmp/portage/app-arch/cpio-2.12-r1/work
      
      (省略)
      
       * Messages for package sys-kernel/genkernel-3.5.3.3:
      
       * Documentation is available in the genkernel manual page
       * as well as the following URL:
       * https://wiki.gentoo.org/wiki/Genkernel
       * This package is known to not work with reiser4.  If you are running
       * reiser4 and have a problem, do not file a bug.  We know it does not
       * work and we don't plan on fixing it since reiser4 is the one that is
       * broken in this regard.  Try using a sane filesystem like ext4.
       * The LUKS support has changed from versions prior to 3.4.4.  Now,
       * you use crypt_root=/dev/blah instead of real_root=luks:/dev/blah.
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * Regenerating GNU info directory index...
       * Processed 86 info files.
      # 
      # genkernel --lvm --mdadm --install initramfs
      * Gentoo Linux Genkernel; Version 3.5.3.3
      * Running with options: --lvm --mdadm --install initramfs
      
      * Using genkernel.conf from /etc/genkernel.conf
      * Sourcing arch-specific config.sh from /usr/share/genkernel/arch/alpha/config.sh ..
      * Sourcing arch-specific modules_load from /usr/share/genkernel/arch/alpha/modules_load ..
      * Linux Kernel 4.19.66-gentoo for alpha...
      * .. with config file /usr/share/genkernel/arch/alpha/generated-config
      * busybox: >> Applying patches...
      patching file console-tools/openvt.c
      Hunk #1 succeeded at 147 (offset 23 lines).
      *           - 1.18.1-openvt.diff
      patching file modutils/modprobe.c
      Hunk #1 succeeded at 444 (offset 31 lines).
      Hunk #2 succeeded at 492 (offset 32 lines).
      *           - busybox-1.20.2-modprobe.patch
      patching file util-linux/mdStart.c
      *           - busybox-1.26.0-mdstart.patch
      patching file libbb/u_signal_names.c
      Hunk #1 succeeded at 76 (offset 10 lines).
      Hunk #2 succeeded at 100 (offset 10 lines).
      *           - busybox-1.7.4-signal-hack.patch
      * busybox: >> Configuring...
      * busybox: >> Compiling...
      * busybox: >> Copying to cache...
      * initramfs: >> Initializing...
      *         >> Appending devices cpio data...
      *         >> Appending base_layout cpio data...
      *         >> Appending auxilary cpio data...
      *         >> Copying keymaps
      *         >> Appending busybox cpio data...
      *         >> Appending lvm cpio data...
      *           LVM: Adding support (compiling binaries)...
      * lvm: >> Patching ...
      * lvm: >> Applying patches...
      patching file configure.in
      Hunk #1 succeeded at 32 (offset 1 line).
      Hunk #2 succeeded at 2129 (offset 119 lines).
      patching file daemons/dmeventd/Makefile.in
      Hunk #1 succeeded at 66 (offset -1 lines).
      patching file make.tmpl.in
      Hunk #1 succeeded at 58 (offset 9 lines).
      patching file tools/Makefile.in
      Hunk #1 succeeded at 133 (offset 4 lines).
      Hunk #2 succeeded at 160 (offset 14 lines).
      *           - lvm2-2.02.139-dynamic-static-ldflags.patch
      * lvm: >> Autoconf ...
      * lvm: >> Configuring...
      * lvm: >> Compiling...
      * lvm: >> Installing to DESTDIR...
      *       >> Copying to bincache...
      *         >> Appending mdadm cpio data...
      * 		MDADM: Skipping inclusion of mdadm.conf
      * 		MDADM: Adding support (compiling binaries)...
      * mdadm: >> No patches found in /usr/share/genkernel/patches/mdadm/4.0 ...
      * mdadm: >> Compiling...
      *       >> Copying to bincache...
      *         >> Appending modules cpio data...
      *         >> Appending blkid cpio data...
      *         >> Appending modprobed cpio data...
      *         >> Appending linker cpio data...
      *         >> Deduping cpio...
      *         >> Compressing cpio data (.xz)...
      
      * WARNING... WARNING... WARNING...
      * Additional kernel cmdline arguments that *may* be required to boot properly...
      * add "dolvm" for lvm support
      * add "domdadm" for RAID support
      * With support for several ext* filesystems available, it may be needed to
      * add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.
      
      * Do NOT report kernel bugs as genkernel bugs unless your bug
      * is about the default genkernel configuration...
      * 
      * Make sure you have the latest ~arch genkernel before reporting bugs.
      # 
      # ls /boot/initramfs*
      /boot/initramfs-genkernel-alpha-4.19.66-gentoo
      #
      
      

      このままだと、initramfsにfirmwareが含まれないので、オンボードのISP1020を使用するのに面倒だと気づいたため、--firmwareオプションを追加し、再度実行しました。

      
      # genkernel --firmware --lvm --mdadm --install initramfs
      * Gentoo Linux Genkernel; Version 3.5.3.3
      * Running with options: --firmware --lvm --mdadm --install initramfs
      
      * Using genkernel.conf from /etc/genkernel.conf
      * Sourcing arch-specific config.sh from /usr/share/genkernel/arch/alpha/config.sh ..
      * Sourcing arch-specific modules_load from /usr/share/genkernel/arch/alpha/modules_load ..
      * Linux Kernel 4.19.66-gentoo for alpha...
      * .. with config file /usr/share/genkernel/arch/alpha/generated-config
      * busybox: >> Using cache
      * initramfs: >> Initializing...
      *         >> Appending devices cpio data...
      *         >> Appending base_layout cpio data...
      *         >> Appending auxilary cpio data...
      *         >> Copying keymaps
      *         >> Appending busybox cpio data...
      *         >> Appending lvm cpio data...
      *           LVM: Adding support (compiling binaries)...
      * lvm: >> Using cache
      *         >> Appending mdadm cpio data...
      * 		MDADM: Skipping inclusion of mdadm.conf
      * 		MDADM: Adding support (compiling binaries)...
      * 		MDADM: Using cache
      *         >> Appending modules cpio data...
      *         >> Appending blkid cpio data...
      *         >> Appending modprobed cpio data...
      *         >> Appending firmware cpio data...
      *         >> Appending linker cpio data...
      *         >> Deduping cpio...
      *         >> Compressing cpio data (.xz)...
      
      * WARNING... WARNING... WARNING...
      * Additional kernel cmdline arguments that *may* be required to boot properly...
      * add "dolvm" for lvm support
      * add "domdadm" for RAID support
      * With support for several ext* filesystems available, it may be needed to
      * add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.
      
      * Do NOT report kernel bugs as genkernel bugs unless your bug
      * is about the default genkernel configuration...
      * 
      * Make sure you have the latest ~arch genkernel before reporting bugs.
      # 
      
      
    43. kernelモジュールの設定

      kernelモジュール一覧を取得します。

      
      # find /lib/modules/4.19.66-gentoo/ -type f -iname '*.o' -or -iiname '*.ko' | less
      /lib/modules/4.19.66-gentoo/kernel/sound/soundcore.ko
      /lib/modules/4.19.66-gentoo/kernel/sound/isa/sb/snd-sb16.ko
      /lib/modules/4.19.66-gentoo/kernel/sound/isa/sb/snd-sb16-csp.ko
      /lib/modules/4.19.66-gentoo/kernel/sound/isa/sb/snd-sb-common.ko
      /lib/modules/4.19.66-gentoo/kernel/sound/isa/sb/snd-sbawe.ko
      
      (省略)
      
      /lib/modules/4.19.66-gentoo/kernel/net/ipv4/ah4.ko
      /lib/modules/4.19.66-gentoo/kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
      /lib/modules/4.19.66-gentoo/kernel/net/sunrpc/sunrpc.ko
      # 
      
      

      一覧をもとに、/etc/modules-load.d/ディレクトリーに設定ファイルを作成します。(名称任意。拡張子.conf)

      今回は、12のファイル(alpha.conf、ata.conf、crypt.conf、driver_misc.conf、fs.conf、lib.conf、md.conf、network.conf、scsi.conf、sound.conf、usb.conf、video.conf)に分けて設定しました。

    44. fatab設定

      パーティションのUUIDを取得します。

      
      # blkid
      /dev/loop0: TYPE="squashfs"
      /dev/sr0: UUID="2019-08-13-17-27-09-00" LABEL="Gentoo alpha latest" TYPE="iso9660"
      /dev/sda2: UUID="55496905-65ca-414f-8c31-29c475e46cbe" TYPE="swap"
      /dev/sda7: UUID="71dd7c65-e725-41f7-a340-dc571854f741" TYPE="ext4"
      /dev/sdb1: UUID="7c8964ed-906c-477e-be74-971ce0dd388f" TYPE="ext2"
      # 
      
      

      テンプレートをもとに、下記のようにしました。

      
      # cat /etc/fstab
      # /etc/fstab: static file system information.
      #
      # noatime turns off atimes for increased performance (atimes normally aren't 
      # needed); notail increases performance of ReiserFS (at the expense of storage 
      # efficiency).  It's safe to drop the noatime options if you want and to 
      # switch between notail / tail freely.
      #
      # The root filesystem should have a pass number of either 0 or 1.
      # All other filesystems should have a pass number of 0 or greater than 1.
      #
      # See the manpage fstab(5) for more information.
      #
      
      # <fs>			<mountpoint>	<type>		<opts>		<dump/pass>
      
      # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
      #
      # NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
      #       filesystems.  This just tells the kernel to use the ext4 driver.
      #
      # NOTE: You can use full paths to devices like /dev/sda3, but it is often
      #       more reliable to use filesystem labels or UUIDs. See your filesystem
      #       documentation for details on setting a label. To obtain the UUID, use
      #       the blkid(8) command.
      
      #LABEL=boot		/boot		ext4		noauto,noatime	1 2
      #UUID=58e72203-57d1-4497-81ad-97655bd56494		/		ext4		noatime		0 1
      #LABEL=swap		none		swap		sw		0 0
      #/dev/cdrom		/mnt/cdrom	auto		noauto,ro	0 0
      UUID=7c8964ed-906c-477e-be74-971ce0dd388f	/boot	ext2	noatime	0 2
      UUID=55496905-65ca-414f-8c31-29c475e46cbe	none	swap	sw	0 0
      UUID=71dd7c65-e725-41f7-a340-dc571854f741	/	ext4	noatime	0 1
      # 
      
      
    45. ホスト名とドメイン名の設定

      /etc/conf.d/hostnameにホスト名を設定します。

      
      # Set to the hostname of this machine
      hostname="<ホスト名>"
      
      

      /etc/conf.d/netにドメイン名を設定します。

      
      # Set the dns_domain_lo variable to the selected domain name
      dns_domain_lo="<ドメイン名>"
      
      
    46. IPアドレスとデフォルトゲートウェイの設定
      
      # emerge --ask --noreplace net-misc/netifrc
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      
      
       * net-misc/netifrc
      
      Would you like to add these packages to your world favorites? [Yes/No] Yes
      >>> Recording net-misc/netifrc in "world" favorites file...
      # 
      
      

      インタフェース名を確認します。

      
      # ifconfig
      enp0s11: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
              inet 192.168.65.24  netmask 255.255.255.0  broadcast 192.168.65.255
              inet6 fe80::210:18ff:fe0c:5383  prefixlen 64  scopeid 0x20<link>
              ether 00:10:18:0c:53:83  txqueuelen 1000  (Ethernet)
              RX packets 451035  bytes 382856313 (365.1 MiB)
              RX errors 0  dropped 41872  overruns 0  frame 0
              TX packets 272482  bytes 44517438 (42.4 MiB)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
              device interrupt 40  
      
      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
              inet 127.0.0.1  netmask 255.0.0.0
              inet6 ::1  prefixlen 128  scopeid 0x10<host>
              loop  txqueuelen 1000  (Local Loopback)
              RX packets 12  bytes 792 (792.0 B)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 12  bytes 792 (792.0 B)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
      
      # 
      
      

      /etc/conf.d/netにIPアドレスとデフォルトゲートウェイを設定します。

      
      config_enp0s11="<IPアドレス> netmask <サブネットマスク> brd <ブロードキャストアドレス>"
      routes_enp0s11="default via <デフォルトゲートウェイ>"
      
      
    47. boot時に自動的にNICが使用可能にする設定
      
      # cd /etc/init.d
      # ln -s net.lo net.enp0s11
      # 
      
      
    48. hostsファイルの設定

      /etc/hosts(テンプレートあり)に以下の行を追加する。

      
      127.0.0.1	<ホスト名>.<ドメイン名> <ホスト名> localhost
      ::1		<ホスト名>.<ドメイン名> <ホスト名> localhost
      
      
    49. rootのパスワード設定
      
      # passwd
      新しいパスワード:
      新しいパスワードを再入力してください:
      passwd: パスワードは正しく更新されました
      # 
      
      
    50. /etc/rc.conf設定

      今回は設定変更せず、テンプレートのまま使用しました。

    51. /etc/conf.d/keymaps設定

      使用するキーボードがUS配列のため、今回は設定変更せず、テンプレートのまま使用しました。

    52. /etc/conf.d/hwclock設定

      ハードウェアクロックがUTCのため、今回は設定変更せず、テンプレートのまま使用しました。

    53. syslogデーモンインストール
      
      # emerge --ask app-admin/syslog-ng
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] sys-apps/tcp-wrappers-7.6.22-r1  USE="ipv6 (split-usr) -netgroups -static-libs" 
      [ebuild  N     ] dev-libs/ivykis-0.42.4  USE="-static-libs" 
      [ebuild  N     ] dev-libs/glib-2.60.6  USE="mime xattr -dbus -debug (-fam) -gtk-doc (-selinux) -static-libs -systemtap -test -utils" 
      [ebuild  N     ] x11-misc/shared-mime-info-1.10  USE="-test" 
      [ebuild  N     ] app-admin/syslog-ng-3.22.1  USE="ipv6 tcpd (-amqp) -caps -dbi -geoip -geoip2 -http -json (-kafka) (-libressl) (-mongodb) -pacct -python (-redis) -smtp -snmp -spoof-source -systemd" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_5 (-python3_7)" PYTHON_TARGETS="python2_7 python3_6 -python3_5 (-python3_7)" 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 5) sys-apps/tcp-wrappers-7.6.22-r1::gentoo
       * Fetching files in the background.
       * To view fetch progress, run in another terminal:
       * tail -f /var/log/emerge-fetch.log
       * tcp_wrappers_7.6.tar.gz BLAKE2B SHA512 size ;-) ...                   [ ok ]
       * tcp-wrappers_7.6.q-22.debian.tar.gz BLAKE2B SHA512 size ;-) ...       [ ok ]
      >>> Unpacking source...
      >>> Unpacking tcp_wrappers_7.6.tar.gz to /var/tmp/portage/sys-apps/tcp-wrappers-7.6.22-r1/work
      
      (省略)
      
       * Messages for package app-admin/syslog-ng-3.22.1:
      
       * It is highly recommended that app-admin/logrotate be emerged to
       * manage the log files.  syslog-ng installs a file in /etc/logrotate.d
       * for logrotate to use.
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      #
      # rc-update add syslog-ng default
       * service syslog-ng added to runlevel default
      # 
      
      
    54. cronデーモンインストール
      
      # emerge --ask sys-process/cronie
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] sys-process/cronbase-0.3.7-r6 
      [ebuild  N     ] sys-process/cronie-1.5.4-r1  USE="anacron inotify pam (-selinux)" 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 2) sys-process/cronbase-0.3.7-r6::gentoo
       * Fetching files in the background.
       * To view fetch progress, run in another terminal:
       * tail -f /var/log/emerge-fetch.log
       * Adding group 'cron' to your system ...
       *  - Groupid: 16
       * Adding user 'cron' to your system ...
       *  - Userid: 16
       *  - Shell: /sbin/nologin
       *  - Home: /var/spool/cron
       *  - Groups: cron
       *  - GECOS: added by portage for cronbase
       *  - Creating /var/spool/cron in /
      >>> Unpacking source...
      >>> Source unpacked in /var/tmp/portage/sys-process/cronbase-0.3.7-r6/work
      >>> Preparing source in /var/tmp/portage/sys-process/cronbase-0.3.7-r6/work ...
      
      
      >>> Recording sys-process/cronie in "world" favorites file...
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      #
      # rc-update add cronie default
       * service cronie added to runlevel default
      # 
      
      
    55. mlocateインストール
      
      # emerge --ask sys-apps/mlocate
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] sys-apps/mlocate-0.26-r2  USE="nls (-selinux)" 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 1) sys-apps/mlocate-0.26-r2::gentoo
      >>> Downloading 'http://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/mlocate-0.26.tar.xz'
      
      (省略)
      
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      # 
      
      
    56. boot時のsshdの自動起動設定
      
      # rc-update add sshd default
       * service sshd added to runlevel default
      (chroot) livecd ~ # 
      
      
    57. ファイルシステムツールインストール

      Ext2/3/4、XFS、VFAT用のツールをインストールしました。

      
      # emerge --ask sys-fs/e2fsprogs
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild   R    ] sys-fs/e2fsprogs-1.45.4 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 1) sys-fs/e2fsprogs-1.45.4::gentoo
       * e2fsprogs-1.45.4.tar.xz BLAKE2B SHA512 size ;-) ...                   [ ok ]
      >>> Unpacking source...
      >>> Unpacking e2fsprogs-1.45.4.tar.xz to /var/tmp/portage/sys-fs/e2fsprogs-1.45.4/work
      
      (省略)
      
      >>> Installing (1 of 1) sys-fs/e2fsprogs-1.45.4::gentoo
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      # 
      
      
      
      # emerge --ask sys-fs/xfsprogs
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] sys-fs/xfsprogs-4.19.0  USE="nls readline (split-usr) -icu -libedit -static-libs" 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 1) sys-fs/xfsprogs-4.19.0::gentoo
      >>> Downloading 'http://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/xfsprogs-4.19.0.tar.xz'
      --2019-11-06 13:09:18--  http://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/xfsprogs-4.19.0.tar.xz
      
      (省略)
      
      >>> Installing (1 of 1) sys-fs/xfsprogs-4.19.0::gentoo
      
      >>> Recording sys-fs/xfsprogs in "world" favorites file...
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      # 
      
      
      
      # emerge --ask sys-fs/dosfstools
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] sys-fs/dosfstools-4.1  USE="udev -compat -test" 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 1) sys-fs/dosfstools-4.1::gentoo
      >>> Downloading 'http://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/dosfstools-4.1.tar.xz'
      --2019-11-06 13:49:43--  http://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/dosfstools-4.1.tar.xz
      
      (省略)
      
      >>> Installing (1 of 1) sys-fs/dosfstools-4.1::gentoo
      
      >>> Recording sys-fs/dosfstools in "world" favorites file...
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      # 
      
      
    58. abootインストール
      
      # emerge --ask sys-boot/aboot
      
      These are the packages that would be merged, in order:
      
      Calculating dependencies   ... done!
      [ebuild  N     ] sys-boot/aboot-1.0_pre20040408-r3 
      
      Would you like to merge these packages? [Yes/No] Yes
      
      >>> Verifying ebuild manifests
      
      >>> Emerging (1 of 1) sys-boot/aboot-1.0_pre20040408-r3::gentoo
      >>> Downloading 'http://ftp.jaist.ac.jp/pub/Linux/Gentoo/distfiles/aboot-1.0_pre20040408.tar.bz2'
      
      (省略)
      
      >>> Installing (1 of 1) sys-boot/aboot-1.0_pre20040408-r3::gentoo
       * To make aboot install a new bootloader on your harddisk follow
       * these steps:
       * 
       *  - edit the file /etc/aboot.conf
       *  - cd /boot
       *  - swriteboot -c2 /dev/sda bootlx
       *  This will install a new bootsector on /dev/sda and aboot will
       *  use the second partition on this device to lookup kernel and 
       *  initrd (as described in the aboot.conf file)
       * 
       * IMPORTANT :
       * 
       * The partition table of your boot device has to contain 
       * a BSD-DISKLABEL and the first 12 megabytes of your boot device
       * must not be part of a partition as aboot will write its bootloader
       * in there and not as with most x86 bootloaders into the 
       * master boot sector. If your partition table does not reflect this
       * you are going to destroy your installation !
       * Also note that aboot currently only supports ext2/3 partitions
       * to boot from.
      
      >>> Recording sys-boot/aboot in "world" favorites file...
      >>> Auto-cleaning packages...
      
      >>> No outdated packages were found on your system.
      
       * GNU info directory index is up-to-date.
      #
      
      

      HDDにboot codeを書き込みます。書き込む際、エラーメッセージが必ず表示されます。これは、boot codeを書き込む位置がパーティションにかぶっているため表示されるのですが、3番目のパーティションであるcパーティションはHDD全体を表すため、常にかぶります。かぶっていることを無視するために、-fにかぶっていても無視して書き込むパーティション番号を指定(fとパーティション番号の間にスペースはあけない)して実行します。

      
      # swriteboot /dev/sdb /boot/bootlx
      error: bootcode overlaps with partition #3. If you really want this, use -f3
      # 
      # swriteboot -f3 /dev/sdb /boot/bootlx
      # 
      
      

      aboot.confのおかれたパーティションを設定します。今回の構成では、aboot.confは/bootパーティションにおきます。/bootパーティションは/dev/sdbの1番目のパーティション(aパーティション)なので、下記のように指定します。

      
      # abootconf /dev/sdb 1
      # 
      
      

      aboot.confを設定します。aboot.confは起動時に/etc/aboot.confという絶対パスで参照されるため、今回の構成ではaboot.confが/bootパーティションに置かれるので、フルパスは/boot/etc/aboot.confになります。エントリー先頭の0は、SRMの環境変数boot_osflagsと対応します。kernel前の1はパーティション番号です。今回の構成では/bootパーティションを意味します。kernelおよびinitramfsはパーティションからの相対パスになるので、(今回の構成ではbootパーティションからbootですが)/bootは付与しません。/パーティションはUUIDで指定しています。起動時のログが多く保管できるようdmsegのバッファー量をlog_buf_lenで増やしておきます。(例は1MByte。)

      
      # echo '0:1/vmlinux.gz initrd=/initramfs-genkernel-alpha-4.19.666-gentoo root=UUID=71dd7c65-e725-41f7-a340-dc571854f741 rootfstype=ext4 log_buf_len=1M' > /boot/etc/aboot.conf
      # 
      
      
    59. halt

      ディストリビューションのインストールが完了したので、haltします。

      
      # exit
      exit
      # cd
      # 
      # umount -l /mnt/gentoo/dev{/shm,/pts,}
      # umount -R /mnt/gentoo
      # 
      # halt
      
      Broadcast message from root@livecd (pts/0) (Wed Nov  6 05:03:24 2019):
      
      The system is going down for system halt NOW!
      # 
      
      
    60. SRM環境変数設定

      abootの起動エントリーに合わせるため、boot_osflags0とします。

      
      >>> set boot_osflags 0
      
      
    61. インストールした環境から起動

      /bootパーティションを含むHDDから起動します。

      
      >>> boot dka0
      
      

      起動しました。


      Gentoo openssl-1.1.1d-r2パッケージ(2020.8.21)

      Gentooのopenssl-1.1.1d-r2は、Alphaアーキテクチャーでビルドに失敗しました。

      
      >>> Emerging (90 of 232) dev-libs/openssl-1.1.1d-r2::gentoo
       * openssl-1.1.1d.tar.gz BLAKE2B SHA512 size ;-) ...                     [ ok ]
      >>> Unpacking source...
      >>> Unpacking openssl-1.1.1d.tar.gz to /var/tmp/portage/dev-libs/openssl-1.1.1d-r2/work
      >>> Source unpacked in /var/tmp/portage/dev-libs/openssl-1.1.1d-r2/work
      >>> Preparing source in /var/tmp/portage/dev-libs/openssl-1.1.1d-r2/work/openssl-1.1.1d ...
       * Applying openssl-1.1.0j-parallel_install_fix.patch ...
       [ ok ]
       * Applying openssl-1.1.1d-fix-zlib.patch ...
       [ ok ]
       * Applying openssl-1.1.1d-fix-potential-memleaks-w-BN_to_ASN1_INTEGER.patch ...
       [ ok ]
      Operating system: alpha-whatever-linux2
      This system (linux-alpha+bwx-gcc) is not supported. See file INSTALL for details.
       * ERROR: dev-libs/openssl-1.1.1d-r2::gentoo failed (prepare phase):
       *   I AM NOT SANE
       * 
       * Call stack:
       *     ebuild.sh, line 125:  Called src_prepare
       *   environment, line 2073:  Called die
       * The specific snippet of code:
       *       ./config --test-sanity || die "I AM NOT SANE";
       * 
       * If you need support, post the output of `emerge --info '=dev-libs/openssl-1.1.1d-r2::gentoo'`,
       * the complete build log and the output of `emerge -pqv '=dev-libs/openssl-1.1.1d-r2::gentoo'`.
       * The complete build log is located at '/var/tmp/portage/dev-libs/openssl-1.1.1d-r2/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/dev-libs/openssl-1.1.1d-r2/temp/environment'.
       * Working directory: '/var/tmp/portage/dev-libs/openssl-1.1.1d-r2/work/openssl-1.1.1d'
       * S: '/var/tmp/portage/dev-libs/openssl-1.1.1d-r2/work/openssl-1.1.1d'
      
      >>> Failed to emerge dev-libs/openssl-1.1.1d-r2, Log file:
      
      >>>  '/var/tmp/portage/dev-libs/openssl-1.1.1d-r2/temp/build.log'
      
      
      

      なお、openssl-1.0.2t-r1のビルドは成功しました。

      調べてみたところ、system "linux-alpha+bwx-linux"が1.0.2tでは利用可能なのに対して、1.1.1dでは一部ファイルから削除され、不完全な状況になっていました。

      具体的には、1.1.1dにおいて、configスクリプトではプロセッサーにしたがってsystemとして"linux-alpha+bwx-linux"または"linux-alpha+bwx-linux"が生成されますが、ConfigureスクリプトではLinux/Alphaでは"linux-alpha-linux"しか生成されません。configスクリプトで2者を分ける差はその名の通りBWXありかなしかです。ただし、/proc/cpuinfo*[678]であれば"linux-alpha+bwx-linux"、そうでなければ"linux-alpha-linux"という判断なので、正確ではありません。

      /usr/src/linux/arch/alpha/include/asm/hwrpb.hによれば、Alphaプロセッサーの一覧は下記であり、

      
      /*
       * DEC processor types for Alpha systems.  Found in HWRPB.
       * These values are architected.
       */
      
      #define EV3_CPU                 1       /* EV3                  */
      #define EV4_CPU                 2       /* EV4 (21064)          */
      #define LCA4_CPU                4       /* LCA4 (21066/21068)   */
      #define EV5_CPU                 5       /* EV5 (21164)          */
      #define EV45_CPU                6       /* EV4.5 (21064/xxx)    */
      #define EV56_CPU                7       /* EV5.6 (21164)        */
      #define EV6_CPU                 8       /* EV6 (21264)          */
      #define PCA56_CPU               9       /* PCA56 (21164PC)      */
      #define PCA57_CPU               10      /* PCA57 (notyet)       */
      #define EV67_CPU                11      /* EV67 (21264A)        */
      #define EV68CB_CPU              12      /* EV68CB (21264C)      */
      #define EV68AL_CPU              13      /* EV68AL (21264B)      */
      #define EV68CX_CPU              14      /* EV68CX (21264D)      */
      #define EV7_CPU                 15      /* EV7 (21364)          */
      #define EV79_CPU                16      /* EV79 (21364??)       */
      #define EV69_CPU                17      /* EV69 (21264/EV69A)   */
      
      

      /usr/src/linux/arch/alpha/kernel/setup.cによれば、/proc/cpuinfoが返すプロセッサー名は下記です。

      
      static int
      show_cpuinfo(struct seq_file *f, void *slot)
      {
              extern struct unaligned_stat {
                      unsigned long count, va, pc;
              } unaligned[2];
      
              static char cpu_names[][8] = {
                      "EV3", "EV4", "Simulate", "LCA4", "EV5", "EV45", "EV56",
                      "EV6", "PCA56", "PCA57", "EV67", "EV68CB", "EV68AL",
                      "EV68CX", "EV7", "EV79", "EV69"
              };
      
      

      *[678]にマッチするのは、下記のみであり、

      しかし、実際にBWXをサポートするプロセッサーは下記です。

      ところで、system "linux-alpha+bwx-linux"と"linux-alpha+bwx-linux"で何が変わるかというと、RC4_INTの型をunsigned charにするかunsigned intにするかです。(Configureスクリプト内で、RC4_CHARを定義するとunsigned charとする。)

      RC4_INTはその名の通り、RC4関連の演算で使用される型です。openssl-1.0.2tのCHANGESに下記の記述があり、これまではBWXのためにRC4_CHAR最適化を行った方が性能が良いと考えられてきたと思われます。

      
       Changes between 0.9.4 and 0.9.5  [28 Feb 2000]
      (省略)
        *) Enhanced support for Alpha Linux is added. Now ./config checks if
           the host supports BWX extension and if Compaq C is present on the
           $PATH. Just exploiting of the BWX extension results in 20-30%
           performance kick for some algorithms, e.g. DES and RC4 to mention
           a couple. Compaq C in turn generates ~20% faster code for MD5 and
           SHA1.
           [Andy Polyakov]
      
      

      ただし、現状の性能面での効果や、そもそもemergeでconfigスクリプトを使用する理由が判断つきませんでした。

      本件について、Gentooにバグ報告をしました。

      GentooのcomitterとupstreamであるOpenSSL間でやりとりが行われ、EV7(21364)プロセッサーでのパフォーマンスが、RC4_CHAR使用時よりも非使用時の方が上回ったため、system "linux-alpha+bwx-gcc"は廃止されることになりました。

      修正は、Gentooのopenssl-1.1.1d-r3およびOpenSSLにてされました。このため、openssl-1.1.1e以降は修正パッチは不要です。

      これらの修正において、GentooのMatt Turnerさんにたいへんお世話になりました。感謝しています。


      OSの話題(新)のページ