Skip to content
Permalink
Browse files

Add RockPro64 (2GB/4GB)

  • Loading branch information...
Cat5TV committed Mar 30, 2019
1 parent 126ae4f commit 29fc096cf16b6d940d301ee2b36e59af8ca03d5a
Showing with 24 additions and 3 deletions.
  1. +24 −3 hw_model.sh
@@ -6,11 +6,12 @@
fi

#////////////////////////////////////
# hw_model from DietPi
#
#////////////////////////////////////
# Created by Daniel Knight / daniel.knight@dietpi.com / dietpi.com
# Originally Created by Daniel Knight
# daniel.knight@dietpi.com / dietpi.com
#
# Adapted for NEMS by Robbie Ferguson
#
#////////////////////////////////////
#
# Info:
@@ -36,6 +37,8 @@
# HW_MODEL 60 NanoPi Neo
# HW_MODEL 51 BananaPi Pro (Lemaker)
# HW_MODEL 50 BananaPi M2+ (sinovoip)
# HW_MODEL 49 RockPro64 4GB
# HW_MODEL 48 RockPro64 2GB
# HW_MODEL 47 Rock64 4GB
# HW_MODEL 46 Rock64 2GB
# HW_MODEL 45 Rock64 1GB
@@ -518,6 +521,24 @@
HW_MODEL=45

fi

#RockPro64
elif (( $HW_MODEL >= 48 && $HW_MODEL <= 49 )); then

IMAGE_ADDITIONAL_CREDITS='Longsleep, Ayufan'

MEMTOTAL=$(free | awk '/^Mem:/{print $2}')
if (( $MEMTOTAL > 4000000 )); then

HW_MODEL_DESCRIPTION='RockPro64 4GB'
HW_MODEL=49

else

HW_MODEL_DESCRIPTION='RockPro64 2GB'
HW_MODEL=48

fi


#PineA64

0 comments on commit 29fc096

Please sign in to comment.
You can’t perform that action at this time.