[Bug 1910094] Re: uboot fails to save env after core18 refresh

Launchpad Bug Tracker 1910094 at bugs.launchpad.net
Thu Jan 28 16:48:32 UTC 2021


This bug was fixed in the package u-boot - 2020.10+dfsg-1ubuntu0~20.10.1

---------------
u-boot (2020.10+dfsg-1ubuntu0~20.10.1) groovy; urgency=medium

  * SRU of changes through to 2020.10+dfsg-1ubuntu6 to fix Pi4-8GB & CM4 support,
    and add support for risc-v unleashed board:

  [ Dave Jones ]
  * Add d/p/rpi-8gb-pci.patch for Pi400 and Pi4-8Gb support (LP: #1906552)
  * Add d/p/rpi-cm4-sdhci.patch for CM4 eMMC support
  * Add d/p/rpi-maxargs.patch for new Core 18 boot-env (LP: #1910094)
  * Remove redundant d/targets entries

  [ Dimitri John Ledkov ]
  * Enable u-boot spl for unleashed. LP: #1905274

u-boot (2020.10+dfsg-1ubuntu0~20.10) groovy; urgency=low

  * SRU of 2020.10+dfsg-1 to support Raspberry Pi 4 ethernet (LP:
#1903054)

  [ Dave Jones ]
  * Merge from Debian unstable.  Remaining changes:
    - Enable Ubuntu support for the Nitrogen6x board (LP: #1838064)
      - Add d/p/ubuntu-nitrogen6q2g-config-tweaks.patch to tweak the
        nitrogen6q2g configs to better fit our Ubuntu usage.
      - Start building the nitrogen6x2g target for u-boot.
    - Enable FIT signing support (LP: #1831942)
      - Enable CONFIG_FIT_SIGNATURE so we can sign FIT images.
      - Add libssl-dev to Build-Depends: to enable crypto functionality.
      - Limit key names to keys within the keydir.
    - d/p/rpi-config-tweaks.patch: Configuration adjustments to the RPi
      configs
    - d/p/rpi-board-dt.patch: use the board's device-tree instead of an
      embedded one

  * Removed obsolete patches/changes:
    - d/p/lzo-to-lzno.patch: use gzip instead of lzo compression for FIT
      images as lzop in Ubuntu is in universe. This should be temporary and in
      the next releases ideally we should follow what Debian does.

u-boot (2020.10+dfsg-1) unstable; urgency=medium

  * New upstream release.

u-boot (2020.10~rc5+dfsg-1) experimental; urgency=medium

  [ Vagrant Cascadian ]
  * New upstream release candidate.
  * debian/control: u-boot-qemu: Set Multi-Arch: foreign.

  [ Uwe Kleine-König ]
  * control: Use https for upstream homepage

u-boot (2020.10~rc3+dfsg-1) experimental; urgency=medium

  * New upstream release candidate.
  * debian/patches: Refresh and remove obsolete patches.
  * [armhf] u-boot-sunxi: Add Bananapi_M2_Ultra (Closes: #962931). Thanks
    to Bernhard Wörner.
  * [arm64] u-boot-rockchip: Update rock-pi-4 .dtb names.
  * u-boot-qemu: Build firmware for qemu ppc e500 (Closes: #966624).

u-boot (2020.07+dfsg-2) unstable; urgency=medium

  [ Vagrant Cascadian ]
  * u-boot-install-rockchip: Update with additional RockPro64 names from
    linux 5.7 device-trees.

  [ Denis Pynkin ]
  * u-boot-rpi: Add rpi_arm64 target for arm64 (Closes: #966078).

  [ Vagrant Cascadian ]
  * debian/patches: Fix reproducibility of mx6cuboxi target.

u-boot (2020.07+dfsg-1) unstable; urgency=medium

  * New upstream release.
  * [armhf] u-boot-omap: Drop omap3_pandora, removed upstream.
  * [arm64] u-boot-amlogic: Install new board-specific documentation.
  * debian/patches: Fix riscv64 support for extlinux.
  * debian/control:
    - Upgrade to debhelper compat 13.
    - Update Build-Depends on arm-trusted-firmware.

u-boot (2020.07~rc4+dfsg-1) experimental; urgency=medium

  * New upstream release candidate.
  * debian/patches:
    - Remove pinebook-pro patches, applied upstream.
    - Remove riscv64 patches, applied upstream.
  * u-boot-rockchip: Update puma-rk3399 to include new
    rk3399-puma-haikou.dtb file.
  * Update lintian overrides to use "shared-library-lacks-prerequisites"
    instead of older tag name.

u-boot (2020.07~rc3+dfsg-1) experimental; urgency=medium

  [ Andreas Henriksson ]
  * u-boot-rpi: Enable rpi4 target on armhf and arm64 (Closes: #958668)

  [ Vagrant Cascadian ]
  * New upstream release candidate.
  * debian/patches: Refresh n900 patch.

u-boot (2020.07~rc2+dfsg-1) experimental; urgency=medium

  * New upstream release candidate.
  * debian/patches: Refresh.

 -- Dimitri John Ledkov <xnox at ubuntu.com>  Fri, 08 Jan 2021 14:32:32
+0000

** Changed in: u-boot (Ubuntu Groovy)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/1910094

Title:
  uboot fails to save env after core18 refresh

Status in snap-core18:
  New
Status in u-boot package in Ubuntu:
  New
Status in u-boot source package in Bionic:
  Fix Committed
Status in u-boot source package in Focal:
  Fix Released
Status in u-boot source package in Groovy:
  Fix Released

Bug description:
  Attempts to refresh the core18 snap on some ARM devices (Raspberry Pi
  Model 3B/3B+/4B) fails during the post-refresh hook.

  
  ## Expected behavior

  The snap should refresh without issues.

  ## Actual behavior

  The refresh is rolled back after the reboot during post-refresh. Snap
  tasks <change-id> shows that the refresh errors out at “Automatically
  connect eligible plugs and slots of snap "core18"”.

  Upon zyga's request, I checked the boot logs via serial connection:

  Regular boot → https://paste.ubuntu.com/p/TmM3NHyzvb/
  Reboot after core18 refresh => https://paste.ubuntu.com/p/ZS9spYFYcf/

  Note the help outputs for `env` and `save`, which suggests an error in
  the `env export` command from https://github.com/snapcore/pi-
  gadget/blob/18-armhf/uboot.env.in#L20

  ## Context

  Custom gadget snap based on pi-gadget 18-armhf branch: https://gitlab.com/glancr/gadget-snap-pi-kiosk
  My repository includes this commit from upstream that changed `saveenv` to a custom `export_env` macro: https://github.com/snapcore/pi-gadget/commit/d837f0cfcdc84b92b3de8a380bafd14e55e65f6a

  snap version:
  snap    2.48.1
  snapd   2.48.1
  series  16
  kernel  5.3.0-1036-raspi2

  Discussion in #snappy:
  https://irclogs.ubuntu.com/2021/01/04/%23snappy.txt (from 9:34)

  
  Maybe related to https://bugs.launchpad.net/snap-core18/+bug/1900879 ; at least that was the issue prompting the changes in uboot.env.in.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-core18/+bug/1910094/+subscriptions



More information about the foundations-bugs mailing list