opi5plus: update REVISION to 1.0.4
rk3588: kde-plasma: support ctrl+alt+t shortcut to open the command line terminal rk3588: kde-plasma: add konsole and chromium shortcuts to the taskbar rk3588: fix realteck 8821cu usb wifi (from Joshua Riek) rk3588: update audio configurations (from Joshua Riek)
This commit is contained in:
parent
4f34d09912
commit
2f4a3e96c2
|
|
@ -11,4 +11,4 @@ BOOT_SUPPORT_SPI="yes"
|
||||||
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
|
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
|
||||||
DISTRIB_TYPE_LEGACY="bullseye bookworm bionic focal jammy"
|
DISTRIB_TYPE_LEGACY="bullseye bookworm bionic focal jammy"
|
||||||
BOOTFS_TYPE="fat"
|
BOOTFS_TYPE="fat"
|
||||||
REVISION="1.0.2"
|
REVISION="1.0.4"
|
||||||
|
|
|
||||||
|
|
@ -164,3 +164,14 @@ yelp
|
||||||
yelp-xsl
|
yelp-xsl
|
||||||
zenity
|
zenity
|
||||||
zenity-common
|
zenity-common
|
||||||
|
nautilus-extension-gnome-terminal
|
||||||
|
okular
|
||||||
|
remmina
|
||||||
|
remmina-plugin-rdp
|
||||||
|
remmina-plugin-vnc
|
||||||
|
folder-color
|
||||||
|
yaru-theme-gnome-shell
|
||||||
|
yaru-theme-icon
|
||||||
|
yaru-theme-sound
|
||||||
|
yaru-theme-unity
|
||||||
|
yaru-theme-gtk
|
||||||
|
|
|
||||||
|
|
@ -377,6 +377,8 @@ rk3588_gpu_vpu_tweaks()
|
||||||
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/mpp/librockchip-vpu0_1.5.0-1+git230210.c145c84~jammy1_arm64.deb"
|
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/mpp/librockchip-vpu0_1.5.0-1+git230210.c145c84~jammy1_arm64.deb"
|
||||||
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/mpp/rockchip-mpp-demos_1.5.0-1+git230210.c145c84~jammy1_arm64.deb"
|
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/mpp/rockchip-mpp-demos_1.5.0-1+git230210.c145c84~jammy1_arm64.deb"
|
||||||
|
|
||||||
|
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gst-rkmpp/gstreamer1.0-rockchip1_1.14-4_arm64.deb"
|
||||||
|
|
||||||
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gstreamer/gir1.2-gstreamer-1.0_1.20.3-0ubuntu1_arm64.deb"
|
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gstreamer/gir1.2-gstreamer-1.0_1.20.3-0ubuntu1_arm64.deb"
|
||||||
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gstreamer/gstreamer1.0-tools_1.20.3-0ubuntu1_arm64.deb"
|
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gstreamer/gstreamer1.0-tools_1.20.3-0ubuntu1_arm64.deb"
|
||||||
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gstreamer/libgstreamer1.0-0_1.20.3-0ubuntu1_arm64.deb"
|
dpkg_install_deb_chroot "$EXTER/cache/sources/rk3588_packages_jammy/gstreamer/libgstreamer1.0-0_1.20.3-0ubuntu1_arm64.deb"
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,9 @@ install_balenaEtcher(){
|
||||||
family_tweaks_s() {
|
family_tweaks_s() {
|
||||||
|
|
||||||
if [[ ${SELECTED_CONFIGURATION} == desktop && ${DESKTOP_ENVIRONMENT} == kde-plasma ]]; then
|
if [[ ${SELECTED_CONFIGURATION} == desktop && ${DESKTOP_ENVIRONMENT} == kde-plasma ]]; then
|
||||||
|
|
||||||
rsync -a --chown=root:root --exclude=etc/pulse "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
|
rsync -a --chown=root:root --exclude=etc/pulse "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
|
||||||
|
|
||||||
cat > "${SDCARD}"/etc/profile.d/kde_env.sh <<- __EOF__
|
cat > "${SDCARD}"/etc/profile.d/kde_env.sh <<- __EOF__
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
@ -69,6 +71,22 @@ family_tweaks_s() {
|
||||||
Backend=XRender
|
Backend=XRender
|
||||||
OpenGLIsUnsafe=false
|
OpenGLIsUnsafe=false
|
||||||
__EOF__
|
__EOF__
|
||||||
|
|
||||||
|
cat <<-EOF >>"${SDCARD}"/home/orangepi/.config/kglobalshortcutsrc
|
||||||
|
[org.kde.konsole.desktop]
|
||||||
|
NewTab=,,Open a New Tab
|
||||||
|
NewWindow=,,Open a New Window
|
||||||
|
_k_friendly_name=Konsole
|
||||||
|
_launch=Ctrl+Alt+T,,Konsole
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<-EOF >>"${SDCARD}"/home/orangepi/.config/plasma-org.kde.plasma.desktop-appletsrc
|
||||||
|
[Containments][2][Applets][5][Configuration][General]
|
||||||
|
launchers=applications:systemsettings.desktop,applications:org.kde.discover.desktop,preferred://filemanager,preferred://browser,applications:org.kde.konsole.desktop
|
||||||
|
|
||||||
|
[Containments][2][Applets][5][Configuration][General]
|
||||||
|
launchers=applications:systemsettings.desktop,applications:org.kde.discover.desktop,preferred://filemanager,preferred://browser,applications:org.kde.konsole.desktop,applications:chromium-browser.desktop
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
rsync -a --chown=root:root "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
|
rsync -a --chown=root:root "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
|
||||||
|
|
@ -103,4 +121,29 @@ family_tweaks_s() {
|
||||||
install_wiringop
|
install_wiringop
|
||||||
install_docker
|
install_docker
|
||||||
install_balenaEtcher
|
install_balenaEtcher
|
||||||
|
|
||||||
|
# Board audio specific changes
|
||||||
|
if [[ ${BOARD} =~ orangepi5|orangepi5b ]]; then
|
||||||
|
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"' >> ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8388-sound", ENV{SOUND_DESCRIPTION}="ES8388 Audio"' >> ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
|
||||||
|
elif [[ "${BOARD}" =~ orangepi5plus|orangepi900 ]]; then
|
||||||
|
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi1-sound", ENV{SOUND_DESCRIPTION}="HDMI1 Audio"' >> ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmiin-sound", ENV{SOUND_DESCRIPTION}="HDMI-In Audio"' >> ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"' >> ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8388-sound", ENV{SOUND_DESCRIPTION}="ES8388 Audio"' >> ${SDCARD}/etc/udev/rules.d/90-naming-audios.rules
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Realtek 8811CU/8821CU usb modeswitch support
|
||||||
|
cp ${SDCARD}/lib/udev/rules.d/40-usb_modeswitch.rules ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules
|
||||||
|
sed '/LABEL="modeswitch_rules_end"/d' -i ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules
|
||||||
|
cat >> ${SDCARD}/etc/udev/rules.d/40-usb_modeswitch.rules <<-EOF
|
||||||
|
# Realtek 8821CU Wifi AC USB
|
||||||
|
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"
|
||||||
|
LABEL="modeswitch_rules_end"
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
||||||
23
external/packages/bsp/common/usr/share/initramfs-tools/hooks/usb_modeswitch
vendored
Executable file
23
external/packages/bsp/common/usr/share/initramfs-tools/hooks/usb_modeswitch
vendored
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PREREQ=""
|
||||||
|
prereqs()
|
||||||
|
{
|
||||||
|
echo "$PREREQ"
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
prereqs)
|
||||||
|
prereqs
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
. /usr/share/initramfs-tools/scripts/functions
|
||||||
|
. /usr/share/initramfs-tools/hook-functions
|
||||||
|
|
||||||
|
copy_exec /usr/sbin/usb_modeswitch /usr/sbin/usb_modeswitch
|
||||||
|
copy_exec /etc/udev/rules.d/40-usb_modeswitch.rules /etc/udev/rules.d/40-usb_modeswitch.rules
|
||||||
|
copy_exec /lib/udev/rules.d/40-usb_modeswitch.rules /lib/udev/rules.d/40-usb_modeswitch.rules
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -17,10 +17,17 @@ hdmi0_card=$(aplay -l | grep "hdmi0" | cut -d ':' -f 1 | cut -d ' ' -f 2)
|
||||||
hdmi1_card=$(aplay -l | grep "hdmi1" | cut -d ':' -f 1 | cut -d ' ' -f 2)
|
hdmi1_card=$(aplay -l | grep "hdmi1" | cut -d ':' -f 1 | cut -d ' ' -f 2)
|
||||||
hdmiin_card=$(arecord -l | grep "hdmiin" | cut -d ":" -f 1 | cut -d ' ' -f 2)
|
hdmiin_card=$(arecord -l | grep "hdmiin" | cut -d ":" -f 1 | cut -d ' ' -f 2)
|
||||||
|
|
||||||
DISPLAY=:0.0 gst-launch-1.0 v4l2src device=${device_id} io-mode=4 ! videoconvert \
|
if [[ $XDG_SESSION_TYPE == wayland ]]; then
|
||||||
! video/x-raw,format=NV12,width=${width},height=${heigh} \
|
DISPLAY=:0.0 gst-launch-1.0 v4l2src device=${device_id} ! videoconvert \
|
||||||
! videoscale ! video/x-raw,width=1280,height=720 \
|
! videoscale ! video/x-raw,width=1280,height=720 \
|
||||||
! autovideosink sync=false 2>&1 > /dev/null &
|
! waylandsink sync=false 2>&1 > /dev/null &
|
||||||
|
else
|
||||||
|
DISPLAY=:0.0 gst-launch-1.0 v4l2src device=${device_id} io-mode=4 ! videoconvert \
|
||||||
|
! video/x-raw,format=NV12,width=${width},height=${heigh} \
|
||||||
|
! videoscale ! video/x-raw,width=1280,height=720 \
|
||||||
|
! autovideosink sync=false 2>&1 > /dev/null &
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
gst-launch-1.0 alsasrc device=hw:${hdmiin_card},0 ! audioconvert ! audioresample ! queue \
|
gst-launch-1.0 alsasrc device=hw:${hdmiin_card},0 ! audioconvert ! audioresample ! queue \
|
||||||
! tee name=t ! queue ! alsasink device="hw:${hdmi0_card},0" \
|
! tee name=t ! queue ! alsasink device="hw:${hdmi0_card},0" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue