Skip to content

Commit

Permalink
v143
Browse files Browse the repository at this point in the history
+ General | RPi: DietPi kernel is now installed by default. This adds
support for Allo Piano 2.1 DAC, and 192KHz 16bit HDMI output.

+ Allo 2.1 DAC driver for RPi using DietPi Kernel:
https://github.com/Fourdee/DietPi/issues/727
  • Loading branch information
Fourdee committed Jan 26, 2017
1 parent e94542a commit 7557f1b
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v143
(xx/01/17)

Changes / Improvements / Optimizations:
General | RPi: DietPi kernel is now installed by default. This adds support for Allo Piano 2.1 DAC, and 192KHz 16bit HDMI output.
DietPi-Config | Audio > Sound card: Added support for RPi "Pi-DIGI+"
DietPi-Software | NeoVim: Now available for RPi Stretch: https://github.com/Fourdee/DietPi/issues/692
DietPi-Software | O!MPD: Now available for installation. Slick, feature-rich MPD web interface music player: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=5171#p5171
Expand All @@ -14,11 +15,10 @@ General | Pine 64 FB cursor is now visible: https://github.com/Fourdee/DietPi/is
DietPi-Config | Audio > USB-DAC: When enabled, will always re-detect and apply active card index during boot. Many thanks to "J. Künz" for these fixes!
DietPi-Config | Audio > Sound card: Corrected options for BPi Pro. Many thanks to "J. Künz" for these fixes!
DietPi-Config | Audio > Sound card: Corrected options for OPi Zero (H2+) HDMI and 3.5mm analogue (default).
DietPi-Config | Audio > Sound card: Allo Piano 2.1 DAC for RPi is now functional. Driver provided by DietPi kernel: https://github.com/Fourdee/DietPi/issues/727
DietPi-Software | Failure to move MySQL DB store will now prevent further action being taken: https://github.com/Fourdee/DietPi/issues/715
DietPi-Software | Resolved an issue with VNC4server/RealVNC install, that prevented desktop launch command being inserted to xstartup, if a desktop was installed beforehand:

RPi Stretch:

-----------------------------------------------------------------------------------------------------------

v142
Expand Down
12 changes: 12 additions & 0 deletions dietpi/finalise
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,18 @@ _EOF_
# - Remove root delay
sed -i "s/ rootdelay=10//g" /boot/cmdline.txt

#////////////////////////////////////
#Kernel
# - Disable installed flags
rm /etc/dietpi/.*

# - RPi install DietPi kernel by default
if (( $HW_MODEL < 10 )); then

/DietPi/dietpi/func/dietpi-set_hardware kernel dietpi_rpi

fi

#////////////////////////////////////
#Disable serial console
/DietPi/dietpi/func/dietpi-set_hardware serialconsole disable
Expand Down
36 changes: 33 additions & 3 deletions dietpi/func/dietpi-set_hardware
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,10 @@ _EOF_
/DietPi/dietpi/func/check_connection "$install_url_address"

# Install
if (( $? == 0 )) &&
[ ! -f /etc/dietpi/.384khz_rpi ]; then #not already installed
if (( $? == 0 )); then

# - Prevent kernel/firmware/bootloader upgrades from Raspbian repo
apt-mark hold raspberrypi-bootloader raspberrypi-kernel libraspberrypi-bin
apt-mark hold raspberrypi-bootloader raspberrypi-kernel

wget "$install_url_address" -O package.7z
7z x -y package.7z -o/
Expand All @@ -276,6 +275,37 @@ _EOF_

fi

elif [ "$INPUT_DEVICE_VALUE" = "dietpi_rpi" ]; then

local install_url_address='http://dietpi.com/downloads/binaries/rpi/dietpi_rpi_kernel.zip'

/DietPi/dietpi/func/check_connection "$install_url_address"

# Install
if (( $? == 0 )); then

# - Prevent kernel/firmware/bootloader upgrades from Raspbian repo
apt-mark hold raspberrypi-bootloader raspberrypi-kernel

wget "$install_url_address" -O package.zip
rm -R /boot/overlays/*
rm -R /lib/modules/*
rm -R /lib/firmware/*
rm /boot/*.img

unzip -o package.zip -d /

rm package.zip

# - flag,
echo 1 > /etc/dietpi/.dietpi_rpi

else

/DietPi/dietpi/func/dietpi-notify 1 "Failed to install $INPUT_DEVICE_NAME. $install_url_address may be offline or unreachable."

fi

else

Unknown_Input_Mode
Expand Down
11 changes: 11 additions & 0 deletions dietpi/patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -2273,6 +2273,17 @@ _EOF_
systemctl daemon-reload

#-------------------------------------------------------------------------------
#RPi install DietPi kernel by default
if (( $HW_MODEL < 10 )); then

# - remove old flags
rm /etc/dietpi/.dietpi_rpi
rm /etc/dietpi/.384khz_rpi

/DietPi/dietpi/func/dietpi-set_hardware kernel dietpi_rpi

fi
#-------------------------------------------------------------------------------

fi

Expand Down

0 comments on commit 7557f1b

Please sign in to comment.