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

Missing CONFIG_RPIVID_MEM kernel config for Pi 4 #453

Open
richbayliss opened this issue Feb 3, 2020 · 10 comments · May be fixed by #457
Open

Missing CONFIG_RPIVID_MEM kernel config for Pi 4 #453

richbayliss opened this issue Feb 3, 2020 · 10 comments · May be fixed by #457

Comments

@richbayliss
Copy link

No description provided.

@balena-ci
Copy link
Contributor

[richbayliss] This issue has attached support thread https://jel.ly.fish/#/e260cf26-d5f4-4b23-89ff-b665e4551b67

@zub0r
Copy link

zub0r commented Feb 5, 2020

Where should this config with the others be added to rebuild the image with Broadcom driver?

@floion
Copy link
Collaborator

floion commented Feb 6, 2020

Hi @matohavo what are you trying to achieve?

floion added a commit that referenced this issue Feb 6, 2020
This was requested by customer.

Fixes: #453
Changelog-entry: Enable the rpivid-mem kernel module
Signed-off-by: Florin Sarbu <[email protected]>
@floion floion linked a pull request Feb 6, 2020 that will close this issue
@floion
Copy link
Collaborator

floion commented Feb 6, 2020

Fixed by #457

@zub0r
Copy link

zub0r commented Feb 6, 2020

Disclaimer - I'm new to all of this, so I might be totally off.

Ultimately I'm trying to make hardware accelerated decoding of HEVC video work with BalenaOS on RPi4.

If I understand correctly, the broadcom driver needs to be used for that matter, because ffmpeg patch requires video devices also from this driver:

/dev/rpivid-hevcmem
/dev/vc-mem
/dev/vcsm
/dev/vcsm-cma
/dev/vchiq
/dev/vcio
  • Those devices are not present in current 64bit, so I'm not sure if unavailability of vc4 on 64bit systems affect this somehow and if I have to use 32bit image.
  • I've tried to build 32bit image for RPi4 - the build succeeded after I added a coffee file, but it didn't boot. There was no coffee file for barys for 32bit RPi4, although the machine file is there - is there a reason for that?
  • guys from LibreELEC managed to get this working using V4L2, but they used newer kernel 5.4.16 - is it possible to build BalenaOS with new kernels?

Thanks

floion added a commit that referenced this issue Feb 7, 2020
This was requested by customer.

Fixes: #453
Changelog-entry: Enable the rpivid-mem kernel module
Signed-off-by: Florin Sarbu <[email protected]>
@floion
Copy link
Collaborator

floion commented Feb 9, 2020

Hi, I can do a remote host OS update on a test device of yours if you wish and then you can check if the CONFIG_RPIVID_MEM is all that's needed of if something else needs to be enabled.
We only ever tested the 64 bits OS and we have no plan going forward to add the 32 bits machine so no idea why it was not booting for you.
We will be switching to a new kernel once the BSP uses a newer kernel. I see that the newest BSP branch is zeus which has kernel 4.19.93 so 5.x is a long wait I would say.

@zub0r
Copy link

zub0r commented Feb 11, 2020

Ok, thank you. I need these configs:

CONFIG_BRCM_CHAR_DRIVERS=y
CONFIG_BCM_VCIO=y
CONFIG_BCM_VC_SM=y
CONFIG_BCM2835_DEVGPIOMEM=y
CONFIG_RPIVID_MEM=y

Building vc_sm for 64bit is failing.

balena-ci pushed a commit that referenced this issue Mar 2, 2020
This was requested by customer.

Fixes: #453
Changelog-entry: Enable the rpivid-mem kernel module
Signed-off-by: Florin Sarbu <[email protected]>
@zub0r
Copy link

zub0r commented Apr 1, 2020

Thanks for suggested approach, it helped.
Closes #453

balena-ci pushed a commit that referenced this issue Apr 24, 2020
This was requested by customer.

Fixes: #453
Changelog-entry: Enable the rpivid-mem kernel module
Signed-off-by: Florin Sarbu <[email protected]>
@floion
Copy link
Collaborator

floion commented Feb 16, 2022

Hi @zub0r is this still something you need?

@zub0r
Copy link

zub0r commented Feb 16, 2022

Momentarily not, the project came to a halt.

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 a pull request may close this issue.

4 participants