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

RPi5: Kernel 6.1.0-rpi6-rpi-2712 doesn't work with ARMHF chroot #5761

Closed
free-x opened this issue Nov 30, 2023 · 1 comment
Closed

RPi5: Kernel 6.1.0-rpi6-rpi-2712 doesn't work with ARMHF chroot #5761

free-x opened this issue Nov 30, 2023 · 1 comment

Comments

@free-x
Copy link
Contributor

free-x commented Nov 30, 2023

Describe the bug

I'm trying to build and use ARMHF chroots on RPi5. It fails with "Segmentation fault"

Steps to reproduce the behaviour

sudo apt install debootstrap
sudo debootstrap --arch=armhf bookworm /opt/mychroot

If you have Ready-to-use ARMHF Chroot
sudo chroot /path/to/chrooted-env

Device (s)

Other

System

$ cat /etc/rpi-issue
Raspberry Pi reference 2023-10-10
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 962bf483c8f326405794827cce8c0313fd5880a8, stage2

$ vcgencmd version
2023/10/30 16:45:10
Copyright (c) 2012 Broadcom
version 30de0ba5 (release) (embedded)

$ uname -a
Linux pi5 6.1.0-rpi6-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux

Logs

No response

Additional context

$ sudo chroot "/opt/test" /bin/true
/bin/true: error while loading shared libraries: libc.so.6: ELF load command address/offset not page-aligned
$ echo $?
127

$ sudo chroot bookworm-armhf
Segmentation fault

@popcornmix
Copy link
Collaborator

This is know. e.g. raspberrypi/bookworm-feedback#107
You need to use the 4k pagesize kernel to run 32-bit elf files.
Add kernel=kernel8.img to config.txt

@pelwell pelwell closed this as completed Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants