Add Dockerfile to build Devuan Linux images.
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, bookworm) (push) Failing after 14m21s
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, bullseye) (push) Failing after 6m18s
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, trixie) (push) Has been cancelled
Details
sd-card-images CI / build docker images (push) Has been cancelled
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, sid) (push) Has been cancelled
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, bookworm) (push) Failing after 14m21s
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, bullseye) (push) Failing after 6m18s
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, trixie) (push) Has been cancelled
Details
sd-card-images CI / build docker images (push) Has been cancelled
Details
sd-card-images CI / test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }} (i386, debian, sid) (push) Has been cancelled
Details
Dockerfile_devuan is FROM devuan/devuan:daedalus README_devuan.md
This commit is contained in:
parent
aeca8502e7
commit
287dd113ad
|
|
@ -0,0 +1,59 @@
|
||||||
|
FROM devuan/devuan:daedalus
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get --assume-yes \
|
||||||
|
--no-install-recommends \
|
||||||
|
install debootstrap \
|
||||||
|
debian-archive-keyring \
|
||||||
|
ca-certificates \
|
||||||
|
qemu-user \
|
||||||
|
qemu-user-static \
|
||||||
|
qemu-system-arm \
|
||||||
|
qemu-system-x86 \
|
||||||
|
device-tree-compiler \
|
||||||
|
gcc \
|
||||||
|
gcc-arm-none-eabi \
|
||||||
|
make \
|
||||||
|
git \
|
||||||
|
bc \
|
||||||
|
bzip2 \
|
||||||
|
pigz \
|
||||||
|
bison \
|
||||||
|
flex \
|
||||||
|
python3-dev \
|
||||||
|
python3-pkg-resources \
|
||||||
|
python3-pyelftools \
|
||||||
|
python3-setuptools \
|
||||||
|
swig \
|
||||||
|
parted \
|
||||||
|
e2fsprogs \
|
||||||
|
dosfstools \
|
||||||
|
mtools \
|
||||||
|
pwgen \
|
||||||
|
libssl-dev \
|
||||||
|
libgnutls28-dev \
|
||||||
|
uuid-dev \
|
||||||
|
parallel \
|
||||||
|
ssh \
|
||||||
|
sshpass \
|
||||||
|
unzip && \
|
||||||
|
([ "$(uname -m)" = "aarch64" ] && \
|
||||||
|
apt-get --assume-yes \
|
||||||
|
install gcc-arm-linux-gnueabihf \
|
||||||
|
gcc-i686-linux-gnu \
|
||||||
|
gcc-x86-64-linux-gnu || :) && \
|
||||||
|
([ "$(uname -m)" = "x86_64" ] && \
|
||||||
|
apt-get --assume-yes \
|
||||||
|
install gcc-arm-linux-gnueabihf \
|
||||||
|
gcc-aarch64-linux-gnu \
|
||||||
|
gcc-i686-linux-gnu || :) && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
rm -f /var/log/*.log
|
||||||
|
RUN wget -q "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -O "awscliv2.zip" && \
|
||||||
|
unzip -q awscliv2.zip && \
|
||||||
|
./aws/install && \
|
||||||
|
rm -rf aws
|
||||||
|
ENV PATH="/debimg/scripts:${PATH}"
|
||||||
|
COPY . /debimg
|
||||||
|
WORKDIR /debimg
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
# Debian SD card images
|
||||||
|
|
||||||
|
This repository is a bunch of scripts to build SD card images that various [single-board computers](https://en.wikipedia.org/wiki/Single-board_computer) (SBC) can boot. Emphasis is on pureness; pure Debian and pure mainline U-boot.
|
||||||
|
|
||||||
|
## Pre-built images
|
||||||
|
|
||||||
|
Pre-built images ready for download are availble at [sd-card-images.johang.se](https://sd-card-images.johang.se).
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
The generated SD card images are made up of two separate images:
|
||||||
|
|
||||||
|
- **boot-BOARD.bin**: Boot image that contains partition table, U-Boot and chip-specific code. The boot image will only work on the board it's built for. The filename indicates which board it's built for.
|
||||||
|
- **debian-ARCH-VERSION-PASSWORD.bin**: Debian ext4 root filesystem image that contains a complete Debian installation, including kernel, initrd and device tree. This Debian image is generic and will work on all chips and boards with the CPU architecture it's built for. The filename indicates Debian version, CPU architecture and default root password.
|
||||||
|
|
||||||
|
These two images are the concatenated to a single image, which is then written to SD card, for example like this:
|
||||||
|
|
||||||
|
$ zcat boot-raspberrypi_3b.bin.gz debian-buster-arm64-XXXXXX.bin.gz > sd-card.img
|
||||||
|
# dd if=sd-card.img of=/dev/sdXXX
|
||||||
|
|
||||||
|
### Build your own Devuan boot image
|
||||||
|
|
||||||
|
#### To build a boot image for Raspberry Pi 3 B:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t devuan/sd-images -f ./Dockerfile.devuan .
|
||||||
|
mkdir -p /tmp/sd-images
|
||||||
|
docker run --rm -v /tmp/sd-images:/artifacts sd-images build-boot raspberrypi_3b bcm2837 rpi_3_defconfig aarch64-linux-gnu
|
||||||
|
```
|
||||||
|
|
||||||
|
The image will end up in /tmp/sd-images on the host.
|
||||||
|
|
||||||
|
#### To build a boot image for Pine64 Rockpro64:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t devuan/sd-images -f ./Dockerfile.devuan .
|
||||||
|
mkdir -p /tmp/sd-images
|
||||||
|
docker run --rm \
|
||||||
|
-v /tmp/sd-images:/artifacts \
|
||||||
|
devuan/sd-images \
|
||||||
|
build-boot ROCKPro64 rk3399 rockpro64-rk3399_defconfig aarch64-linux-gnu
|
||||||
|
```
|
||||||
|
|
||||||
|
The image will end up in /tmp/sd-images on the host.
|
||||||
|
|
||||||
|
#### To build a boot image for Sinovoip Banana Pi M2 Zero
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t devuan/sd-images -f ./Dockerfile.devuan .
|
||||||
|
mkdir -p /tmp/sd-images
|
||||||
|
docker run --rm \
|
||||||
|
-v /tmp/sd-images:/artifacts \
|
||||||
|
devuan/sd-images \
|
||||||
|
build-boot banana_pi_m2_zero allwinner-h2+ bananapi_m2_zero_defconfig arm-linux-gnueabihf
|
||||||
|
```
|
||||||
|
|
||||||
|
The image will end up in /tmp/sd-images on the host.
|
||||||
|
|
||||||
|
### Build your own Debian ext4 root filesystem image
|
||||||
|
|
||||||
|
#### To build a Devuan ext4 root filesystem image for arm64:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t devuan/sd-images -f ./Dockerfile.devuan .
|
||||||
|
mkdir -p /tmp/sd-images
|
||||||
|
docker run --rm \
|
||||||
|
-v /tmp/sd-images:/artifacts \
|
||||||
|
-v `pwd`:/debimg \
|
||||||
|
--privileged \
|
||||||
|
devuan/sd-images \
|
||||||
|
build-debian devuan arm64 daedalus
|
||||||
|
```
|
||||||
|
|
||||||
|
The image will end up in /tmp/sd-images on the host.
|
||||||
|
|
||||||
|
#### To build a Devuan ext4 root filesystem image for armhf:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t devuan/sd-images -f ./Dockerfile.devuan .
|
||||||
|
mkdir -p /tmp/sd-images
|
||||||
|
docker run --rm \
|
||||||
|
-v /tmp/sd-images:/artifacts \
|
||||||
|
-v `pwd`:/debimg \
|
||||||
|
--privileged \
|
||||||
|
devuan/sd-images \
|
||||||
|
build-debian devuan armhf daedalus
|
||||||
|
```
|
||||||
|
|
||||||
|
The image will end up in /tmp/sd-images on the host.
|
||||||
Loading…
Reference in New Issue