EmuElec

EmuElec

简介

EmuELEC 是专为 Amlogic(晶晨)S905/S912 方案的盒子开发的游戏系统,它基于 CoreELEC 系统,在 CoreELEC 的基础上移植了 RetroArch 和众多的独立模拟器。EmuELEC 前身为 Sx05RE。Sx05RE 整合了 Lakka、KODI、EmulationStation,是一个 Linux 系统,最新版本开始只支持 arm64 架构了。

刷U盘

  1. github下载img文件到本地;

  2. 使用磁盘写入工具(windows下入diskgenui, partitionguru, linux下dd,macos下balenaEtcher)将img镜像写入到U盘中;

  3. U盘写入成功后,会出现如下三个分区:

    1. EMUELEC:文件系统格式: fat32,保存emuelec的linux kernel和boot等文件;

    2. STORAGE:文件系统格式: ext4,emuelec系统的根文件系统,emuelec系统启动后,默认挂在在/storage目录;

    3. EEROMS:文件系统格式: exfat/ntfs/fat32, emuelec roms目录,emuelec系统启动后,默认挂载在/storage/roms目录;

  4. 打开U盘的EMUELEC分区,cp device_trees/gxl_p212_2g.dtb dtb.img

查看芯片型号

1
2
$ adb -s 192.168.31.120:5555 shell cat /proc/device-tree/amlogic-dt-id
> gxl_p212_1g

wifi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## /storage/.config/emuelec/configs/emuelec.conf

## Activate wifi (0,1)
wifi.enabled=1
wifi.ssid=CMCC-5G
wifi.key=xxx
# secondary wifi (not configurable via the user interface)
#wifi2.ssid=new ssid
#wifi2.key=new key
# third wifi (not configurable via the user interface)
#wifi3.ssid=new ssid
#wifi3.key=new key

roms

  • emuelec默认将标签为EEROMS的分区作为游戏roms保存的分区,格式可以是ntfs/exfat/fat32;

  • emuelec启动后,自动将EEROMS分区挂载到/storage/roms目录下;

挂载smb

  • emuelec可通过smb/nfs方式挂载网络磁盘,这样可以不使用u盘中的EEROMS分区;

  • 也可将网络磁盘的目录挂载到roms的子目录下;

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
[yourhost]$ ssh root@192.168.31.196
[emuelec]# cd /storage/.config/system.d/
[emuelec]# cat > storage-roms.mount <<EOF
[Unit]
Description=Mounting EmuELEC ROMS on samba
Requires=network-online.service
After=network-online.service
Before=emustation.service

[Mount]
What=//192.168.31.1/XiaoMi-usb0/game/batocera/share/roms
Where=/storage/roms
Options=rw,vers=3.0,iocharset=utf8,username=guest
Type=cifs

[Install]
WantedBy=multi-user.target

EOF

[emuelec]# systemctl enable storage-roms-psp.mount
[emuelec]# systemctl start storage-roms-psp.mount

手动连接蓝牙手柄

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
[localhost]$ ssh root@192.168.31.196
[emuelec]# bluetoothctl
[bluetooth]# 
[bluetooth]# default-agent
[bluetooth]# power on
[bluetooth]# discoverable on
[bluetooth]# pairable on
[bluetooth]# scan on
Attempting to pair with 00:FF:01:00:0B:A7
[CHG] Device 00:FF:01:00:0B:A7 Connected: yes
[agent] PIN code: 195693
[CHG] Device 00:FF:01:00:0B:A7 Connected: no 

[bluetooth]# trust 00:FF:01:00:0B:A7
[bluetooth]# pair 00:FF:01:00:0B:A7
[bluetooth]# connect 00:FF:01:00:0B:A7

## 如果碰到什么问题,可以输入删除掉你的设备,然后重新信任---配对---连接
[bluetooth]# remove AC:FD:93:CB:3E:BE

参考

  1. ROMS on CIFS SAMBA shares - EmuELEC/EmuELEC GitHub Wiki
  2. https://zhangguanzhang.github.io/2022/01/22/EmuELEC/#/EmuELEC-%E4%BB%8B%E7%BB%8D
  3. EmuELEC中文网 - EmuELEC使用指南五之在S905盒子上引导EmuELEC
updatedupdated2024-08-252024-08-25