Cloud Edge 100S G2で遊ぶ

遊べるx86箱であるCloud Edge CE100の後継機のCloud Edge CE100 G2が家に転がってたので遊んでいこうと思います。
<img width="500" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/9994487e-f544-ad33-74ef-fe3bbb715152.jpeg"><img width="500" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/f0895313-9ead-b502-7f9b-862588222dad.jpeg">

# 1.分解
まずはハードウェア構成を調べるために分解してみます。
ネジを外すだけで簡単に分解できました。
<img width="400" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/9101305c-19d7-d28e-08b9-a86ff1c3dc62.jpeg"><img width="400" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/40935b05-df34-87ee-cf44-8d3873cd1949.jpeg">
ファンレスなだけあってヒートシンクが大きいですね。
それではハードウェア構成を見ていきましょう。
* CPU：Intel Atom® Processor C3558
(2.20GHz,4C4T)
<img width="400" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/bba8dcea-6373-5db9-29da-9508f68478f1.jpeg">

* メモリ：ADATA DDR4-2666 SO-DIMM 8GB
(1スロット使用、空きなし)
<img width="400" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/4fec1e92-f4e3-5342-c285-157a72e76189.jpeg">

* SSD：ADATA IM2S3168-064GD
(SATA III,64GB,3D TLC)
<img width="400" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/0fef3ae6-0685-5374-45d2-e7e494ce3ace.jpeg">

* NIC
    * Intel Corporation I211 Gigabit Network Connection (rev 03)
    * Intel Corporation I211 Gigabit Network Connection (rev 03)
    * Intel Corporation Ethernet Connection X553 Backplane (rev 11)
    * Intel Corporation Ethernet Connection X553 Backplane (rev 11)
　

* 拡張：mini PCIeが2つとPCIe x4が1つ
<img width="400" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/d76bda91-5476-7f6f-1811-a5c6d4cc3998.jpeg">
<img width="482" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3479848/bc9a2cb1-46b0-a816-ecd8-4171b42a097a.jpeg">

結構豪華ですね。
使うにはケースの改造が必要とはいえ、まさかPCIe x4がいるとは思いませんでした。
mini PCIeにWi-Fiカード刺したら面白そう。
また、Cloud Edge CE100とは違ってx64でしたね。

# 2.お遊び
それでは遊んでいきましょう。
Cloud Edge CE100 G2には映像端子は無いので、シリアルコンソールから操作していきます。
シリアルコンソールはRJ-45コネクタが付いていて、Cisco互換のケーブルで、115200bps, 8bit, 1bitストップ，パリティなし，フローコントロールなしで接続できます。
起動後はDelキーでBIOSに入ることができます。

