Skip to content

what source code can build yocto image for rock 4c+ , I am following a guide(readme) in branch scarthgap page , but many errors happened! #40

Description

@gitgonewithwind

Hi all,
Sorry to bother you.
my company wants to use rock 4c+ and rock 5c board. I am build rock 4c+ first.
I am following the guide here: https://docs.radxa.com/en/rock5/rock5c/other-os/yocto and then here https://github.com/radxa/meta-rockchip/tree/scarthgap page for scarthgap branch. I downloaded the source code following the below guide:

~ $ mkdir yocto; cd yocto
~/yocto $ git clone git://git.openembedded.org/bitbake -b master
~/yocto $ git clone git://git.openembedded.org/openembedded-core -b scarthgap
~/yocto $ git clone git://git.yoctoproject.org/meta-arm -b scarthgap
~/yocto $ git clone git://git.openembedded.org/meta-openembedded -b scarthgap
~/yocto $ git clone git@github.com:radxa/meta-rockchip.git -b scarthgap
~/yocto $ git clone git://git.yoctoproject.org/meta-virtualization -b scarthgap

and build the rock 4c+ image, but there are a lot of similar errors happened:

ERROR: ExpansionError during parsing /home/yocto/yocto/source/layers/meta-openembedded/meta-oe/recipes-connectivity/usbmuxd/usbmuxd_git.bb bb.data_smart.ExpansionError: Failure expanding variable GITPKGVTAG, expression was ${@get_git_pkgv(d, True)} which triggered exception AttributeError: 'FetchData' object has no attribute 'revisions' The variable dependency chain for the failure is: GITPKGVTAG -> PKGV ERROR: Parsing halted due to errors, see error messages above

the chatgpt said: You’re using a newer BitBake / Yocto branch (e.g. Scarthgap) with an older layer (like meta-openembedded from Mickledore or older).

but I followed the guide I exactly use git clone git://git.openembedded.org/meta-openembedded -b scarthgap
and I modified the .bb file. I can pass the scanning. after that there are a lots of similar error happened .I can NOT all of them.
so I think I am using wrong source code.
my question is:

Q1, where is the correct source code for rock 4c+( and rock 5c)?
Q2: Do I need switch to master branch https://github.com/radxa/meta-rockchip (scarthgap-vendor) page following the readme guide ?
Dependencies
This layer depends on:

URI: git://git.yoctoproject.org/poky

branch: scarthgap

URI: git://git.openembedded.org/meta-openembedded

layers: meta-oe

branch: scarthgap

(I use poky in raspberry pi before ,not same as https://github.com/radxa/meta-rockchip/tree/scarthgap page)

Thank you so much.

I am looking forward someone reply to me soon.

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