Skip to content

Commit 731865b

Browse files
authored
Merge pull request #17 from evcc-io/chore/rpi_image_name
Rename raspberry image: rpi4b > rpi
2 parents 63f7279 + 8cb56a8 commit 731865b

File tree

6 files changed

+43
-38
lines changed

6 files changed

+43
-38
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
type: choice
1717
options:
1818
- all
19-
- rpi4b
19+
- rpi
2020
- nanopi-r3s
2121
draft:
2222
description: "Create as draft release for testing"
@@ -42,12 +42,12 @@ jobs:
4242
run: |
4343
# For scheduled runs, build all boards
4444
if [[ "${{ github.event_name }}" == "schedule" ]]; then
45-
MATRIX='["rpi4b","nanopi-r3s"]'
45+
MATRIX='["rpi","nanopi-r3s"]'
4646
else
4747
choice='${{ inputs.board }}'
4848
case "$choice" in
49-
all) MATRIX='["rpi4b","nanopi-r3s"]' ;;
50-
rpi4b) MATRIX='["rpi4b"]' ;;
49+
all) MATRIX='["rpi","nanopi-r3s"]' ;;
50+
rpi) MATRIX='["rpi"]' ;;
5151
nanopi-r3s) MATRIX='["nanopi-r3s"]' ;;
5252
*) echo "Unknown board: $choice" >&2; exit 1 ;;
5353
esac
@@ -148,7 +148,7 @@ jobs:
148148
with:
149149
upload_url: ${{ needs.prepare.outputs.release_upload_url }}
150150
asset_path: ${{ steps.find-files.outputs.img_zip }}
151-
asset_name: armbian_evcc-${{ needs.prepare.outputs.release_name }}_${{ matrix.board }}.img.zip
151+
asset_name: evcc_${{ needs.prepare.outputs.release_name }}_${{ matrix.board }}.img.zip
152152
asset_content_type: application/zip
153153

154154
- name: Upload SHA file to release
@@ -158,7 +158,7 @@ jobs:
158158
with:
159159
upload_url: ${{ needs.prepare.outputs.release_upload_url }}
160160
asset_path: ${{ steps.find-files.outputs.sha_file }}
161-
asset_name: armbian_evcc-${{ needs.prepare.outputs.release_name }}_${{ matrix.board }}.img.sha
161+
asset_name: evcc_${{ needs.prepare.outputs.release_name }}_${{ matrix.board }}.img.sha
162162
asset_content_type: text/plain
163163

