All Projects → emojifreak → debian-rpi-image-script

emojifreak / debian-rpi-image-script

Licence: LGPL-2.1 License
Shell script to build Debian and Devuan SD card image booting the Raspberry Pi series

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to debian-rpi-image-script

debian900
DebiaN900 - A set of scripts to facilitate the installation of Devuan or Debian GNU/Linux on the Nokia N900
Stars: ✭ 35 (+133.33%)
Mutual labels:  debian, devuan
howtodebuntu
Tweaks for Debian/Ubuntu Distro's
Stars: ✭ 329 (+2093.33%)
Mutual labels:  debian, devuan
Grub-Themes
Grub themes that will give a customized look to the Grub2 menu during boot.
Stars: ✭ 34 (+126.67%)
Mutual labels:  debian
ansible-dnsmasq
Ansible role to set up Dnsmasq in Debian-like systems
Stars: ✭ 18 (+20%)
Mutual labels:  debian
ansible-debian
Buildfiles: Ansible automated leight-weight and sensible Debian provisioning
Stars: ✭ 83 (+453.33%)
Mutual labels:  debian
wireguard-initramfs
Use dropbear over wireguard.
Stars: ✭ 158 (+953.33%)
Mutual labels:  debian
bitbucket-pipelines-debian-8
Bitbucket Pipelines Docker image based on Debian 8 (Jessie) with PHP/MySQL (and more !)
Stars: ✭ 18 (+20%)
Mutual labels:  debian
Ubuntu-Launchpad
The Ubuntu version of Apple's/MacOS Launchpad application
Stars: ✭ 21 (+40%)
Mutual labels:  debian
sublime-patcher
Bash script for patching/cracking Sublime Text on Linux
Stars: ✭ 20 (+33.33%)
Mutual labels:  debian
maldetect
Debian packaging of Linux Malware Detect (https://github.com/rfxn/linux-malware-detect)
Stars: ✭ 48 (+220%)
Mutual labels:  debian
ansible-kafka
Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
Stars: ✭ 56 (+273.33%)
Mutual labels:  debian
mailad
Software to provision a mail server with users from a Windows or Samba 4 Active Directory
Stars: ✭ 21 (+40%)
Mutual labels:  debian
PXESetupWizard
PXE Setup Wizard. Netboot Debian, Ubuntu, System Rescue CD, FreeDOS and more.
Stars: ✭ 96 (+540%)
Mutual labels:  debian
intellij-idea-ultimate
Unofficial .deb packages of IntelliJ IDEA Ultimate Edition. This is a mirror of https://gitlab.com/mmk2410/intellij-idea-ultimate
Stars: ✭ 16 (+6.67%)
Mutual labels:  debian
php-deb-packager
A PHP library to generate `.deb` packages (Software distribution)
Stars: ✭ 54 (+260%)
Mutual labels:  debian
raspap-awesome
🎉 A curated list of awesome things created with RaspAP
Stars: ✭ 55 (+266.67%)
Mutual labels:  debian
packer-kvm
Create VM templates with Packer for usage with Libvirt/KVM virtualization : CentOS 7, CentOS 8, CentOS 8 Stream, Alma Linux, Rocky Linux, Bionic (Ubuntu 1804), Focal (Ubuntu 2004), Debian 11 (stable), Kali Linux, Fedora 33 and Fedora 34.
Stars: ✭ 99 (+560%)
Mutual labels:  debian
ansible-role-packer-debian
Ansible Role - Packer Debian/Ubuntu Configuration for Vagrant VirtualBox
Stars: ✭ 32 (+113.33%)
Mutual labels:  debian
cloud-desktops
Cloud-based Virtual Desktops on Google Cloud Platform
Stars: ✭ 14 (-6.67%)
Mutual labels:  debian
home-assistant-ansible
🎭 Ansible playbooks/role for the setup of Home Assistant.
Stars: ✭ 48 (+220%)
Mutual labels:  debian

NEW: kernel build script by clang is available at https://gist.github.com/emojifreak/180b335cd58edd9a64fc42b85f735c6d

Built images are available at http://114.150.218.139:63873/RPi-boot-images/ built by auto-image-builder.sh (images refreshed on 16 August 2021 after Debian 11 Bullseye release). Now these images support USB booting if you have updated the RPi firmware as https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md .

Warning: You need a recent version of qemu-user-static package. Otherwise the scripts here will probably fail.

debian-rpi-image-script

Shell script to build Debian SD card image booting the Raspberry Pi series. Official Debian SD card images are available at https://raspi.debian.net/ Features provided by this shell script are

  • GPT partitioning and boot from USB.
  • Choice of Debian 10 Buster, 11 Bullseye and later.
  • Choice among ifupdown, Network Manager and systemd-networkd for network configuration
  • Choice of package coverage according to the package priority
  • btrfs and ext4 filesystems can be chosen as /. btrfs compress-force=lzo significantly increases the storage speed and size.
  • Setting the size of a swap partition (or lack of it)
  • Choice of timezone and locale
  • Choice of wireless SSID
  • Choice of keyboard layout

If you find any trouble, please report it as a github issue here. Other build shell scripts are listed below.

raspberripyOS-rpi-sd-builder

Use the kernel from Raspberry Pi OS. Except that, it is the same as above. Use of Gnome Wayland requires module_blacklist=v3d. This is a bug in gnome-shell.

devuan-rpi-image-script

SD card image builder is also available here for Devuan 3 Beowulf, 4 Chimaera and later. Devuan official images are available at https://arm-files.devuan.org/ , which does not have an image for RPi4, but the above script can produce an image booting RPi4 (incl. 8GB model). The two shell scripts are similar except packages given as an argument to mmdebstrap, namely, systemd-sysv,udev,debian-archive-keyring versus sysvinit-core,eudev,devuan-keyring,sntp. Hardware clock can be corrected by sntp -S pool.ntp.org as root.

Additional packages

  • Graphical User Interface can be installed by tasksel or apt-get install task-xfce-desktop.
  • language supports can be installed, for example, by apt-get install task-japanese task-japanese-desktop.

Running 32-bit kernel on RPi 3 or 4

32-bit kernel on 64-bit ARM CPU is unsupported by Debian kernel team, unlike the Raspberry Pi OS. build-raspi-kernel.sh can build a 32-bit kernel runnable on RPi 3 and 4. Compilation must be done in a Debian 11 Bullseye armhf (container or VM or a real hardware). The missing config item in the Debian kernel is CONFIG_PCIE_BRCMSTB=m, which is turned on only for arm64. 32-bit kernel usable on RPi 3 and 4 are available from http://114.150.218.139:63873/32bit-kernels-for-64bit-raspberrypi/

Comments on Linux 5.10 and Rapsberry Pi 4 (as of April 2021)

32-bit executables on 64-bit linux-image-arm64 kernel

linux-image-arm64 64-bit kernel can run armhf 32-bit executables. If armhf,arm64 is given to the above scripts as the target architecture in place of armhf or arm64, then an SD card with 32-bit executables and 64-bit kernel will be built. It should boot if debian-rpi-sd-builder.sh is used. It will not if devuan-rpi-sd-builder.sh is used, and the following steps are necessary. The difference comes from systemd-nspawn versus chroot.

  1. mount /dev/mmcblk0p2 /mnt
  2. mount /dev/mmcblk0p1 /mnt/boot/firmware
  3. echo arm_64bit=1 >>/mnt/boot/firmware/config.txt
  4. cp -p /mnt/usr/lib/linux-image-*-arm64/broadcom/bcm*rpi*.dtb /mnt/boot/firmware
  5. umount /mnt/boot/firmware
  6. umount /mnt

Other image builders

If you find another builder not listed above, please open a github issue. Where is the Ubuntu official builder?

Debian ARM mailing list

https://lists.debian.org/debian-arm/ is a mailing list for talking Debian ARM related topics, including Raspberry Pi.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].