2285 Commits

Author SHA1 Message Date
Ricardo Pardini
45545d1859 rootfs: add comment to force rootfs rebuild (#6864) 2024-08-06 16:45:09 +08:00
ColorfulRhino
377225e7c2 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-08-06 16:45:07 +08:00
ColorfulRhino
4c07db5116 wifi: Add new SDIO driver rtl8852bs for BananaPi F3
Also add for Armsom Sige5 since it has the same chip built-in.
2024-08-06 16:45:07 +08:00
Patrick Yavitz
dc7e770a94 cli: uboot.sh: Copy over itb from atftempdir
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-08-06 16:45:07 +08:00
Ricardo Pardini
22ded1a485 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-07-03 18:43:01 +08:00
ColorfulRhino
28f204a712 cli: Remove hostapd reference
The extra package `hostapd` is not used/installed anymore.
2024-07-03 18:42:03 +08:00
ColorfulRhino
0c2b3bdea7 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-07-03 18:35:21 +08:00
Gunjan Gupta
44e5a1198c Lets not spam users with error message on fresh checkout 2024-07-03 18:35:21 +08:00
Ricardo Pardini
5e7e4910cd 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-07-03 18:35:21 +08:00
ColorfulRhino
c80f9d344e cli: Improve formatting on dts-check scripts with shellfmt.sh 2024-07-03 18:35:21 +08:00
ColorfulRhino
b9fa28d581 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-07-03 18:35:21 +08:00
ColorfulRhino
d6e9b0dcf9 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-07-03 18:35:21 +08:00
ColorfulRhino
35944acb86 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-07-03 18:35:21 +08:00
ColorfulRhino
321c5aeeaa cli: python-tools: Add toolchain to PATH to fix building wheels 2024-07-03 18:35:21 +08:00
Igor Pecovnik
4253fdaf56 DTS-check: Python librarires have troubles to build, disabling for now
- Add requirements.txt to Dockerfile generation
2024-07-03 18:35:21 +08:00
ColorfulRhino
2dd3fff73d Fix formatting in scripts by running lib/tools/shellfmt.sh version 3.8.0 2024-07-03 18:35:21 +08:00
ColorfulRhino
f096aabd76 tools: Slightly improve output for shellfmt 2024-07-03 18:35:21 +08:00
ColorfulRhino
23533f8af5 tools: Update shellfmt default version to 3.8.0 2024-07-03 18:35:21 +08:00
ColorfulRhino
b0138e1b02 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-07-03 18:35:21 +08:00
ColorfulRhino
f6b4dcfbac 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-07-03 18:35:21 +08:00
ColorfulRhino
db34e416cf python-tools: Bump pip dependencies to their latest versions
No new major versions
2024-07-03 18:35:21 +08:00
Ricardo Pardini
4b7ba96f78 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-07-03 18:35:20 +08:00
Igor Pecovnik
593360f5f5 Run shellfmt to complete code 2024-07-03 18:35:20 +08:00
Alex
ab853de854 add device-tree-overlay to bsp-cli debian dependencies (#6779)
Fixes issue: [AR-2381](https://armbian.atlassian.net/browse/AR-2381)
2024-07-03 18:35:20 +08:00
Alex Shumsky
e4b202b203 partitioning: fix race condition on loop device allocation 2024-07-03 18:35:20 +08:00
Igor Pecovnik
4fa669bf4f Deboostrap: switch to last known working tag 2024-07-03 18:33:34 +08:00
ColorfulRhino
9afabe23b2 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-07-03 18:33:34 +08:00
ColorfulRhino
26a63ccd73 net: Remove old ifupdown stuff
This stuff is not needed anymore. Things will likely work as expected, even when installing ifupdown2
2024-07-03 18:33:34 +08:00
ColorfulRhino
3da50d862d cli: Use recommended method for symlinking /etc/resolv.conf 2024-07-03 18:33:34 +08:00
ColorfulRhino
3bf13491fe 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-07-03 18:33:34 +08:00
Igor Pecovnik
f53f53aa3d 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-07-03 18:33:34 +08:00
Muhammed Efe Cetin
03be3bedfc rockchip64: add support for OPTEE blobs 2024-07-03 18:28:50 +08:00
ColorfulRhino
3e9eef5550 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-07-03 18:28:50 +08:00
Muhammed Efe Cetin
b7e5e10c6b extlinux: add DEFAULT_OVERLAYS support 2024-07-03 18:28:50 +08:00
August
63077c2789 fix build error: Unable to find free loop device 2024-06-17 19:53:24 +08:00
Alessandro Lannocca
48c708d39d double quote variable for consistency 2024-06-16 11:28:55 +08:00
Alessandro Lannocca
ace3225f6b build xapian-index for synaptic only for stable releases 2024-06-16 11:28:55 +08:00
Alex
a6111b18b7 Enhance build times disabling command-not-found during rootfs creation (#6616) 2024-06-16 11:28:55 +08:00
Ricardo Pardini
10380d77a1 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-16 11:28:55 +08:00
Igor Pecovnik
e11bb2b790 Add 6.9 compatibility fix for UWE and rewrite rockchip64 kernel config 2024-06-16 11:28:55 +08:00
Igor Pecovnik
fe6228ffbb Wireless drivers: port 8723cs to be compatible with kernel 6.9 2024-06-16 11:28:55 +08:00
Alex
9ac54a089b RFC: fix #6686: Debian: enable ssh.service and make it work reliably on armbian-firstrun (#6687)
* Revert commits 911c756083164c32051d533ca3f2de488f202130 and 30c47f6f6cebd75f5c28866918fea093b8c82b44

* tweak armbian-firstrun.service to run after ssh.service (for host keys generation purposes)
2024-06-16 11:28:55 +08:00
Patrick Yavitz
0c43316daf RTL88X2CS: linux 6.9.y support
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-06-16 11:28:55 +08:00
Igor
81ad021feb 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-16 11:28:55 +08:00
Igor Pecovnik
ca962a7c0b Adjust wireless drivers to build on kernel 6.9.y 2024-06-16 11:28:55 +08:00
Igor Pecovnik
4e116192e2 Remove reverse dependency for armbian-config
This utility doesn't need any build dependency and should be able to work standalone
2024-06-16 11:27:39 +08:00
JohnTheCoolingFan
80d638a8df 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-06-16 11:26:40 +08:00
Gunjan Gupta
39511ad6e0 limit git-sources.json file generation to specific commands 2024-06-16 11:26:40 +08:00
JohnTheCoolingFan
96e2d115a1 Revert "Add doas support to is_root_or_sudo_prefix"
This reverts commit 324647c039f31ea27dd83252dbbaf7d903800f00.
2024-06-16 11:26:40 +08:00
JohnTheCoolingFan
bcd6bd3957 Revert "Added a call to losetup -f"
This reverts commit b3d9a17a5798ff4a8deec9d1b42d252479cbc1bc.
2024-06-16 11:26:40 +08:00