All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gundlupet Raju, Sandeep" <sandeep.gundlupet-raju@amd.com>
To: yocto-patches@lists.yoctoproject.org, "Lee,
	Chee Yang" <chee.yang.lee@intel.com>
Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v6 10/11] zephyr-kernel: Add rpmsg multi services recipe
Date: Wed, 20 Aug 2025 12:58:54 -0600	[thread overview]
Message-ID: <d16c3447-77c2-40ed-af75-91c1b4bc37ac@amd.com> (raw)
In-Reply-To: <185D7DB1A09D3E98.23467@lists.yoctoproject.org>


On 8/20/2025 7:47 AM, Sandeep Gundlupet Raju via lists.yoctoproject.org 
wrote:
>
> On 8/20/2025 2:02 AM, Lee, Chee Yang wrote:
>> I got this error while building the recipe
>>
>> | 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:26:2: 
>> error: #error "Sample requires definition of shared memory for rpmsg"
>> |    26 | #error "Sample requires definition of shared memory for rpmsg"
>> |       |  ^~~~~
>> | In file included from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain/gcc.h:98,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain.h:50,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel_includes.h:23,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel.h:17,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:7:
>>
>>
>> Build With
>>
>> meta                 = 
>> "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
>> meta-oe
>> meta-python          = 
>> "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
> [Sandeep]: Looks like you are building for cortex-a processor. rpmsg 
> works for only these platforms 
> https://github.com/OpenAMP/openamp-system-reference/blob/main/examples/zephyr/rpmsg_multi_services/sample.yaml#L8-L10 
> I used "MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv" 
> to test this recipe.,this way we can avoid the issues. I can add a 
> machine compatible for only these available machines. I will send a v2 
> patch.

[Sandeep]: Sent v2 patch here is the testing logs.

$ time MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv
Loading cache: 100% | | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% 
|#############################################################################################################################################################################| 
Time: 0:00:07
Parsing of 2495 .bb files complete (0 cached, 2495 parsed). 4348 
targets, 491 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "arm-yocto-eabi"
MACHINE              = "qemu-cortex-r5"
DISTRO               = "zephyr"
DISTRO_VERSION       = "1.0"
TUNE_FEATURES        = "armv7r vfpv3d16 cortexr5 idiv"
TARGET_FPU           = "softfp"
meta
meta-poky
meta-yocto-bsp       = "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
meta-oe
meta-python          = "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
meta-zephyr-core
meta-zephyr-bsp      = 
"scarthgap-dev:a6a77268ce663082b6b33644fa2ba8521ceee147"

Sstate summary: Wanted 427 Local 0 Mirrors 0 Missed 427 Current 0 (0% 
match, 0% 
complete)######################################################################################### 
| ETA:  0:00:00
Initialising tasks: 100% 
|##########################################################################################################################################################################| 
Time: 0:00:00
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1314 tasks of which 0 didn't need to be 
rerun and all succeeded.

real    9m36.340s
user    0m3.668s
sys    0m1.022s
$ time MACHINE=stm32mp157c-dk2 bitbake zephyr-openamp-rpmsg-multi-srv
Loading cache: 100% | | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% 
|#############################################################################################################################################################################| 
Time: 0:00:05
Parsing of 2495 .bb files complete (0 cached, 2495 parsed). 4343 
targets, 490 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-yocto-eabi"
MACHINE              = "stm32mp157c-dk2"
DISTRO               = "zephyr"
DISTRO_VERSION       = "1.0"
TUNE_FEATURES        = "armv7em cortexm4"
TARGET_FPU           = "soft"
meta
meta-poky
meta-yocto-bsp       = "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
meta-oe
meta-python          = "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
meta-zephyr-core
meta-zephyr-bsp      = 
"scarthgap-dev:a6a77268ce663082b6b33644fa2ba8521ceee147"

Sstate summary: Wanted 11 Local 0 Mirrors 0 Missed 11 Current 308 (0% 
match, 96% 
complete)######################################################################################## 
| ETA:  0:00:00
Initialising tasks: 100% 
|##########################################################################################################################################################################| 
Time: 0:00:00
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 990 tasks of which 970 didn't need to be 
rerun and all succeeded.

real    0m51.588s
user    0m0.372s
sys    0m0.096s
$

