mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-24 19:12:45 +07:00
Update for Orange Pi 5 v1.0.2
This commit is contained in:
@@ -28,6 +28,24 @@ family_tweaks_bsp() {
|
||||
install -m 755 $EXTER/packages/bsp/adb/adbd-${ARCH} ${destination}/usr/bin/adbd
|
||||
}
|
||||
|
||||
|
||||
install_balenaEtcher(){
|
||||
|
||||
if [[ $BUILD_DESKTOP == yes && $install_balena_etcher == yes ]]; then
|
||||
|
||||
balena_etcher_deb=balena-etcher-electron_1.7.9+5945ab1f_arm64.deb
|
||||
balena_etcher_url="https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/${balena_etcher_deb}"
|
||||
balena_etcher=${EXTER}/cache/debs/arm64/${balena_etcher_deb}
|
||||
|
||||
if [[ ! -f ${balena_etcher} ]]; then
|
||||
wget -P ${EXTER}/cache/debs/arm64 ${balena_etcher_url}
|
||||
fi
|
||||
|
||||
install_deb_chroot ${balena_etcher}
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
family_tweaks_s() {
|
||||
|
||||
rsync -a "${EXTER}"/packages/bsp/rk3588/* ${SDCARD}/
|
||||
@@ -35,12 +53,14 @@ family_tweaks_s() {
|
||||
# enable additional services
|
||||
chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload enable usbdevice.service >/dev/null 2>&1"
|
||||
|
||||
chroot $SDCARD /bin/bash -c "rm /etc/profile.d/im-config_wayland.sh"
|
||||
sed "s/^SIZE=.*/SIZE=200M/" -i "${SDCARD}"/etc/default/orangepi-ramlog
|
||||
chroot "${SDCARD}" /bin/bash -c "ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime"
|
||||
chroot "${SDCARD}" /bin/bash -c "dpkg-reconfigure -f noninteractive tzdata" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
|
||||
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install lm-sensors" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
|
||||
install_deb_chroot "$EXTER/cache/debs/arm64/wiringpi_2.46.deb"
|
||||
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install lm-sensors vlc" >/dev/null 2>&1
|
||||
chroot $SDCARD /bin/bash -c "rm /etc/profile.d/im-config_wayland.sh" >/dev/null 2>&1
|
||||
|
||||
sed "s/^SIZE=.*/SIZE=200M/" -i "${SDCARD}"/etc/default/orangepi-ramlog
|
||||
|
||||
#install_docker
|
||||
install_docker
|
||||
install_balenaEtcher
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user