From: Alexander Kanavin <alex.kanavin@gmail.com>
To: nicolas.wirth@speedgoat.ch
Cc: poky@lists.yoctoproject.org
Subject: Re: [poky] Running chroot-like command in Yocto #yocto
Date: Wed, 15 May 2024 15:08:52 +0200 [thread overview]
Message-ID: <CANNYZj8_HTT8Us+ko0s-ffw4hGg-iGZ9OscU17T8kVrpV06kXA@mail.gmail.com> (raw)
In-Reply-To: <19808.1715776447222316220@lists.yoctoproject.org>
I have no idea what this does, but MBR is not a file in the root
filesystem, it's data structure in the first disk sector.
Unfortunately I don't remember how legacy pre-UEFI ootloaders are
installed 'offline' during yocto builds.
Can you do this on target during first boot?
Alex
On Wed, 15 May 2024 at 14:34, Nicolas Wirth via lists.yoctoproject.org
<nicolas.wirth=speedgoat.ch@lists.yoctoproject.org> wrote:
>
> Really good point, my example can be misleading. I didn't wanted to add confusion by fully explaining my goal.
>
> The goal is to run extlinux --install ${IMAGE_ROOTFS}/boot/syslinux, as I've understood, this command install the sylinux required file but also does write some bytes at the start of the partition, for the MBR. In debbos, I could do that using the following code and now I'm trying to reproduce that in the Yocto build system:
>
> - action: run
> description: Set up Syslinux
> chroot: true
> command: extlinux --install /boot/syslinux
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#13351): https://lists.yoctoproject.org/g/poky/message/13351
> Mute This Topic: https://lists.yoctoproject.org/mt/106112604/1686489
> Mute #yocto:https://lists.yoctoproject.org/g/poky/mutehashtag/yocto
> Group Owner: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
next prev parent reply other threads:[~2024-05-15 13:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 12:14 Running chroot-like command in Yocto #yocto Nicolas Wirth
2024-05-15 12:19 ` [poky] " Alexander Kanavin
2024-05-15 12:34 ` Nicolas Wirth
2024-05-15 13:08 ` Alexander Kanavin [this message]
2024-05-15 13:52 ` [poky] " Ross Burton
2024-05-15 14:42 ` Nicolas Wirth
2024-05-16 3:36 ` [poky] " Chen, Qi
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=CANNYZj8_HTT8Us+ko0s-ffw4hGg-iGZ9OscU17T8kVrpV06kXA@mail.gmail.com \
--to=alex.kanavin@gmail.com \
--cc=nicolas.wirth@speedgoat.ch \
--cc=poky@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).