164164
- name: Upload TXT file to release
@@ -168,5 +168,5 @@ jobs:
168168
with:
169169
upload_url: ${{ needs.prepare.outputs.release_upload_url }}
170170
asset_path: ${{ steps.find-files.outputs.txt_file }}
171-
asset_name: armbian_evcc-${{ needs.prepare.outputs.release_name }}_${{ matrix.board }}.img.txt
171+
asset_name: evcc_${{ needs.prepare.outputs.release_name }}_${{ matrix.board }}.img.txt
172172
asset_content_type: text/plain

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@ For more detailed instructions, see the [full documentation](https://docs.evcc.i
3636

3737
## Supported Boards
3838

39-
| Name | Tested | WiFi | Storage | Image Name | Instructions |
40-
| ----------------------------------------------------------------------------------------- | ------ | -------- | --------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
41-
| [Raspberry Pi 5](https://www.raspberrypi.com/products/raspberry-pi-5/) || Built-in | SD only | [`rpi4b`](https://github.com/evcc-io/images/releases) | see above |
42-
| [Raspberry Pi 4](https://www.raspberrypi.com/products/raspberry-pi-4-model-b/) || Built-in | SD only | [`rpi4b`](https://github.com/evcc-io/images/releases) | see above |
43-
| [Raspberry Pi 3b](https://www.raspberrypi.com/products/raspberry-pi-3-model-b/) || Built-in | SD only | [`rpi4b`](https://github.com/evcc-io/images/releases) | see above |
44-
| [Raspberry Pi Zero 2 W](https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/) || Built-in | SD only | [`rpi4b`](https://github.com/evcc-io/images/releases) | see above |
45-
| [NanoPi R3S](https://www.friendlyelec.com/index.php?route=product/product&product_id=311) || via USB | eMMC & SD | [`nanopi-r3s`](https://github.com/evcc-io/images/releases) | see above, [then copy to eMMC](https://docs.armbian.com/User-Guide_Getting-Started/#installation) |
39+
- **Raspberry Pi 4, 5, 3B+, Zero 2W**
40+
- Image: [evcc\_[version]\_rpi.img.zip](https://github.com/evcc-io/images/releases)
41+
- WiFi setup: supported
42+
- Storage: SD Card
4643

47-
✅ tested<br/>
48-
⚠️ untested (but should work)
44+
- **NanoPi R3S**
45+
- Image: [evcc\_[version]\_nanopi-r3s.img.zip](https://github.com/evcc-io/images/releases)
46+
- WiFi setup: via USB adapter ([see below](#network-recommendations))
47+
- Storage: SD or eMMC ([see instructions](https://docs.armbian.com/User-Guide_Getting-Started/#installation))
4948

5049
## Available Services
5150

@@ -173,10 +172,10 @@ git clone https://github.com/evcc-io/images.git
173172
cd images
174173

175174
# Build for Raspberry Pi
176-
./build-local.sh --board rpi4b
175+
./build-local.sh --board rpi
177176
```
178177

179-
The image will be at `dist/armbian_evcc-local_rpi4b.img.zip`.
178+
The image will be at `dist/evcc_local_rpi.img.zip`.
180179

181180
## Contributing
182181

build-local.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Usage: $0 --board <board>
1717
Build evcc images locally using Docker (mimics GitHub Actions workflow)
1818
1919
Arguments:
20-
--board <board> Target board (rpi4b, nanopi-r3s)
20+
--board <board> Target board (rpi, nanopi-r3s)
2121
2222
Examples:
23-
./build-local.sh --board rpi4b
23+
./build-local.sh --board rpi
2424
./build-local.sh --board nanopi-r3s
2525
2626
Supported boards:
27-
- rpi4b Raspberry Pi 4B
27+
- rpi Raspberry Pi
2828
- nanopi-r3s NanoPi R3S
2929
3030
EOF
@@ -57,12 +57,12 @@ check_requirements() {
5757

5858
validate_board() {
5959
case "$BOARD" in
60-
rpi4b|nanopi-r3s)
60+
rpi|nanopi-r3s)
6161
echo "✅ Board '$BOARD' is supported"
6262
;;
6363
*)
6464
echo "❌ Unsupported board: '$BOARD'"
65-
echo "Supported boards: rpi4b, nanopi-r3s"
65+
echo "Supported boards: rpi, nanopi-r3s"
6666
exit 1
6767
;;
6868
esac

rpi-imager.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "open source solar EV charging and smart heating",
66
"version": "2026-01.1",
77
"release_date": "2026-01-05",
8-
"url": "https://github.com/evcc-io/images/releases/download/v2026-01.1/armbian_evcc-2026-01.1_rpi4b.img.zip",
8+
"url": "https://github.com/evcc-io/images/releases/download/v2026-01.1/evcc_2026-01.1_rpi.img.zip",
99
"extract_size": 3070230528,
1010
"extract_sha256": "1343fdd672e1be72ac885d8fc03b365c1af61936891d6149706a03dddec613ca",
1111
"image_download_size": 739199004,

scripts/build-armbian.sh

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ RELEASE_NAME="local"
1414

1515
usage() {
1616
cat <<EOF
17-
Usage: $0 --board <armbian-board> [--release-name <name>]
17+
Usage: $0 --board <board> [--release-name <name>]
1818
1919
Examples:
20-
$0 --board rpi4b
20+
$0 --board rpi
2121
$0 --board nanopi-r3s --release-name 2025-01
2222
23-
Supported boards are those supported by Armbian mainline (e.g. rpi4b, nanopi-r3s).
23+
Supported boards: rpi, nanopi-r3s
2424
EOF
2525
}
2626

@@ -39,6 +39,12 @@ if [[ -z "$BOARD" ]]; then
3939
exit 2
4040
fi
4141

42+
# Map user-facing board names to Armbian internal board names
43+
case "$BOARD" in
44+
rpi) ARMBIAN_BOARD="rpi4b" ;;
45+
*) ARMBIAN_BOARD="$BOARD" ;;
46+
esac
47+
4248
mkdir -p "$REPO_ROOT/dist" "$REPO_ROOT/logs"
4349

4450
# Prepare a temporary userpatches with variables passed to customize-image.sh
@@ -64,7 +70,7 @@ ENV
6470
cp -a "$REPO_ROOT/userpatches/." "$BUILDTMP/userpatches/"
6571
chmod +x "$BUILDTMP/userpatches/customize-image.sh" || true
6672

67-
IMAGE_OUT_DIR="$REPO_ROOT/dist/${BOARD}"
73+
IMAGE_OUT_DIR="$REPO_ROOT/dist/${ARMBIAN_BOARD}"
6874
mkdir -p "$IMAGE_OUT_DIR"
6975

7076
# Clone Armbian build framework and run it in Docker mode (it will build its own container image).
@@ -80,7 +86,7 @@ git clone --depth=1 --branch v25.11.1 https://github.com/armbian/build.git "$BUI
8086
rm -rf "$BUILD_DIR/userpatches"
8187
cp -a "$BUILDTMP/userpatches" "$BUILD_DIR/userpatches"
8288

83-
echo "Starting build for board=${BOARD} release=bookworm release_name=${RELEASE_NAME} using Armbian build"
89+
echo "Starting build for board=${ARMBIAN_BOARD} (${BOARD}) release=bookworm release_name=${RELEASE_NAME} using Armbian build"
8490

8591
pushd "$BUILD_DIR" >/dev/null
8692
EXPERT=yes \
@@ -92,7 +98,7 @@ pushd "$BUILD_DIR" >/dev/null
9298
VENDORURL="https://evcc.io" \
9399
IMAGE_SUFFIX="evcc-${RELEASE_NAME}" \
94100
./compile.sh \
95-
BOARD="$BOARD" \
101+
BOARD="$ARMBIAN_BOARD" \
96102
BRANCH=current \
97103
RELEASE="bookworm" \
98104
BUILD_MINIMAL=no \
@@ -108,18 +114,18 @@ if compgen -G "$BUILD_DIR/output/images/*" > /dev/null; then
108114
cp -a "$BUILD_DIR/output/images/"* "$IMAGE_OUT_DIR/"
109115
fi
110116

111-
# Rename outputs to armbian_evcc-[release-name]_[board].img[...]
117+
# Rename outputs to evcc_[release-name]_[board].img[...]
112118
shopt -s nullglob
113119
for f in "$IMAGE_OUT_DIR"/Armbian-*; do
114120
base_ext="${f##*.}"
115121
if [[ "$f" == *.img ]]; then
116-
mv -f "$f" "$IMAGE_OUT_DIR/armbian_evcc-${RELEASE_NAME}_${BOARD}.img"
122+
mv -f "$f" "$IMAGE_OUT_DIR/evcc_${RELEASE_NAME}_${BOARD}.img"
117123
elif [[ "$f" == *.img.sha ]]; then
118-
mv -f "$f" "$IMAGE_OUT_DIR/armbian_evcc-${RELEASE_NAME}_${BOARD}.img.sha"
124+
mv -f "$f" "$IMAGE_OUT_DIR/evcc_${RELEASE_NAME}_${BOARD}.img.sha"
119125
elif [[ "$f" == *.img.txt ]]; then
120-
mv -f "$f" "$IMAGE_OUT_DIR/armbian_evcc-${RELEASE_NAME}_${BOARD}.img.txt"
126+
mv -f "$f" "$IMAGE_OUT_DIR/evcc_${RELEASE_NAME}_${BOARD}.img.txt"
121127
elif [[ "$f" == *.img.zip ]]; then
122-
mv -f "$f" "$IMAGE_OUT_DIR/armbian_evcc-${RELEASE_NAME}_${BOARD}.img.zip"
128+
mv -f "$f" "$IMAGE_OUT_DIR/evcc_${RELEASE_NAME}_${BOARD}.img.zip"
123129
fi
124130
done
125131
shopt -u nullglob

scripts/rpi-imager/update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ fi
3535
RELEASE_DATE=$(echo "$RELEASE_INFO" | jq -r '.publishedAt' | cut -d'T' -f1)
3636
VERSION=$(echo "$LATEST_RELEASE" | sed 's/^v//')
3737

38-
# Find the rpi4b image (which works on RPi 3, 4, and 5)
39-
RPI_IMAGE_ZIP=$(echo "$RELEASE_INFO" | jq -r '.assets[] | select(.name | contains("rpi4b") and contains(".img.zip")) | .name')
40-
RPI_IMAGE_SHA=$(echo "$RELEASE_INFO" | jq -r '.assets[] | select(.name | contains("rpi4b") and contains(".img.sha")) | .name')
38+
# Find the rpi image (which works on RPi 3, 4, and 5)
39+
RPI_IMAGE_ZIP=$(echo "$RELEASE_INFO" | jq -r '.assets[] | select(.name | contains("_rpi") and contains(".img.zip")) | .name')
40+
RPI_IMAGE_SHA=$(echo "$RELEASE_INFO" | jq -r '.assets[] | select(.name | contains("_rpi") and contains(".img.sha")) | .name')
4141

4242
if [ -z "$RPI_IMAGE_ZIP" ] || [ -z "$RPI_IMAGE_SHA" ]; then
4343
echo "RPi image not found in release"

0 commit comments

Comments
 (0)