Giter VIP home page Giter VIP logo

Comments (6)

elbbit01 avatar elbbit01 commented on August 12, 2024 1

Hi,
you are right of course, I just followed my line of thinking and skipped what you meant with the recipe. The kernel-bup-payload recipe is all I need. It is working now. I just need to adapt a couple of recipes on my project.
Thanks a lot.
Alvaro.

from tegra-demo-distro.

madisongh avatar madisongh commented on August 12, 2024

This is the kernel trying to load the firmware from the file /lib/firmware/tegra19x_usb_firmware. Is that file missing from your rootfs? If you use an initramfs (as we do in this demo distro), is that firmware file installed in the initramfs's rootfs filesystem? The driver may need that firmware early on in the boot process, so you need to make sure it's included in your initramfs.

from tegra-demo-distro.

elbbit01 avatar elbbit01 commented on August 12, 2024

Hi,
first of all thank you for your quick answer.
Actually your question triggered some deeper recheck on our recipes. We are building as you do in the demo distro, with initramfs, but we generate the update payloads adding to IMAGE_FSTYPES = cpio.gz.cboot.bup-payload. (Is this the right way to generate update payloads for an image based on this demo distro?)
When we update, I am not sure if initramfs is included in any of the automatically generated payloads or how to separately generate a payload for it.
It is anyway strange that after this partial updates, the system boots everything (except usb firmware) if there is no initramfs, right?

Regards.

from tegra-demo-distro.

madisongh avatar madisongh commented on August 12, 2024

The mechanism for generating the BUP payload depends on whether you've got INITRAMFS_IMAGE_BUNDLE set to 1 or 0. By default, we have it set to 1, so bitbake kernel-bup-payload should generate the correct payloads for you. If it's set to 0 (separating the initrd from the kernel build), you need that IMAGE_FSTYPES addition (and we do that automatically in the tegra-minimal-initrams recipe).

from tegra-demo-distro.

elbbit01 avatar elbbit01 commented on August 12, 2024

Hello,
we were actually using the default value, but somehow setting extra the IMAGE_FSTYPES generated the wrong payloads. We saw that inside the tegraflash container there is a script to generate the payloads and manually used it. With that manually generated payloads our update is working fine.

Is there a proper predefined way to automatically generate these update payloads during the yocto build process without explicitly unpacking the tegraflash container afterwards?

Thanks in advance,
Alvaro.

from tegra-demo-distro.

madisongh avatar madisongh commented on August 12, 2024

As I mentioned above, the kernel-bup-payload will do that for you. But even simpler is to use the tegra-bup-payload recipe, which installs a BUP payload into the /opt/ota_package directory in your rootfs; it calculates its dependencies based on the initramfs bundling setting automatically.

By default it installs the full bl_update_payload; if you need to use one of the subset payloads instead, you can do that via a bbappend.

from tegra-demo-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.