Skip to content
forked from RPi-Distro/pi-gen

Tool used to create the official Raspberry Pi OS images

License

Notifications You must be signed in to change notification settings

sugarlabs/pi-gen

 
 

Repository files navigation



Sugar OS for Raspberry Pi

This repository lets you generate a Raspberry Pi OS equipped with Sugar shell and add some additional activities.

Activities that are pre-installed:

  • Flappy
  • RPI Control Center
  • Number Guessing
  • Tower of Hanoi
  • Turtle Art
  • Default activities (Calculate, Chat, Image Viewer, Pippy, Read, Terminal, Write and Browse)

Generating OS

You must have "Raspberry Pi Lite OS 32-bit OS" installed on your Raspberry Pi to generate an OS. Yes, you need a Raspberry Pi to build an OS.

Once you have that, you can proceed to generate OS by following these steps:

  • Clone this repo on your Raspberry Pi
  • cd sugar-rpi-os
  • Install the dependencies (from below)
  • Run sudo ./build.sh

If build process finishes successfully, you will find your sugar OS under sugar-rpi-os/deploy folder

If you wish to use docker, you can do so by sudo ./build-docker.sh
(reference for docker usage).

Dependencies

To run the script one must install the required dependencies by running:

sudo apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc \
gpg pigz xxd arch-test

Installation of the sugar OS

After the zip image is built under deploy folder. The image can then be flashed onto a microSD card using rpi-imager.

In rpi-imager, under "Operating System" select "Use custom" option and then select the generated OS to flash. Username and password is also required to be set under Advanced option in the rpi-imager when prompted.

Development

Check pi-gen to understand the structure and function of each step.

Stage0 to Stage2 builds the Raspberry Pi Lite OS
Stage3 is concerned with the setup of Sugar on top of it and then export the image.

Edit Stage3 to add features/improvements

About

Tool used to create the official Raspberry Pi OS images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 97.7%
  • Dockerfile 1.5%
  • sed 0.8%