Skip to content

Commit

Permalink
v6.29 (#3387)
Browse files Browse the repository at this point in the history
+ Images | Add initial Pine H64 and ROCK Pi S support
  • Loading branch information
MichaIng authored Feb 19, 2020
1 parent 9557fe6 commit 1fc8dfe
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .meta/dietpi-survey_report
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
aHW_NAME[42]='RockPro64'
aHW_NAME[43]='Rock64'
aHW_NAME[44]='Pinebook A64'
aHW_NAME[45]='Pine H64'
aHW_NAME[50]='BananaPi M2+ (sinovoip)'
aHW_NAME[51]='BananaPi Pro (Lemaker)'
aHW_NAME[52]='Asus Tinker Board'
Expand All @@ -57,6 +58,7 @@
aHW_NAME[70]='Sparky SBC'
aHW_NAME[71]='Beagle Bone Black'
aHW_NAME[72]='ROCK Pi 4'
aHW_NAME[73]='ROCK Pi S'

# Core Benchmarks
aBENCH_CPU_INDEX=()
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ v6.29

Changes / Improvements / Optimisations:
- NanoPi M4v2 | Initial hardware identifier (ID: 58) and support for this device has been added to DietPi. Many thanks to @purist doing this request: https://dietpi.com/phpbb/viewtopic.php?f=12&t=6451
- Pine H64 | Initial hardware identifier (ID: 45) and support for this device has been added to DietPi. Many thanks to @unixino for doing this request: https://github.com/MichaIng/DietPi/issues/3286
- ROCK Pi S | Initial hardware identifier (ID: 73) and support for this device has been added to DietPi. Many thanks to @lwqcz for doing this request: https://github.com/MichaIng/DietPi/issues/3365
- Sparky SBC | Updated kernel drivers and SBC-specific service and config files
- DietPi-Cron | Allows now to set the cron job output mail recipient. Cron mails are disabled by default since no MTA is preconfigured on DietPi. Additionally the execution times are now shown more clearly in 24h format.
- DietPi-Drive_Manager | GlusterFS fstab entries are now preserved. Many thanks to @Sudrien for implementing this addition: https://github.com/MichaIng/DietPi/issues/3374
Expand Down
2 changes: 2 additions & 0 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,10 @@
'40' ': Pine A64'
'43' ': Rock64'
'42' ': RockPro64'
'45' ': Pine H64'
'70' ': Sparky SBC'
'72' ': ROCK Pi 4'
'73' ': ROCK Pi S'

)

Expand Down
2 changes: 1 addition & 1 deletion dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ DietPi-Software will decrypt and use it for software installs. You can change it
FP_ONLINEDOC_URL='https://dietpi.com/phpbb/viewtopic.php?'

# Available for (need to match highest value in dietpi-obtain_hw_model)
MAX_G_HW_MODEL=72
MAX_G_HW_MODEL=73
MAX_G_HW_ARCH=10
MAX_G_DISTRO=6
# - 2D array (well, bash style)
Expand Down
28 changes: 21 additions & 7 deletions dietpi/func/dietpi-obtain_hw_model
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# - Called from /DietPi/dietpi/preboot
#
# In DietPi-Software: Need to match highest values in dietpi-obtain_hw_model
# - MAX_G_HW_MODEL=72
# - MAX_G_HW_MODEL=73
# - MAX_G_HW_ARCH=10
# - MAX_G_DISTRO=6
#
# ---- Line 1 ----
# G_HW_MODEL 73 ROCK Pi S
# G_HW_MODEL 72 ROCK Pi 4
# G_HW_MODEL 71 Beagle Bone Black
# G_HW_MODEL 70 Sparky SBC
Expand All @@ -36,6 +37,7 @@
# G_HW_MODEL 52 Asus Tinker Board
# G_HW_MODEL 51 BananaPi Pro (Lemaker)
# G_HW_MODEL 50 BananaPi M2+ (sinovoip)
# G_HW_MODEL 45 Pine H64
# G_HW_MODEL 44 Pinebook A64
# G_HW_MODEL 43 Rock64
# G_HW_MODEL 42 RockPro64
Expand Down Expand Up @@ -89,12 +91,13 @@
# G_HW_ARCH_DESCRIPTION
# ---- Line 8 ----
# IMAGE_ADDITIONAL_CREDITS (eg: Meveric)
# ---- Line 9 ---- Group CPUs
# ---- Line 9 ---- SoC
# G_HW_CPUID 0 Not set
# G_HW_CPUID 1 H3
# G_HW_CPUID 2 H5
# G_HW_CPUID 3 RK3399
# G_HW_CPUID 4 S922X
# G_HW_CPUID 1 Allwinner H3
# G_HW_CPUID 2 Allwinner H5
# G_HW_CPUID 3 Rockchip RK3399
# G_HW_CPUID 4 Samsung S922X
# G_HW_CPUID 5 Allwinner H6
# ---- Line 10 ---- Onboard WiFi/BT Index
# HW_ONBOARD_WIFI 0 Not set
# HW_ONBOARD_WIFI 1 RPi3/4/Zero W (BCM43438)
Expand Down Expand Up @@ -538,8 +541,13 @@

G_HW_MODEL=$(mawk 'NR==1' $FP_G_HW_MODEL_INDENTIFIER)

# ROCK Pi S
if (( $G_HW_MODEL == 73 )); then

G_HW_MODEL_DESCRIPTION='ROCK Pi S'

# ROCK Pi 4
if (( $G_HW_MODEL == 72 )); then
elif (( $G_HW_MODEL == 72 )); then

G_HW_MODEL_DESCRIPTION='ROCK Pi 4'
G_HW_CPUID=3
Expand Down Expand Up @@ -645,6 +653,12 @@
G_HW_MODEL_DESCRIPTION='BananaPi M2+'
G_HW_CPUID=1

# Pine H64
elif (( $G_HW_MODEL == 45 )); then

G_HW_MODEL_DESCRIPTION='Pine H64'
G_HW_CPUID=5

# Pinebook A64
elif (( $G_HW_MODEL == 44 )); then

Expand Down

0 comments on commit 1fc8dfe

Please sign in to comment.