Commit Graph

2449 Commits

Author SHA1 Message Date
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