diff --git a/lib/debootstrap-ng.sh b/lib/debootstrap-ng.sh index 3f14f89e7b..2da229defa 100644 --- a/lib/debootstrap-ng.sh +++ b/lib/debootstrap-ng.sh @@ -362,7 +362,7 @@ prepare_partitions() # Hardcoded overhead +25% is needed for desktop images, # for CLI it could be lower. Align the size up to 4MiB if [[ $BUILD_DESKTOP == yes ]]; then - local sdsize=$(bc -l <<< "scale=0; ((($imagesize * 1.25) / 1 + 0) / 4 + 1) * 4") + local sdsize=$(bc -l <<< "scale=0; ((($imagesize * 1.30) / 1 + 0) / 4 + 1) * 4") else local sdsize=$(bc -l <<< "scale=0; ((($imagesize * 1.20) / 1 + 0) / 4 + 1) * 4") fi diff --git a/packages/bsp/common/usr/lib/armbian/armbian-hardware-optimization b/packages/bsp/common/usr/lib/armbian/armbian-hardware-optimization old mode 100755 new mode 100644 index e77be11801..c8f226f73c --- a/packages/bsp/common/usr/lib/armbian/armbian-hardware-optimization +++ b/packages/bsp/common/usr/lib/armbian/armbian-hardware-optimization @@ -259,6 +259,8 @@ prepare_board() { echo 8 >/proc/irq/$(awk -F":" "/sunxi-mmc/ {print \$1}" /proc/irq/$(awk -F":" "/eth/ {print \$1}" /sys/class/net/eth0/queues/rx-0/rps_cpus + # OrangePi win GMAC is very unstable on gigabit. Limit it down to 100Mb solve problems + [[ $BOARD == orangepiwin && $BRANCH == default ]] && ethtool -s eth0 speed 100 duplex full ;; esac } # prepare_board