Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with tegra nvbootctrl and unexpected slot errors #7

Open
dwalkes opened this issue Nov 3, 2020 · 3 comments
Open

Issues with tegra nvbootctrl and unexpected slot errors #7

dwalkes opened this issue Nov 3, 2020 · 3 comments

Comments

@dwalkes
Copy link
Member

dwalkes commented Nov 3, 2020

See post at https://hub.mender.io/t/failing-updates-on-tegra-tx2-due-to-issues-with-nvbootctrl/2765 and https://forums.developer.nvidia.com/t/nvbootctrl-get-current-slot-returning-unexpected-slot/156982/2

It appears boot slots are changing in some cases between mender updates for reasons unknown. When the boot slot gets out of sync with u-boot partitions bad things happen.

For TX2 this is a reason to make the mender build use PREFERRED_PROVIDER_virtual/bootloader = "cboot-prebuilt" as default as described at this link. It may not solve the problem completely but I think it will make the resulting situation less of a mess.

For Nano we are stuck with u-boot so we'll need to figure out how to handle this.

@manuel-wagesreither
Copy link

Can a switch from cboot+uboot to cboot-prebuilt be done in the field, that is through a mender OTA update? I guess not, but I'm not yet familiar with the details.

@dwalkes
Copy link
Member Author

dwalkes commented Nov 5, 2020

Can a switch from cboot+uboot to cboot-prebuilt be done in the field, that is through a mender OTA update?

I don't think there will be a way to make this work, at least without some extra logic that writes partitions from a ram disk at boot in a non-brick proof way, because I think the partition layout/content is going to be different and the uboot environment is not going to be used.

We are working on some changes for u-boot support to hopefully help resolve this, will share the proposed changes shortly.

@dwalkes
Copy link
Member Author

dwalkes commented Nov 12, 2020

See fix for the main issue described here in #8 - we will be working to get this upstreamed to meta-mender-community next, along with some test automation to catch this issue.

@dwalkes dwalkes changed the title Issues with u-boot support on TX2 Issues with tegra nvbootctrl and unexpected slot errors Nov 12, 2020
irodriguez-veridas pushed a commit to irodriguez-veridas/oe4t-meta-mender-community that referenced this issue Jul 2, 2024
fix(tegra): remove invalid partitions offsets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants