在标准Raspberry Pi OS (Trixie)上使用ED-IPC和ED-HMI
1 概述
介绍在标准的Raspberry Pi OS (Trixie)上使用ED-IPC和ED-HMI的背景和适用范围。
1.1 背景
我司部分ED-IPC与ED-HMI系列产品出厂时预装的操作系统为Raspberry Pi OS(Bookworm)。为满足部分用户基于Raspberry Pi OS(Trixie)进行应用开发的需求,我司已针对此情况完成相关适配优化。
目前,ED-IPC与ED-HMI系列产品已全面兼容标准版Raspberry Pi OS(Trixie)的原生驱动。针对2026年9月15日及之后发布的Raspberry Pi OS(Trixie)版本,用户仅需先通过修改config.txt配置文件启用各端口,再安装对应扩展功能的软件包,即可使产品正常运行。此次升级有效拓展了产品的应用范围,能够更灵活地响应不同用户的多样化需求。
1.2 适用范围
本应用适用于EDATEC的ED-IPC、ED-HMI、ED-PLC、ED-SBC和ED-CM4系列产品,兼容的OS版本和对应的产品型号如下:
| 软件范围 | 产品型号 |
|---|---|
| 标准的Raspberry Pi OS(Trixie,2026年9月15日及之后发布的版本) | ED-IPC、ED-HMI、ED-PLC、ED-SBC和ED-CM4系列 |
2 配置指南
本章介绍在标准版Raspberry Pi OS(Trixie,2026年9月15日及之后发布的版本)上使用ED-IPC、ED-HMI、ED-PLC、ED-SBC和ED-CM4系列产品的具体配置方法。不同产品型号的配置步骤略有差异,请根据实际使用的型号进行对应操作。
2.1 适用于ED-HMI3630-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.1.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-101c,i2c4,interrupt=7
dtoverlay=ed-ipc,ipc3600
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=spi1-2cs,cs0_spidev=off,cs1_spidev=off
dtoverlay=mcp2515,spi1-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi1-1,oscillator=16000000,interrupt=14
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
force_eeprom_read=0
disable_poe_fan=1
dtparam=i2c_arm=on
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加CAN口的udev规则。
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.0/net/can*", NAME="canb0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.1/net/can*", NAME="canb1"
EOF

创建自动化脚本,配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash
D_DSI="DSI-2"
D_I2C="10-0014"
I2C_ALIAS="i2c_csi_dsi0"
update_wayfire()
{
local t_user=$1
mkdir -p "/home/${t_user}/.config"
cat > "/home/${t_user}/.config/wayfire.ini" << EOF
[command]
repeatable_binding_volume_up = KEY_VOLUMEUP
command_volume_up = wfpanelctl volumepulse volu
repeatable_binding_volume_down = KEY_VOLUMEDOWN
command_volume_down = wfpanelctl volumepulse vold
binding_mute = KEY_MUTE
command_mute = wfpanelctl volumepulse mute
binding_menu = <super>
command_menu = wfpanelctl smenu menu
binding_terminal = <ctrl> <alt> KEY_T
command_terminal = lxterminal
binding_bluetooth = <ctrl> <alt> KEY_B
command_bluetooth = wfpanelctl bluetooth menu
binding_netman = <ctrl> <alt> KEY_W
command_netman = wfpanelctl netman menu
binding_grim = KEY_SYSRQ
command_grim = grim
binding_orca = <ctrl> <alt> KEY_SPACE
command_orca = gui-pkinst orca reboot
binding_quit = <ctrl> <alt> KEY_DELETE
command_quit = lxde-pi-shutdown-helper
binding_power = KEY_POWER
command_power = pwrkey
[input-device:generic ft5x06 (79)]
output = ${D_DSI}
[input-device:generic ft5x06 (80)]
output = ${D_DSI}
[input-device:FT5406 memory based driver]
output = ${D_DSI}
[input]
xkb_model = pc105
xkb_layout = gb
xkb_variant =
[output:${D_DSI}]
mode = 800x1280@40000
position = 0,0
transform = 90
primary = true
[input-device:Goodix Capacitive TouchScreen]
output = ${D_DSI}
[input-device:${D_I2C} Goodix Capacitive TouchScreen]
output = ${D_DSI}
[window-rules]
rule-1 = on created if title is "LXTerminal" then maximize
EOF
}
update_kanshi()
{
local t_user=$1
mkdir -p "/home/${t_user}/.config/kanshi"
cat > "/home/${t_user}/.config/kanshi/config" << EOF
profile {
output ${D_DSI} mode 800x1280 position 0,0 transform 90
}
profile {
output ${D_DSI} mode 800x1280 position 0,0 transform 90
output HDMI-A-1 enable position 1280,0 transform normal
}
EOF
}
update_labwc()
{
local t_user=$1
mkdir -p "/home/${t_user}/.config/labwc"
cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
<?xml version="1.0" encoding="UTF-8"?>
<labwc_config>
<touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
<touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
</labwc_config>
EOF
}
update_labwc_autostart()
{
local t_user=$1
mkdir -p "/home/${t_user}/.config/labwc"
cat > "/home/${t_user}/.config/labwc/autostart" << EOF
if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
if [ \$? -ne 0 ]; then
sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
/home/${t_user}/.config/wf-panel-pi.ini
fi
else
cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
[panel]
monitor=${D_DSI}
launcher_000001=lxde-x-www-browser.desktop
launcher_000002=pcmanfm.desktop
launcher_000003=lxterminal.desktop
EOL
fi
EOF
}
update_squeekboard()
{
local file="/etc/xdg/labwc/autostart"
if [ ! -f "${file}" ]; then
return
fi
if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
sed -i \
"s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
"${file}"
else
sed -i \
"1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
"${file}"
fi
}
update_wayland()
{
local home
local t_user
for home in /home/*; do
[ -d "${home}" ] || continue
t_user=$(basename "${home}")
echo "Configuring Wayland for user: ${t_user}"
update_wayfire "${t_user}"
update_kanshi "${t_user}"
update_labwc "${t_user}"
update_labwc_autostart "${t_user}"
chown -R "${t_user}:${t_user}" \
"/home/${t_user}/.config"
done
update_squeekboard
}
run()
{
if [ "$(id -u)" -ne 0 ]; then
echo "ERROR: this script must be run as root"
exit 1
fi
update_wayland
echo "HMI36 101C display setup completed."
}
run
c. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh

- LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.1.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.2 适用于ED-IPC3630、ED-HMI3630-116C、ED-HMI3630-133C和ED-HMI3630-156C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.2.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=ed-ipc,ipc3600
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=spi1-2cs,cs0_spidev=off,cs1_spidev=off
dtoverlay=mcp2515,spi1-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi1-1,oscillator=16000000,interrupt=14
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
force_eeprom_read=0
disable_poe_fan=1
dtparam=i2c_arm=on
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加CAN口的udev规则。
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.0/net/can*", NAME="canb0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.1/net/can*", NAME="canb1"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.2.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
- (可选)执行如下命令,安装
ed-ddcci-mib-tool软件包。
sudo apt install ed-ddcci-mib-tool
提示
ED-HMI3630-116C、ED-HMI3630-133C和ED-HMI3630-156C均需要安装ed-ddcci-mib-tool软件包,ED-IPC3630无需安装此软件包。
2.3 适用于ED-HMI3120-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.3.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,i2c4,interrupt=7
dtoverlay=ed-ipc,ipc3100
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-2" D_I2C="10-0014" I2C_ALIAS="i2c_csi_dsi0" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI31 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh

- LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.3.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.4 适用于ED-HMI3120-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.4.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-070c,i2c4,interrupt=7
dtoverlay=ed-ipc,ipc3100
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.4.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.5 适用于ED-HMI3020-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt和声卡配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.5.1 修改config.txt和声卡配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=17
dtoverlay=uart2-pi5
dtoverlay=uart4-pi5
dtparam=pcie=on
dtparam=pciex1=on
dtoverlay=rt5616
dtoverlay=act-led,gpio=16
gpio=6=op,dl
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
EOF

执行如下命令,添加背光控制的udev规则。
sudo tee /etc/udev/rules.d/backlight-permissions.rules >/dev/null <<'EOF' SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power" EOF
创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-2" D_I2C="11-0014" I2C_ALIAS="i2c_csi_dsi0" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI30 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
执行如下命令,安装音频软件包。
sudo apt install libasound2-plugins libpulsedsp pulseaudio-utils pulseaudio -y
写入ALSA状态。
a. 执行如下命令,将PipeWire音量降至30%。
wpctl set-volume @DEFAULT_SINK@ 30%b. 执行如下命令,修改
/var/lib/alsa/asound.state中的rt5616codec属性。sudo python3 - <<'PYCODE' from pathlib import Path import re state_path = Path('/var/lib/alsa/asound.state') new_block = r"""state.rt5616codec { control.1 { iface MIXER name 'HP Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.2 { iface MIXER name 'HPVOL Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.3 { iface MIXER name 'HP Playback Volume' value.0 31 value.1 31 comment { access 'read write' type INTEGER count 2 range '0 - 39' dbmin -4650 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.4 { iface MIXER name 'OUT Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.5 { iface MIXER name 'OUT Channel Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.6 { iface MIXER name 'OUT Playback Volume' value.0 31 value.1 31 comment { access 'read write' type INTEGER count 2 range '0 - 39' dbmin -4650 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.7 { iface MIXER name 'DAC1 Playback Volume' value.0 172 value.1 172 comment { access 'read write' type INTEGER count 2 range '0 - 175' dbmin -65625 dbmax 0 dbvalue.0 -2625 dbvalue.1 -2625 } } control.8 { iface MIXER name 'IN1 Boost Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 8' dbmin 0 dbmax 5200 dbvalue.0 0 } } control.9 { iface MIXER name 'IN2 Boost Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 8' dbmin 0 dbmax 5200 dbvalue.0 0 } } control.10 { iface MIXER name 'IN Capture Volume' value.0 23 value.1 23 comment { access 'read write' type INTEGER count 2 range '0 - 31' dbmin -3450 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.11 { iface MIXER name 'ADC Capture Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.12 { iface MIXER name 'ADC Capture Volume' value.0 47 value.1 47 comment { access 'read write' type INTEGER count 2 range '0 - 127' dbmin -17625 dbmax 30000 dbvalue.0 0 dbvalue.1 0 } } control.13 { iface MIXER name 'ADC Boost Volume' value.0 0 value.1 0 comment { access 'read write' type INTEGER count 2 range '0 - 3' dbmin 0 dbmax 3600 dbvalue.0 0 dbvalue.1 0 } } control.14 { iface MIXER name 'RECMIXL INL1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.15 { iface MIXER name 'RECMIXL BST2 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.16 { iface MIXER name 'RECMIXL BST1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.17 { iface MIXER name 'RECMIXR INR1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.18 { iface MIXER name 'RECMIXR BST2 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.19 { iface MIXER name 'RECMIXR BST1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.20 { iface MIXER name 'Stereo1 ADC MIXL ADC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.21 { iface MIXER name 'Stereo1 ADC MIXR ADC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.22 { iface MIXER name 'DAC MIXL Stereo ADC Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.23 { iface MIXER name 'DAC MIXL INF1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.24 { iface MIXER name 'DAC MIXR Stereo ADC Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.25 { iface MIXER name 'DAC MIXR INF1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.26 { iface MIXER name 'Stereo DAC MIXL DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.27 { iface MIXER name 'Stereo DAC MIXL DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.28 { iface MIXER name 'Stereo DAC MIXR DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.29 { iface MIXER name 'Stereo DAC MIXR DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.30 { iface MIXER name 'OUT MIXL BST1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.31 { iface MIXER name 'OUT MIXL BST2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.32 { iface MIXER name 'OUT MIXL INL1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.33 { iface MIXER name 'OUT MIXL REC MIXL Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.34 { iface MIXER name 'OUT MIXL DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.35 { iface MIXER name 'OUT MIXR BST2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.36 { iface MIXER name 'OUT MIXR BST1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.37 { iface MIXER name 'OUT MIXR INR1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.38 { iface MIXER name 'OUT MIXR REC MIXR Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.39 { iface MIXER name 'OUT MIXR DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.40 { iface MIXER name 'HPO MIX DAC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.41 { iface MIXER name 'HPO MIX HPVOL Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.42 { iface MIXER name 'LOUT MIX DAC L1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.43 { iface MIXER name 'LOUT MIX DAC R1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.44 { iface MIXER name 'LOUT MIX OUTVOL L Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.45 { iface MIXER name 'LOUT MIX OUTVOL R Switch' value false comment { access 'read write' type BOOLEAN count 1 } } }""" pattern = re.compile(r'(?ms)^state\.rt5616codec \{\n.*?^\}') assert pattern.fullmatch(new_block), 'RT5616 状态块格式不完整' current = state_path.read_text() if state_path.exists() else '' blocks = list(pattern.finditer(current)) assert len(blocks) <= 1, '状态文件包含重复的 rt5616codec 块' if blocks: existing = blocks[0] merged = current[:existing.start()] + new_block + current[existing.end():] else: merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n' state_path.write_text(merged) state_path.chmod(0o644) PYCODEc. 执行如下命令,将修改的内容重新应用到声卡中。
sudo alsactl -U -f /var/lib/alsa/asound.state restore rt5616codec写入WirePlumber配置。
a. 执行如下命令,创建
/etc/wireplumber/wireplumber.conf.d/目录。sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/b. 执行如下命令,创建
51-ed-config-rt5616.conf文件,再写入音频配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-rt5616.conf >/dev/null <<'WP51' # Debian 13 compatibility for the legacy 3020 audio package. monitor.alsa.rules = [ { matches = [ { device.name = "~alsa_card.*" api.alsa.card.name = "rt5616-codec" } ] actions = { update-props = { api.alsa.soft-mixer = false } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 1200 api.alsa.soft-mixer = false audio.format = "S16LE" } } } ] WP51c. 执行如下命令,创建
52-rt5616-defaults.conf文件,再写入声卡配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/52-rt5616-defaults.conf >/dev/null <<'WP52' monitor.alsa.rules = [ { matches = [ { api.alsa.card.name = "~vc4-hdmi-.*" } ] actions = { update-props = { device.disabled = true } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 3000 } } } { matches = [ { node.name = "~alsa_input.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 3000 } } } ] WP52d. 执行如下命令,重启WirePlumber服务。
systemctl --user restart wireplumber执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.5.2 安装软件包
前提条件:
设备已完成config.txt和声卡配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.6 适用于ED-HMI3020-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt和声卡配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.6.1 修改config.txt和声卡配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=17
dtoverlay=uart2-pi5
dtoverlay=uart4-pi5
dtparam=pcie=on
dtparam=pciex1=on
dtoverlay=rt5616
dtoverlay=act-led,gpio=16
gpio=6=op,dl
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加背光控制的udev规则。
sudo tee /etc/udev/rules.d/backlight-permissions.rules >/dev/null <<'EOF'
SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"
EOF

- 执行如下命令,安装音频软件包。
sudo apt install libasound2-plugins libpulsedsp pulseaudio-utils pulseaudio -y
写入ALSA状态。
a. 执行如下命令,将PipeWire音量降至30%。
wpctl set-volume @DEFAULT_SINK@ 30%b. 执行如下命令,修改
/var/lib/alsa/asound.state中的rt5616codec属性。sudo python3 - <<'PYCODE' from pathlib import Path import re state_path = Path('/var/lib/alsa/asound.state') new_block = r"""state.rt5616codec { control.1 { iface MIXER name 'HP Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.2 { iface MIXER name 'HPVOL Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.3 { iface MIXER name 'HP Playback Volume' value.0 31 value.1 31 comment { access 'read write' type INTEGER count 2 range '0 - 39' dbmin -4650 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.4 { iface MIXER name 'OUT Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.5 { iface MIXER name 'OUT Channel Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.6 { iface MIXER name 'OUT Playback Volume' value.0 31 value.1 31 comment { access 'read write' type INTEGER count 2 range '0 - 39' dbmin -4650 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.7 { iface MIXER name 'DAC1 Playback Volume' value.0 172 value.1 172 comment { access 'read write' type INTEGER count 2 range '0 - 175' dbmin -65625 dbmax 0 dbvalue.0 -2625 dbvalue.1 -2625 } } control.8 { iface MIXER name 'IN1 Boost Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 8' dbmin 0 dbmax 5200 dbvalue.0 0 } } control.9 { iface MIXER name 'IN2 Boost Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 8' dbmin 0 dbmax 5200 dbvalue.0 0 } } control.10 { iface MIXER name 'IN Capture Volume' value.0 23 value.1 23 comment { access 'read write' type INTEGER count 2 range '0 - 31' dbmin -3450 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.11 { iface MIXER name 'ADC Capture Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.12 { iface MIXER name 'ADC Capture Volume' value.0 47 value.1 47 comment { access 'read write' type INTEGER count 2 range '0 - 127' dbmin -17625 dbmax 30000 dbvalue.0 0 dbvalue.1 0 } } control.13 { iface MIXER name 'ADC Boost Volume' value.0 0 value.1 0 comment { access 'read write' type INTEGER count 2 range '0 - 3' dbmin 0 dbmax 3600 dbvalue.0 0 dbvalue.1 0 } } control.14 { iface MIXER name 'RECMIXL INL1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.15 { iface MIXER name 'RECMIXL BST2 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.16 { iface MIXER name 'RECMIXL BST1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.17 { iface MIXER name 'RECMIXR INR1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.18 { iface MIXER name 'RECMIXR BST2 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.19 { iface MIXER name 'RECMIXR BST1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.20 { iface MIXER name 'Stereo1 ADC MIXL ADC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.21 { iface MIXER name 'Stereo1 ADC MIXR ADC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.22 { iface MIXER name 'DAC MIXL Stereo ADC Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.23 { iface MIXER name 'DAC MIXL INF1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.24 { iface MIXER name 'DAC MIXR Stereo ADC Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.25 { iface MIXER name 'DAC MIXR INF1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.26 { iface MIXER name 'Stereo DAC MIXL DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.27 { iface MIXER name 'Stereo DAC MIXL DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.28 { iface MIXER name 'Stereo DAC MIXR DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.29 { iface MIXER name 'Stereo DAC MIXR DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.30 { iface MIXER name 'OUT MIXL BST1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.31 { iface MIXER name 'OUT MIXL BST2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.32 { iface MIXER name 'OUT MIXL INL1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.33 { iface MIXER name 'OUT MIXL REC MIXL Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.34 { iface MIXER name 'OUT MIXL DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.35 { iface MIXER name 'OUT MIXR BST2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.36 { iface MIXER name 'OUT MIXR BST1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.37 { iface MIXER name 'OUT MIXR INR1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.38 { iface MIXER name 'OUT MIXR REC MIXR Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.39 { iface MIXER name 'OUT MIXR DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.40 { iface MIXER name 'HPO MIX DAC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.41 { iface MIXER name 'HPO MIX HPVOL Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.42 { iface MIXER name 'LOUT MIX DAC L1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.43 { iface MIXER name 'LOUT MIX DAC R1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.44 { iface MIXER name 'LOUT MIX OUTVOL L Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.45 { iface MIXER name 'LOUT MIX OUTVOL R Switch' value false comment { access 'read write' type BOOLEAN count 1 } } }""" pattern = re.compile(r'(?ms)^state\.rt5616codec \{\n.*?^\}') assert pattern.fullmatch(new_block), 'RT5616 状态块格式不完整' current = state_path.read_text() if state_path.exists() else '' blocks = list(pattern.finditer(current)) assert len(blocks) <= 1, '状态文件包含重复的 rt5616codec 块' if blocks: existing = blocks[0] merged = current[:existing.start()] + new_block + current[existing.end():] else: merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n' state_path.write_text(merged) state_path.chmod(0o644) PYCODEc. 执行如下命令,将修改的内容重新应用到声卡中。
sudo alsactl -U -f /var/lib/alsa/asound.state restore rt5616codec写入WirePlumber配置。
a. 执行如下命令,创建
/etc/wireplumber/wireplumber.conf.d/目录。sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/b. 执行如下命令,创建
51-ed-config-rt5616.conf文件,再写入音频配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-rt5616.conf >/dev/null <<'WP51' # Debian 13 compatibility for the legacy 3020 audio package. monitor.alsa.rules = [ { matches = [ { device.name = "~alsa_card.*" api.alsa.card.name = "rt5616-codec" } ] actions = { update-props = { api.alsa.soft-mixer = false } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 1200 api.alsa.soft-mixer = false audio.format = "S16LE" } } } ] WP51c. 执行如下命令,创建
52-rt5616-defaults.conf文件,再写入声卡配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/52-rt5616-defaults.conf >/dev/null <<'WP52' monitor.alsa.rules = [ { matches = [ { api.alsa.card.name = "~vc4-hdmi-.*" } ] actions = { update-props = { device.disabled = true } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 3000 } } } { matches = [ { node.name = "~alsa_input.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 3000 } } } ] WP52d. 执行如下命令,重启WirePlumber服务。
systemctl --user restart wireplumber执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.6.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.7 适用于ED-HMI3010-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.7.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=2
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-2" D_I2C="11-0014" I2C_ALIAS="i2c_csi_dsi0" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI30 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.7.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.8 适用于ED-HMI3010-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.8.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=2
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.8.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.9 适用于ED-HMI2630-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.9.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=7
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=spi6-2cs,cs0_spidev=disable,cs1_pin=17,cs1_spidev=disable
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi6-1,oscillator=16000000,interrupt=14
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加CAN口的udev规则。
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.1/net/can*", NAME="canb1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.0/net/can*", NAME="canb0"
EOF

创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-1" D_I2C="10-0014" I2C_ALIAS="i2c_csi_dsi" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI26 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.9.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.10 适用于ED-HMI2220-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.10.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=7
dtoverlay=ed-ipc,ipc2210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-1" D_I2C="10-0014" I2C_ALIAS="i2c_csi_dsi" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") if ! getent group "${t_user}" >/dev/null 2>&1; then echo "Skip user without matching group: ${t_user}" continue fi echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI22 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.10.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.11 适用于ED-HMI2220-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.11.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=7
dtoverlay=ed-ipc,ipc2210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.11.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.12 适用于ED-HMI2120-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.12.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=7
dtoverlay=ed-ipc,ipc2100
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-1" D_I2C="10-0014" I2C_ALIAS="i2c_csi_dsi" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI21 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.12.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.13 适用于ED-HMI2120-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.13.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=7
dtoverlay=ed-ipc,ipc2100
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.13.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.14 适用于ED-HMI2020-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.14.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=16
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-1" D_I2C="10-0014" I2C_ALIAS="i2c_csi_dsi" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") if ! getent group "${t_user}" >/dev/null 2>&1; then echo "Skip user without matching group: ${t_user}" continue fi echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI20 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.14.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.15 适用于ED-HMI2020-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.15.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=16
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.15.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.16 适用于ED-HMI2002-101C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.16.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=2
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。创建自动化脚本配置LCD屏幕属性。
a. 执行如下命令,创建配置脚本文件。
sudo nano ed-hmi-primary.shb. 将以下内容复制到脚本文件中。
#!/bin/bash D_DSI="DSI-1" D_I2C="10-0014" I2C_ALIAS="i2c_csi_dsi" update_wayfire() { local t_user=$1 mkdir -p "/home/${t_user}/.config" cat > "/home/${t_user}/.config/wayfire.ini" << EOF [command] repeatable_binding_volume_up = KEY_VOLUMEUP command_volume_up = wfpanelctl volumepulse volu repeatable_binding_volume_down = KEY_VOLUMEDOWN command_volume_down = wfpanelctl volumepulse vold binding_mute = KEY_MUTE command_mute = wfpanelctl volumepulse mute binding_menu = <super> command_menu = wfpanelctl smenu menu binding_terminal = <ctrl> <alt> KEY_T command_terminal = lxterminal binding_bluetooth = <ctrl> <alt> KEY_B command_bluetooth = wfpanelctl bluetooth menu binding_netman = <ctrl> <alt> KEY_W command_netman = wfpanelctl netman menu binding_grim = KEY_SYSRQ command_grim = grim binding_orca = <ctrl> <alt> KEY_SPACE command_orca = gui-pkinst orca reboot binding_quit = <ctrl> <alt> KEY_DELETE command_quit = lxde-pi-shutdown-helper binding_power = KEY_POWER command_power = pwrkey [input-device:generic ft5x06 (79)] output = ${D_DSI} [input-device:generic ft5x06 (80)] output = ${D_DSI} [input-device:FT5406 memory based driver] output = ${D_DSI} [input] xkb_model = pc105 xkb_layout = gb xkb_variant = [output:${D_DSI}] mode = 800x1280@40000 position = 0,0 transform = 90 primary = true [input-device:Goodix Capacitive TouchScreen] output = ${D_DSI} [input-device:${D_I2C} Goodix Capacitive TouchScreen] output = ${D_DSI} [window-rules] rule-1 = on created if title is "LXTerminal" then maximize EOF } update_kanshi() { local t_user=$1 mkdir -p "/home/${t_user}/.config/kanshi" cat > "/home/${t_user}/.config/kanshi/config" << EOF profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 } profile { output ${D_DSI} mode 800x1280 position 0,0 transform 90 output HDMI-A-1 enable position 1280,0 transform normal } EOF } update_labwc() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF <?xml version="1.0" encoding="UTF-8"?> <labwc_config> <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" /> </labwc_config> EOF } update_labwc_autostart() { local t_user=$1 mkdir -p "/home/${t_user}/.config/labwc" cat > "/home/${t_user}/.config/labwc/autostart" << EOF if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini if [ \$? -ne 0 ]; then sed -i "/^\[panel\]/a\monitor=${D_DSI}" \ /home/${t_user}/.config/wf-panel-pi.ini fi else cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL [panel] monitor=${D_DSI} launcher_000001=lxde-x-www-browser.desktop launcher_000002=pcmanfm.desktop launcher_000003=lxterminal.desktop EOL fi EOF } update_squeekboard() { local file="/etc/xdg/labwc/autostart" if [ ! -f "${file}" ]; then return fi if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then sed -i \ "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \ "${file}" else sed -i \ "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \ "${file}" fi } update_wayland() { local home local t_user for home in /home/*; do [ -d "${home}" ] || continue t_user=$(basename "${home}") echo "Configuring Wayland for user: ${t_user}" update_wayfire "${t_user}" update_kanshi "${t_user}" update_labwc "${t_user}" update_labwc_autostart "${t_user}" chown -R "${t_user}:${t_user}" \ "/home/${t_user}/.config" done update_squeekboard } run() { if [ "$(id -u)" -ne 0 ]; then echo "ERROR: this script must be run as root" exit 1 fi update_wayland echo "HMI20 101C display setup completed." } runc. 执行如下命令,运行配置脚本。
sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
LCD屏幕属性配置完成后,执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.16.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.17 适用于ED-HMI2002-070C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.17.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=2
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.17.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.18 适用于ED-CM4SEN系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.18.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
enable_uart=1
otg_mode=1
dtoverlay=i2c-rtc,pcf8563
dtoverlay=spi6-1cs,cs0_pin=18,cs0_spidev=disabled
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=7
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
gpio=11=op,dl
dtoverlay=sdhost,gpios_22_27,preserve_mmc
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/50-local.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA[0-9]*|ttyS[0-9]*", PROGRAM="/bin/sh -c '\
TTYADDR=$$(readlink /sys/class/tty/%k/device | sed -e "s|.*/||" -e "s|[.].*||" -e "s|^20|7e|" -e "s|^3f|7e|" -e "s|^fe|7e|"); \
SERIAL0=$$(strings /proc/device-tree/aliases/serial0 2>/dev/null); \
S0ADDR=$$(echo "$$SERIAL0" | sed -e "s|.*serial@||" -e "s|/.*||"); \
[ -n "$$SERIAL0" ] && [ -n "$$S0ADDR" ] && [ "$$TTYADDR" = "$$S0ADDR" ] && echo 0 || exit 1; \
'", SYMLINK+="rs232", GOTO="rs232_done"
KERNEL=="ttyAMA2", SYMLINK+="rs485-3"
KERNEL=="ttyAMA3", SYMLINK+="rs485-1"
KERNEL=="ttyAMA4", SYMLINK+="rs485-2"
KERNEL=="ttyAMA5", SYMLINK+="rs485-4"
LABEL="rs232_done"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.18.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.19 适用于ED-CM4NANO系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.19.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
otg_mode=1
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.19.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.20 适用于ED-CM4MEDIA系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt和声卡配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.20.1 修改config.txt和声卡配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
gpio=15=op,dh
dtoverlay=wm8960-soundcard,media
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。写入ALSA状态。
a. 执行如下命令,将PipeWire音量音量降至30%。
wpctl set-volume @DEFAULT_SINK@ 30%b. 执行如下命令,修改
/var/lib/alsa/asound.state中的wm8960soundcard属性。sudo python3 - <<'PYCODE' from pathlib import Path import re state_path = Path('/var/lib/alsa/asound.state') new_block = r"""state.wm8960soundcard { control.1 { iface MIXER name 'Capture Volume' value.0 63 value.1 63 comment { access 'read write' type INTEGER count 2 range '0 - 63' dbmin -1725 dbmax 3000 dbvalue.0 3000 dbvalue.1 3000 } } control.2 { iface MIXER name 'Capture Volume ZC Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.3 { iface MIXER name 'Capture Switch' value.0 true value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.4 { iface MIXER name 'Left Input Boost Mixer LINPUT3 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -9999999 dbmax 600 dbvalue.0 -9999999 } } control.5 { iface MIXER name 'Left Input Boost Mixer LINPUT2 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -9999999 dbmax 600 dbvalue.0 -9999999 } } control.6 { iface MIXER name 'Right Input Boost Mixer RINPUT3 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -9999999 dbmax 600 dbvalue.0 -9999999 } } control.7 { iface MIXER name 'Right Input Boost Mixer RINPUT2 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -9999999 dbmax 600 dbvalue.0 -9999999 } } control.8 { iface MIXER name 'Right Input Boost Mixer RINPUT1 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 3' dbmin 0 dbmax 2900 dbvalue.0 0 } } control.9 { iface MIXER name 'Left Input Boost Mixer LINPUT1 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 3' dbmin 0 dbmax 2900 dbvalue.0 0 } } control.10 { iface MIXER name 'Playback Volume' value.0 255 value.1 255 comment { access 'read write' type INTEGER count 2 range '0 - 255' dbmin -9999999 dbmax 0 dbvalue.0 0 dbvalue.1 0 } } control.11 { iface MIXER name 'Headphone Playback Volume' value.0 123 value.1 123 comment { access 'read write' type INTEGER count 2 range '0 - 127' dbmin -9999999 dbmax 600 dbvalue.0 200 dbvalue.1 200 } } control.12 { iface MIXER name 'Headphone Playback ZC Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.13 { iface MIXER name 'Speaker Playback Volume' value.0 127 value.1 127 comment { access 'read write' type INTEGER count 2 range '0 - 127' dbmin -9999999 dbmax 600 dbvalue.0 600 dbvalue.1 600 } } control.14 { iface MIXER name 'Speaker Playback ZC Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.15 { iface MIXER name 'Speaker DC Volume' value 3 comment { access 'read write' type INTEGER count 1 range '0 - 5' } } control.16 { iface MIXER name 'Speaker AC Volume' value 3 comment { access 'read write' type INTEGER count 1 range '0 - 5' } } control.17 { iface MIXER name 'PCM Playback -6dB Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.18 { iface MIXER name 'ADC Polarity' value 'No Inversion' comment { access 'read write' type ENUMERATED count 1 item.0 'No Inversion' item.1 'Left Inverted' item.2 'Right Inverted' item.3 'Stereo Inversion' } } control.19 { iface MIXER name 'ADC High Pass Filter Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.20 { iface MIXER name 'DAC Polarity' value 'No Inversion' comment { access 'read write' type ENUMERATED count 1 item.0 'No Inversion' item.1 'Left Inverted' item.2 'Right Inverted' item.3 'Stereo Inversion' } } control.21 { iface MIXER name 'DAC Deemphasis Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.22 { iface MIXER name '3D Filter Upper Cut-Off' value High comment { access 'read write' type ENUMERATED count 1 item.0 High item.1 Low } } control.23 { iface MIXER name '3D Filter Lower Cut-Off' value Low comment { access 'read write' type ENUMERATED count 1 item.0 Low item.1 High } } control.24 { iface MIXER name '3D Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 15' } } control.25 { iface MIXER name '3D Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.26 { iface MIXER name 'ALC Function' value Off comment { access 'read write' type ENUMERATED count 1 item.0 Off item.1 Right item.2 Left item.3 Stereo } } control.27 { iface MIXER name 'ALC Max Gain' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.28 { iface MIXER name 'ALC Target' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 15' } } control.29 { iface MIXER name 'ALC Min Gain' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' } } control.30 { iface MIXER name 'ALC Hold Time' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 15' } } control.31 { iface MIXER name 'ALC Mode' value ALC comment { access 'read write' type ENUMERATED count 1 item.0 ALC item.1 Limiter } } control.32 { iface MIXER name 'ALC Decay' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 15' } } control.33 { iface MIXER name 'ALC Attack' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 15' } } control.34 { iface MIXER name 'Noise Gate Threshold' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 31' } } control.35 { iface MIXER name 'Noise Gate Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.36 { iface MIXER name 'ADC PCM Capture Volume' value.0 255 value.1 255 comment { access 'read write' type INTEGER count 2 range '0 - 255' dbmin -9999999 dbmax 3000 dbvalue.0 3000 dbvalue.1 3000 } } control.37 { iface MIXER name 'Left Output Mixer Boost Bypass Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -2100 dbmax 0 dbvalue.0 -2100 } } control.38 { iface MIXER name 'Left Output Mixer LINPUT3 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -2100 dbmax 0 dbvalue.0 -2100 } } control.39 { iface MIXER name 'Right Output Mixer Boost Bypass Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -2100 dbmax 0 dbvalue.0 -2100 } } control.40 { iface MIXER name 'Right Output Mixer RINPUT3 Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 7' dbmin -2100 dbmax 0 dbvalue.0 -2100 } } control.41 { iface MIXER name 'ADC Data Output Select' value 'Left Data = Left ADC; Right Data = Right ADC' comment { access 'read write' type ENUMERATED count 1 item.0 'Left Data = Left ADC; Right Data = Right ADC' item.1 'Left Data = Left ADC; Right Data = Left ADC' item.2 'Left Data = Right ADC; Right Data = Right ADC' item.3 'Left Data = Right ADC; Right Data = Left ADC' } } control.42 { iface MIXER name 'DAC Mono Mix' value Stereo comment { access 'read write' type ENUMERATED count 1 item.0 Stereo item.1 Mono } } control.43 { iface MIXER name 'DAC Filter Characteristics' value Normal comment { access 'read write' type ENUMERATED count 1 item.0 Normal item.1 Sloping } } control.44 { iface MIXER name 'Left Boost Mixer LINPUT2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.45 { iface MIXER name 'Left Boost Mixer LINPUT3 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.46 { iface MIXER name 'Left Boost Mixer LINPUT1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.47 { iface MIXER name 'Right Boost Mixer RINPUT2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.48 { iface MIXER name 'Right Boost Mixer RINPUT3 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.49 { iface MIXER name 'Right Boost Mixer RINPUT1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.50 { iface MIXER name 'Left Input Mixer Boost Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.51 { iface MIXER name 'Right Input Mixer Boost Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.52 { iface MIXER name 'Left Output Mixer PCM Playback Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.53 { iface MIXER name 'Left Output Mixer LINPUT3 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.54 { iface MIXER name 'Left Output Mixer Boost Bypass Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.55 { iface MIXER name 'Right Output Mixer PCM Playback Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.56 { iface MIXER name 'Right Output Mixer RINPUT3 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.57 { iface MIXER name 'Right Output Mixer Boost Bypass Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.58 { iface MIXER name 'Mono Output Mixer Left Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.59 { iface MIXER name 'Mono Output Mixer Right Switch' value false comment { access 'read write' type BOOLEAN count 1 } } }""" pattern = re.compile(r'(?ms)^state\.wm8960soundcard \{\n.*?^\}') assert pattern.fullmatch(new_block), 'wm8960 状态块格式不完整' current = state_path.read_text() if state_path.exists() else '' blocks = list(pattern.finditer(current)) assert len(blocks) <= 1, '状态文件包含重复的 wm8960soundcard 块' if blocks: existing = blocks[0] merged = current[:existing.start()] + new_block + current[existing.end():] else: merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n' state_path.write_text(merged) state_path.chmod(0o644) PYCODEc. 执行如下命令,将修改的内容重新应用到声卡中。
sudo alsactl -U -f /var/lib/alsa/asound.state restore wm8960soundcardd. 执行如下命令,写入asound配置。
sudo tee /etc/asound.conf >/dev/null <<'EOF' defaults.pcm.card 2 defaults.ctl.card 2 defaults.timer.card 2 EOF写入WirePlumber和alsa-card-profile配置
a. 执行如下命令,创建
/etc/wireplumber/wireplumber.conf.d/目录。sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/b. 执行如下命令,创建
51-ed-config-wm8960.conf文件,再写入音频配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-wm8960.conf >/dev/null <<'WP51' # Debian 13 compatibility for the legacy CM4media audio package. # Managed by ed-config: keep the WM8960 hardware mixer authoritative. monitor.alsa.rules = [ { matches = [ { device.name = "~alsa_card.*" api.alsa.card.name = "wm8960-soundcard" } ] actions = { update-props = { api.alsa.soft-mixer = false device.profile-set = "ed-wm8960.conf" } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "wm8960-soundcard" } ] actions = { update-props = { priority.session = 1200 api.alsa.soft-mixer = false audio.format = "S16LE" } } } ] WP51c. 执行如下命令,创建
/etc/alsa-card-profile/mixer/profile-sets/目录。sudo mkdir -p /etc/alsa-card-profile/mixer/profile-sets/d. 执行如下命令,创建
/etc/alsa-card-profile/mixer/paths/目录。sudo mkdir -p /etc/alsa-card-profile/mixer/paths/e. 执行如下命令,创建
ed-wm8960.conf文件,再写入音频配置属性。sudo tee /etc/alsa-card-profile/mixer/profile-sets/ed-wm8960.conf >/dev/null <<'EOF' # Managed by ed-config: WM8960 ACP profile without the generic speaker-path # operation that mutes the independent headphone volume control. [General] auto-profiles = yes [Mapping stereo-fallback] device-strings = hw:%f fallback = yes channel-map = front-left,front-right paths-output = ed-wm8960-output-speaker analog-output-headphones paths-input = analog-input priority = 1 EOFf. 执行如下命令,创建
ed-wm8960-output-speaker.conf文件,再写入声卡配置属性。sudo tee /etc/alsa-card-profile/mixer/paths/ed-wm8960-output-speaker.conf >/dev/null <<'EOF' # Managed by ed-config: do not mute the independent WM8960 headphone control # when the speaker route is selected. [General] priority = 100 description-key = analog-output-speaker [Properties] device.icon_name = audio-speakers [Element Speaker] required-any = any switch = mute volume = merge override-map.1 = all override-map.2 = all-left,all-right .include analog-output.conf.common EOFg. 执行如下命令,重启WirePlumber服务。
systemctl --user restart wireplumber执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.20.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.21 适用于ED-CM4IND系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.21.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=spi1-1cs,cs0_pin=16,cs0_spidev=off
dtoverlay=jedec-spi-nor,spi1-0
dtoverlay=i2c-rtc,pcf8563
dtoverlay=ads1015,cha_gain=1,chb_gain=1,chc_gain=1,chd_gain=1
gpio=7=ip,pu
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
otg_mode=1
gpio=6=ip,pu
gpio=25=op,dl
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/50-local.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", SYMLINK+="rs485-2"
KERNEL=="ttyAMA4", SYMLINK+="rs485-1"
KERNEL=="ttyAMA5", SYMLINK+="rs232"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.21.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.22 适用于ED-SBC3300系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.22.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
enable_uart=1
dtoverlay=i2c-rtc,pcf8563
gpio=45=op,dh
dtoverlay=wk2xxx-uart,sbc2300
dtoverlay=uart0-pi5
dtoverlay=uart1-pi5
dtoverlay=uart2-pi5
dtoverlay=uart3-pi5
dtoverlay=uart4-pi5
dtoverlay=ed-ipc,ipc3300
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=ed-backlight-pwm-pi5,sg215
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttysWK*", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R dialout /dev/%k && chmod -R g=u /dev/%k'"
KERNEL=="ttyAMA0", PROGRAM="/bin/sh -c 'echo 0'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttysWK0", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttysWK1", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
KERNEL=="ttysWK2", PROGRAM="/bin/sh -c 'echo 5'", SYMLINK+="com%c"
KERNEL=="ttysWK3", PROGRAM="/bin/sh -c 'echo 6'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="rs485_%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="rs485_%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.22.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd ed-wk2xxx-uart-firmware
2.23 适用于ED-SBC2300系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.23.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
enable_uart=1
dtoverlay=i2c-rtc,pcf8563
gpio=45=op,dh
dtparam=ant2
dtoverlay=wk2xxx-uart,sbc2300
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=ed-ipc,ipc2300
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=ed-backlight-pwm
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttysWK0", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttysWK1", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
KERNEL=="ttysWK2", PROGRAM="/bin/sh -c 'echo 5'", SYMLINK+="com%c"
KERNEL=="ttysWK3", PROGRAM="/bin/sh -c 'echo 6'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="rs485_%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="rs485_%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.23.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd ed-wk2xxx-uart-firmware
2.24 适用于ED-PLC2010系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.24.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=ed-ipc,plc2010
dtoverlay=sdhost,gpios_22_27,preserve_mmc
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/99-com.rules >/dev/null <<'EOF'
SUBSYSTEM=="input", GROUP="input", MODE="0660"
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0660"
SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"
SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"
SUBSYSTEM=="rpivid-*", GROUP="video", MODE="0660"
KERNEL=="vcsm-cma", GROUP="video", MODE="0660"
SUBSYSTEM=="dma_heap", GROUP="video", MODE="0660"
SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660"
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys/class/gpio && chmod -R g=u /sys/class/gpio'"
SUBSYSTEM=="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys%p && chmod -R g=u /sys%p'"
SUBSYSTEM=="pwm", ACTION!="remove", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys%p && chmod -R g=u /sys%p'"
KERNEL=="ttyAMA0", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
echo 0;\
elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
fi\
'", SYMLINK+="serial%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if [ -e /dev/ttyAMA0 ]; then \
exit 1; \
elif cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
echo 0;\
elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
fi\
'", SYMLINK+="serial%c"
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if cmp -s $$ALIASES/uart1 $$ALIASES/serial0; then \
echo 0; \
elif cmp -s $$ALIASES/uart1 $$ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
fi \
'", SYMLINK+="serial%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon1", RUN+="/bin/sh -c '\
if echo RPi-Sense FB | cmp -s /sys/class/graphics/fb0/name; then \
echo 0 > /sys$devpath/bind; \
fi; \
'"
EOF
- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.24.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.25 适用于ED-IPC3400系列+
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.25.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.25.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.26 适用于ED-IPC3200系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.26.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc3210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.26.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.27 适用于ED-IPC3100、ED-HMI3120-116C、ED-HMI3120-133C、ED-HMI3120-156C、ED-HMI3120-185C和ED-HMI3120-215C系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.27.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc3100
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,屏幕可以正常显示且各接口均可正常工作。
2.27.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
- (可选)执行如下命令,安装
ed-ddcci-mib-tool软件包。
sudo apt install ed-ddcci-mib-tool
提示
ED-HMI3120-116C、ED-HMI3120-133C、ED-HMI3120-156C、ED-HMI3120-185C和ED-HMI3120-215C均需要安装ed-ddcci-mib-tool软件包,ED-IPC3100系列无需安装此软件包。
2.28 适用于ED-IPC3020系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt和声卡配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.28.1 修改config.txt和声卡配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=uart2-pi5
dtoverlay=uart4-pi5
dtparam=pcie=on
dtparam=pciex1=on
dtoverlay=rt5616
dtoverlay=act-led,gpio=16
gpio=6=op,dl
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加背光控制的udev规则。
sudo tee /etc/udev/rules.d/backlight-permissions.rules >/dev/null <<'EOF'
SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"
EOF

- 执行如下命令,安装音频软件包。
sudo apt install libasound2-plugins libpulsedsp pulseaudio-utils pulseaudio -y
写入ALSA状态。
a. 执行如下命令,将PipeWire音量降至30%。
wpctl set-volume @DEFAULT_SINK@ 30%b. 执行如下命令,修改
/var/lib/alsa/asound.state中的rt5616codec属性。sudo python3 - <<'PYCODE' from pathlib import Path import re state_path = Path('/var/lib/alsa/asound.state') new_block = r"""state.rt5616codec { control.1 { iface MIXER name 'HP Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.2 { iface MIXER name 'HPVOL Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.3 { iface MIXER name 'HP Playback Volume' value.0 31 value.1 31 comment { access 'read write' type INTEGER count 2 range '0 - 39' dbmin -4650 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.4 { iface MIXER name 'OUT Playback Switch' value.0 true value.1 true comment { access 'read write' type BOOLEAN count 2 } } control.5 { iface MIXER name 'OUT Channel Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.6 { iface MIXER name 'OUT Playback Volume' value.0 31 value.1 31 comment { access 'read write' type INTEGER count 2 range '0 - 39' dbmin -4650 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.7 { iface MIXER name 'DAC1 Playback Volume' value.0 172 value.1 172 comment { access 'read write' type INTEGER count 2 range '0 - 175' dbmin -65625 dbmax 0 dbvalue.0 -2625 dbvalue.1 -2625 } } control.8 { iface MIXER name 'IN1 Boost Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 8' dbmin 0 dbmax 5200 dbvalue.0 0 } } control.9 { iface MIXER name 'IN2 Boost Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 8' dbmin 0 dbmax 5200 dbvalue.0 0 } } control.10 { iface MIXER name 'IN Capture Volume' value.0 23 value.1 23 comment { access 'read write' type INTEGER count 2 range '0 - 31' dbmin -3450 dbmax 1200 dbvalue.0 0 dbvalue.1 0 } } control.11 { iface MIXER name 'ADC Capture Switch' value.0 false value.1 false comment { access 'read write' type BOOLEAN count 2 } } control.12 { iface MIXER name 'ADC Capture Volume' value.0 47 value.1 47 comment { access 'read write' type INTEGER count 2 range '0 - 127' dbmin -17625 dbmax 30000 dbvalue.0 0 dbvalue.1 0 } } control.13 { iface MIXER name 'ADC Boost Volume' value.0 0 value.1 0 comment { access 'read write' type INTEGER count 2 range '0 - 3' dbmin 0 dbmax 3600 dbvalue.0 0 dbvalue.1 0 } } control.14 { iface MIXER name 'RECMIXL INL1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.15 { iface MIXER name 'RECMIXL BST2 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.16 { iface MIXER name 'RECMIXL BST1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.17 { iface MIXER name 'RECMIXR INR1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.18 { iface MIXER name 'RECMIXR BST2 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.19 { iface MIXER name 'RECMIXR BST1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.20 { iface MIXER name 'Stereo1 ADC MIXL ADC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.21 { iface MIXER name 'Stereo1 ADC MIXR ADC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.22 { iface MIXER name 'DAC MIXL Stereo ADC Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.23 { iface MIXER name 'DAC MIXL INF1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.24 { iface MIXER name 'DAC MIXR Stereo ADC Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.25 { iface MIXER name 'DAC MIXR INF1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.26 { iface MIXER name 'Stereo DAC MIXL DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.27 { iface MIXER name 'Stereo DAC MIXL DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.28 { iface MIXER name 'Stereo DAC MIXR DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.29 { iface MIXER name 'Stereo DAC MIXR DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.30 { iface MIXER name 'OUT MIXL BST1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.31 { iface MIXER name 'OUT MIXL BST2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.32 { iface MIXER name 'OUT MIXL INL1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.33 { iface MIXER name 'OUT MIXL REC MIXL Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.34 { iface MIXER name 'OUT MIXL DAC L1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.35 { iface MIXER name 'OUT MIXR BST2 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.36 { iface MIXER name 'OUT MIXR BST1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.37 { iface MIXER name 'OUT MIXR INR1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.38 { iface MIXER name 'OUT MIXR REC MIXR Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.39 { iface MIXER name 'OUT MIXR DAC R1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.40 { iface MIXER name 'HPO MIX DAC1 Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.41 { iface MIXER name 'HPO MIX HPVOL Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.42 { iface MIXER name 'LOUT MIX DAC L1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.43 { iface MIXER name 'LOUT MIX DAC R1 Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.44 { iface MIXER name 'LOUT MIX OUTVOL L Switch' value false comment { access 'read write' type BOOLEAN count 1 } } control.45 { iface MIXER name 'LOUT MIX OUTVOL R Switch' value false comment { access 'read write' type BOOLEAN count 1 } } }""" pattern = re.compile(r'(?ms)^state\.rt5616codec \{\n.*?^\}') assert pattern.fullmatch(new_block), 'RT5616 状态块格式不完整' current = state_path.read_text() if state_path.exists() else '' blocks = list(pattern.finditer(current)) assert len(blocks) <= 1, '状态文件包含重复的 rt5616codec 块' if blocks: existing = blocks[0] merged = current[:existing.start()] + new_block + current[existing.end():] else: merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n' state_path.write_text(merged) state_path.chmod(0o644) PYCODEc. 执行如下命令,将修改的内容重新应用到声卡中。
sudo alsactl -U -f /var/lib/alsa/asound.state restore rt5616codec写入WirePlumber配置。
a. 执行如下命令,创建
/etc/wireplumber/wireplumber.conf.d/目录。sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/b. 执行如下命令,创建
51-ed-config-rt5616.conf文件,再写入音频配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-rt5616.conf >/dev/null <<'WP51' # Debian 13 compatibility for the legacy 3020 audio package. monitor.alsa.rules = [ { matches = [ { device.name = "~alsa_card.*" api.alsa.card.name = "rt5616-codec" } ] actions = { update-props = { api.alsa.soft-mixer = false } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 1200 api.alsa.soft-mixer = false audio.format = "S16LE" } } } ] WP51c. 执行如下命令,创建
52-rt5616-defaults.conf文件,再写入声卡配置属性。sudo tee /etc/wireplumber/wireplumber.conf.d/52-rt5616-defaults.conf >/dev/null <<'WP52' monitor.alsa.rules = [ { matches = [ { api.alsa.card.name = "~vc4-hdmi-.*" } ] actions = { update-props = { device.disabled = true } } } { matches = [ { node.name = "~alsa_output.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 3000 } } } { matches = [ { node.name = "~alsa_input.*" alsa.card_name = "rt5616-codec" } ] actions = { update-props = { priority.session = 3000 } } } ] WP52d. 执行如下命令,重启WirePlumber服务。
systemctl --user restart wireplumber执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.28.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.29 适用于ED-IPC2630系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.29.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=spi6-2cs,cs0_spidev=disable,cs1_pin=17,cs1_spidev=disable
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi6-1,oscillator=16000000,interrupt=14
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加CAN口的udev规则。
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.1/net/can*", NAME="canb1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.0/net/can*", NAME="canb0"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.29.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.30 适用于ED-IPC2620系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.30.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=spi6-2cs,cs0_spidev=disable,cs1_pin=17,cs1_spidev=disable
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=15
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,添加CAN口的udev规则。
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.0/net/can*", NAME="canb0"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.30.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.31 适用于ED-IPC2610系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.31.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.31.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.32 适用于ED-IPC2400系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.32.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
enable_uart=1
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
echo 1\
'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c '\
echo 3\
'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c '\
echo 5\
'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c '\
echo 4\
'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c '\
echo 2\
'", SYMLINK+="com%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.32.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
2.33 适用于ED-IPC2200和ED-IPC2500系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.33.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
enable_uart=1
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.33.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.34 适用于ED-IPC2100系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.34.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1
添加信息后的结果如下图所示:

- 输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。 - 执行如下命令,添加COM口的udev规则。
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF

- 执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.34.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-clte、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
2.35 适用于ED-IPC2010系列
配置操作包括以下两个步骤,请依次执行:
修改
config.txt配置文件:根据产品型号对配置文件进行相应修改,以启用所需端口。安装软件包:完成配置修改后,安装对应的扩展功能软件包,确保产品正常运行。
2.35.1 修改config.txt配置文件
前提条件:
- 设备已完成最新的标准Raspberry Pi OS (Trixie,2026年9月15日及之后发布的版本)的烧录。
- 设备已正常启动,且已外接一台显示器。
操作步骤:
- 在设备的命令窗格,执行如下命令,打开
/boot/firmware/config.txt文件。
sudo nano /boot/firmware/config.txt
- 在
/boot/firmware/config.txt文件末尾[all]处添加如下信息。
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on
添加信息后的结果如下图所示:

输入
ctrl+o保存文件,再按Enter,最后输入ctrl+x退出文件编辑模式。执行如下命令,重启设备使配置生效。
sudo reboot
- 设备重新启动后,各接口均可正常工作。
2.35.2 安装软件包
前提条件:
设备已完成config.txt配置文件的修改。
操作步骤:
- 打开终端命令窗格,依次执行如下命令,下载密钥并创建
edatec.list文件。
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
- 执行如下命令,安装
ed-reboot、ed-rtc、ed-usb-tools、ed-lvd软件包。
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd
