public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
	Anton Mikanovich <amikan@ilbers.de>,
	"Moessbauer, Felix (T CED OES-DE)" <felix.moessbauer@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "Schmidt, Adriaan (T CED EDC-DE)" <adriaan.schmidt@siemens.com>
Subject: Re: [PATCH v3 2/3] deploy boot files via sstate-cache
Date: Mon, 26 Feb 2024 16:32:23 +0300	[thread overview]
Message-ID: <f86fa1c0436c62be0474b28e81db56b8126d682b.camel@ilbers.de> (raw)
In-Reply-To: <ae5a1f66-a37e-4f5c-9291-d8bb0a3fe427@siemens.com>

On Wed, 2024-01-10 at 05:27 +0100, 'Jan Kiszka' via isar-users wrote:
> On 09.01.24 15:04, Anton Mikanovich wrote:
> > 09/01/2024 15:46, Jan Kiszka wrote:
> > > Careful with renaming, I'm not sure of we aren't picking up the
> > > DTBs
> > > from there and also relying on the names as the firmware will
> > > need
> > > specific naming as well. This needs at least double-checking.
> > > 
> > > Jan
> > > 
> > It looks like there is no other solution, because different distros
> > may
> > have
> > differencies in their dtb files.
> > Downstreams are rely on Isar output paths, so we should at least
> > create
> > a item
> > in RECIPE-API-CHANGELOG.md.
> > 
> 
> This is about naming for the kernel or the firmware, not for the
> layer.
> Again: Careful! Also, it would likely be better to enhance
> DEPLOY_DIR_IMAGE with the distro, rather than messing with the file
> names.
> 
> Jan
> 
> -- 
> Siemens AG, Technology
> Linux Expert Center
> 

Currently we have an internal solution that uses a subdirectory named
according to the image built (e.g., 'isar-image-base-bootfiles'). This
saves original DTB namings, but we just have them in a separate dir.
This, of course, also needs mentioning in RECIPE-API-CHANGELOG.md since
imagers/CI may use the files for their purpose.

Anyway, there is another issue in the whole patchset. We make sstate do
things it is not supposed to do. And if the user wants to completely
disable sstate, they at least won't find kernel/DTB files in deploy
dir. At most, imager can fail if it looks for them here.

A simple way to reproduce the issue with disabled sstate:

1. Run 'kas-container menu', configure stm32mp15x-bullseye target

2. Run 'kas-container shell'

3. Disable sstate

```
builder@25df5af8cc0a:/build$ echo 'INHERIT:remove = "sstate"' >>
conf/local.conf
```

4. Build the image

```
builder@25df5af8cc0a:/build$ bitbake isar-image-base
```

5. Check `build/tmp/deploy/images` => there are no any kernel/initrd
files, they exist only in `tmp/work/debian-bullseye-armhf/isar-image-
base-stm32mp15x/1.0-r0/deploy/`

Some other targets (like phyboard-mira) even fail in imager, since it
needs the files to be in deploy dir.

I guess, later we need to rework the functionality the following way:

1. Don't use sstate for copying files, they should be directly
deployed;
2. Split boot files extracted from rootfses with different distro and
targets (e.g., `-base`, `-debug`, etc) - but with no sstate help.




  reply	other threads:[~2024-02-26 13:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-23  6:43 [PATCH v3 0/3] Fix data-race in deployment of initrd Felix Moessbauer
2023-02-23  6:43 ` [PATCH v3 1/3] add initramfs to sstate-cache Felix Moessbauer
2023-02-23  6:43 ` [PATCH v3 2/3] deploy boot files via sstate-cache Felix Moessbauer
2023-12-29  7:29   ` Anton Mikanovich
2024-01-09 12:46     ` MOESSBAUER, Felix
2024-01-09 13:46       ` Jan Kiszka
2024-01-09 14:04         ` Anton Mikanovich
2024-01-10  4:27           ` Jan Kiszka
2024-02-26 13:32             ` Uladzimir Bely [this message]
2024-02-26 18:17               ` MOESSBAUER, Felix
2023-02-23  6:43 ` [PATCH v3 3/3] fix race-cond between default and custom initrd Felix Moessbauer
2023-03-06  6:05 ` [PATCH v3 0/3] Fix data-race in deployment of initrd Uladzimir Bely

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=f86fa1c0436c62be0474b28e81db56b8126d682b.camel@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=adriaan.schmidt@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox