-
Hardware:
- HackberryPi Zero 2W
- microSD card (at least 4 GB, preferably 8 GB or more)
- Power supply for the HackberryPi (recommended)
- microSD card reader (if your computer doesn’t have a built-in card reader)
- Optional: Keyboard, mouse
-
Software:
- Rufus (a Windows tool to create bootable USB or SD cards)
- DietPi image (for the Raspberry Pi Zero 2 W)
- Some time and patience
- Visit the official DietPi website.
- Go to the Download section, choose the Raspberry section and than the Raspberry Pi 2/3/4/Zero 2 version.
- Download the DietPi image for the Raspberry Pi (make sure it’s for the Raspberry Pi Zero 2 W).
- Download Rufus from the official Rufus website.
- Install Rufus on your computer if you haven’t already.
- Insert the microSD card your computer using a card reader.
- Open Rufus.
- In Rufus, select your microSD card as the target drive.
- Click Select and find the DietPi image you downloaded earlier (it should be a .img.yz file).
- Make sure under "Partition Scheme" it’s set to MBR, and under "File System" it’s set to Large FAT32.
- Click Start to write the image to the microSD card. Wait until the process is completed.
Important
Some users have told me that it doesn't work with the display driver and the config.txt (further down). The display fades when booting up.
Here is the solution: Display-driver and config.txt)
Simply use the two files and it works. There are two files in the ZIP. (hyperpixel4.dto and config.txt)
Copy this two files on the mircoSD hyperpixel4.dtbo to /boot/overlays/ and config.txt to SD root folder.
Than go to Step 3.
- Once the writing is done, copy the display-driver into this folder
/boot/overlaysto the microSD. You can find the display-driver here: Display-driver) - Add the following lines at the end in
/boot/config.txtin your microSD
dtoverlay=hyperpixel4
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=720
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x5f026
dpi_timings=720 0 20 20 40 720 0 15 15 15 0 0 0 60 0 36720000 4- Than, safely remove the microSD card from your computer and insert it into the HackberryPi.
- Connect the HackberryPi to power, and optionally to a keyboard / mouse.
- The HackberryPi should now boot from the SD card and start DietPi.
- After DietPi boots up, you will be prompted to set up basic settings such as language and keyboard layout.
- Connect the HackberryPi to the internet (Use the
dietpi-configmenu to connect Wi-Fi (either via Wi-Fi or using a USB-to-Ethernet adapter). - Perform the initial update of DietPi if prompted.
DietPi provides a lightweight menu system to install additional software like web servers, databases, media servers, and more.
You can configure this using the DietPi-Software menu:
dietpi-softwareDietPi is now running on your Hackberry Zero!
The HackberryPi has a mini-HDMI port on its top side, allowing you to connect it to an additional screen. You can use the commands below to turn the display on or off.
vcgencmd display_power 0
vcgencmd display_power 1You can xfce install in the dietpi-software menu (see 8.)
A package must be installed for the GUI.
I only tested Xfce!
sudo apt install dbus-x11Start the GUI
startxsudo dpkg-reconfigure console-setup