oes配置:A311D(六核RAM处理器),RAM:4GB,ROM:8GB,三个2.5寸SATA硬盘位,一个USB接口,一个千兆网口,正是用做nas的好盒子。本文记录了刷机过程及踩过的坑。

下载刷机工具和刷机包

USB Burning Tool:点击下载
底包:点击下载
飞牛官方包:点击下载
此地址上有时间戳,不能点击时,https://fnnas.com/download-arm ,搜索oes。
github资源不能访问时,可在地址前加https://v6.qs100371.top/

线刷底包

安装USB_Burning_Tool,SECURE_BOOT_SET文件复制到USB_Burning_Tool安装目录下的license目录里,再打开软件,导入底包oesp1.img,取消右侧的选项。
oes拆机,拆散热片,短接点如图所示,

短接之后,用usb双公头线连接电脑和oes,插入oes电源,刷机工具提示连接成功即可松开短接。点击开始,等待进度条提示完成刷机。




短接刷机时注意,由于oes是独立电源,在短接不成功时,一定要先拔下usb线,再拔电源线,否则有电流冲击笔记本主板,可能导致电脑锁死。因为这个,轻薄本多次黑屏无响应,拆机拔电池排线才恢复。

安装飞牛

用rufus或balenaEtcher把官方刷机包img文件写入u盘,插入oes,接上电源,会从u盘启动飞牛系统,启动后从路由器后台找新加入设备的ip,用浏览器打开ip:5666,设置飞牛账号并打开账号的ssh权限。用创建的帐号ssh登入飞牛,运行

1
2
sudo -i
./install-to-emmc.sh

把u盘中的飞牛写入emmc。
系统输出:

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
Start script create MBR and filesystem
Unmount disks mounted by trim
umount: /vol*/*: no mount point specified.
Start backup u-boot default
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.0734933 s, 57.1 MB/s
Start create MBR and partittion
Start restore u-boot
442+0 records in
442+0 records out
442 bytes copied, 0.0205248 s, 21.5 kB/s
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.679211 s, 6.2 MB/s
Done
Start copy system for eMMC.
Formatting BOOT partition...mkfs.fat 4.2 (2021-01-31)
done.
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
Cppying BOOT...done.
Edit init config...done.
Formatting ROOT partition...
btrfs-progs v6.2
See http://btrfs.wiki.kernel.org for more information.

Performing full device TRIM /dev/mmcblk1p2 (6.15GiB) ...
NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)

Label: ROOT_EMMC
UUID: afd81fd2-3241-4fad-bcc5-f3d4a996d01e
Node size: 16384
Sector size: 4096
Filesystem size: 6.15GiB
Block group profiles:
Data: single 8.00MiB
Metadata: DUP 256.00MiB
System: DUP 8.00MiB
SSD detected: yes
Zoned device: no
Incompat features: extref, skinny-metadata, no-holes
Runtime features: free-space-tree
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 6.15GiB /dev/mmcblk1p2

done.
Copying ROOTFS.
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
Copy BIN
Create DEV
Copy ETC
Copy HOME
Copy LIB
Copy LIB64
tar: lib64: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Create MEDIA
Create MNT
Copy OPT
Create PROC
Copy ROOT
Create RUN
Copy SBIN
Copy SELINUX
tar: selinux: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Copy SRV
Create SYS
Create TMP
Copy USR
Copy VAR
tar: var/lib/samba/winbindd_privileged/pipe: socket ignored
Edit fstab...done.
*******************************************
Complete copy OS to eMMC
*******************************************

前面板,刷机成功后,电源网络和硬盘指示灯亮(只有一个硬盘,只亮一个灯)

后面板,硬盘抽屉,网线口和usb口。硬盘只能用7mm厚2.5寸ssd,抽屉上可装两个,第三个要拆机,装在底盖上。

参考文献:
1. [ARM飞牛]网心云OES/OES PLUS刷飞牛OS教程
2. https://github.com/ophub/amlogic-s9xxx-armbian/issues/2666
3. 网心云 OES 刷armbian