Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 4 doesn't auto-switch to 64bit mode based on kernel image filename #1193

Open
agherzan opened this issue Jul 17, 2019 · 0 comments

Comments

@agherzan
Copy link

commented Jul 17, 2019

Using the (current) latest firmware version (https://github.com/raspberrypi/firmware/releases/tag/1.20190709) I observed that in order to boot a 64bit kernel image I need to force the configuration using arm_64bit=1. The kernel image name (kernel8.img) seems to not be enough for the firmware to put the arm in 64bit mode even though this seems to be the expected behavior (raspberrypi/linux#3057 (comment)).

@agherzan agherzan changed the title Raspberry Pi 4 doesn't auto-swtich to 64bit mode based on kernel image filename Raspberry Pi 4 doesn't auto-switch to 64bit mode based on kernel image filename Jul 17, 2019

agherzan added a commit to agherzan/u-boot that referenced this issue Jul 19, 2019

arm: mach-bcm283x: Define configs for RaspberryPi 4
Define two target configs for Raspberry Pi 4 (32 and 64bit) and the
corresponding BCM2838* configs.

Be aware of the current limitation in firmware which requires an
explicit configuration to force the arm in 64bit mode when the
respective target is used:
raspberrypi/firmware#1193

Signed-off-by: Andrei Gherzan <andrei@balena.io>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>

agherzan added a commit to balena-os/u-boot that referenced this issue Jul 19, 2019

arm: mach-bcm283x: Define configs for RaspberryPi 4
Define two target configs for Raspberry Pi 4 (32 and 64bit) and the
corresponding BCM2838* configs.

Be aware of the current limitation in firmware which requires an
explicit configuration to force the arm in 64bit mode when the
respective target is used:
raspberrypi/firmware#1193

Signed-off-by: Andrei Gherzan <andrei@balena.io>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>

aswild added a commit to aswild/meta-newbs that referenced this issue Jul 20, 2019

rpi4: remove armstub and 1G memory limit
The lastest firmware includes the updated armstubs, so no need to
rebuild them in Yocto. (meta-raspberrypi commit 69da331154852f5d62d6cf7a69c4ddb34f5564d0)

RPi kernel commit d5dc848c982dff2e020f294e384447efe6ea6617 mitigates the
DMA issues with memory over 1G, so the total_mem=1024 workaround can be
removed.

arm_64bit is still needed because the firmware doesn't set it
automatically based on the presence of kernel8.img, even though it
should (raspberrypi/firmware#1193)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.