18.5 Radxa X4(x86)

Radxa X4 是 x86 开发版,处理器是英特尔 N100。全文基于 Radxa X4 16G 内存 + 128G emmc 款。

请安装 FreeBSD 15.0-CURRENT。15.0 有 Bug,主频上不了 3Ghz。参见 Bug 271548 - Alder lake CPU not running at full speed

  • FreeBSD 14.2-RELEASE 会有奇怪的 bug:若使用 emmc 款(且 FreeBSD 系统安装到 emmc 中),则固态硬盘的分区不能超过 5 个,否则 zfs 无法启动。

  • FreeBSD 14.2-RELEASE 似乎无法睿频变频

安装驱动

  • 安装显卡驱动:

# pkg install drm-61-kmod

# cd /usr/ports/graphics/drm-61-kmod/ 
# make install clean

配置显卡:

# sysrc -f /etc/rc.conf kld_list+=i915kms
  • 安装无线网卡驱动:

# pkg install wifi-firmware-rtw89-kmod

# cd /usr/ports/net/wifi-firmware-rtw89-kmod/ 
# make install clean

查看实时状态(内存,网速,硬盘读写等)

systat -vmstat 1 每秒刷新一次:

root@ykla:~ # systat -vmstat 1
    2 users    Load  2.01  3.28  3.42                  Mar  9 12:26:41
   Mem usage:  91%Phy 52%Kmem                           VN PAGER   SWAP PAGER
Mem:      REAL           VIRTUAL                        in   out     in   out
       Tot   Share     Tot    Share     Free   count
Act   432M  10400K   4610G   15868K    1373M   pages
All   434M  12244K   4610G   87652K                       ioflt  Interrupts
Proc:                                                     cow    3273 total
  r   p   d    s   w   Csw  Trp  Sys  Int  Sof  Flt   663 zfod        sdhci_pci0
  1           41        4K  684  138   2K       663       ozfod  1030 cpu0:timer
                                                         %ozfod   204 cpu1:timer
 0.2%Sys   0.2%Intr 25.3%User  0.0%Nice 74.3%Idle         daefr     3 cpu2:timer
|    |    |    |    |    |    |    |    |    |    |       prcfr     9 cpu3:timer
>>>>>>>>>>>>>                                             totfr  2022 xhci1 129
                                           dtbuf          react       igc0:rxq0
Namei     Name-cache   Dir-cache    345474 maxvn          pdwak     3 igc0:rxq1
   Calls    hits   %    hits   %    252374 numvn      249 pdpgs       igc0:rxq2
       3       3 100                176597 frevn          intrn     2 igc0:rxq3
                                                    8298M wire        igc0:aq
Disks mmcsd mmcsd mmcsd  nda0 pass0                  581M act         nvme0:admi
KB/t   0.00  0.00  0.00  0.00  0.00                 5380M inact       nvme0:io0
tps       0     0     0     0     0                  548K laund       nvme0:io1
MB/s   0.00  0.00  0.00  0.00  0.00                 1373M free        nvme0:io2
%busy     0     0     0     0     0                   57K buf         nvme0:io3
                                                                      hdac0 140

CPU 温度

读取 CPU 温度

root@ykla:/home/ykla # kldload coretemp # 英特尔加载 coretemp,AMD 请使用 amdtemp
root@ykla:/home/ykla # sysctl -a | grep temperature
hw.acpi.thermal.tz0.temperature: 27.9C # 这个值不代表 CPU 温度,一般是主板温度
dev.cpu.3.temperature: 41.0C
dev.cpu.2.temperature: 40.0C
dev.cpu.1.temperature: 40.0C
dev.cpu.0.temperature: 40.0C
root@ykla:/home/ykla # sysctl dev.cpu | grep temperature
dev.cpu.3.temperature: 30.0C
dev.cpu.2.temperature: 30.0C
dev.cpu.1.temperature: 29.0C
dev.cpu.0.temperature: 30.0C

疑问:为什么温度不一样?

持久化温度设定

为便于 htop 等软件使用,编辑 /boot/loader.conf 写入:

coretemp_load="YES"

参考文献

最后更新于