Commit Graph

2640 Commits

Author SHA1 Message Date
Ricardo Pardini
94bab3bb81 drivers_network: bump rtl88x2cs for 6.14.y
- ref https://github.com/jethome-ru/rtl88x2cs/pull/13 (done, thanks adeepv)
2025-03-26 10:05:36 +01:00
Ricardo Pardini
3777676009 drivers_network: bump rtl8189es/rtl8189fs/rtl8812au/rtl8811cu/rtl88x2bu for 6.14.y 2025-03-26 10:05:36 +01:00
Ian Goodacre
86ea59c378 Fix patching.sh to include untracked (new) files in patch 2025-03-23 20:50:33 +01:00
Rolf Leggewie
5e8ab3ae8b BSP: make -cli packages provide the armbian-bsp-cli virtual package 2025-03-23 20:49:51 +01:00
Rolf Leggewie
09267e3b5d nitpick: spell check s/neeeded/needed/ 2025-03-19 22:24:48 +01:00
Igor Pecovnik
4530b26278 Revert "Stop altering global git config file and set safe per cloned repository"
This reverts commit ccde662ccb.
2025-03-16 17:26:49 +01:00
Igor Pecovnik
ccde662ccb Stop altering global git config file and set safe per cloned repository 2025-03-16 11:53:56 +01:00
igorpecovnik
19b0a062a7 tools: Bump SHELLFMT_VERSION from 3.10.0 to 3.11.0 2025-03-16 11:53:12 +01:00
Igor Pecovnik
3199178c70 Multiple sources fix: after changing to deb822 we forgot on leftovers
- deboostrap still uses old ways and we need to remove this file
- when displaying the content of sources, we need to look correct file
2025-03-05 10:40:48 +01:00
amazingfate
47381df472 wireless: fix build with kernel 6.14 2025-02-26 21:40:01 +08:00
Igor Pecovnik
b47d408ff7 After changing apt lists methodology, we need to rebuild rootfs cache 2025-02-24 12:43:04 +01:00
Blieque Mariguan
8e75c8ebd1 feat: Use deb822 APT sources
- Replace `armbian.list` with `armbian.sources`. This holds the same
  information in a newer format, deb822.
- Replace HTTP with HTTPS for Armbian repositories.
2025-02-24 09:23:11 +01:00
Ricardo Pardini
370f85b067 python3: do not rely on hostdeps python3-pip nor python3-dev; deploy pip via get-pip.py
- python3-pip implies a very old setuptools (which is system-wide and takes precedence)
- python3-dev implies python3-distutils (which is long deprecated)
- get-pip.py allows us to version pip in requirements.txt just like everything else
- in the end this fixes the conundrum with pylibfdt / dtschema on Jammy
- and, finally, the setuptools we specify in requirements.txt will be actually used
2025-02-24 09:21:53 +01:00
Ricardo Pardini
0c7596bd5a export-logs: use multiple paste servers in order until one works
- user can override by setting PASTE_SERVER_HOST=some.paste.server.com
2025-02-22 22:35:45 -03:00
amazingfate
94949aec8a kernel: fix for 6.14 make clean fail at tools dir due to upstream dir change 2025-02-22 23:19:31 +08:00
Igor Pecovnik
ec2544e005 Bugfix: Remove directories from sha files 2025-02-10 20:17:25 +01:00
Ricardo Pardini
51b300ebdf armbian-kernel.sh: introduce KERNEL_BTF=no to opt-out of BTF/CO-RE type-info on low-RAM machines
- turns out `pahole` for `vmlinux` can take multiple gigabytes of RAM to run successfully
- I can't simply decide based on available RAM, as that would make .config hashes mismatch
- thus, introduce:
  - default is to enable BTF; if on low-ram host, error out unless KERNEL_BTF=yes is passed
  - if KERNEL_BTF=no is passed, the BTF debug info is always disabled
  - if KERNEL_BTF=yes is passed, then a warning is produced, but BTF is still enabled
- the magic number "6451 MiB" was determined empirically (and is probably bs)
2025-02-09 15:55:28 +01:00
Blieque Mariguan
3743daffa2 feat: Use deb822 APT source for armbian-config
- Replace creation of `armbian-config.list` with
  `armbian-config.sources`. This holds the same information in a newer
  format, deb822. This does not affect `armbian.list`.

