モバイルノート4号機

四代目モバイルノート

2020/02/09 購入 2020/02/29 納入 2020/03/16 運用開始

システム構成

ベースPanasonic Letsnote LV8 CF-LV8WRJQP
メモリSK hynix LPDDR3-2133 16GB
StorageSamsung PM981 NVMe SSD 1TB(標準装備)

初期Partition

=>        34  2000409197  nvd0  GPT  (954G)
          34        2014        - free -  (1.0M)
        2048      532480     1  efi  (260M)
      534528       32768     2  ms-reserved  (16M)
      567296  1966356480     3  ms-basic-data  (938G)
  1966923776     2027520     4  ms-recovery  (990M)
  1968951296    31457280     5  !de94bba4-06d1-4d40-a161-bfd50179d6ac  (15G)
  2000408576         655        - free -  (328K)

PCI device

hostb0@pci0:0:0:0:      class=0x060000 card=0x833810f7 chip=0x3e348086 rev=0x0c hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Coffee Lake HOST and DRAM Controller'
   class      = bridge
   subclass   = HOST-PCI
vgapci0@pci0:0:2:0:     class=0x030000 card=0x835510f7 chip=0x3ea08086 rev=0x02 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'UHD Graphics 620 (Whiskey Lake)'
   class      = display
   subclass   = VGA
none0@pci0:0:4:0:       class=0x118000 card=0x833810f7 chip=0x19038086 rev=0x0c hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem'
   class      = dasp
none1@pci0:0:18:0:      class=0x118000 card=0x833810f7 chip=0x9df98086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP Thermal Controller'
   class      = dasp
xhci0@pci0:0:20:0:      class=0x0c0330 card=0x833810f7 chip=0x9ded8086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP USB 3.1 xHCI Controller'
   class      = serial bus
   subclass   = USB
none2@pci0:0:20:2:      class=0x050000 card=0x833810f7 chip=0x9def8086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP Shared SRAM'
   class      = memory
   subclass   = RAM
iwm0@pci0:0:20:3:       class=0x028000 card=0x00308086 chip=0x9df08086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP CNVi [Wireless-AC]'
   class      = network
ig4iic0@pci0:0:21:0:    class=0x0c8000 card=0x833810f7 chip=0x9de88086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP Serial IO I2C Controller'
   class      = serial bus
none3@pci0:0:22:0:      class=0x078000 card=0x833810f7 chip=0x9de08086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP MEI Controller'
   class      = simple comms
none4@pci0:0:22:3:      class=0x070002 card=0x833810f7 chip=0x9de38086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP Keyboard and Text (KT) Redirection'
   class      = simple comms
   subclass   = UART
ahci0@pci0:0:23:0:      class=0x010601 card=0x833810f7 chip=0x9dd38086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP SATA Controller [AHCI Mode]'
   class      = mass storage
   subclass   = SATA
pcib1@pci0:0:28:0:      class=0x060400 card=0x833810f7 chip=0x9dbc8086 rev=0xf1 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP PCI Express Root Port'
   class      = bridge
   subclass   = PCI-PCI
pcib6@pci0:0:29:0:      class=0x060400 card=0x833810f7 chip=0x9db28086 rev=0xf1 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP PCI Express Root Port'
   class      = bridge
   subclass   = PCI-PCI
pcib7@pci0:0:29:4:      class=0x060400 card=0x833810f7 chip=0x9db48086 rev=0xf1 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP PCI Express Root Port'
   class      = bridge
   subclass   = PCI-PCI
isab0@pci0:0:31:0:      class=0x060100 card=0x833810f7 chip=0x9d848086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP LPC Controller'
   class      = bridge
   subclass   = PCI-ISA
hdac0@pci0:0:31:3:      class=0x040300 card=0x833810f7 chip=0x9dc88086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP High Definition Audio Controller'
   class      = multimedia
   subclass   = HDA
none5@pci0:0:31:4:      class=0x0c0500 card=0x833810f7 chip=0x9da38086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP SMBus Controller'
   class      = serial bus
   subclass   = SMBus
none6@pci0:0:31:5:      class=0x0c8000 card=0x833810f7 chip=0x9da48086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Cannon Point-LP SPI Controller'
   class      = serial bus
em0@pci0:0:31:6:        class=0x020000 card=0x833810f7 chip=0x15bd8086 rev=0x11 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'Ethernet Connection (6) I219-LM'
   class      = network
   subclass   = ethernet
pcib2@pci0:1:0:0:       class=0x060400 card=0x00051189 chip=0x15da8086 rev=0x02 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016]'
   class      = bridge
   subclass   = PCI-PCI
pcib3@pci0:2:0:0:       class=0x060400 card=0x00051189 chip=0x15da8086 rev=0x02 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016]'
   class      = bridge
   subclass   = PCI-PCI
pcib4@pci0:2:1:0:       class=0x060400 card=0x00051189 chip=0x15da8086 rev=0x02 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016]'
   class      = bridge
   subclass   = PCI-PCI
pcib5@pci0:2:2:0:       class=0x060400 card=0x00051189 chip=0x15da8086 rev=0x02 hdr=0x01
   vendor     = 'Intel Corporation'
   device     = 'JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016]'
   class      = bridge
   subclass   = PCI-PCI
