Skip to content

Install Raspbian Linux in chroot with a breeze. Build ARM on x86_64

License

Notifications You must be signed in to change notification settings

Diggen85/raspbian-chroot-install

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Raspbian Linux in chroot

About

This raspbian-chroot-install script simplifies installation of Raspbian in chroot. It utilizes qemu-user and binfmt to emulate armhf.

The main purpose of this script is to easily create an environment for (my) c't Raspion development. It is a fork of Alpine-chroot-install but has taken much more rework than I initially thought.

The Script works for me, in my netinst Debian VM. I can not guarantee that it will work anywhere else but it should run on an actual Debian or Ubuntu. You are free to open an Issue on Github.

Requirements

  • Linux system with common userland (Busybox or GNU coreutils)
  • POSIX-sh compatible shell (e.g. Busybox ash, dash, Bash, ZSH)
  • qemu-user ≥ 2.6 and binfmt, or apt-get (I don't know if 2.6 is really needed. This requirement is based on alpine-chroot-install)
  • loopback device / losetup to mount the raspbian.img
  • Filesystem-support for ext4 because this is the actual used FS in Raspbian
  • unzip for unziping the Image and parted for resizing

Usage

  • raspbian-chroot-install -h - for help
  • sudo raspbian-chroot-install - downloads raspbian-latest, adds 4GB Space to the Image, installs qemu and binmft (under Debian/Ubunu) and setups the chroot-environment under /raspbian
  • /raspbian/raspbian-chroot enter -u pi /bin/bash - enters the chroot with BASH-Shell as User pi (UID:1000, raspbians default User)

License

This project is licensed under MIT License. For the full text of the license, see the LICENSE file.

About

Install Raspbian Linux in chroot with a breeze. Build ARM on x86_64

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 89.1%
  • Makefile 10.9%