Skip to content

Pi 3 image doesn't boot when compiled with GCC version 10 or later #246

Open
@piersfinlayson

Description

@piersfinlayson

I've been experimenting with building pi1541 with various ARM GNU toolchain versions. Using up to 9.2-2019.12 produces a working Pi 3 kernel.img. However beyond that (starting with 10.2-2020.11) the kernel.img no longer boots.

I've been unable to find the cause for this, although the 10.2 and onwards binary is marginally smaller (473,008 bytes from 9.2 and 468,880 bytes from 10.2).

The Pi 3 kernel.img version from https://cbm-pi1541.firebaseapp.com/kernel.zip is 502,664 bytes, and looks (from the .travis.yml file) to have been built using GCC 5.4.

The most up to date version of the ARM GNU toolchain which I can getting working is therefore:

gcc-arm-9.2-2019.12-x86_64-arm-none-eabi.tar.xz

I've created a docker based script which builds pi1541 and creates the SD card, using GCC 9.2, here: https://github.com/piersfinlayson/pi1541-build

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions