Fix README for M2 Zero instructions, add link to kernel details in build-debian script.

This commit is contained in:
cyteen 2024-05-06 09:49:58 +01:00
parent 107e8021f8
commit 6dfde47db3
2 changed files with 22 additions and 6 deletions

View File

@ -43,7 +43,7 @@ docker run --rm \
The image will end up in /tmp/sd-images on the host. The image will end up in /tmp/sd-images on the host.
#### To build a boot image for Sinovoip Banana Pi M2+: #### To build a boot image for Sinovoip Banana Pi M2 Zero
```bash ```bash
docker build -t devuan/sd-images -f ./Dockerfile.devuan . docker build -t devuan/sd-images -f ./Dockerfile.devuan .
@ -51,7 +51,7 @@ mkdir -p /tmp/sd-images
docker run --rm \ docker run --rm \
-v /tmp/sd-images:/artifacts \ -v /tmp/sd-images:/artifacts \
devuan/sd-images \ devuan/sd-images \
build-boot banana_pi_m2_plus allwinner-h5 bananapi_m2_plus_h5_defconfig aarch64-linux-gnu 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. The image will end up in /tmp/sd-images on the host.
@ -72,3 +72,18 @@ docker run --rm \
``` ```
The image will end up in /tmp/sd-images on the host. 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.

View File

@ -11,25 +11,25 @@ case "${OS}-${ARCH}" in
devuan-armhf) devuan-armhf)
KERNEL=linux-image-armmp KERNEL=linux-image-armmp
URL=http://deb.devuan.org/merged URL=http://deb.devuan.org/merged
# KERNEL_URL=http://packages.debian.org/"${DIST}"/"${KERNEL}" # https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
SCRIPT=/usr/share/debootstrap/scripts/ceres SCRIPT=/usr/share/debootstrap/scripts/ceres
;; ;;
devuan-arm64) devuan-arm64)
KERNEL=linux-image-arm64 KERNEL=linux-image-arm64
URL=http://deb.devuan.org/merged URL=http://deb.devuan.org/merged
# KERNEL_URL=http://packages.debian.org/"${DIST}"/"${KERNEL}" # https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
SCRIPT=/usr/share/debootstrap/scripts/ceres SCRIPT=/usr/share/debootstrap/scripts/ceres
;; ;;
devuan-i386) devuan-i386)
KERNEL=linux-image-686 KERNEL=linux-image-686
URL=http://deb.devuan.org/merged URL=http://deb.devuan.org/merged
# KERNEL_URL=http://packages.debian.org/"${DIST}"/"${KERNEL}" # https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
SCRIPT=/usr/share/debootstrap/scripts/ceres SCRIPT=/usr/share/debootstrap/scripts/ceres
;; ;;
devuan-amd64) devuan-amd64)
KERNEL=linux-image-amd64 KERNEL=linux-image-amd64
URL=http://deb.devuan.org/merged URL=http://deb.devuan.org/merged
# KERNEL_URL=http://packages.debian.org/"${DIST}"/"${KERNEL}" # https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
SCRIPT=/usr/share/debootstrap/scripts/ceres SCRIPT=/usr/share/debootstrap/scripts/ceres
;; ;;
debian-armhf) debian-armhf)
@ -148,6 +148,7 @@ debian-*)
EOF EOF
;; ;;
devuan-*-ceres | devuan-*-unstable) devuan-*-ceres | devuan-*-unstable)
# https://pkginfo.devuan.org/sources.list.txt
tee debian/tmp/sources.list <<-EOF tee debian/tmp/sources.list <<-EOF
deb http://deb.devuan.org/merged ${DIST} main deb http://deb.devuan.org/merged ${DIST} main
deb-src http://deb.devuan.org/merged ${DIST} main deb-src http://deb.devuan.org/merged ${DIST} main