TX3安装ATV,CoreELEC双系统

硬件要求

  1. TX3 一台,或者其他晶晨 905x3 cpu 原理差不多
  2. windows pc,10 或 11 均可
  3. 双头 usb 线,2.0 即可
  4. u 盘或者 tf 卡
  5. 牙签一根

软件要求

slimBOXtv

  1. 下载晶晨刷机工具,参考地址:https://slimboxtv.ru/glavnaya/instrukciya-po-ustanovke-proshivki-cherez-usb-burning-tool,经测试需要下载 2.2.x 版本,3.0 我这边测试不能导入固件包https://drive.google.com/file/d/14ywsaCxHvSGVXMuhZYPhCI4CB-ApH1IQ/view?usp=sharing
  2. slimboxtv 固件下载:https://slimboxtv.ru/glavnaya/tanix-tx3-bz-qz/,根据需要选择千兆(QZ)或百兆(BZ)
  3. 安装 Amlogic USB Burning Tool,一直下一步即可
  4. 解压 slimboxtv 固件,解压出来 img 备用

CoreELEC

  1. 下载固件https://coreelec.org/
  2. 选择 Download,选择 stable 版本,选择 New Installation,选择 Tanix TX3 Pro,选择 RAM / VARIANT:2g
  3. 下载后解压出 img 文件
烧录到 u 盘或 tf 卡
  1. u 盘和 tf 卡步骤一致,我选择 u 盘进行安装
  2. 下载https://rufus.ie/zh/,选择 img,选择 u 盘,写入
  3. 写入后,如未识别到 u 盘,需要去 windows 磁盘管理中手动分配一下盘符
  4. 打开 u 盘,找到 device_trees 文件夹,找到 tx3 千兆版本对应的 dtb 文件是 sm1_s905x3_4g_1gbit.dtb,复制到根目录下并重命名为 dtb.img

安装 slimBOXtv

  1. 打开 Amlogic USB Burning Tool,左上角文件,导入烧录包,选择解压好的固件
  2. 右边“擦除 flash”和“擦除 bootloader”的选项是否需要勾选,参考文章https://www.znds.com/tv-1197226-1-1.html
  3. 确定勾选无误后,点击右边开始
  4. tx3 全部插口拔掉,双头 usb 线先连接到电脑上,usb 线另一头插 tx3 视频口旁边的 usb2.0,等待一两秒再用牙签插 rest 孔,最后再插电源,即可识别后开始烧录,到 10%的时候拿掉牙签
  5. 如果不识别,需要确认驱动是否安装
  6. 插线顺序是否一致,多试几次
  7. usb 线是否有问题(我遇到过这个问题,换了根线可以了)
  8. 到 100%后直接拔电源,再插线,连接视频口,第一次进系统时间会长点

安装 CoreELEC

  1. tx3 全部插口拔掉,u 盘插到 3.0 口,插视频口,牙签插 rest 孔,插电源,稍等一会进入 CoreELEC 系统
  2. 等待写入文件后自动重启,进入安装引导
  3. 按照引导选择语言,主机名,网络,到选择 ssh 的地方,勾选,设置 ssh 密码
  4. 用 pc 连接 ssh,使用 root,密码 coreelec(我使用设置的密码不管用)
  5. 连接后输入命令,按 y
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
CoreELEC:~ # ceemmc -x ##执行此命令

Starting CoreELEC eMMC installation tool...

System is not supported: sm1_s905x3_4g_1gbit!

There is NO official support by Team CoreELEC
if you continue to run this tool!
Continue? [y]: y

eMMC size: 0x000e8f800000 [64GB]

No CoreELEC installation found on eMMC

Install in dual boot mode, CoreELEC and Android on eMMC ##选择双系统模式
Use CoreELEC data from
[1] current used SD or USB device ## 选择使用sd卡或者usb设备的数据
[2] existing backup on current used SD or USB device

