> 1. have Yocto generate an initramfs.cpio.xz.uboot file
> instead of just an initramfs.cpio.xz file and to

I assume this is not too hard to achieve. Somewhere in some bitbake
config file this should be added, but either me do not know that.

So, we'll both wait for this info, maybe some new variable should be
defined for such cases as initramfs, for YOCTO build system to
generate.

For example, adding INITRAMFS_CONF = "1" into local.conf (initially
this variable should be set to INITRAMFS_CONF ??= "0") in some YOCTO
defconfig file?!

> 2. modify the default environment that Yocto will
> compile into the U-Boot binary?

This, I believe, is achievable by the following steps:

      1. Taking/cloning last U-Boot from denx git;
      2. Modifying the ./include/configs/<board.h> file, introducing
the following:

          #ifdef CONFIG_SUPPORT_INITRAMFS_BOOT
          #define INITRAMFS_ENV \
                  <place here modified by you initramfs ash script>
          #else
          #define INITRAMFS_ENV ""
          #endif

        3. Compile U-boot, place it on SDcard and test, to see if you
are able to make it work after rebooting the system;
        4. tar again U-Boot source code with these changes, and upload
it on your server;
        5. Change the U-boot recipe to be downloaded from your server!

Another approach I do not know (maybe YOCTO people do know a better
approach from inside the YOCTO build system).

Hope this helps.

Zoran
_______


On Fri, Mar 12, 2021 at 10:49 PM p32 via lists.yoctoproject.org
<[email protected]> wrote:
>
> Thank you very much for your help on the second issue! I was unaware of the 
> fact that another mkimage call is necessary. After taking a look at the the 
> references you provided, I was able to boot the system from an initramfs.
>
> However, my current approach requires two manual steps after running Yocto: I 
> need to call mkimage on the cpio.xz file and to extend/configure the U-Boot 
> environment in the running system. Is there a way to automate this?
>
> More specifically, is it possible to...
>
> have Yocto generate an initramfs.cpio.xz.uboot file instead of just an 
> initramfs.cpio.xz file and to
> modify the default environment that Yocto will compile into the U-Boot binary?
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52706): https://lists.yoctoproject.org/g/yocto/message/52706
Mute This Topic: https://lists.yoctoproject.org/mt/81241640/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to