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

GenPi Image on a Raspberry Pi 5 #202

Open
AvroRJX opened this issue Jan 20, 2024 · 2 comments
Open

GenPi Image on a Raspberry Pi 5 #202

AvroRJX opened this issue Jan 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@AvroRJX
Copy link

AvroRJX commented Jan 20, 2024

Describe the bug
Below is an outline of the steps required to enable the GenPi64 image to boot on a Raspberry Pi 5.

To Reproduce
Steps to reproduce the behavior:
Mount a current GenPi64 image as chroot, also mount the /boot partition. Enter the chroot.

  • edit /etc/portage/repos.conf/genpi64.conf and change the line:
sync-git-clone-extra-opts = -single-branch branch master 

to read:

sync-git-clone-extra-opts = -single-branch -branch rpi5-kernel
  • If you are starting with a fresh image the repositories are empty to save space. So sync the genpi64 repository with the command:
    emaint -r genpi64 sync

after making the edit above.

If you have already synced the repositories I think it is necessary to delete everything under /var/db/repos/genpi64 and use the command above to resync the repository based on the rpi5-kernel branch.

  • create dist-kernel-6.1.63.ebuild by copying and renaming the latest version
  • Create the manifest for the 6.1.63 kernel:
    ebuild raspberrypi-kernel-6.1.63.ebuild manifest
  • Create /etc/portage/package.unmask directory
  • Create a file in the above directory containing the line below to unmask the virtual file
    =virtual/dist-kernel-6.1.63
  • Create a file in /etc/portage/package.keywords containing the lines below to unmask the updated kernel
    sys-kernel/raspberrypi-kernel ~arm64
    virtual/dist-kernel-6.1.63 ~arm64
  • These steps should now allow you to emerge the 6.1.63 kernel
    emerge -avu —-ignore-default-opts sys-kernel/raspberrypi-kernel
    A few hours later you should have the 6.1.63 kernel installed
  • The edit the /boot/config.txt file and add the following lines
    [pi5]
    kernel=kernel8-p4.img
    dtoverlay=vc4-kms-v3d-pi5
    max_framebuffers=2

Expected behavior
Updated image should boot on a RPi 5

@AvroRJX AvroRJX added the bug Something isn't working label Jan 20, 2024
@jonesmz
Copy link

jonesmz commented Jan 20, 2024

create dist-kernel-6.1.63.ebuild by copying and renaming the latest version
Create the manifest for the 6.1.63 kernel: ebuild raspberrypi-kernel-6.1.63.ebuild manifest

In this first line is dist-kernel-6.1.63 supposed to be raspberrypi-kernel-6.1.63 ?

@AvroRJX
Copy link
Author

AvroRJX commented Jan 21, 2024

That line is correct but I missed out an important prior step which is to enable the rpi5-branch of the genpi64 overlay in order to make the raspberrypi-kernel-6.1.63 ebuild available. I’ve updated the instructions about to add the necessary steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants