Skip to content

Commit

Permalink
Revert to previous boot firmware version
Browse files Browse the repository at this point in the history
An I²C-related issue has been introduced by updating to the March 24th
version of start_cd.elf/fixup_cd.dat.

Revert to the January 20th version until this is investigated and fixed.
  • Loading branch information
dwhinham committed Jun 14, 2022
1 parent bf95cbb commit 3ef3ee6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,23 @@ jobs:
with:
submodules: recursive

- name: Cache boot files
id: cache-boot-files
uses: actions/cache@v3
with:
path: |
sdcard/armstub8-rpi4.bin
sdcard/bcm2711-rpi-4-b.dtb
sdcard/bcm2711-rpi-400.dtb
sdcard/bcm2711-rpi-cm4.dtb
sdcard/bootcode.bin
sdcard/COPYING.linux
sdcard/fixup_cd.dat
sdcard/fixup4cd.dat
sdcard/LICENCE.broadcom
sdcard/start_cd.elf
sdcard/start4cd.elf
key: cache-boot-files-${{ hashFiles(join(env.boot-home, '/Makefile')) }}
# - name: Cache boot files
# id: cache-boot-files
# uses: actions/cache@v3
# with:
# path: |
# sdcard/armstub8-rpi4.bin
# sdcard/bcm2711-rpi-4-b.dtb
# sdcard/bcm2711-rpi-400.dtb
# sdcard/bcm2711-rpi-cm4.dtb
# sdcard/bootcode.bin
# sdcard/COPYING.linux
# sdcard/fixup_cd.dat
# sdcard/fixup4cd.dat
# sdcard/LICENCE.broadcom
# sdcard/start_cd.elf
# sdcard/start4cd.elf
# key: cache-boot-files-${{ hashFiles(join(env.boot-home, '/Makefile')) }}

- name: Cache WLAN firmware
id: cache-wlan-firmware
Expand All @@ -134,15 +134,17 @@ jobs:
key: cache-arm-toolchains-${{ env.toolchain-version }}

- name: Update PATH
if: steps.cache-boot-files.outputs.cache-hit != 'true'
# if: steps.cache-boot-files.outputs.cache-hit != 'true'
run: |
for triplet in arm-none-eabi aarch64-none-elf; do
echo "$HOME/gcc-arm-${{ env.toolchain-version }}-x86_64-${triplet}/bin" >> $GITHUB_PATH
done
- name: Download boot files and build ARM stub if not retrieved from cache
if: steps.cache-boot-files.outputs.cache-hit != 'true'
# if: steps.cache-boot-files.outputs.cache-hit != 'true'
# Temporarily patch boot firmware version
run: |
patch -N -p1 --no-backup-if-mismatch -r - -d external/circle-stdlib/libs/circle < patches/circle-44.5-revert-firmware.patch
make -C ${{ env.boot-home }} firmware armstub64
cp ${{ env.boot-home }}/armstub8-rpi4.bin \
${{ env.boot-home }}/bcm2711-rpi-4-b.dtb \
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- I²C communications failure on MiSTer introduced with newer Raspberry Pi firmware. The previous firmware version has been restored until this is resolved.

## [0.12.0] - 2022-06-13

### Added
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $(CIRCLE_STDLIB_CONFIG) $(CIRCLE_CONFIG)&:
$(CIRCLESTDLIBHOME)/configure --raspberrypi=$(RASPBERRYPI) --prefix=$(PREFIX)

# Apply patches
@patch -N -p1 --no-backup-if-mismatch -r - -d $(CIRCLEHOME) < patches/circle-44.5-revert-firmware.patch
@patch -N -p1 --no-backup-if-mismatch -r - -d $(CIRCLEHOME) < patches/circle-44.4-minimal-usb-drivers.patch

ifeq ($(strip $(GC_SECTIONS)),1)
Expand Down Expand Up @@ -121,6 +122,7 @@ clean:
veryclean: clean
# Reverse patches
@patch -R -N -p1 --no-backup-if-mismatch -r - -d $(CIRCLEHOME) < patches/circle-44.4-minimal-usb-drivers.patch
@patch -R -N -p1 --no-backup-if-mismatch -r - -d $(CIRCLEHOME) < patches/circle-44.5-revert-firmware.patch
@patch -R -N -p1 --no-backup-if-mismatch -r - -d $(FLUIDSYNTHHOME) < patches/fluidsynth-2.2.7-circle.patch

# Clean circle-stdlib
Expand Down
13 changes: 13 additions & 0 deletions patches/circle-44.5-revert-firmware.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/boot/Makefile b/boot/Makefile
index 6aadb4b..90395d4 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -9,7 +9,7 @@
#FIRMWARE = master

# Use firmware revision built/committed on: Mar 24 2022
-FIRMWARE ?= ea4c803c57697aad951a27fcd64c01ef16f9fe7f
+FIRMWARE ?= 827fdd073638fa7b7292d1148fe0af7465111eae

BASEURL = https://github.com/raspberrypi/firmware/blob/$(FIRMWARE)/boot

0 comments on commit 3ef3ee6

Please sign in to comment.