276 Commits

Author SHA1 Message Date
Jamie Magee b32e76ed6e uboot: 2026.04 -> 2026.07 2026-07-06 20:05:00 -07:00
Sandro 3a73d9970b ubootRock5ModelC: init (#506030) 2026-05-24 20:26:23 +00:00
Mariappan Ramasamy 7c97a31684 ubootRock3C: enable strictDeps
Added for fixing failing CI: nixpkgs-vet (NPV-164)

buildUBoot does not enable strictDeps by default and the
existing ubootRock* packages predate the rule, so the new ubootRock3C
attribute trips the lint.

Set strictDeps = true on the ubootRock3C derivation only to keep blast
radius minimal.
2026-05-04 22:34:50 +08:00
Mariappan Ramasamy b2f966f7f8 ubootRock3C: init at 2026.04
Add U-Boot package for Radxa Rock 3C single-board computer (Rockchip RK3566).

Uses the rock-3c-rk3566_defconfig with armTrustedFirmwareRK3568 BL31 and
rkbin RK3566 TPL. Installs idbloader, u-boot.itb, and rockchip combined
images for both eMMC/SD and SPI flash boot.
2026-05-04 21:52:52 +08:00
Stefan Frijters 123bc61355 uboot*: use structuredAttrs instead of passAsFile 2026-05-02 02:19:02 +02:00
Jamie Magee 61c588b565 uboot: 2026.01 -> 2026.04 2026-04-11 12:29:24 -07:00
Marijan Petričević 6ab0eeb988 ubootRock5ModelC: init 2026-04-02 16:34:40 +02:00
Jamie Magee 4b2b5be22f uboot: 2025.10 -> 2026.01 2026-03-30 23:46:08 -07:00
Jörg Thalheim 419f1d7b3a ubootRaspberryPiAarch64: init (#493816) 2026-03-31 05:00:43 +00:00
Filip Kokosiński 0e0ef46ea0 ubootRaspberryPiAarch64: init 2026-02-24 23:24:11 +01:00
Marcin Serwin 59364fb99a maintainers: drop dezgeg
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-22 12:43:51 +01:00
Stefan Frijters 8287113997 uboot: move env variables into env for structuredAttrs 2026-02-09 02:39:13 +01:00
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Luflosi 8bf0689e78 uboot: expose some comments as longDescription
Some comments are useful to users, so let's allow them to read the comments without having to look in the source code.
2025-11-05 18:50:21 +01:00
K900 df6941b2c1 uboot: 2025.07 -> 2025.10 (#450220) 2025-11-04 11:15:20 +00:00
Moraxyc 7655529213 ubootPythonTools.binman: use vboot-utils 2025-11-01 11:10:52 +08:00
Alexander Iliev 24f5f977bb ubootNanoPiR5S: init
Adds uboot build for FriendlyElec NanoPi R5S.

The board fits well in network scenarios, as it provides three
Ethernet ports (1x1Gbe and 2x2.5Gbe).

Board Wiki: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5S
2025-10-21 23:59:18 +02:00
Luflosi 3b680a275e uboot: 2025.07 -> 2025.10 2025-10-09 09:08:02 +02:00
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Kirill Elagin ebf43d4c4a ubootPythonTools: init at 0.0.7
Package the Python tools that come with U-Boot, most importantly,
`binman`.

We take the sources from PyPI because this is the official distribution
channel and the versions there are somehow newer than in the U-Boot
repository itself.
2025-09-07 12:13:53 +02:00
Jared Baur a0289c3231 ubootBananaPim2Zero: init at 2023.07.02 (#257388) 2025-08-13 04:10:48 -07:00
Jared Baur 5816207e5f ubootTools: add mkeficapsule to installed tools (#266547) 2025-08-13 04:10:11 -07:00
dramforever 83c23d937e ubootVisionFive2: Remove overrideAttrs from opensbi
FW_OPTIONS=0 overrides the dynamically set options for no reason, and
FW_TEXT_START is not useful now that OpenSBI has dropped support for
non-PIE-capable toolchains [1].

[1]: https://github.com/riscv-software-src/opensbi/commit/76d7e9b8ee72c226cd8424d5483827bcf4c792fa
2025-08-06 19:30:44 +08:00
Florian Klink e675671afc ubootRadxaZero3W: init (#428588) 2025-07-26 15:24:01 +02:00
der-letzte b264aa2a8e ubootRadxaZero3W: init 2025-07-26 13:52:00 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther e906d9733a maintainers: drop bartsch (#426890) 2025-07-22 19:44:38 +00:00
Philip Taron 65d091b54a ubootLibreTechCC: use meta.broken instead of assert (#426888) 2025-07-21 16:00:03 -07:00
Wolfgang Walther f5f8a38089 maintainers: drop bartsch
Became maintainer of uboot in 2022, never joined the NixOS org, never
reacted to any maintainer pings since. No other PRs, reviews or
comments.
2025-07-20 13:00:01 +02:00
Wolfgang Walther c9c857ecc9 ubootLibreTechCC: use meta.broken instead of assert
This allows filtering the attrpath in CI properly for Eval.
2025-07-20 12:57:07 +02:00
Max Larsson 8c8f1a1cc1 uboot: add Darwin build support
- Add darwin.DarwinTools for sw_vers command on Darwin, which is used by
uboot config to determine which gcc flags to provide
- Use gccStdenv.cc instead of stdenv.cc for Darwin support (Darwin
defaults to clang otherwise)
- Add HOSTCFLAGS=-fcommon to allow duplicate function definitions
- Parallelize defconfig generation with -j$NIX_BUILD_CORES
2025-07-19 21:59:19 -07:00
Jared Baur d8c6eaa95b ubootTools: add mkeficapsule to installed tools
This tool is useful for generating UEFI capsule files that can be
consumed by u-boot for firmware updates.
2025-07-17 07:58:28 -07:00
Jared Baur 4604f8e115 ubootBananaPim2Zero: init at 2023.07.02
Adds the upstream uboot (w/SPL) for the bananapi m2 zero board.
2025-07-17 07:57:02 -07:00
K900 ae291a1761 ubootOrangePi5Max: init 2025-07-10 09:26:45 +03:00
K900 76f5cd8f81 uboot: 2025.01 -> 2025.07 2025-07-08 15:49:54 +03:00
K900 08605bb2b9 ubootRockPro64: drop patch that should no longer be necessary
Further testing needed.
2025-07-08 15:49:54 +03:00
K900 ae9f1765fc ubootSheevaplug: mark broken 2025-07-08 15:46:03 +03:00
K900 4be64d9d05 ubootAmx335xEVM: mark broken 2025-07-08 15:46:03 +03:00
Connor Baker b0efcf6352 ubootTools: add fw_printenv/fw_setenv tool (#256625) 2025-07-06 20:50:19 -07:00
Jakob Leifhelm 319feec0a2 ubootVisionFive2: init 2025-06-06 17:22:25 +03:00
Jared Baur 819364cf0c ubootTools: add fw_printenv/fw_setenv tool
This tool allows for viewing/modifying u-boot's environment from linux.
2025-05-06 10:05:33 -07:00
Sandro 2512c82dc1 ubootQemuX86_64: init (#391962) 2025-05-05 16:31:26 +02:00
Sandro 24a6e7f334 uboot: make buildUBoot stdenv overridable (#378405) 2025-05-05 16:30:41 +02:00
Felix Singer 3e6d499285 ubootQuartz64B: Fix TPL binary
The TPL binary for RK3566 should be used instead of RK3568. Since the
binary for RK3568 works though, it wasn't noticed. However, change the
binary to the RK3566 one for correctness.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-04-30 04:05:49 +02:00
Tristan Ross 72b052e9c4 uboot: make buildUBoot stdenv overridable 2025-04-17 21:35:30 -07:00
Tristan Ross 40eb468abd ubootQemuX86_64: init 2025-04-17 09:24:02 -07:00
Felix Singer 7f390bd94c ubootQuartz64B: init
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-04-16 16:19:59 +02:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Peder Bergebakken Sundt 5aba99242e treewide: fix typos in comments
Made with

```shell
git restore .
fd '\.nix$' pkgs/ --type f -j1 -x bash -xc "$(cat <<"EOF"
    typos --no-check-filenames --write-changes "$1"
    git diff --exit-code "$1" && exit
    #( git diff "$1" | grep -qE "^\+ +[^# ]") && git restore "$1"
    count1="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> ' | wc -l )"
    count2="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> (<span style="color:#f8f8f2;"> *</span>)?<span style="color:#75715e;">.*</span>$' | wc -l )"
    [[ $count1 -ne $count2 ]] && git restore "$1"
EOF
)" -- {}
```

and filtered with `GIT_DIFF_OPTS='--unified=15' git -c interactive.singleKey=true add --patch`

I initially tried using the tree-sitter cli, python bindings and even ast-grep through various means, but this is what I ended up with.
2025-02-24 10:44:41 +01:00
Pratham Patel 60174a6bfe uboot: 2024.10 -> 2025.01 2025-02-13 13:43:01 +05:30