0%

关于黑威联通 QTS的折腾记录

威联通的NAS比群晖多了HDMI接口,可以用于视频播放。想着可以用于替换我现有的PVE+kodi+虚拟群晖,不用再搞个虚拟机出来,于是就进坑了。

本篇是真从入门到入土,最终因为种种原因还是放弃使用了,仅记录一下心得,可能日后还能用得上。

就目前网上资料,黑威联通主要就是国内爷爷级大神老骥伏枥的研究结果,公开的资料不多,坑也多,很多问题都无解。我这了主要还是用牛年大礼包哪个镜像。安装步骤不难,按照参考连接里面的教程一步一步来就行了,主要就是moudel.conf文件的写法。

以我的一块华硕P8B75-M LX PLUS为例,在TinyCore里面lspci -vtnn输出如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tc@box:~$ lspci -vtnn
-[0000:00]-+-00.0 Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller [8086:0150]
+-01.0-[01]--
+-02.0 Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller [8086:0152]
+-14.0 Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31]
+-16.0 Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a]
+-1a.0 Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d]
+-1b.0 Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20]
+-1c.0-[02]--
+-1c.4-[03]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168]
+-1d.0 Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26]
+-1e.0-[04]----00.0 Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 [8086:1229]
+-1f.0 Intel Corporation B75 Express Chipset LPC Controller [8086:1e49]
+-1f.2 Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e02]
\-1f.3 Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22]

可以看到有一个6口的SATA控制器,2个USB2.0根控制器,1个USB3.0根控制器,我这里选择用U盘做引导盘。经过测试在USB2.0接口下可以引导进入系统,但是WEB登录管理界面的时候会卡在Loading,换成USB3.0接口就正常了,原因不明。用另外一块I3-2367M的mini主板测试,USB2.0可以正常引导又不会卡Loading。U盘用的是很普通的USB2.0 8G U盘。

sudo vi patch/etc/model.conf 如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[System Enclosure]
VENDOR = QNAP
MODEL = TS-X53B
CAP=0x161cdb9c
MAX_DISK_NUM = 6
MAX_FAN_NUM = 1
MAX_TEMP_NUM = 2
MAX_NET_PORT_NUM = 2
INTERNAL_NET_PORT_NUM = 2
MAX_PCIE_SLOT = 1
CPU_TEMP_UNIT = DTS:1
SYSTEM_TEMP_UNIT=SIO
SIO_DEVICE = IT8528
PWR_RECOVERY_UNIT = SIO
PWR_RECOVERY_CMOS_STORE = 0x70,0x61
BOARD_SN_DEVICE = BOOT1:67000000
ETH_MAC_DEVICE = NET

DISK_DRV_TYPE = ATA
DISK_DEFAULT_MAX_LINK_SPEED = PD_SATA_SAS_6G

SYSTEM_DISK_CACHEABLE_BITMAP = 0x1E

SS_MAX_CHANNELS = 40
SS_FREE_CHANNELS = 2
LCM_BAUDRATE = 115200
[System FAN]
FAN_UNIT = SIO
FAN_1=I1
[System IO]
RESET_BUTTON = SIO:I92:B1
STATUS_GREEN_LED = SIO:I91:B2
STATUS_RED_LED = SIO:I91:B3
LED_BV_CTRL = GPIO
USB_COPY_BUTTON = SIO:IE2:B2
FRONT_USB_LED = SIO:IE1:B7
VPD_MB = I2C:0x54
VPD_BP = I2C:0x56

[System Disk 1]
DEV_BUS = B00:D31:F2
DEV_PORT = 0
[System Disk 2]
DEV_BUS = B00:D31:F2
DEV_PORT = 1
[System Disk 3]
DEV_BUS = B00:D31:F2
DEV_PORT = 2
[System Disk 4]
DEV_BUS = B00:D31:F2
DEV_PORT = 3
[System Disk 5]
DEV_BUS = B00:D31:F2
DEV_PORT = 4
[System Disk 6]
DEV_BUS = B00:D31:F2
DEV_PORT = 5

;网卡地址不填写,也不影响使用,系统会枚举网卡。
;官网选TS-453B型号,4.5和5.0版本的系统 RTL8111自带驱动。Intel 82559百兆网卡无驱动,系统不识别。
;[System Network 1]
;DEV_BUS=B00:D28:F4
;DEV_PORT = 0
;DEV_BRIDGE_BUS = B03:D00:F0

