All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zoran" <zoran.stojsavljevic@gmail.com>
To: p32@tuta.io
Cc: Yocto-mailing-list <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] How can I create a truly minimal distribution that runs entirely from RAM?
Date: Thu, 11 Mar 2021 06:03:36 +0100	[thread overview]
Message-ID: <CAGAf8Lxw9Rs2YAyemcdzsHQAEGP9aLyRGovJawAaiA_LP6dydA@mail.gmail.com> (raw)
In-Reply-To: <2W3V.1615419137982625968.f4wK@lists.yoctoproject.org>

BBB example:
https://www.yoctoproject.org/pipermail/yocto/2018-July/041696.html

The line:
DISTRO_FEATURES_append = " ram"

Should be:
DISTRO_FEATURES_append = " nfs"

BSP Traces for BBB (YOCTO Warrior):
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/bbb-releases/bbb-warrior/target-bbb-platform-traces.txt

And the ash script in the U-Boot supporting above written:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/u-boot.ash#L3

Line 3 to 10.

Please, pay attention to line 1 as well!

Zee
_______

On Thu, Mar 11, 2021 at 12:32 AM p32 via lists.yoctoproject.org
<p32=tuta.io@lists.yoctoproject.org> wrote:
>
> Hello everyone,
>
> I am currently using this Yocto-based build setup provided by NXP to create a custom Linux distribution for one of the i.MX boards. My custom image is based on the core-image-minimal recipe and works fine, i.e., runs on the platform as expected. However, I have to following two issues:
>
> Although core-image-minimal is documented as "A small image just capable of allowing a device to boot", I can tell from the running system that it contains a huge number of components that I think are not be strictly necessary to boot the device. For instance, the boot log contains entries about an FPGA manager framework, Bluetooth, Ethernet, KVM, USB, and a lot of i.MX-specific modules such as for DMA or power management. For evaluation purposes, I want to get rid of all of these and end up with a truly minimal Linux system that is able to boot, schedule its tasks, and to communicate via UART. How can I achieve this without losing the i.MX support, i.e., the generation of a bootloader and suitable device tree files?
>
> Furthermore, I would like the minimal system to run entirely from RAM. More specifically: After being started from the SD card, U-Boot should start the Linux distribution via initramfs. I am able to generate some kind of initramfs binary using the following changes:
> # local.conf
> INITRAMFS_IMAGE = "recipe-name"
> INITRAMFS_IMAGE_BUNDLE = "1"
> # recipe-name.bb
> IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
> PACKAGE_INSTALL = "${IMAGE_INSTALL}"
>
> However, this does not affect the generated U-Boot, which means that U-Boot still tries to boot from an SD card partition. What is the "right way" to make use of the Image-initramfs-board.bin or the image-board.cpio.gz files that Yocto creates in this case?
>
> Any help yould be greatly appreciated.
>
> Kind regards!
> 
>

  reply	other threads:[~2021-03-11  5:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 23:32 How can I create a truly minimal distribution that runs entirely from RAM? p32
2021-03-11  5:03 ` Zoran [this message]
2021-03-12 21:49   ` p32
2021-03-13  7:28     ` [yocto] " Zoran
2021-03-14 23:16       ` p32
2021-03-15 16:01         ` [yocto] " Zoran
2021-03-15 17:21           ` Nicolas Dechesne
2021-03-15 18:10             ` Zoran
     [not found]           ` <CAAnfSTv6a9qUZi6-o2r-t1ucNAnn52HcAsNKbpfMz9vUez01sQ@mail.gmail.com>
2021-03-15 18:00             ` Zoran
2021-03-15 19:58           ` Richard Purdie
2021-03-15 19:59         ` Joshua Watt

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=CAGAf8Lxw9Rs2YAyemcdzsHQAEGP9aLyRGovJawAaiA_LP6dydA@mail.gmail.com \
    --to=zoran.stojsavljevic@gmail.com \
    --cc=p32@tuta.io \
    --cc=yocto@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.