Install in single boot mode, only CoreELEC on eMMC
Use CoreELEC data from
[3] current used SD or USB device
[4] existing backup on current used SD or USB device

Please choose one option? [1/2/3/4]: 1

Free space of 'partition CE_FLASH': 512MB
Free space of 'partition CE_STORAGE': 54509MB

Used space of '/flash': 232MB
Used space of '/storage': 10MB

There is enough free space on eMMC for installation!

Install CoreELEC on eMMC.
Continue? [y]: y ## 确认安装
e2fsck 1.45.7 (28-Jan-2021)

resize2fs 1.45.7 (28-Jan-2021)

Starting to format the new 'CE_FLASH' partition...
mkfs.fat 4.2 (2021-01-31)
Stopping Kodi before start of copy process!

Starting copying of data to the eMMC!
Please do NOT interrupt this progress till it's finished!

Copy all data from '/flash' to '/media/CE_FLASH'
232.44M 100% 53.93MB/s 0:00:04 (xfr#70, to-chk=0/78)

Synchronize data on disk with memory, please wait...
Copy all data from '/storage' to '/media/CE_STORAGE/coreelec_storage'
10.88M 99% 29.05MB/s 0:00:00 (xfr#682, to-chk=0/1324)

Synchronize data on disk with memory, please wait...
Start Kodi again to have a user interface!

Success!


You can now power off the device, remove the used boot media (SD or USB) and
power on again to boot the device from eMMC!

CoreELEC:~ #
  1. 重启进入系统

CoreELEC 优化

  1. 安装中文语言
  2. 调整红外遥控器灵敏度,连接 ssh 执行
1
ir-ctl -t 50000 更改遥控器的延迟(单位微秒),越小越快,太小可能导致无法失败。ir-keytable -D 200 -P 100 重复延迟为200毫秒,重复周期为100毫秒。
  1. 安装 OpenVFD 插件
  • 直接编辑文件,复制进去
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
vi /storage/.config/vfd.conf

# This file must be renamed to vfd.conf and placed in the /storage/.config/ folder.
#
# TX3(S905X3) configuration
#--------------------
#gpio_xxx:
# [0] 0 = &gpio, 1 = &gpio_ao.
# [1] pin number - https://github.com/openSUSE/kernel/blob/master/include/dt-bindings/gpio/meson-g12a-gpio.h
# [0] Reserved - must be 0.

vfd_gpio_clk='0,65,0'
vfd_gpio_dat='0,64,0'
vfd_gpio_stb='0,0,0xFF'

#chars:
# < DHHMM > Order of display chars (D=dots, represented by a single char)

vfd_chars='2,4,3,2,1'

#dot_bits:
# Order of dot bits. Typical configurations:
# Display Type 0, 1 usually has Alarm, USB, Play, Pause, Col, Ethernet, Wifi dots
# Alarm = 0, USB = 1, Play = 2, Pause = 3, Col = 4, Eth = 5, Wifi = 6
# Display Type 2 usually has APPS, USB, SETUP, CARD, Col, HDMI, CVBS dots
# APPS = 0, USB = 1, SETUP = 2, CARD = 3, Col = 4, HDMI = 5, CVBS = 6
# Display Type 3 Power, LAN, Col, Low Wifi, High Wifi
# N/A = 0, N/A = 1, Power = 2, LAN = 3, Col = 4, Low Wifi = 5, High Wifi = 6

vfd_dot_bits='0,1,3,2,4,5,6'

#display_type:
# [0] - Display type.
# [1] - Reserved - must be 0..
# [2] - Flags. (bit 0 = '1' - Common Anode display)
# [3] - Controller.

vfd_display_type='0x01,0x00,0x00,0x03'

  1. 遥控器配置文件
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
vi /storage/.config/remote.conf

#*********************************************************************************************************
#this file is configuration for each factory remote device
# work_mode 0 :software mode 1 :hardware mode
# repeat_enable 0 :disable repeat 1 :enable repeat
#
# factory_code each device has it's unique factory code.
# pattern:custom_code(16bit)+index_code(16bit)
# examble: 0xff000001 = 0xff00(custom cod) 0001 (index)
#
# release_delay unit:ms.release will report from kernel to user layer after this period of time
# from press or repeat triggered.
#
# debug_enable 0 :debug disable 1 :debug disable
#
# SW MODE:
# bit_count how many bits in each frame
# tw_leader_act time window for leader active
# tw_bit0 time window for bit0 time.
# tw_bit1 time window for bit1 time
# tw_repeat_leader time window for repeat leader
# REG
# reg_base_gen set value for PREG_IR_DEC_BASE_GEN
# reg_control set value for PREG_IR_DEC_CONTROL
# reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE
# reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE
# reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE
# reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME
#*************************************************************************************************************
#amlogic NEC remote
factory_code = 0x40400001
work_mode = 0
repeat_enable = 1
repeat_delay = 130
repeat_peroid = 120
release_delay = 20
debug_enable = 1

#fn_key_scancode = 0x47
#left_key_scancode = 0x10
#right_key_scancode = 0x11
#up_key_scancode = 0x0b
#down_key_scancode = 0x0e
#ok_key_scancode = 0x0d

mouse_begin
# 0 0x10
# 1 0x11
# 2 0x0b
# 3 0x0e
mouse_end

key_begin
0x43 166 #Stop (MUTE)

0x01 2 #No.1
0x02 3 #No.2
0x03 4 #No.3
0x04 5 #No.4
0x05 6 #No.5
0x06 7 #No.6
0x07 8 #No.7
0x08 9 #No.8
0x09 10 #No.9
0x00 11 #N0.0

0x45 125 #MENU
0x42 1 #BACK/EXIT

0x47 24 #CodecInfo (Mouse)
0x0d 97 #ENTER/OK
0x10 105 #LEFT
0x0b 103 #UP
0x0e 108 #DOWN
0x11 106 #RIGHT

0x18 115 #VOL+
0x17 114 #VOL-

0x0c 14 #DEL

0x4d 164 #Play/Pause (Power)

0x1a 102 #home
0x53 119 #media_pause
0x44 52 #period

0x1e 123 #MEDIA_NEXT
0x1f 122 #MEDIA_PREVIOUS
0xf1 140 #F10/factory_test
0x54 150 #setting
0x57 151 #PROG_YELLOW/EXPLORER
0x5b 152 #PROG_BLUE/MUSIC
0x5c 153 #ALLAPP
0x5d 154 #MEDIAPLAY
key_end
repeat_key_begin
0x43 166 #Stop (MUTE)

0x01 2 #No.1
0x02 3 #No.2
0x03 4 #No.3
0x04 5 #No.4
0x05 6 #No.5
0x06 7 #No.6
0x07 8 #No.7
0x08 9 #No.8
0x09 10 #No.9
0x00 11 #N0.0

0x45 125 #MENU
0x42 1 #BACK/EXIT

0x47 24 #CodecInfo (Mouse)
0x0d 97 #ENTER/OK
0x10 105 #LEFT
0x0b 103 #UP
0x0e 108 #DOWN
0x11 106 #RIGHT

0x18 115 #VOL+
0x17 114 #VOL-

0x0c 14 #DEL

0x4d 164 #@Play/Pause (Power)

0x1a 102 #home
0x44 52 #period

0x1e 120 #MEDIA_FAST_FORWARD
0x1f 121 #MEDIA_REWIND
0x54 150 #setting
0x57 151 #PROG_YELLOW/EXPLORER
0x5b 152 #PROG_BLUE/MUSIC
0x5c 153 #ALLAPP
0x5d 154 #MEDIAPLAY
repeat_key_end

  1. 重启设备

双系统切换

  1. 开机默认进 CoreELEC,CoreELEC 电源选项中选择 Reboot from eMMC/NAND,切换安卓
  2. 安卓切换 CoreELEC,直接重启即可