none7@pci0:3:0:0:       class=0x088000 card=0x00051189 chip=0x15d98086 rev=0x02 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'JHL6340 Thunderbolt 3 NHI (C step) [Alpine Ridge 2C 2016]'
   class      = base peripheral
xhci1@pci0:57:0:0:      class=0x0c0330 card=0x00051189 chip=0x15db8086 rev=0x02 hdr=0x00
   vendor     = 'Intel Corporation'
   device     = 'JHL6340 Thunderbolt 3 USB 3.1 Controller (C step) [Alpine Ridge 2C 2016]'
   class      = serial bus
   subclass   = USB
sdhci_pci0@pci0:58:0:0: class=0x080501 card=0x00021217 chip=0x85201217 rev=0x01 hdr=0x00
   vendor     = 'O2 Micro, Inc.'
   device     = 'SD/MMC Card Reader Controller'
   class      = base peripheral
   subclass   = SD host controller
nvme0@pci0:59:0:0:      class=0x010802 card=0xa801144d chip=0xa808144d rev=0x00 hdr=0x00
   vendor     = 'Samsung Electronics Co Ltd'
   device     = 'NVMe SSD Controller SM981/PM981/PM983'
   class      = mass storage
   subclass   = NVM

USB device

ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen1.1: <0x8086 XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <Bison USB HD Webcam> at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF (500mA)
ugen0.3: <vendor 0x06cb product 0x00c6> at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=OFF (100mA)
ugen0.4: <vendor 0x8087 product 0x0aaa> at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=OFF (100mA)
  • ugen0.4は、Intel USB Bluetooth device
  • ugen0.3は、idVendorはSynapticsなので、指紋センサーか?
    • ポインタデバイスは後述するようにI2C HID経由なので違うと思われる
    • fprintのサポートリストにはidProduct 0x00bdはあるが、0x00c6はまだ載っていない
      • GitLabにある最新版は、libusb-1.0ではなくGObjectラッパーライブラリlibgusbに依存している模様
      • libgusbのportsはまだ無い?
    • PAMフロントエンドはports/security/pam_fprint

環境構築コンセプト

  • Win10 ProとFreeBSDのDual Boot運用
  • StrageはGPT/ZFSな UEFI Boot

環境構築作業

  1. Recovery Disc/USB作成および動作確認
  2. FreeBSD Installerの動作確認
  3. Windowsパーテーションの縮小
  4. UEFI+ROOTonZFSでセットアップ
    • UEFIには、efibootmgrで FreeBSD用に作ったEFI System Partitionを登録する(msdosfs mount時に生のblock deviceを使わないとefibootmgrがloaderのunix pathからデバイス名を解決出来ずにエラーになる)
    • sshd_enableを設定すること
  5. 仮アカウントに.ssh/authorized_keysを登録して、遠隔作業環境を整備
  6. svnliteにて、src&portsをcheckoutする
  7. buildworld/buildkernelして、12-stableへ更新
    • build前に/etcの調整が必要
  8. ports-currentから必要なpackagesを導入する
    • BTやX.org回りの設定が変わるので注意
  9. homeをzfs send/recvで複製して運用切り替え完了

環境設定

  • bluetooth(iwmbt)向けのfirmwareはports/comms/iwmbt-firmwareにある
  • iwm driverはdevd経由で自動ロードされる
    • kernel configureすべきfirmwareはiwm9000fw
    • PR227044

備考

  • psm0: unable to allocate IRQでpsmはattachされない
    • psmidentify/proble時に SYS_RES_IRQ/KBDC_RID_AUXリソース(IRQ番号)が0
    • ports-CURRENT/sysutils/iichidで、X.Org上のマウスとして最低限の動作は可能
      • 動きの早さは、dev.iichid.#.sampling_rate_fast / dev.iichid.#.sampling_rate_slow sysctl変数で調整可能
        • サンプルレートなので、大きいほど応答が早くなる
      • /dev/にmouse deviceが生えないので、mousedはだめっぽぃ(evdevサポートが入った様子は無い?)
      • 指を離した後に、moveイベントが発生し続けるケースが散在する(きちんと止まる時も有る)
        • iichidからのevdev eventがどうなっているかは要確認
      • hms(マウス)として認識される・synapticsドライバを指定してもプロトコルエラーで動作しない(edgeでのぐるぐるは使えない)
  • Suspend/Resume回り
    • drm-fbsd12.0-kmod/acpi_videoロード時
      • hw.acpi.reset_video=1だと、Resumeに失敗する
      • hw.acpi.reset_video=0だと、1回目のSuspend/Resumeに成功するが、2回目のResumeに失敗する
        • X上からのSuspend/Resumeでも同様
        • hw.acpi.reset_video=1の事例同様に、コンソール画面復帰せず、LANの再接続無し(ping応答無し)
        • 状況的には、コンソール復帰中にハングアップしている?
          • コンソール復元のみの失敗なら、LAN側が応答するはず…
Last modified:2020/03/19 22:20:05
Keyword(s):
References:[Server構築メモ]