diff options
| author | Vagrant Cascadian <vagrant@debian.org> | 2026-01-16 08:30:21 -0800 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2026-01-29 16:10:41 -0800 |
| commit | 8311e00d3c9282d11ebba8bf98a64de13016fc66 (patch) | |
| tree | 3846544928b1a20c6ec80354c0c8e865f23211f5 /gnu | |
| parent | 5c9d765a174ab3d3cb20a5b628ecaba27de7bfc7 (diff) | |
gnu: u-boot: Update to 2026.01.
* gnu/packages/bootloaders.scm (u-boot): Update to 2026.01.
[patches]: Drop u-boot-rockchip-inno-usb.patch.
(u-boot-documentation)[native-inputs]: add python-sphinx-reredirects.
(u-boot-documentation)[native-inputs]: Add comment about optional
python-sphinx-rtd-theme.
(u-boot-sandbox): Disable HKDF_MBEDTLS.
(u-boot-tools): Update 'patch phase to disable openssl.
* gnu/packages/patches/u-boot-rockchip-inno-usb.patch: Delete patch.
* gnu/local.mk (dist_patch_DATA): Unregister patch.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/bootloaders.scm | 16 | ||||
| -rw-r--r-- | gnu/packages/patches/u-boot-rockchip-inno-usb.patch | 99 |
3 files changed, 9 insertions, 107 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index daa177a222..88ded5bfa5 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2428,7 +2428,6 @@ dist_patch_DATA = \ %D%/packages/patches/twinkle-bcg729.patch \ %D%/packages/patches/u-boot-allow-disabling-openssl.patch \ %D%/packages/patches/u-boot-nintendo-nes-serial.patch \ - %D%/packages/patches/u-boot-rockchip-inno-usb.patch \ %D%/packages/patches/ucx-tcp-iface-ioctl.patch \ %D%/packages/patches/uftrace-fix-tests.patch \ %D%/packages/patches/ultrastar-deluxe-no-freesans.patch \ diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 90b6c66261..3277d69f11 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -853,7 +853,7 @@ tree binary files. These are board description files used by Linux and BSD.") (define u-boot (package (name "u-boot") - (version "2025.01") + (version "2026.01") (source (origin (method git-fetch) @@ -862,9 +862,8 @@ tree binary files. These are board description files used by Linux and BSD.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1i1v86bnixh8hyqbwwr5iwdnnadmg2fqxw9g526fvclsbvl8lz0v")) - (patches (search-patches "u-boot-allow-disabling-openssl.patch" - "u-boot-rockchip-inno-usb.patch")) + (base32 "1ics2b560gjqh7f1b194axy5rdplrgxhpifay61zpa6p5gl4fxsz")) + (patches (search-patches "u-boot-allow-disabling-openssl.patch")) (snippet ;; Remove non-free binary licenses, blobs and microcode. #~(begin @@ -928,6 +927,8 @@ also initializes the boards (RAM etc).") (append fontconfig python-sphinx python-sphinx-prompt + ; python-sphinx-rtd-theme ; optional + python-sphinx-reredirects texinfo which))) (synopsis "U-Boot documentation") @@ -1008,8 +1009,9 @@ def test_ctrl_c")) ;; to GPL/Openssl license incompatibilities. ;; See https://bugs.gnu.org/34717 for ;; details. - (("CONFIG_FIT_SIGNATURE=y") - "CONFIG_FIT_SIGNATURE=n + (("CONFIG_FIT=y") + "CONFIG_FIT=y +CONFIG_FIT_SIGNATURE=n CONFIG_UT_LIB_ASN1=n CONFIG_TOOLS_LIBCRYPTO=n CONFIG_TOOLS_KWBIMAGE=n") @@ -1462,7 +1464,7 @@ partition.")) ;; These disabled features require OpenSSL, which is ;; incompatible with the GPLv2-only parts of U-boot. #:configs (map (cut string-append "# CONFIG_" <> " is not set") - '("FIT_CIPHER" "MBEDTLS_LIB")) + '("FIT_CIPHER" "MBEDTLS_LIB" "HKDF_MBEDTLS")) #:append-description "The sandbox configuration of U-Boot provides a @command{u-boot} command that runs as a normal user space application. It can be used to diff --git a/gnu/packages/patches/u-boot-rockchip-inno-usb.patch b/gnu/packages/patches/u-boot-rockchip-inno-usb.patch deleted file mode 100644 index 5962e19e01..0000000000 --- a/gnu/packages/patches/u-boot-rockchip-inno-usb.patch +++ /dev/null @@ -1,99 +0,0 @@ -From: Icenowy Zheng <icenowy@aosc.io> -Date: Tue, 6 Apr 2021 23:10:59 +0800 -Subject: [PATCH] phy: rockchip: inno-usb2: fix hang when multiple controllers - exit - -The OHCI and EHCI controllers are both bound to the same PHY. They will -both do init and power_on operations when the controller is brought up -and both do power_off and exit when the controller is stopped. However, -the PHY uclass of U-Boot is not as sane as we thought -- they won't -maintain a status mark for PHYs, and thus the functions of the PHYs -could be called for multiple times. Calling init/power_on for multiple -times have no severe problems, however calling power_off/exit for -multiple times have a problem -- the first exit call will stop the PHY -clock, and power_off/exit calls after it still trying to write to PHY -registers. The write operation to PHY registers will fail because clock -is already stopped. - -Adapt the count mechanism from phy-sun4i-usb to both init/exit and -power_on/power_off functions to phy-rockchip-inno-usb2 to fix this -problem. With this stopping USB controllers (manually or before booting -a kernel) will work. - -Signed-off-by: Icenowy Zheng <icenowy@aosc.io> -Fixes: ac97a9ece14e ("phy: rockchip: Add Rockchip USB2PHY driver") -Tested-by: Peter Robinson <pbrobinson@gmail.com> ---- -Fix U-Boot v2020.10 regression, freezing on boot with USB boot enabled: -https://gitlab.manjaro.org/manjaro-arm/packages/core/uboot-rockpro64/-/issues/4 - -Downloaded from: -https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@aosc.io - -diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c -index 43f6e020a6a..2086192445d 100644 ---- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c -+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c -@@ -47,6 +47,8 @@ struct rockchip_usb2phy { - struct regmap *reg_base; - struct clk phyclk; - const struct rockchip_usb2phy_cfg *phy_cfg; -+ int init_count; -+ int power_on_count; - }; - - static inline int property_enable(struct regmap *base, -@@ -98,6 +100,10 @@ static int rockchip_usb2phy_power_on(struct phy *phy) - struct rockchip_usb2phy *priv = dev_get_priv(parent); - const struct rockchip_usb2phy_port_cfg *port_cfg = us2phy_get_port(phy); - -+ priv->power_on_count++; -+ if (priv->power_on_count != 1) -+ return 0; -+ - property_enable(priv->reg_base, &port_cfg->phy_sus, false); - - /* waiting for the utmi_clk to become stable */ -@@ -112,6 +118,10 @@ static int rockchip_usb2phy_power_off(struct phy *phy) - struct rockchip_usb2phy *priv = dev_get_priv(parent); - const struct rockchip_usb2phy_port_cfg *port_cfg = us2phy_get_port(phy); - -+ priv->power_on_count--; -+ if (priv->power_on_count != 0) -+ return 0; -+ - property_enable(priv->reg_base, &port_cfg->phy_sus, true); - - return 0; -@@ -123,6 +133,10 @@ static int rockchip_usb2phy_init(struct phy *phy) - struct rockchip_usb2phy *priv = dev_get_priv(parent); - int ret; - -+ priv->init_count++; -+ if (priv->init_count != 1) -+ return 0; -+ - ret = clk_enable(&priv->phyclk); - if (ret && ret != -ENOSYS) { - dev_err(phy->dev, "failed to enable phyclk (ret=%d)\n", ret); -@@ -137,6 +151,10 @@ static int rockchip_usb2phy_exit(struct phy *phy) - struct udevice *parent = dev_get_parent(phy->dev); - struct rockchip_usb2phy *priv = dev_get_priv(parent); - -+ priv->init_count--; -+ if (priv->init_count != 0) -+ return 0; -+ - clk_disable(&priv->phyclk); - - return 0; -@@ -281,6 +299,9 @@ static int rockchip_usb2phy_probe(struct udevice *dev) - return ret; - } - -+ priv->power_on_count = 0; -+ priv->init_count = 0; -+ - return 0; - } - |