;经过测试我的USB2.0接口分别是USB 1-1.1、1-1.2、1-1.4、1-1.5、2-1.4、2-1.5。
;USB3.0接口是USB 3-4、4-3
;USB1-x 的地址是B00:D26:F0,USB2-x 的地址是B00:D29:F0
[Usb Enclosure]
VENDOR = QNAP
MODEL = USB
MAX_PORT_NUM = 8
USB3_PORT_BITMAP = 0x1FE
[Usb Port 1]
DEV_BUS = B00:D26:F0
IN_HUB = 1
DEV_PORT = 1
HUB_PORT = 1
[Usb Port 2]
DEV_BUS = B00:D26:F0
IN_HUB = 1
DEV_PORT = 2
HUB_PORT = 1
[Usb Port 3]
DEV_BUS = B00:D26:F0
IN_HUB = 1
DEV_PORT = 5
HUB_PORT = 1
[Usb Port 4]
DEV_BUS = B00:D26:F0
IN_HUB = 1
DEV_PORT = 6
HUB_PORT = 1
[Usb Port 5]
DEV_BUS = B00:D29:F0
IN_HUB = 1
DEV_PORT = 5
HUB_PORT = 1
[Usb Port 6]
DEV_BUS = B00:D29:F0
IN_HUB = 1
DEV_PORT = 6
HUB_PORT = 1
[Usb Port 7]
DEV_BUS = B00:D20:F0
DEV_PORT = 4

[Boot Enclosure]
VENDOR = QNAP
MODEL = BOOT
MAX_DISK_NUM = 1
DISK_DRV_TYPE = USB
;其中一个USB 3.0接口作为引导盘
[Boot Disk 1]
DEV_BUS = B00:D20:F0
DEV_PORT = 3

[Memory I2C 1]
DEV_BUS = B00:31:F3
DEV_PORT = 0

[System Memory]
MAX_CHANNEL_NUM = 2
MAX_SLOT_NUM = 2
SLOT1_ADDR = 1, 0x50
SLOT2_ADDR = 2, 0x52

如果是在pve上,kvm虚拟机安装,磁盘类型只能是SATA,还需要加载VirtIO网卡驱动。

sudo vi patch/laojifuli_patch

1
2
3
4
5
6
7
8
9
10
11
12
13
#insmod virtio module
[ -f /lib/modules/misc/virtio.ko ] && /sbin/insmod /lib/modules/misc/virtio.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_ring.ko ] && /sbin/insmod /lib/modules/misc/virtio_ring.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_rng.ko ] && /sbin/insmod /lib/modules/misc/virtio_rng.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_blk.ko ] && /sbin/insmod /lib/modules/misc/virtio_blk.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_net.ko ] && /sbin/insmod /lib/modules/misc/virtio_net.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_mmio.ko ] && /sbin/insmod /lib/modules/misc/virtio_mmio.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_console.ko ] && /sbin/insmod /lib/modules/misc/virtio_console.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_scsi.ko ] && /sbin/insmod /lib/modules/misc/virtio_scsi.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_balloon.ko ] && /sbin/insmod /lib/modules/misc/virtio_balloon.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_crypto.ko ] && /sbin/insmod /lib/modules/misc/virtio_crypto.ko 2>>/dev/null
[ -f /lib/modules/misc/virtio_pci.ko ] && /sbin/insmod /lib/modules/misc/virtio_pci.ko 2>>/dev/null

全部安装成功后,发现我和网上其他人的白威联通不一样,APP Center里面没有HybridDesk Station,换过几块主板都是这样,在虚拟机里面安装的黑威联通APP Center倒是有HybridDesk Station,但是没法安装成功的虚拟机也没有HDMI输出,控制台会只输出CLI界面。

回到物理机,HDMI接口有输出,并提示需要安装HD Station,可以通过键盘鼠标可以安装HD Station。安装HD Station后就可以登录使用了。里面有个HD Player的应用实际上就是kodi,还要用鼠标打开并且每次都要输入账号密码。也就是说开机后登录HD Station要输入账号密码,打开各类应用还要再输入一次账号密码。挺反人类的,不知道白的是不是这样,可能只是黑得不完美的问题。

最后威联通的系统,不管黑的白的,开机关机速度巨慢,WEB管理界面也挺卡的,弃坑了。

参考:

http://www.nasyun.com/thread-76364-1-1.html
http://www.nasyun.com/thread-76416-1-4.html
https://www.itpwd.com/462.html
http://www.nasyun.com/thread-78440-2-1.html
http://www.nasyun.com/thread-78384-1-1.html
http://www.nasyun.com/thread-78263-1-1.html
http://www.nasyun.com/thread-77518-1-1.html
http://www.nasyun.com/thread-77449-1-1.html
http://www.nasyun.com/thread-68740-11-1.html