Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

readme.md

DietPi installation on HackberryPi Zero 2W

1. Preparation

  • 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

2. Download DietPi Image

  1. Visit the official DietPi website.
  2. Go to the Download section, choose the Raspberry section and than the Raspberry Pi 2/3/4/Zero 2 version.
  3. Download the DietPi image for the Raspberry Pi (make sure it’s for the Raspberry Pi Zero 2 W).

3. Download and Install Rufus

  1. Download Rufus from the official Rufus website.
  2. Install Rufus on your computer if you haven’t already.

4. Prepare the microSD Card

  1. Insert the microSD card your computer using a card reader.
  2. Open Rufus.

5. Write DietPi to the microSD Card

  1. In Rufus, select your microSD card as the target drive.
  2. Click Select and find the DietPi image you downloaded earlier (it should be a .img.yz file).
  3. Make sure under "Partition Scheme" it’s set to MBR, and under "File System" it’s set to Large FAT32.
  4. Click Start to write the image to the microSD card. Wait until the process is completed.

6. Set Up the Raspberry Pi

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.

  1. Once the writing is done, copy the display-driver into this folder /boot/overlays to the microSD. You can find the display-driver here: Display-driver)
  2. Add the following lines at the end in /boot/config.txt in 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
  1. Than, safely remove the microSD card from your computer and insert it into the HackberryPi.
  2. Connect the HackberryPi to power, and optionally to a keyboard / mouse.
  3. The HackberryPi should now boot from the SD card and start DietPi.

7. Initial Configuration of DietPi

  1. After DietPi boots up, you will be prompted to set up basic settings such as language and keyboard layout.
  2. Connect the HackberryPi to the internet (Use the dietpi-config menu to connect Wi-Fi (either via Wi-Fi or using a USB-to-Ethernet adapter).
  3. Perform the initial update of DietPi if prompted.

8. Install Software on DietPi

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-software

9. All Done!

DietPi is now running on your Hackberry Zero!

Additional setup

HDMI-Port

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 1

For GUI (Xfce)

You 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-x11

Start the GUI

startx

Change font size in terminal

sudo dpkg-reconfigure console-setup