See also: https://github.com/armbian/configng/pull/407
2025-02-04 18:49:52 +01:00
Igor Pecovnik
1477b478c5 Add upstream release as csc target: Ubuntu plucky 25.04 2025-01-23 18:30:49 +01:00
Lane Jennison
de97c74ae5 disable ccache in a friendly way 2025-01-23 15:12:27 +03:00
amazingfate
d4b5c30e09 wifi drivers: update commit id of rtl8811cu and rtl88x2bu 2025-01-22 10:01:37 +01:00
amazingfate
1f92b07c38 wireless: fix build with kernel 6.13 2025-01-21 19:35:49 +01:00
github-actions[bot]
7ea4cb3b8d
tools: Bump BATCAT_VERSION from 0.24.0 to 0.25.0 (#7706) 2025-01-21 13:28:56 +01:00
igorpecovnik
1557c9fcf0 tools: Bump ORAS_VERSION from 1.2.1 to 1.2.2 2025-01-21 13:28:08 +01:00
Ricardo Pardini
f21e700dc6 git: squash spurious warning when checking safe.directory 2025-01-21 13:25:36 +01:00
Ricardo Pardini
2f2c81744a kernel: call oldconfig _after_ kernel config hooks; add hook for CONFIG_CFG80211=m and CONFIG_MAC80211=m on 6.13+
- we need to run the hooks _before_ running oldconfig, otherwise it is too late
- drop `kernel_config_check_and_repair()` since it won't ever detect anything now
2025-01-21 13:25:11 +01:00
amazingfate
611746bfc2 Revert "armbian-kernel: skip enabling BTF for rk35xx vendor kernel"
This reverts commit b17e9e5db1.
2025-01-21 13:24:58 +01:00
Igor
4e33412ec2
Refactor armbian-config into install as external package (#7716)
* Refactor armbian-config into install as external package

- https://github.armbian.com/configng repository is always present
- package can still be removed from the install list

Since this tool will have deeper integration with Armbian, we should probably drop possibility to remove the tool from the list.

* Enable armbian-config as extension
2025-01-20 14:23:28 +01:00
Igor Pecovnik
f8e1b443f1 3rd party wifi: partially revert rtl8811cu driver as it breaks on K6.6 2025-01-19 21:49:41 +01:00
Igor Pecovnik
dc558d7c01 UEFI kernels, legacy = 6.6, current & edge 6.13 2025-01-19 20:21:52 +01:00
Ricardo Pardini
c469eeba7a hooks: introduce post_armbian_repo_customize_image and post_repo_customize_image
- `post_repo_customize_image`: runs after repos have been enabled
- `post_armbian_repo_customize_image`: same, but only if Armbian repo is enabled
- both run after apt update, so packages can be directly installed from repos
2025-01-19 20:21:11 +01:00
amazingfate
09dc5b0d9d dockerproxy: update GHCR_MIRROR_ADDRESS 2025-01-17 16:35:28 +03:00
amazingfate
f4457a3df5 ghproxy: update GHPROXY_ADDRESS to ghfast.top 2025-01-15 11:36:45 +08:00
amazingfate
b17e9e5db1 armbian-kernel: skip enabling BTF for rk35xx vendor kernel
fix minor typo by @EvilOlaf
2025-01-14 19:43:44 +08:00
Viacheslav Bocharov
245c74acbb update rtl8822cs driver link to latest commit (update for kernel 6.13+)
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2025-01-14 12:10:07 +03:00
Igor Pecovnik
5cc3e2e872 Fix handling loop devices 2025-01-08 13:17:47 +01:00
Ricardo Pardini
fdde912ebf uboot: debug u-boot directory contents before/after patching
- with DEBUG=yes, allows us to see what is leftover in directory during builds
- with new cleaning in separate commit, there shouldn't be any leftovers _at all_
2025-01-05 16:38:43 +01:00
Ricardo Pardini
79db9984f1 uboot: completely clean before building each target; slower but correct
- with this, every u-boot build will be a full rebuild.
  - still, building u-boot is pretty fast
  - and it is better to be a bit slower and actually produce correct results
2025-01-05 16:38:43 +01:00
Ricardo Pardini
7aeb48f172 u-boot: add per-target and general metadata files to u-boot package
- incl some indicative fdt/extlinux/gpt info
- include full config and defconfig for each target
- mark the old .config file as legacy (it was always the last-target's config)
- fix: savedefconfig after build, not before (as target_map might change it)
- fix: some very old u-boots (2011, odroidc1) do not have `savedefconfig` at all, so make it optional
- fix: same for `.config` -- very old u-boots worked different (`boards.cfg`?)
2025-01-05 16:38:43 +01:00
Tim Surber
7c5f95ef8c bump arm trusted firmware to 2.12 for rockchip64 2025-01-05 10:29:54 +01:00
Ricardo Pardini
87ceaaf635 kernel-debs: headers: postinst: switch from oldconfig to olddefconfig for less messy output; better logging 2025-01-05 10:24:30 +01:00
marcone
5ccc94dd56 fix typo 2025-01-04 15:36:06 +01:00
Ricardo Pardini
43ee737f30 runners: fix if_error_find_files_sdcard if looking for full paths (shows DKMS log correctly)
- this should make `dmks`'s `make.log` properly show up in error logs now
2025-01-04 15:35:29 +01:00
Ricardo Pardini
a408e0cbdf cli-docker: avoid argument list too long errors when too many git changes present; fixes #6993 2025-01-03 17:18:10 +01:00
Ricardo Pardini
b0303e5edc rootfs: fix: don't try to use chroot binaries after qemu was undeployed
- `"${cache_fname}.list"` and `"${cache_fname}.hash_text"` were very old and unused anyway
2025-01-02 13:46:03 +01:00
Paolo Sabatino
54628d7d3e rockchip: bump edge kernel to 6.13-rc5 2025-01-01 19:38:55 +01:00
Patrick Yavitz
8e621baeb9 RTW88: Add RTL88XXAU support to 6.12.y
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2025-01-01 13:31:22 -05:00
igorpecovnik
b1232edaa2 tools: Bump ORAS_VERSION from 1.2.0 to 1.2.1 2024-12-31 11:52:48 +01:00
Ricardo Pardini
de6b967e47 cli: kernel-dtb: don't output preprocessed dts unless BOOT_FDT_FILE is in <vendor>/<board>.dtb format
- so the .deb can be produced sans-errors for some armhf boards
- some better logging, curb the warnings a bit
2024-12-31 11:52:30 +01:00
Ricardo Pardini
6755e9190a don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+)
- refactor `prepare_host_binfmt_qemu()` out of `prepare_host_noninteractive()` and into `rootfs/qemu-static.sh`
  - further split into more functions and return early to avoid deep nesting
  - implement force import and load of qemu-arm for non-armhf capable arm64 hosts (incl magic numbers)
- enhance `deploy_qemu_binary_to_chroot()` & `undeploy_qemu_binary_from_chroot()`;
  - add 2nd param "caller" for better logging/tracking
  - does sanity-check and preserve existing binary if it exists
- explicitly deploy/undeploy for the 3 cases:
  - image: moved undeploy from `post_debootstrap_tweaks()` into image build proper for consistency
  - rootfs: was leaving trash behind (since post_debootstrap_tweaks never ran for rootfs), now properly undeploys
  - initrd: was already fine, just added caller info
- added `arch-test` host dependency
  - ensure `arch-test ${ARCH}` works during prepare-host
- > tl,dr: "can build 32-bit armv7 armhf using Apple silicon; can use rootfs cache cross-arch reliably"
2024-12-31 11:52:12 +01:00
Ricardo Pardini
6f0afc150c kernel-config: switch to exporting defconfig's for all .config files
- this affects `rewrite-kernel-config` and `kernel-config` CLIs
- this does not actually change the .config's we have, that will happen later / gradually as configs are rewritten
- no more `.defconfig` files are produced (they were in gitignore)
2024-12-31 11:50:59 +01:00
Ricardo Pardini
12f9318373 armbian-kernel: enforce arm64 kernels use 48-bit PA/VA 2024-12-31 11:50:48 +01:00
Ricardo Pardini
cafdca0cc4 armbian-kernel: enable BTF (and CO-RE) for all kernels 2024-12-31 11:50:48 +01:00
Ricardo Pardini
bcc13132ad armbian-kernel: disable module signatures, harder 2024-12-31 11:50:48 +01:00
The-going
d0ec958162 kernel_package_callback_linux_headers: Fix the cleaning process for tools.
In order for the cleanup to be correct for tools, we need to pass
the VMLINUX_BTF variable, which contains the real path to the vmlinux
file we just compiled.

The vmlinux file itself is not involved in cleaning,
but the Makefile checks for its presence and cleaning
is aborted if it is not found.
2024-12-30 20:33:45 +01:00
amazingfate
26c15ce439 wireless patches: fix build for kernel 6.13 2024-12-30 08:24:45 +08:00
Paolo Sabatino
06c37e510d Fix uwe5622 "spanning-writes" warning messages in dmesg 2024-12-26 20:30:54 +01:00
Alex Shumsky
4fd0e0c29d rootfs-to-image: preserve sparse files when moving artefacts to final destination with rsync 2024-12-24 22:33:51 +01:00
Arend-Jan van Hilten
1ab73573f4
Fix orangepizero wifi and usb otg (#7614) 2024-12-24 22:23:44 +01:00
amazingfate
fcbad0b426 ghproxy: update GHPROXY_ADDRESS to ghgo.xyz 2024-12-22 00:03:46 +08:00
amazingfate
b11a6fd872 apt-utils: fix hard-coded GHPROXY_ADDRESS 2024-12-18 21:03:51 +01:00
M.Schmidt
6607728e24 improve(lvm,cryptroot): export private key with a structurally equal naming scheme; cleanup 2024-12-13 10:01:19 +01:00
M.Schmidt
590b75fd6f improve(lvm+cryptroot extensions): enable possibility for LVM on LUKS 2024-12-13 10:01:19 +01:00
M.Schmidt
3ec24d40e8 fix(lvm,cryptroot extensions): introduce another variable to keep track of the physical partition/uuid and rootdevice/uuid seperately 2024-12-13 10:01:19 +01:00
Igor Pecovnik
4187ab3c51 Adjust deprecated key management support
Workaround for older builds were tied to version of apt, but this doesn't work anymore.
2024-12-13 09:40:56 +01:00
Dimitry Ishenko
6d63fbd928 armbian-config-deb: add missing deps
armbian-config uses debconf-apt-progress which is part of debconf.

libtext-iconv-perl is needed to prevent the following error, when
uninstalling a package through debconf-apt-progress:

Can't locate object method "new" via package "Text::Iconv" (perhaps you forgot to load "Text::Iconv"?) at /usr/share/perl5/Debconf/Encoding.pm line 65, <GEN2> line 2.
dpkg: error processing package nfs-common (--configure):
2024-12-11 11:26:52 +01:00
Dimitry Ishenko
40f8fa104b armbian-config-deb: sort deps 2024-12-11 11:26:52 +01:00
Ricardo Pardini
a55c8bfcb2 u-boot: check the produced platform_install.sh (created from functions like write_uboot_platform) for shellcheck errors
- we've some smelly stuff in write_uboot_platform for some families that we'd rather catch early
- implement small syntax fixes in setup_write_uboot_platform
2024-12-09 14:12:44 +01:00
Ricardo Pardini
6d9a06bf72 shellfmt: lib/functions; no changes 2024-11-25 11:32:28 +01:00
Igor Pecovnik
0b656192a9 Switch to action artifacts that was moved to .org 2024-11-20 15:22:21 +08:00
amazingfate
e1815dfeb7 apt-utils.sh: get base-files package version from GHA 2024-11-20 15:22:21 +08:00
Igor
6148907595
Improvements and bug fixes to Armbian user-space services (#6840)
* Add a list of BASH shell aliases and merge them with ohmyZSH aliases
* Add command armbian-upgrade to the BSP which executes update + upgrade
* Display armbian-upgrade only if there are upgrades
* Generate empty folder where will store data. This doesn't exists at early start
* Move armbian-install to /usr/bin and autoexecute sudo
2024-11-18 19:12:52 +01:00
Igor Pecovnik
01d7f7db0d Change development repository domain name to github.armbian.com 2024-11-14 21:38:43 +01:00
Ricardo Pardini
37d9200e6a hack: trixie has lost its software-properties-common package so get rid of it for all Debian releases
- https://tracker.debian.org/news/1579223/software-properties-removed-from-testing/
- that provides add-apt-repository, but we don't use that on Debian, hopefully
- move also cpufrequtils hack (which requires release) to specific function after userspace checks and when DISTRIBUTION is set
- `software-properties-gtk` if of course also gone, so remove that for desktop's sake
2024-11-12 11:42:13 +01:00
Werner
0afd94a84b
Deprecated WIREGUARD once and for all (#7452)
* remove wireguard

* remove wireguard

* remove wireguard

* Update armsom-sige1.csc

* Update hinlink-hnas.csc

* Update hinlink-h28k.csc

* Update hinlink-h66k.csc

* Update mangopi-m28k.csc

* Update hinlink-h68k.csc
2024-11-09 21:02:50 +01:00
Igor Pecovnik
48228f1e49 Userspace: Switch armbian-config to new generation. It has very small footprint, thus it will be installed by default 2024-11-05 16:35:36 +01:00
user
502e139598 New option: CRYPTROOT_MAPPER. Make ROOT_MAPPER name for CRYPTROOT changable. 2024-11-05 16:35:02 +01:00
user
817519210b Fix partitioning root UUID bug in /etc/crypttab. 2024-11-05 16:35:02 +01:00
igorpecovnik
68c758f4a1 tools: Bump SHELLFMT_VERSION from 3.9.0 to 3.10.0 2024-11-03 22:24:23 +01:00
aiamadeus
ef193e5a03 main-config: add China mirror for ghcr.io 2024-11-01 08:29:36 +01:00
aiamadeus
76b36c4da5 main-config: update ghproxy mirror address
The ghproxy mirror is more reliable than gitclone, so set it to default.
2024-11-01 08:29:36 +01:00
ColorfulRhino
82aa7b3963 compilation: armbian-kernel: Change forced uncompressed modules option for kernels >=v6.12
The kernel option `CONFIG_MODULE_COMPRESS_NONE`  was superseded by `CONFIG_MODULE_COMPRESS` in 6.12.
Adapt the kernel compilation script accordingly to force the correct kernel option.

Source: c7ff693fa2
2024-10-20 18:21:58 +02:00
Igor Pecovnik
7850d7750a Wireless drivers: remove driver for 8822BS applicable for old kernels < 5.16
Git was removed and there is not need to restore it.
2024-10-18 23:03:48 +02:00
Igor Pecovnik
9697c17fbd Overlay management: somewhere we had OVERLAY_DIR and somewhere OVERLAYDIR 2024-10-08 12:37:49 +02:00
Ricardo Pardini
fd692cd6b5 armbian-bsp-cli-deb: fix shellcheck breakage; fixes #7303
- also, shellfmt

Fixes: db2b432d18
2024-10-02 12:06:31 +02:00
The-going
028952fe1e sunxi-6.11: xradio: exclude driver if kernel version >= 6.11 2024-09-30 18:38:35 +02:00
Ricardo Pardini
55b87180b5 rootfs: don't use the Armbian repo when building rootfs from both GHA pipelines and CLI; fixes #7123
- Fixes: 71296430fa -- which only set `SKIP_ARMBIAN_REPO=yes` when `rootfs` cli shortcut used
  - GHA artifact pipelines are generic across all artifacts, and don't use the cli shortcuts
    - instead, they use the `artifact` shortcut, with the `WHAT=rootfs` parameter
    - so in GHA pipelines `SKIP_ARMBIAN_REPO=yes` was not taking effect
- rootfs artifact itself now enforces `SKIP_ARMBIAN_REPO` to be `yes` and makes it readonly
- also add `SKIP_ARMBIAN_REPO` to the general change-tracking for more clarity about configs and hooks etc
- add change tracking calls before/after generic artifact config adapter for even more clarity
2024-09-30 16:15:36 +02:00
Igor Pecovnik
89476e86f3 BSP: store kernel and kernel test target definition to /etc/armbian-release to be used in armbian-config
Kernel switching will be allowed only between kernels defined here.
2024-09-29 19:29:35 +02:00
Igor Pecovnik
6a03d070d7 MD5 sum: changing default checking as it will fail on base-files
Base files are changed during the process.

FORCE_CHECK_MD5_PACKAGES=yes turns checking back on.
2024-09-29 09:55:15 +02:00
Igor Pecovnik
aaf53327a7 Add property order which we use to sort releases historically 2024-09-27 15:08:54 +02:00
Igor Pecovnik
db2b432d18 BSP: Expand distribution status with possible upgrade information 2024-09-27 15:08:54 +02:00
Paolo Sabatino
1c79daddc0 bump rockchip64 edge kernel to v6.11 2024-09-21 14:18:19 +02:00
Ricardo Pardini
5396ffb602 patching: emit warnings when files in dt folder overwrite pre-existing files (DTs that landed upstream)
- it's more and more common that the (bare) DT files in our `dt` folders have landed upstream
- this adds warnings and marks the patching table red when some bare-dt file overwrites what's already in git
- without this it's very easy to forget them there during bumps
2024-09-18 16:31:34 +02:00
igorpecovnik
46dd7d2760 tools: Bump SHELLFMT_VERSION from 3.8.0 to 3.9.0 2024-09-16 13:17:49 +02:00
Igor Pecovnik
0d8ed3fbd1 Adding OVERLAYDIR variable to hash calculating mechanisms
This will force rebuild package in case this variable gets changed
2024-09-16 13:15:18 +02:00
Igor Pecovnik
4a1e10219c armbian-config: store overlay folder definition to /etc/armbian-release
This way we don't need to calculate yet again
2024-09-15 11:42:41 +02:00
David Andreoletti
f145fc2af2 armbian-firstrun: Optionally skip OpenSSH host key regeneration 2024-09-15 11:42:29 +02:00
rafael
dcff6cf71d fixes #7210 for extensions that modify rootdevice 2024-09-14 21:44:52 +02:00
Ricardo Pardini
7745d2ece6 kernel-debs: show 3 levels of dirs in tree output for kernel-dtb, so overlays are shown 2024-09-14 21:41:24 +02:00
IsMrX
dfe8fc39e8 Enable oras pull to use system proxy 2024-09-13 22:02:17 +02:00
amazingfate
b156e14b9a uwe5622: fix for rk35xx vendor kernel 2024-09-13 09:36:42 +08:00
Igor Pecovnik
8050897d07 rootfs cache: after updating github cli key, we need to rebuild rootfs cache 2024-09-12 07:33:07 +02:00
Ricardo Pardini
a1b1d61834 distro-specific: systemd-resolved: don't impose 1.0.0.1 DNS server on users
- See https://github.com/armbian/build/pull/6756/files#r1731373505

Fixes: b6f018a2b1
2024-09-10 21:59:14 +02:00
amazingfate
24be131989 dt_makefile_patcher: fix dtbs with dot in filename 2024-09-10 10:48:53 +08:00
Igor Pecovnik
56f5d6692c Revert setting default hostname to Armbian 2024-09-08 17:43:14 +02:00
Igor Pecovnik
59979a4573 Set default hostname to Armbian 2024-09-08 17:43:14 +02:00
Igor Pecovnik
7aa89f350f Store VENDORPRETTYNAME to the image instead to the BSP. This is image property. 2024-09-08 16:22:02 +02:00
Igor Pecovnik
05ae71d8f2 Store EXTENSION list to the image instead to the BSP 2024-09-08 16:22:02 +02:00
Igor Pecovnik
8ee40367d4 Revert "Store list of preinstalled extensions EXTENSIONS and add VENDORPRETTYNAME to image fingerprint"
This reverts commit 9af94d5977.
2024-09-08 16:22:02 +02:00
Ricardo Pardini
ea028fbcba prepare-host: trixie and sid don't carry python3-distutils anymore 2024-09-03 22:04:33 +02:00
Ricardo Pardini
b834256138 kernel-dtb: copy also the dtb binary for the board to output 2024-09-03 22:04:20 +02:00
Igor Pecovnik
9af94d5977 Store list of preinstalled extensions EXTENSIONS and add VENDORPRETTYNAME to image fingerprint 2024-09-03 22:03:04 +02:00
Igor Pecovnik
edbf678780 Improved freezing mechanism with README 2024-08-26 17:51:06 +02:00
Igor Pecovnik
ec76e1282e
More elegant solution to prevent kernel upgrades per certain board 2024-08-24 17:15:24 +02:00
Igor Pecovnik
a26eb472f0 Framework: bump tmpfs size as we are going over
Suppress this warning: "Rootfs post-tweaks size is larger than estimated tmpfs size"
2024-08-23 11:43:03 +02:00
Igor Pecovnik
71f5662dac Force rootfs cache rebuild - once again. 2024-08-23 06:59:40 +02:00
Igor Pecovnik
c0c7431af4 Enable allow-downgrades to base-files install to allow building images with older version than current
Framework stores our base-files in rootfs cache with version that comes from trunk and when we make stable images for current or previous release, build fails with error  E: Packages were downgraded and -y was used without --allow-downgrades.
2024-08-23 06:59:40 +02:00
Igor Pecovnik
8648d1f39b Expand functions install_deb_chroot and install_artifact_deb_chroot with accepting additional custom parameter
This adds support to pass additonal parameters to package installer.
2024-08-23 06:59:40 +02:00
Igor Pecovnik
71296430fa Framework: disable armbian repository while generating rootfs cache 2024-08-22 16:53:29 +02:00
JohnTheCoolingFan
bed3f85213 Run docker via run_host_command_logged 2024-08-18 10:40:32 +02:00
JohnTheCoolingFan
1045fda3d4 Check for loop devices and a temp container run 2024-08-18 10:40:32 +02:00
JohnTheCoolingFan
69f408236e Revert "Add MKNOD capability to docker container (#6927)"
This reverts commit 8162899d3d.

The capability has nothing top do with the actual issue.
2024-08-18 10:40:32 +02:00
Igor Pecovnik
54c79a2008 rootfs: add comment to force rootfs rebuild 2024-08-17 15:51:43 +02:00
ColorfulRhino
6e6fbac503 cli: kernel-make: Use build@armbian instead of armbian@next for KBUILD 2024-08-15 20:35:26 +00:00
ColorfulRhino
e8c4bde80f cli: kernel-make: Add note for parallel compression for xz
Source: https://lore.kernel.org/lkml/20200901151002.988547791@linuxfoundation.org/
2024-08-15 20:35:26 +00:00
Evgenii Zheltonozhskii
0aa2371db5 Support kernel compilation with Clang/LLVM 2024-08-15 13:20:01 +02:00
Kevin Schmidt
08ef1a960f Fix armbian-firmware-full package build.
Include symlinks from linux-firmware.
2024-08-12 10:45:27 +02:00
ColorfulRhino
b8dbe607e5 partitioning: Declare rootpart as local variable
The others like `uefipart` and `bootpart` are also defined as local var. Establish consistency.
2024-08-05 20:39:57 +02:00
ColorfulRhino
1092d60d3e partitioning: Set correct partition type UUID for root filesystem
Previously, only the type "Generic Linux filesystem" was used.
Use the correct type "Linux root ($ARCHITECTURE)" for the root filesystem.
2024-08-05 20:39:57 +02:00
ColorfulRhino
a027c4be37 partitioning: Add check to use legacy BIOS boot partition with GPT only, not MBR
Exit with an error message if trying to add this partition to an MBR disk.
2024-08-05 20:39:57 +02:00
ColorfulRhino
01d8716bf9 partitioning: Output the partitioning options to the debug log 2024-08-05 20:39:57 +02:00
ColorfulRhino
0b6d61f4c4 partitioning: Add some comments to improve readbility 2024-08-05 20:39:57 +02:00
schwar3kat
58b0a55351 Add Linux Mint Virginia and Wilma to supported hosts
Add virginia and wilma in host-release.sh

Add wilma in prepare-host.sh
2024-08-05 09:39:01 +02:00
Igor Pecovnik
264852642d Packages: move base-files, bsp-desktop and desktop packages to RELEASE specific folders 2024-08-03 16:09:15 +02:00
schwar3kat
129dd4c3aa
Fix_rtl8189fs_WiFi_driver (#6984)
Fix wrong commit being pulled for rtl8189fs WiFi driver.

Add CONFIG_RTL8189FS=m to linux-sunxi-current.config and linux-sunxi64-current.config.
2024-07-23 17:16:54 +12:00
Ricardo Pardini
f3f89a78ec utils-dpkgdeb: force rebuild of all artifacts, due to https://github.com/armbian/build/pull/6964 (ORAS change) 2024-07-21 10:25:10 +02:00
Ricardo Pardini
e4032228dd oci-oras: fix for ORAS > 1.x, as it now requires HOME to be set (fixes download-artifact)
- it hasn't HOME when run under the matrix-prepare multiprocess launcher, so use TMPDIR
- fixes https://github.com/armbian/build/pull/6964
2024-07-21 10:24:23 +02:00
igorpecovnik
e5fe080b0a tools: Bump BATCAT_VERSION from 0.23.0 to 0.24.0 2024-07-20 09:15:13 +02:00
igorpecovnik
f1e63eb8df tools: Bump ORAS_VERSION from 0.16.0 to 1.2.0 2024-07-20 09:14:56 +02:00
igorpecovnik
984050a2df tools: Bump SHELLCHECK_VERSION from 0.9.0 to 0.10.0 2024-07-20 09:14:06 +02:00
amazingfate
5bd400a726 add customized GHCR_MIRROR_ADDRESS support 2024-07-18 11:50:42 +02:00
ColorfulRhino
7e9adb3811 cli: uboot: Move uboot_cflags variable to before its first use 2024-07-18 11:42:16 +02:00
amazingfate
ee145942fe wifi: rtl8852bs: add driver for family instead of board 2024-07-13 17:50:20 +08:00
JohnTheCoolingFan
8162899d3d
Add MKNOD capability to docker container (#6927)
* Added MKNOD capability to docker container
* Added comment explaining why MKNOD capability is needed
2024-07-11 16:09:43 +03:00
ColorfulRhino
f25fc42e1e wifi: rtl8852bs: Add some comments 2024-07-11 09:55:16 +08:00
amazingfate
9381edb69d wifi: rtl8852bs: fix build for rockchip 2024-07-11 09:55:16 +08:00
ColorfulRhino
d638276fcc partitioning: Reduce commit mount option for btrfs and ext4 to 120
Mount option `commit=600` (=10 minutes) seems pretty high.
Reduce it to 120 for ext4 (default for ext4 is `commit=5`)
and 120 for btrfs (default for btrfs is `commit=30`) to reduce
risk of losing data on power loss.

Sources:
- https://www.kernel.org/doc/html/latest/admin-guide/ext4.html
- https://wiki.archlinux.org/title/Btrfs#Commit_interval
- https://btrfs.readthedocs.io/en/latest/Administration.html
2024-07-09 11:31:51 +02:00
ColorfulRhino
39fdf21b98
Beautify shellfmt and add board configs to formatting list (#6910)
* tools: shellfmt: Beautify and add board configs to formatting list
* Format the whole code using `lib/tools/shellfmt.sh`
---------
Co-authored-by: Igor <igor@armbian.com>
2024-07-08 17:00:38 +02:00
ColorfulRhino
8056532684 cli: main-config: Move NETWORKING_STACK config after family config
This allows family configs to change the networking stack.
2024-07-08 16:54:36 +02:00
ColorfulRhino
5bb665f965 cli: uboot: Remove HOME workaround for old tinkerboard/xt-q8l-v10 U-Boot
This temporary workaround was only needed for tinkerboard and xt-q8l-v10 version 2022.04 U-Boot. The version has since bumped to 2024.07 and builds fine without this.
2024-07-08 13:02:15 +02:00
Ricardo Pardini
4232661c37 u-boot: embed armbian artifact version in CONFIG_LOCALVERSION
- we're hacking at it anyway, so why not use it to uniquely identify the exact build
2024-07-07 13:06:56 +02:00
Viacheslav Bocharov
c27c55b0bc Fix trap-logging to CI ant not GITHUB_ACTIONS
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2024-07-04 21:35:26 +02:00
Viacheslav Bocharov
d73c4cefab Fix check CI && GITHUB_ACTIONS for GITHUB_OUTPUT to only GITHUB_ACTIONS
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2024-07-04 21:35:26 +02:00
Viacheslav Bocharov
7875fce1e9 Allow to pass docker login credentials to oras-cli for and CI environment
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2024-07-04 21:35:26 +02:00
Igor Pecovnik
f4555df0ba Revert "git: git_ensure_safe_directory(): use env vars instead of changing config"
This reverts commit 11245601d0.
2024-07-03 17:31:05 +02:00
ColorfulRhino
63ad4d935e cli: Improve patching logs for U-Boot and kernel 2024-07-03 14:02:29 +02:00
Ricardo Pardini
11245601d0 git: git_ensure_safe_directory(): use env vars instead of changing config 2024-07-03 06:49:56 +02:00
Ricardo Pardini
d9b67b37d5 u-boot: use pipetty in place of unbuffer
- unbuffer never solved anything; pipetty might
2024-07-03 06:44:16 +02:00
ColorfulRhino
e29b960649 cli: kernel-patching: Print KERNELBRANCH and KERNELPATCHDIR before patching 2024-07-02 23:08:41 +02:00
ColorfulRhino
3831a72e97 cli: uboot-patching: Print BOOTBRANCH and BOOTPATCHDIR before patching 2024-07-02 23:08:41 +02:00
Ricardo Pardini
c5697cf62a bsp-cli/bsp-desktop: hashing fixes
- both artifacts use functions in the bsp/utils-bsp.sh file, which wasn't being hashed
- bsp-cli hashed non-existent 'packages/bsp-cli' directory, remove
- bsp-cli: be verbose when rsync'ing `packages/bsp/common`
- force sync in a few strategic spots
- utils-bsp.sh: be verbose when copying files (incl `config/optional` stuff)
2024-07-02 23:06:42 +02:00
Ricardo Pardini
a02a6ca680
rootfs: add comment to force rootfs rebuild (#6864) 2024-07-02 12:14:22 +02:00
ColorfulRhino
308eba5d31 cli: dt_makefile_patcher: Allow numbers in configopt regex
This fixes detection of the config option for SpacemiT K1 which is `CONFIG_SOC_SPACEMIT_K1X`.
Otherwise it would not find it because it includes a '1'.
2024-07-01 19:15:00 +02:00
ColorfulRhino
b572f30472 wifi: Add new SDIO driver rtl8852bs for BananaPi F3
Also add for Armsom Sige5 since it has the same chip built-in.
2024-07-01 19:15:00 +02:00
Patrick Yavitz
e81998fa81 cli: uboot.sh: Copy over itb from atftempdir
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-07-01 19:15:00 +02:00
Ricardo Pardini
21a6b2cab3 u-boot: add HOME env for make invocations to avoid binman/Python problems with older u-boot versions
- this avoids trouble building certain older versions with binman
  - as it tries to `os.path.join(os.getenv('HOME'), 'bin')` and gets a `None` and dies
- naming names: `tinkerboard` & `xt-q8l-v10` (BOARDFAMILY=rockchip), which _actually use_ binman & 22.04 combo
2024-06-30 21:23:04 +02:00
ColorfulRhino
1a3ca2735b cli: Remove hostapd reference
The extra package `hostapd` is not used/installed anymore.
2024-06-30 12:27:41 +00:00
ColorfulRhino
0441d2ee1f Remove old torrents which aren't referenced anywhere
- Also remove 10+ years old compilers from `external_toolchains.sh`
2024-06-30 10:12:04 +00:00
ColorfulRhino
792d9d9dc3 cli: uboot: Include PYTHONPATH in env for compiling U-Boot
- Also group all u-boot make environment variables together for easier maintainability
- Fixes u-boot requiring `pyelftools`
- Fixes commit 04f619dc06
2024-06-30 09:22:17 +02:00
Gunjan Gupta
cea2fc5b46 Lets not spam users with error message on fresh checkout 2024-06-27 23:14:15 +02:00
Ricardo Pardini
1ff783d867 fix: partitioning: disable orphan_file (FEATURE_C12) for ext4 filesystems on 1.47+ e2fsprogs host
- otherwise:
  ```
  fsck.ext4 -a -C0 /dev/mmcblk0p1
  /dev/mmcblk0p1 has unsupported feature(s): FEATURE_C12
  e2fsck: Get a newer version of e2fsck!
  ```
- `orphan_file` can only be disabled on recent-enough e2fsprogs, thus check version and compare
2024-06-27 14:25:20 +02:00
ColorfulRhino
d75b1816ff cli: Improve formatting on dts-check scripts with shellfmt.sh 2024-06-25 18:11:43 +02:00
ColorfulRhino
24816c1831 cli: prepare-host: Invert host-release checking for python2
Instead of having to add every new release to the list that does not support python2, inverse this if statement and only check if the build host is Debian bullseye or ubuntu jammy. Every release newer than those do not have python2. Older build hosts are unsupported.
2024-06-25 18:11:43 +02:00
ColorfulRhino
04f619dc06 python: Move python3-setuptools and python3-pyelftools to requirements.txt
Different build hosts have vastly different versions of setuptools and pyelftools depending on the host OS, e.g. Ubuntu 22.04 has setuptools v59 while the latest version at the time of this commit is setuptools v71.

Using Pip instead of APT to download these packages assures that all build hosts use the same version, removing some points of failures and inconsistencies.
2024-06-25 18:11:43 +02:00
ColorfulRhino
5ec9564a0b cli: commands: Ignore cache for dts-check command
This way the dts-check command works even when no changes to the kernel were made.
2024-06-25 18:11:43 +02:00
ColorfulRhino
9ff35b77b9 cli: python-tools: Add toolchain to PATH to fix building wheels 2024-06-25 18:11:43 +02:00
Igor Pecovnik
024c0866ad DTS-check: Python librarires have troubles to build, disabling for now
- Add requirements.txt to Dockerfile generation
2024-06-25 08:53:22 +02:00
ColorfulRhino
3cca9dcaed Fix formatting in scripts by running lib/tools/shellfmt.sh version 3.8.0 2024-06-25 07:06:34 +02:00
ColorfulRhino
7f8576f378 tools: Slightly improve output for shellfmt 2024-06-25 07:06:34 +02:00
ColorfulRhino
a46481c96a tools: Update shellfmt default version to 3.8.0 2024-06-25 07:06:34 +02:00
ColorfulRhino
7aadb808e1 cli: python-tools: Use requirements.txt file for Pip dependencies
This makes dependencies easier to track and opens up the possibility for Dependabot to update them.
2024-06-25 07:06:21 +02:00
ColorfulRhino
de81f10b0d cli: Add command "dts-check"
Validates the dts/dtb file for the selected board and outputs the validation logs to the user.
This can be used when adding a new board, developing or improving a dts file. Should lead to higher quality device trees and patches overall, if used.
Will show warnings/errors if patches patch in some functionalities to a devicetree file without patching in the dt-bindings .yaml at the same time.
2024-06-25 07:06:21 +02:00
ColorfulRhino
663530dcf6 python-tools: Bump pip dependencies to their latest versions
No new major versions
2024-06-25 07:06:21 +02:00
Ricardo Pardini
8bc4335584 networking: main-config: introduce NETWORKING_STACK to control network exts; allow "none"; fix typo
- `NETWORKING_STACK` can be set to `none` (in config phase, pre-extensions) to not-add any networking extensions
- keep defaulting to systemd-networkd if BUILD_MINIMAL and NetworkManager otherwise
- fix typo in extension name
- add `NETWORKING_STACK` to change-tracking
2024-06-24 12:24:15 +02:00
Igor Pecovnik
75ce67f329 Run shellfmt to complete code 2024-06-22 19:22:24 +02:00
Alex
1341c19ef4
add device-tree-overlay to bsp-cli debian dependencies (#6779)
Fixes issue: [AR-2381](https://armbian.atlassian.net/browse/AR-2381)
2024-06-22 15:32:54 +02:00
Alex Shumsky
bbd5699e13 partitioning: fix race condition on loop device allocation 2024-06-21 22:14:01 -04:00
Igor Pecovnik
9d187dffeb Deboostrap: switch to last known working tag 2024-06-21 11:14:29 +02:00
ColorfulRhino
b6f018a2b1 net: Use resolved for DNS resolution
- Use resolved no matter what manages the network (networkd or NetworkManager)
- Use resolved.conf.d/ directory to set DNS as recommended by resolved itself
- In armbian-firstrun, remove config specific to mvebu64|mt7623 since this is now done by default
2024-06-20 19:59:52 +02:00
ColorfulRhino
a8a55ddbf2 net: Remove old ifupdown stuff
This stuff is not needed anymore. Things will likely work as expected, even when installing ifupdown2
2024-06-20 19:59:52 +02:00
ColorfulRhino
78bd36b5a6 cli: Use recommended method for symlinking /etc/resolv.conf 2024-06-20 19:59:52 +02:00
ColorfulRhino
497c6dce0e extension: net: Refactor, fix and improve network extensions
- Rename extensions with "net-*" prefix
- Put the extensions into their own folder
- Split off time sync packages into their own extensions to be able to be used separately
- Put their config files into directories instead of using inline `cat <<- EOF >`
- Move some other NetworkManager related stuff into the extension
- Remove unneeded steps
- Install iproute2 by default on all images (for the `ip` command)
2024-06-20 19:59:52 +02:00
Igor Pecovnik
f4b160abde Move Network Manager bits into extensions
- use Chrony with Network Manager
- use timesync with systemd-networkd
- use NetPlan with Network manager only
- move command-not-found to CLI image only
- improve firstlogin ip detection
2024-06-20 19:59:52 +02:00
Igor Pecovnik
b2aea3ba42 Debian buster: disable non-existing backports repository 2024-06-18 21:47:21 +02:00
Muhammed Efe Cetin
9432db1acc rockchip64: add support for OPTEE blobs 2024-06-17 14:11:33 +02:00
ColorfulRhino
0bf3ba7607 cli: Fix DEFAULT_OVERLAYS array
Shellcheck errors/warnings were:
In lib/functions/rootfs/distro-agnostic.sh line 155:
	display_alert "Adding to extlinux.conf" "fdtoverlays=${DEFAULT_OVERLAYS[@]}" "debug"
                                                         ^--------------------^ SC2145 (error): Argument mixes string and array. Use * or separate argument.

In lib/functions/rootfs/distro-agnostic.sh line 156:
	echo "  fdtoverlays ${DEFAULT_OVERLAYS[@]}" >> "$SDCARD/boot/extlinux/extlinux.conf"
                        ^--------------------^ SC2145 (error): Argument mixes string and array. Use * or separate argument.

In lib/functions/rootfs/distro-agnostic.sh line 193:
	if [[ -n $DEFAULT_OVERLAYS && -f "${SDCARD}"/boot/armbianEnv.txt ]]; then
             ^---------------^ SC2128 (warning): Expanding an array without an index only gives the first element.
2024-06-16 11:23:15 +00:00
Muhammed Efe Cetin
f28bb4e5ae extlinux: add DEFAULT_OVERLAYS support 2024-06-14 20:51:46 +02:00
Alessandro Lannocca
26345f03d0 double quote variable for consistency 2024-06-09 18:24:38 +02:00
Alessandro Lannocca
717143b472 build xapian-index for synaptic only for stable releases 2024-06-09 18:24:38 +02:00
Alex
eb7b39cc3a
Enhance build times disabling command-not-found during rootfs creation (#6616) 2024-06-09 16:00:18 +02:00
Ricardo Pardini
282fb964e5 patching: rewrite: fully stabilize patch index stanzas as well as From lines
- `git format-patch --zero-commit` doesn't affect `index xxx...yyy` lines, only `From: `
  - so use the _classy_ "use a regex with a callback" solution as git format-patch doesn't offer one
- this will make _all_ patches change when rewritten, but hopefully _for the last time_ !
- we need to preserve `index 000000000000..xxx` as zeros, which indicate new file creation, thus:
  - new file creations are rewritten as `index 000000000000..111111111111`
  - non-creations are rewritten as `index 111111111111..222222222222`
- this is the final version of #6455
2024-06-09 10:42:26 +02:00
Igor Pecovnik
d7db1cd26b Add 6.9 compatibility fix for UWE and rewrite rockchip64 kernel config 2024-06-06 15:35:08 +02:00
Igor Pecovnik
8f0596dc8f Wireless drivers: port 8723cs to be compatible with kernel 6.9 2024-06-06 15:35:08 +02:00
Alex
bb5fd2ab03
RFC: fix #6686: Debian: enable ssh.service and make it work reliably on armbian-firstrun (#6687)
* Revert commits 911c756083 and 30c47f6f6c

* tweak armbian-firstrun.service to run after ssh.service (for host keys generation purposes)
2024-06-05 15:20:34 +02:00
Patrick Yavitz
aa2d4696ca RTL88X2CS: linux 6.9.y support
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-06-04 07:17:44 -04:00
Igor
07047176cc
Bump UEFI edge kernels with kernel config rewrite (#6666)
* Bump UEFI edge kernels with kernel config rewrite
* Update wireless drivers that breaks compilation
2024-06-01 22:35:46 +02:00
Igor Pecovnik
3406519dee Adjust wireless drivers to build on kernel 6.9.y 2024-06-01 19:13:25 +02:00
Igor Pecovnik
3d1d9180c2 Remove reverse dependency for armbian-config
This utility doesn't need any build dependency and should be able to work standalone
2024-05-22 15:47:16 +02:00
JohnTheCoolingFan
cf7923c21f Add doas support to is_root_or_sudo_prefix
doas is not compatible with sudo flags. The codebase was checked for
sudo-specific uses of this function, but none were found, all cases were
in the form of `sudo <command>`. Replacing it with `doas <command>`
yields the same result.
2024-05-21 20:27:03 +02:00
Gunjan Gupta
1f22aa4977 limit git-sources.json file generation to specific commands 2024-05-21 20:26:33 +02:00
JohnTheCoolingFan
67147b88cb Revert "Add doas support to is_root_or_sudo_prefix"
This reverts commit 324647c039.
2024-05-20 15:58:51 +02:00
JohnTheCoolingFan
7da42c8a42 Revert "Added a call to losetup -f"
This reverts commit b3d9a17a57.
2024-05-20 15:58:51 +02:00
JohnTheCoolingFan
b3d9a17a57 Added a call to losetup -f
See https://github.com/armbian/build/issues/6568
2024-05-20 08:51:39 +02:00
JohnTheCoolingFan
324647c039 Add doas support to is_root_or_sudo_prefix
doas is not compatible with sudo flags. The codebase was checked for
sudo-specific uses of this function, but none were found, all cases were
in the form of `sudo <command>`. Replacing it with `doas <command>`
yields the same result.
2024-05-20 08:51:39 +02:00
Ricardo Pardini
40371934d2 lib & config: give shellcheck directions (to /dev/null for dynamic, to repo-relative path for static) for all sourced references
- in preparation for tightening the shellcheck severity level
  - it needs to be able to follow all sources; dynamic ones are ignored, static ones need root-relative prefix
2024-05-19 19:41:35 +02:00
Alex
fe64f1f435
RFC: disable ssh.service - enable ssh.socket AND switch firstlogin reload ssh to restart (#6586)
* reload-or-restart ssh prevents botching if sshd is started by a systemd socket
* restart ssh prevents botching if sshd is started by a systemd socket
* move sshd activation from ssh.service to ssh.socket:
- more realiable, avoids possible race condition on first boot
- supplementary to PR#6586 - and commits ffee50a8a6 and 6725032191
* Add display_alert explaining the change in SSH activation
2024-05-17 15:30:13 +02:00
Igor Pecovnik
1b05504c43
Revert "Remove debootstrapped static resolv.conf"
This reverts commit ddcda273a5.
2024-05-12 19:05:04 +02:00
Alessandro Lannocca
ddcda273a5 Remove debootstrapped static resolv.conf 2024-05-12 15:24:54 +01:00
Alex
9063417d90
Treat sid and unstable as synonyms in distro-specific.sh (#6582)
Credits: @going --> https://forum.armbian.com/topic/37503-kali-linux-as-supported-distro/
2024-05-11 21:59:17 +02:00
Ricardo Pardini
fb17a2a84f armbian-kernel: drop DEBUG_KERNEL/DEBUG_INFO disables; force EXPERT=y and bring back CONFIG_GPIO_SYSFS=y for all kernels
- we had `_DEBUG=n` forced, which conflicted with `_EXPERT=y`;
  - some important SBC features (like _GPIO_SYSFS) depend on _EXPERT=y
- we've plans to enable BTF/CO-RE kernels soon, so removing the non-debug enforcement makes some sense
  - also, .config's will be free to determine debug config, nothing's changing in those here
- remove the `_EMBEDDED` special case handling, we can do that as well now
- add a separate hook to renable `CONFIG_GPIO_SYSFS=y`; it was a victim of `EXPERT=n` in some kernels
- this does not include rewrites of all the .configs -- those should be done in a separate batch -- either way effect is the same, hooks will always override .config's
  - during rewrites, a large number of new options will show up, since `_EXPERT=y` is used as dependency for many of Kernel's experimental-ish features
2024-05-11 17:35:27 +01:00
Igor Pecovnik
514c6a48e8 Return Noble armhf arch as it works
- remove kinetic, lunar, mantic
- fix armhf sid, noble, oracular
2024-05-11 12:15:22 +01:00
Ricardo Pardini
dde0e0f62c main-config.sh: workaround: set the default ARCH to arm64 (replacing armhf)
- armhf was disabled for some releases and now we get spurious failures building certain artifacts (firmware)

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2024-05-11 00:12:46 +01:00
Igor Pecovnik
017acb063c Add Ubuntu Oracular 2024-05-10 13:25:00 +01:00
Igor Pecovnik
f0fcb29465 Create output/info early in host prepare for storing JSON files and remove JSON 2024-05-10 13:24:18 +01:00
Gunjan Gupta
7dabd9300d Add ability to freeze git resources 2024-05-10 13:24:18 +01:00
Ricardo Pardini
1d819c7b86 prepare-host.sh: deps: add libgnutls28-dev, needed for some u-boot builds 2024-04-29 02:26:38 +08:00
Ricardo Pardini
6a242ab149 prepare-host.sh: deps: Noble dropped python3-distutils; fixes #6527
- keep it for older releases
2024-04-29 02:26:38 +08:00
Ricardo Pardini
981b1939db prepare-host.sh: deps: replace liblz4-tool with lz4
- should fix sid and trixie, which dropped the metapackage
2024-04-29 02:26:38 +08:00
Igor
07800f9a4a Revert "python-tools: Bump pip dependencies to their latest versions"
This reverts commit c46e99ec60.
2024-04-26 20:46:42 +08:00
Igor
aa9fea7797 Revert "cli: Add command "dts-check""
This reverts commit 54618c1bd3.
2024-04-26 20:46:42 +08:00
ColorfulRhino
54618c1bd3 cli: Add command "dts-check"
Validates the dts/dtb file for the selected board and outputs the validation logs to the user.
This can be used when adding a new board, developing or improving a dts file. Should lead to higher quality device trees and patches overall, if used.
2024-04-26 18:18:56 +08:00
ColorfulRhino
c46e99ec60 python-tools: Bump pip dependencies to their latest versions
No new major versions
2024-04-26 18:18:56 +08:00
Igor Pecovnik
60250d17af After bumping rk3319-box u-boot to most recent versions, we need pure-python3 library for parsing ELF and DWARF
https://github.com/armbian/build/pull/6509
2024-04-23 01:50:49 +08:00
Brent Roman
7343ca42f7 Restore WiFi functionality to the RockPi-S
Reverts the part of 7b2c985363 that deprecated the RTL8723 driver.
The RTW88 driver for the RTL8723DS **does not work**
See issue Jira AR-2121
2024-04-16 00:36:19 +08:00
Ricardo Pardini
a2c81c22e8 batcat: skip running batcat, with a warning, if running on riscv64
- someone go add riscv64 to https://github.com/sharkdp/bat
2024-04-07 13:23:34 +02:00
Ricardo Pardini
fd7003125e shellcheck: skip running shellcheck, with a warning, if running on riscv64
- someone go add riscv64 to https://github.com/koalaman/shellcheck
2024-04-07 13:23:34 +02:00
Ricardo Pardini
cd0820a0d5 prepare-host: add libffi-dev host dependency, needed for Python3 setuptools (when prebuilt wheel not found)
- fixes errors that show up only when building on non-arm64/amd64, when there's no prebuilt wheel (eg on riscv64)
2024-04-07 13:23:34 +02:00
Ricardo Pardini
9bef0a5e5a oci-oras: use ORAS 1.2.0-beta.1 for riscv64 2024-04-07 13:23:34 +02:00
Ricardo Pardini
41b99ec2b1 rootfs-create: if debootstrap second stage fails, find debootstrap.log and show it so we know what the error is
- runner: let `if_error_find_files_sdcard` be a simple filename (different debootstraps put debootstrap.log in different places)
2024-04-07 13:22:11 +02:00
Ricardo Pardini
28e1b946c9 kernel-debs: linux-libc-dev: add Conflicts: linux-libc-dev
- can't remember if should add `Replaces: linux-libc-dev` as well

Maybe-fixes: 22511b31cf
2024-04-07 13:21:33 +02:00
Ricardo Pardini
e83d1a0eab kernel-debs: fix: don't try to package linux-libc-dev if only packaging dtb
Fixes: 22511b31cf
2024-04-03 18:31:43 +02:00
Ricardo Pardini
180b79cddc kernel-dtbs: output a somewhat-diffable preprocessed dtc-massaged version of the DTS
- useful for diffs across the same kernel, much less so across
2024-04-03 18:30:37 +02:00
Patrick Yavitz
7df2f46a91 RTW88: 6.x.y fixups
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-04-03 11:59:06 -04:00
Ricardo Pardini
309825efe8 config: allow to build BRANCHes not listed in KERNEL_TARGET as long as the config is valid
- useful for `collabora` and other experimental kernels, we don't want to have to add it to each individual board's KERNEL_TARGES one by one
- but we don't want to allow typos in BRANCH to emit very strange unrelated errors
2024-04-02 21:10:06 +02:00
Ricardo Pardini
5e943dede7 main-config: fix: avoid errors when BRANCH contains a dash; convert to underscore 2024-04-02 21:10:06 +02:00
Ricardo Pardini
1074c969e8 Revert "rockchip-rk3588: it's vendor boogie panthor time (experimental) (#6459)"
This reverts commit 43cf339c6c.
2024-04-02 21:10:06 +02:00
Ricardo Pardini
43cf339c6c
rockchip-rk3588: it's vendor boogie panthor time (experimental) (#6459)
* main-config: fix: avoid errors when BRANCH contains a dash; convert to underscore

* rockchip64_common: shellfmt, no changes

* rockchip64_common: move SERIALCON defaulting logic to a (verbose) hook for flexibility

* config: allow to build BRANCHes not listed in KERNEL_TARGET as long as the config is valid

- useful for `collabora` and other experimental kernels, we don't want to have to add it to each individual board's KERNEL_TARGES one by one
- but we don't want to allow typos in BRANCH to emit very strange unrelated errors

* extensions: mesa-oibaf extension by @monkaBlyat - mainline mesa PPA for Ubuntu

- does nothing on Debian

* extensions: (v3) amazingfated-rk35xx, now `rk-multimedia-amazingfate` - panfork-free

- simply skips if not on Jammy
- deploys Chromium + Widevine if desktop

* rockchip-rk3588: introduce `vendor-boogie-panthor` experimental BRANCH/kernel

- original: https://github.com/hbiyik/linux-rockchip.git (branch `rk-6.1-rkr1-panthor-v6`)
- I picked the commits on top of clean armbian/linux-rockchip `6.1-rkr1` as of 2024-04-01
  - At https://github.com/rpardini/armbian-linux-rockchip-rk3588/tree/armbian-rk-6.1-rkr1-plus-boogie-panthor-v6
  - Diff: https://github.com/armbian/linux-rockchip/compare/rk-6.1-rkr1...rpardini:armbian-linux-rockchip-rk3588:armbian-rk-6.1-rkr1-plus-boogie-panthor-v6

- rockchip-rk3588: introduce `boogie-bsp` BRANCH
- rockchip-rk3588: copy linux-rk35xx-vendor.config into linux-rk35xx-boogie-bsp.config
- rockchip-rk3588: update linux-rk35xx-boogie-bsp.config, no changes
- rockchip-rk3588: linux-rk35xx-boogie-bsp.config: `CONFIG_DRM_PANTHOR=m`
- rockchip-rk3588: linux-rk35xx-boogie-bsp.config: convert to defconfig
- rockchip-rk3588: rename to `BRANCH=vendor-boogie-panthor` for "clarity" (lol)
- rockchip-rk3588: vendor-boogie-panthor: force SERIALCON, full firmware (for blob needed for panthor) & mesa-oibaf extension
- rockchip-rk3588: vendor-boogie-panthor: enable amazingfated-rk35xx extension sans-panfork
2024-04-02 20:30:38 +02:00
ColorfulRhino
ee8a3d9675 Kernel config hooks: Use custom_kernel_config instead of armbian_kernel_config
Since `armbian_kernel_config` is "NOT for user consumption. Do NOT use this hook, this is internal to Armbian."
`custom_kernel_config`  is able to overwrite previously set values.
2024-03-30 21:09:12 +01:00
Igor Pecovnik
9905082d4e Changing file to force full rootfs cache rebuild due to upstream backdoor 2024-03-29 20:22:54 +01:00
ColorfulRhino
3b73b5fd81 kernel-config: Fix forced option IKCONFIG
Also rewrite some kernel configs to reflect this fix
2024-03-29 15:57:40 +00:00