Hi,
I think, their is a lot of mystic here, about speed-up boot-time.
So I have done same testing on a:
───────────────────────────────────────
DietPi | 14:58 | Sun 15/10/17
───────────────────────────────────────
V156 | RPi Zero W (armv6l)
───────────────────────────────────────
First of all, I think @NJS is using a very old DietPi RPi Zero W image version.
DietPi v156 have after fresh installation out-of-the-box:
root@RPi-Zero_W:~# uname -a
Linux RPi-Zero_W 4.9.52+ #1 Mon Oct 2 21:14:49 UTC 2017 armv6l GNU/Linux
root@RPi-Zero_W:~# dmesg | grep wl0
[ 8.017884] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
But let’s start testing with a fresh installed image (DietPi_v150_RPi-armv6-(Jessie).img) on a SanDisk Extreme 32GB microSDHC, Class 10, UHS-3 with default settings, which will be auto-updated to DietPi v156 during first boot-up.
We using a Official Raspberry Pi Power Supply, because it will have a out of 5.2 V with 2.5 A and no significant powerloss on cable (18 AWG) and micro usb plug (only pin 1 and 5 connected)
Settings:
- Wifi enabled
- IPv4 addess via DHCP
- IPv6 enabled
- Swapfile size : auto (1567 MB)
- no overclocking or tweaking CPU, RAM, GPU or sd card
root@RPi-Zero_W:~# cat /var/log/boottime
27.17 Seconds
Lets tweak the setting to speed up:
Device Network: IP address
- Wifi enabled
- IPv4 static addess
- IPv6 enabled (leave it enabled, disable will increase boot-up time!)
root@RPi-Zero_W:~# cat /var/log/boottime
20.01 Seconds
Swapfile settings:
- Swapfile size : 100 MB
root@RPi-Zero_W:~# cat /var/log/boottime
19.60 Seconds
Swapfile disable:
- Swapfile size : disable (0 MB)
root@RPi-Zero_W:~# cat /var/log/boottime
19.28 Seconds
Tweaking sd card without breaking WiFi:
- ##—SD-CARD_Overclock------
dtoverlay=sdtweak,overclock_50=100
root@RPi-Zero_W:~# cat /var/log/boottime
19.18 Seconds
Overclocking CPU, SDRAM, GPU, Voltage :
- ##----for RPi Zero----
arm_freq=1050
gpu_freq=500
core_freq=500
sdram_freq=500
sdram_schmoo=0x02000020 (don’t do this!)
over_voltage=2
sdram_over_voltage=2
root@RPi-Zero_W:~# cat /var/log/boottime
18.79 Seconds
27.17 Seconds vs. 18.79 Seconds
- Static ip-address configuration and swapflie size make the greatest difference in boot-up time.
- Overclocking and sd card tweak increase the system performace much, but not as much for boot-up time.
And that is it!