Skip to content

Gui-v2 with hardware acceleration on raspberry-pi#27

Open
rvdgracht wants to merge 9 commits into
victronenergy:masterfrom
rvdgracht:rpi4-gui-v2
Open

Gui-v2 with hardware acceleration on raspberry-pi#27
rvdgracht wants to merge 9 commits into
victronenergy:masterfrom
rvdgracht:rpi4-gui-v2

Conversation

@rvdgracht

Copy link
Copy Markdown

This PR detaches the raspberry pi platforms from the Victron kernel, updating it to 6.6.36. It also updates the bootfiles (rpi closed source binaries), and kernel firmware for wifi and bluetooth modules.

Slight changes ware made to the OS (rpi image only) so the gpu is now enabled used for GUI-v2!

This kernel is newer, well maintained and includes support for the rpi5.

Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
The hardware has pcie bus so why not include the tooling.

Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
This prevents inclusion of firmware in the os that is never used.

Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Enables the GPU on the raspberrypi4 platform.

Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
Signed-off-by: Robin van der Gracht <robinvandergracht@gmail.com>
@mpvader

mpvader commented Nov 2, 2024

Copy link
Copy Markdown
Contributor

Hi @rvdgracht, real nice!

Does this work on all Pis that we support (raspberrypi2 up to 4), and this adds raspberrypi5 support?

Do you have all Pis ie. did you test this?

See here.

Have you checked the venus kernel for patches that might be wanted for Pis as well?

Updating the boot files and/or kernel means all existing installs out there need to reflash their sd card? Or does swu update from v3.50 to the results of this PR work as well?

@rvdgracht

Copy link
Copy Markdown
Author

Hi mpvader,

The bootfiles and kernel should work for the rpi2 although I haven't tested it. I don't have rpi2 hardware, so feel free to try it :)
Adding support for the rpi5 is easy now but not (fully) included in this patch set.

I figured the rpi kernel should include everything required for the rpi hardware so I started there. I just checked and see some patches to slcan, a victron logo and several other small changes in the venus kernel. I can rebase those patches on the rpi kernel if applicable and required.

I'm not 100% sure, but I don't think swu updates the linux kernel and bootfiles for the rpi platform. Maybe @jhofstee can comment on that.

@nmbath

nmbath commented Nov 4, 2024

Copy link
Copy Markdown
Collaborator

@rvdgracht The SWU file is a complete image and includes updated kernel. This is installed in the /boot directory. What is not updated is the /u-boot directory which holds all the bootfiles and boot loader. If any of these files need modifying then a complete re-iamge is required.

It would probably make sense to create a new machine type for RaspberyPI5 and that way any changes to support that device would have it's own upgrade path and not require the RPI3 and RPI4 to need a complete re-image. Clearly if the boot files need updating for GUI-V2 that would drive a different need.

What would be worth testing is if the current boot files will work with a new kernel.

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

Successfully merging this pull request may close these issues.

3 participants