Skip to content

VC firmware for running libcamera from the Naush branch. #1

Closed

Description

@naushir

Build kernel from the tree:
https://github.com/naushir/linux/tree/rpi-4.19.y-libcamera

Extract and copy the attached file to the /boot/ partition of the sdcard.
start4x.zip

Activity

  1. naushir commented on Jan 6, 2020

    @naushir
    CollaboratorAuthor

    Need the fixup file as well.
    fixup4x.zip

  2. kbingham commented on Jan 20, 2020

    @kbingham
    Collaborator

    Hi Naush,
    Are these firmwares available for the RPi3?
    Will it be feasible to run the same system on the Pi3 and the Pi4 ?

    I want to start looking at the upstreaming tasks, which due to missing features on the Pi4, we can start on the Pi3, but it would be nice to run the whole camera system in the same way for both?

    (I realise there are more patches required on top of the kernel for the ISP, but I guess this is also partly just the question - will we expect RPi3 and RPi4 to have a similar level of support)

  3. 6by9 commented on Jan 20, 2020

    @6by9
    Collaborator

    Currently Pi0-3 and Pi4 release firmwares are built from different source branches, although they should both build from the Pi4 branch.
    Memory says that you should be able to rename start4*.elf to start_.elf, and likewise for the fixup.dat files, and they should work straight off on a Pi3. You'll lose decode of H263 & MPEG4, but otherwise it should be fine.

    Yes, support levels on Pi3 and Pi4 should be the same.
    Pi2v1.2 is the same BCM2837 chip as Pi3 so again should be able to run libcamera fairly happily.
    In theory it could run on Pi 0/1, but I suspect reality may be different.

  4. kbingham commented on Jan 20, 2020

    @kbingham
    Collaborator

    Thanks for the info. I'll give the renames a go on my Pi3. I don't think I'll need decode so I don't mind losing that. It's only temporary anyway :-D

  5. kbingham commented on Feb 20, 2020

    @kbingham
    Collaborator

    Hi Naush/Dave

    Jacopo is trying to get up and running on his RPi3.
    Could we confirm the rename of start4x.elf goes to start_x.elf?

    Or is it start.elf? There's a few start.. variants ... so we don't want to get it wrong ;-)

  6. 6by9 commented on Feb 20, 2020

    @6by9
    Collaborator

    start4x.elf to start_x.elf, and fixup4x.dat to fixup_x.dat, as long as he also has startx=1 in /boot/config.txt.

    start is the standard one.
    start_x is the extended firmware including all the firmware side camera stack. Add startx=1 to config.txt to select.
    start_cd is a cutdown one with no codecs, camera, or many other things, mainly to provide as much RAM to the ARM. Selected if gpu_mem is <=32MB IIRC
    start_db enables firmware side assert logging. Add start_debug=1 to config.txt to select.

  7. naushir commented on Feb 20, 2020

    @naushir
    CollaboratorAuthor

    I really ought to update the firmware binary on this issue at some point. Some of the parameters (particularly Lens Shading) have moved on from when this build was made, so you may find some tiny image quality issues with the existing firmware.

  8. kbingham commented on Feb 26, 2020

    @kbingham
    Collaborator

    I'm experiencing a kernel crash when running on the IMX477 (first time I've got round to trying it). Could it be related to having an outdated firmware from here?

    vcgencmd version
    Dec 16 2019 13:30:29
    Copyright (c) 2012 Broadcom
    version f80a8b76382960934865c539989ede39f02140b1 (clean) (release) (start_x)

  9. kbingham commented on Feb 26, 2020

    @kbingham
    Collaborator

    I get a couple of pretty pictures like this before a kernel crash:
    imx477-2

  10. naushir commented on Feb 26, 2020

    @naushir
    CollaboratorAuthor

    I'm experiencing a kernel crash when running on the IMX477 (first time I've got round to trying it). Could it be related to having an outdated firmware from here?

    vcgencmd version
    Dec 16 2019 13:30:29
    Copyright (c) 2012 Broadcom
    version f80a8b76382960934865c539989ede39f02140b1 (clean) (release) (start_x)

    This could very well be the case. Looks like a lens shading problem.

    I need to pop out of the office right now. Once I get back, I'll prepare an updated firmware to try out unless @6by9 could do it while I'm out?

  11. kbingham commented on Feb 26, 2020

    @kbingham
    Collaborator

    Thanks @naushir No rush - I was just trying to report everything in case it was an extended problem. If it's just a firmware rebuild then I can wait for a build.

  12. naushir commented on Feb 26, 2020

    @naushir
    CollaboratorAuthor

    Latest firmware attached:
    fw.zip

  13. naushir commented on Mar 10, 2020

    @naushir
    CollaboratorAuthor

    New firmware to use after commit 9521e8b

    fw-10-3-20.zip

  14. kbingham commented on Apr 16, 2020

    @kbingham
    Collaborator

    Now supported by the upstream firmwares, and can be obtained by running rpi-update on the target.

  15. added a commit that references this issue on Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions