Skip to content

Commit

Permalink
v8.24
Browse files Browse the repository at this point in the history
- Quartz64 | Move kernel upgrade forward
  • Loading branch information
MichaIng committed Nov 17, 2023
1 parent 64cf031 commit c03980b
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions .update/patches
Original file line number Diff line number Diff line change
Expand Up @@ -1420,31 +1420,6 @@ Patch_8_23()
G_EXEC_OUTPUT=1 G_EXEC dpkg -i --force-confdef,confold package.deb
G_EXEC rm package.deb

# Quartz64
elif (( $G_HW_MODEL == 49 ))
then
if dpkg --compare-versions "$(dpkg-query -Wf '${Version}' firmware-quartz64a 2> /dev/null)" lt-nl 6.5.8-dietpi1
then
G_DIETPI-NOTIFY 2 'Updating Quartz64 Model A kernel and bootloader ...'
G_EXEC_OUTPUT=1 G_EXEC curl -fo package.deb 'https://dietpi.com/downloads/binaries/firmware-quartz64a.deb'
G_EXEC_OUTPUT=1 G_EXEC dpkg -i --force-confdef,confold package.deb
G_EXEC rm package.deb

elif dpkg --compare-versions "$(dpkg-query -Wf '${Version}' firmware-quartz64b 2> /dev/null)" lt-nl 6.5.8-dietpi1
then
G_DIETPI-NOTIFY 2 'Updating Quartz64 Model B kernel and bootloader ...'
G_EXEC_OUTPUT=1 G_EXEC curl -fo package.deb 'https://dietpi.com/downloads/binaries/firmware-quartz64b.deb'
G_EXEC_OUTPUT=1 G_EXEC dpkg -i --force-confdef,confold package.deb
G_EXEC rm package.deb

elif dpkg --compare-versions "$(dpkg-query -Wf '${Version}' firmware-soquartz 2> /dev/null)" lt-nl 6.5.8-dietpi1
then
G_DIETPI-NOTIFY 2 'Updating SOQuartz kernel and bootloader ...'
G_EXEC_OUTPUT=1 G_EXEC curl -fo package.deb 'https://dietpi.com/downloads/binaries/firmware-soquartz.deb'
G_EXEC_OUTPUT=1 G_EXEC dpkg -i --force-confdef,confold package.deb
G_EXEC rm package.deb
fi

# VisionFive 2
elif (( $G_HW_MODEL == 81 )) && dpkg --compare-versions "$(dpkg-query -Wf '${Version}' linux-image-visionfive2 2> /dev/null)" lt-nl 6.1.59-dietpi1
then
Expand Down Expand Up @@ -1507,8 +1482,21 @@ Patch_8_23()

Patch_8_24()
{
# Quartz64
if (( $G_HW_MODEL == 49 ))
then
for i in quartz64{a,b} soquartz
do
dpkg --compare-versions "$(dpkg-query -Wf '${Version}' "firmware-$i" 2> /dev/null)" lt-nl 6.5.11-dietpi1 || continue
G_DIETPI-NOTIFY 2 "Updating $i kernel and bootloader ..."
G_EXEC_OUTPUT=1 G_EXEC curl -fo package.deb "https://dietpi.com/downloads/binaries/firmware-$i.deb"
G_EXEC_OUTPUT=1 G_EXEC dpkg -i --force-confdef,confold package.deb
G_EXEC rm package.deb
break
done

# ROCK 3A: The "rk35xx" kernel packages have been merged into "rockchip64", and "edge-rk35xx" is Linux 6.1.11, older than "current-rockchip64", which is 6.1.50
if (( $G_HW_MODEL == 77 )) && dpkg-query -s 'linux-image-edge-rk35xx' &> /dev/null
elif (( $G_HW_MODEL == 77 )) && dpkg-query -s 'linux-image-edge-rk35xx' &> /dev/null
then
G_DIETPI-NOTIFY 2 'Updating ROCK 3A kernel package ...'
local apackages=('linux-image-current-rockchip64' 'linux-dtb-current-rockchip64')
Expand Down

0 comments on commit c03980b

Please sign in to comment.