今年有点功夫折腾龙芯,为了避免一些麻烦,我特地选择了这一款神奇的开发板。
先上传一些开发板的资料
这款开发板的具体参数如下,利用hardinfo生成:
-计算机-
处理器 : Loongson-3A5000-H
内存 : 16541MB (1550MB used)
机器类型 : Unknown physical machine type
操作系统 : Loongnix GNU/Linux 20 (DaoXiangHu)
用户名 : topeet (topeet)
日期/时间 : 2023年01月02日 星期一 15时27分36秒
-显示-
解决方案 : 1920x1080 pixels
OpenGL Renderer : llvmpipe (LLVM 8.0, 256 bits)
X11 Vendor : The X.Org Foundation
-音频设备-
音频适配器 : HDA-Loongson - HDA Loongson HDMI
音频适配器 : HDA-Loongson - HDA Loongson
-输入设备-
Power Button
HDA Loongson HDMI HDMI/DP,pcm:3
HDA Loongson HDMI HDMI/DP,pcm:7
HDA Digital PCBeep
HDA Loongson Rear Mic
HDA Loongson Front Mic
HDA Loongson Line
HDA Loongson Line Out
HDA Loongson Front Headphone
HID 046a:0011
Logitech G102 Prodigy Gaming Mouse
Logitech G102 Prodigy Gaming Mouse Keyboard
Logitech G102 Prodigy Gaming Mouse Consumer Control
Logitech G102 Prodigy Gaming Mouse System Control
-Printers (CUPS)-
Canon_LBP612C_613C
EPSON_L655_Series
HP040E3C84B02D_HP_Color_Laser_MFP_178_179_
HP_LaserJet_MFP_M725_3BD769_
PCI设备中带了一块无线网卡,免驱动,可直接使用。
topeet@topeet-pc:~$ lspci
00:00.0 Host bridge: Loongson Technology LLC Hyper Transport Bridge Controller
00:00.1 Host bridge: Loongson Technology LLC Device 7a10 (rev 01)
00:00.2 Host bridge: Loongson Technology LLC Device 7a20 (rev 01)
00:00.3 Host bridge: Loongson Technology LLC Device 7a30
00:03.0 Ethernet controller: Loongson Technology LLC Device 7a13
00:04.0 USB controller: Loongson Technology LLC OHCI USB Controller (rev 02)
00:04.1 USB controller: Loongson Technology LLC EHCI USB Controller (rev 02)
00:05.0 USB controller: Loongson Technology LLC OHCI USB Controller (rev 02)
00:05.1 USB controller: Loongson Technology LLC EHCI USB Controller (rev 02)
00:06.0 Multimedia video controller: Loongson Technology LLC Device 7a25 (rev 01)
00:06.1 VGA compatible controller: Loongson Technology LLC Device 7a36 (rev 02)
00:06.2 Audio device: Loongson Technology LLC Device 7a37
00:06.3 Multimedia controller: Loongson Technology LLC Device 7a16
00:07.0 Audio device: Loongson Technology LLC HDA (High Definition Audio) Controller
00:08.0 SATA controller: Loongson Technology LLC Device 7a18
00:09.0 PCI bridge: Loongson Technology LLC Device 7a49
00:0d.0 PCI bridge: Loongson Technology LLC Device 7a49
00:0f.0 PCI bridge: Loongson Technology LLC Device 7a69
00:10.0 PCI bridge: Loongson Technology LLC Device 7a59
00:13.0 PCI bridge: Loongson Technology LLC Device 7a59
00:16.0 System peripheral: Loongson Technology LLC Device 7a1b
00:17.0 ISA bridge: Loongson Technology LLC LPC Controller (rev 01)
00:19.0 USB controller: Loongson Technology LLC Device 7a34
02:00.0 Non-Volatile memory controller: Silicon Motion, Inc. Device 2263 (rev 03)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
这个主机是爱国者的侧透主机,atx尺寸。如下图1所示
图1. 讯为龙芯开发板主机
硬盘品牌没得选,我估计之后要换个大硬盘,所以默认选择了128GB的杂牌硬盘。这个ssd的品牌我没有听说过。
图2为主机未开机时的状态。
图2. 讯为龙芯开发者主机,未开机状态。
图3. 讯为龙芯主机开机状态。
手头正好有多的风扇,于是我给安装了一个利民的C12风扇。需要注意的是,我连接的FAN口的插针挡板和普通PC有区别,所以那个小挡板被我掰断了。
主机背板上居然有2个HMDI口和两个网口,但是看有一个网口灯不亮,不清楚怎么回事。
图4. 主机背板
图5. 系统截图功能很好用,浏览器也很方便。
图6.
关于bios,这个主板使用的是pmon,我至今还不知道怎么设置u盘启动。已经折腾了10个小时了
topeet@topeet-pc:~$ sudo dmidecode
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.6 present.
15 structures occupying 707 bytes.
Table at 0x0FFFE01F.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: Loongson
Version: Loongson-PMON-V3.3-....
Release Date: <BAD INDEX>
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 16 MB
Characteristics:
PCI is supported
BIOS is upgradeable
Boot from CD is supported
Selectable boot is supported
Serial services are supported (int 14h)
ACPI is supported
USB legacy is supported
Function key-initiated network boot is supported
BIOS Revision: 3.0
Invalid entry length (1). DMI table is broken! Stop.
软件
我需要Gmsh+getdp,所以需要重新编译。
结果旧世界的图形似乎有点问题,我需要先编译cmake,然后编译图形库fltk,然后编译gmsh和getdp。
make -j
指令居然会爆我的swap,一下子居然开了400个进程。