>>
>>> -----Original Message-----
>>> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
>>> Sent: Tuesday, 19 August, 2025 6:03 AM
>>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>>> <chee.yang.lee@intel.com>
>>> Subject: [meta-zephyr][scarthgap][PATCH v6 10/11] zephyr-kernel: Add
>>> rpmsg multi services recipe
>>>
>>> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
>>> openamp-system-reference example applications.
>>>
>>> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
>>> raju@amd.com>
>>> ---
>>>   .../zephyr-openamp-rpmsg-multi-srv.bb         | 23 
>>> +++++++++++++++++++
>>>   1 file changed, 23 insertions(+)
>>>   create mode 100644 
>>> meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>>> openamp-rpmsg-multi-srv.bb
>>>
>>> diff --git 
>>> a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>>> rpmsg-multi-srv.bb 
>>> b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>>> openamp-rpmsg-multi-srv.bb
>>> new file mode 100644
>>> index 0000000..222ed2b
>>> --- /dev/null
>>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>>> rpmsg
>>> +++ -multi-srv.bb
>>> @@ -0,0 +1,23 @@
>>> +SUMMARY = "Open AMP rpmsg multi services"
>>> +DESCRIPTION = "Open AMP rpmsg multi services"
>>> +
>>> +inherit zephyr-sample
>>> +
>>> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
>>> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
>>> +
>>> +BRANCH ?= "v2024.05"
>>> +BRANCHARG = "${@['nobranch=1',
>>> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
>>> +
>>> +SRC_URI:append = " \
>>> +    ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
>>> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
>>> +    "
>>> +
>>> +SRCREV_open-amp-sys-ref =
>>> "d78315763fbacba8a74552d0ad570bd01c42ccf9"
>>> +
>>> +ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/../open-amp-sys-
>>> ref/examples/zephyr/rpmsg_multi_services"
>>> +
>>> +ZEPHYR_MAKE_OUTPUT = "rpmsg_multi_services.elf"
>>> +
>>> +EXTRA_OECMAKE += " \
>>> +    -DCONF_FILE="prj.conf" \
>>> +    "
>>> -- 
>>> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2070): 
> https://lists.yoctoproject.org/g/yocto-patches/message/2070
> Mute This Topic: https://lists.yoctoproject.org/mt/114772377/3619217
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: 
> https://lists.yoctoproject.org/g/yocto-patches/leave/14411013/3619217/657730681/xyzzy 
> [sandeep.gundlupet-raju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>


  parent reply	other threads:[~2025-08-20 18:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18 22:02 [scarthgap][PATCH v6 0/11] Update for scarthgap release Sandeep Gundlupet Raju
2025-08-18 22:02 ` [meta-zephyr][scarthgap][PATCH v6 1/11] zephyr-sdk: Add new inc file and update to 0.16.9 version Sandeep Gundlupet Raju
2025-08-18 22:02 ` [meta-zephyr][scarthgap][PATCH v6 2/11] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
2025-08-18 22:02 ` [meta-zephyr][scarthgap][PATCH v6 3/11] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
2025-08-18 22:02 ` [meta-zephyr][scarthgap][PATCH v6 4/11] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
2025-08-18 22:02 ` [meta-zephyr][scarthgap][PATCH v6 5/11] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
2025-08-18 22:02 ` [meta-zephyr][scarthgap][PATCH v6 6/11] zephyr-kernel: Add Zephyr LTS3.7.0 support Sandeep Gundlupet Raju
2025-08-18 22:03 ` [meta-zephyr][scarthgap][PATCH v6 7/11] meta-zephyr: Update README files Sandeep Gundlupet Raju
2025-08-18 22:03 ` [meta-zephyr][scarthgap][PATCH v6 8/11] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
2025-08-18 22:03 ` [meta-zephyr][scarthgap][PATCH v6 9/11] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
2025-08-18 22:03 ` [meta-zephyr][scarthgap][PATCH v6 10/11] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
2025-08-20  8:02   ` Lee, Chee Yang
2025-08-20 13:47     ` Gundlupet Raju, Sandeep
     [not found]     ` <185D7DB1A09D3E98.23467@lists.yoctoproject.org>
2025-08-20 18:58       ` Gundlupet Raju, Sandeep [this message]
2025-08-18 22:03 ` [meta-zephyr][scarthgap][PATCH v6 11/11] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
2025-08-20  8:03   ` Lee, Chee Yang
2025-08-20 14:32     ` [yocto-patches] " Gundlupet Raju, Sandeep
2025-08-20 22:11       ` Gundlupet Raju, Sandeep

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d16c3447-77c2-40ed-af75-91c1b4bc37ac@amd.com \
    --to=sandeep.gundlupet-raju@amd.com \
    --cc=chee.yang.lee@intel.com \
    --cc=yocto-patches@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.