BIOSはこんな感じです。
```
       Aptio Setup Utility - Copyright (C) 2019 American Megatrends, Inc.
    Main  Advanced  IntelRCSetup  Security  Boot  Save & Exit
/----------------------------------------------------+-------------------------\
|  BIOS Information                                  |Set the Date. Use Tab    |
|  BIOS Vendor             American Megatrends       |to switch between Date   |
|  Core Version            5.13   0.36 x64           |elements.                |
|  Compliancy              UEFI 2.6; PI 1.4          |Default Ranges:          |
|  BIOS Version            FNCB1512Z00006V202        |Year: 2005-2099          |
|  Build Date and Time     04/29/2019 14:33:39       |Months: 1-12             |
|  Access Level            Administrator             |Days: dependent on month |
|                                                    |                         |
|  System Date             [Wed 06/21/2023]          |                         |
|  System Time             [01:31:50]                |-------------------------|
|                                                    |><: Select Screen        |
|                                                    |^v: Select Item          |
|                                                    |Enter: Select            |
|                                                    |+/-: Change Opt.         |
|                                                    |F1: General Help         |
|                                                    |F2: Previous Values      |
|                                                    |F3: Optimized Defaults   |
|                                                    |F4: Save & Exit          |
|                                                    |ESC: Exit                |
\----------------------------------------------------+-------------------------/
        Version 2.19.1266. Copyright (C) 2019 American Megatrends, Inc.
```
Bootオプションを見てみると、USB Deviceの文字が。
USBブートができるみたいです。
やったね。
```
       Aptio Setup Utility - Copyright (C) 2019 American Megatrends, Inc.
    Main  Advanced  IntelRCSetup  Security  Boot  Save & Exit
/----------------------------------------------------+-------------------------\
|  Boot Configuration                                |Number of seconds to     |
|  Setup Prompt Timeout    1                         |wait for setup           |
|  Bootup NumLock State    [On]                      |activation key.          |
|  Quiet Boot              [Disabled]                |65535(0xFFFF) means      |
|                                                    |indefinite waiting.      |
|  Boot mode select        [LEGACY]                  |                         |
|                                                    |                         |
|  FIXED BOOT ORDER Priorities                       |                         |
|  Boot Option #1          [USB Device]              |                         |
|  Boot Option #2          [Hard Disk]               |-------------------------|
|  Boot Option #3          [Hard Disk1:              |><: Select Screen        |
|                          ADATA_IM2S3168-064GD]     |^v: Select Item          |
|                                                    |Enter: Select            |
|> Hard Disk Drive 1 BBS Priorities                  |+/-: Change Opt.         |
|                                                    |F1: General Help         |
|                                                    |F2: Previous Values      |
|                                                    |F3: Optimized Defaults   |
|                                                    |F4: Save & Exit          |
|                                                    |ESC: Exit                |
\----------------------------------------------------+-------------------------/
        Version 2.19.1266. Copyright (C) 2019 American Megatrends, Inc.
```
　
USBブートができるとわかったので、さっそくdebian 6.1.0-9-amd64をインストールしてみましょう。

**STEP1**
インストールメディアを作成します。

**STEP2**
コンソールケーブルをRS-232に、LANケーブルを管理ポートに、インストールメディアをUSBポートに接続します。

**STEP3**
起動します。
```
              **************************************************
              *  Debian GNU/Linux installer menu (BIOS mode)  *
              **************************************************
              * Graphical install                              *
              * Install                                        *
              * Advanced options                             > *
              * Accessible dark contrast installer menu      > *
              * Help                                           *
              * Install with speech synthesis                  *
              *                                                *
              *                                                *
              *                                                *
              *                                                *


   Press a key, otherwise speech synthesis will be started in 22 seconds...
               Press ENTER to boot or TAB to edit a menu entry
```
この画面が出てきたら、Helpを選択します。
そうしたら、`boot:`のところに
```
install console=ttyS0,115200n8
```
と入力してEnterを押します。
エラーや警告が表示されますが、Enterキーを3回ほど押すとインストール処理にシリアルコンソールを使用できるようになります。
後は通常のインストールと同様に進めることができました。


# 3.おまけ
```
root@debian:~# uname -a
Linux debian 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 GNU/Linux
```
```
root@debian:~# df -h
Filesystem                   Size  Used Avail Use% Mounted on
udev                         3.9G     0  3.9G   0% /dev
tmpfs                        791M  500K  790M   1% /run
/dev/mapper/debian--vg-root   57G  936M   54G   2% /
tmpfs                        3.9G     0  3.9G   0% /dev/shm
tmpfs                        5.0M     0  5.0M   0% /run/lock
/dev/sda1                    455M   59M  372M  14% /boot
tmpfs                        791M     0  791M   0% /run/user/0
```
```
root@debian:~# lsblk
NAME                  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda                     8:0    0 59.6G  0 disk
tqsda1                  8:1    0  487M  0 part /boot
tqsda2                  8:2    0    1K  0 part
mqsda5                  8:5    0 59.1G  0 part
  tqdebian--vg-root   254:0    0 58.2G  0 lvm  /
  mqdebian--vg-swap_1 254:1    0  976M  0 lvm  [SWAP]
```
```
root@debian:~# lspci
00:00.0 Host bridge: Intel Corporation Atom Processor C3000 Series System Agent (rev 11)
00:04.0 Host bridge: Intel Corporation Atom Processor C3000 Series Error Registers (rev 11)
00:05.0 Generic system peripheral [0807]: Intel Corporation Atom Processor C3000 Series Root Complex Event Collector (rev 11)
00:06.0 PCI bridge: Intel Corporation Atom Processor C3000 Series Integrated QAT Root Port (rev 11)
00:09.0 PCI bridge: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #0 (rev 11)
00:0b.0 PCI bridge: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #2 (rev 11)
00:0c.0 PCI bridge: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #3 (rev 11)
00:0e.0 PCI bridge: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #4 (rev 11)
00:0f.0 PCI bridge: Intel Corporation Atom Processor C3000 Series PCI Express Root Port #5 (rev 11)
00:12.0 System peripheral: Intel Corporation Atom Processor C3000 Series SMBus Contoller - Host (rev 11)
00:13.0 SATA controller: Intel Corporation Atom Processor C3000 Series SATA Controller 0 (rev 11)
00:15.0 USB controller: Intel Corporation Atom Processor C3000 Series USB 3.0 xHCI Controller (rev 11)
00:16.0 PCI bridge: Intel Corporation Atom Processor C3000 Series Integrated LAN Root Port #0 (rev 11)
00:18.0 Communication controller: Intel Corporation Atom Processor C3000 Series ME HECI 1 (rev 11)
00:1c.0 SD Host controller: Intel Corporation Device 19db (rev 11)
00:1f.0 ISA bridge: Intel Corporation Atom Processor C3000 Series LPC or eSPI (rev 11)
00:1f.2 Memory controller: Intel Corporation Atom Processor C3000 Series Power Management Controller (rev 11)
00:1f.4 SMBus: Intel Corporation Atom Processor C3000 Series SMBus controller (rev 11)
00:1f.5 Serial bus controller: Intel Corporation Atom Processor C3000 Series SPI Controller (rev 11)
01:00.0 Co-processor: Intel Corporation Atom Processor C3000 Series QuickAssist Technology (rev 11)
05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
06:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
07:00.0 Ethernet controller: Intel Corporation Ethernet Connection X553 Backplane (rev 11)
07:00.1 Ethernet controller: Intel Corporation Ethernet Connection X553 Backplane (rev 11)
```
```
root@debian:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```
```
root@debian:~# ip a | grep ^[0-9]
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
2: enp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
3: enp6s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
4: enp7s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
5: enp7s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
```
```
root@debian:~# cat /proc/cpuinfo | less
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 95
model name      : Intel(R) Atom(TM) CPU C3558 @ 2.20GHz
stepping        : 1
microcode       : 0x38
cpu MHz         : 2201.156
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 21
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstoptherm arat pln pts md_clear arch_capabilities
apic_reg vid ple shadow_vmcs
bugs            : spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 4400.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 95
model name      : Intel(R) Atom(TM) CPU C3558 @ 2.20GHz
stepping        : 1
microcode       : 0x38
cpu MHz         : 2200.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 4
cpu cores       : 4
apicid          : 8
initial apicid  : 8
fpu             : yes
fpu_exception   : yes
cpuid level     : 21
wp              : yes
therm arat pln pts md_clear arch_capabilities
apic_reg vid ple shadow_vmcs
bugs            : spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 4400.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 95
model name      : Intel(R) Atom(TM) CPU C3558 @ 2.20GHz
stepping        : 1
microcode       : 0x38
cpu MHz         : 2200.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 10
cpu cores       : 4
apicid          : 20
initial apicid  : 20
fpu             : yes
fpu_exception   : yes
cpuid level     : 21
wp              : yes
therm arat pln pts md_clear arch_capabilities
apic_reg vid ple shadow_vmcs
bugs            : spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 4400.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 95
model name      : Intel(R) Atom(TM) CPU C3558 @ 2.20GHz
stepping        : 1
microcode       : 0x38
cpu MHz         : 2200.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 14
cpu cores       : 4
apicid          : 28
initial apicid  : 28
fpu             : yes
fpu_exception   : yes
cpuid level     : 21
wp              : yes
therm arat pln pts md_clear arch_capabilities
apic_reg vid ple shadow_vmcs
bugs            : spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 4400.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:
```