Commit Graph

2379 Commits

Author SHA1 Message Date
Ricardo Pardini
dad4082778 artifact-armbian-bsp-cli: include BOOT_SOC in the bsp-cli hash
- This way we can safely include BOOT_SOC in /etc/armbian-release as done in the previous commit
- this will cause a rebuild of _all_ bsp-cli packages, even those for boards that don't define BOOT_SOC
- hopefully one day we will have BOOT_SOC ("What is the SoC?") defined for all boards
  - for now, it will be empty for those that don't define it, which should be harmless
2024-03-25 18:03:43 +01:00
Yanase Yuki
e3ec53d66c bsp-cli: include BOOT_SOC in /etc/armbian-release
Commit 562d96128b introduces new variable "BOOT_SOC".
This var is used at u-boot post install script, so "BOOT_SOC"
must be avaiable on system image.

Without this u-boot upgrade on tinkerboard will be completely
broken.
https://forum.armbian.com/topic/35677-tinkerboard-not-booting-after-updates/
2024-03-25 18:03:43 +01:00
Paolo Sabatino
f63a98d082 fix rtl8723cs compilation for kernel 6.8 2024-03-25 17:26:47 +01:00
ColorfulRhino
6d602effc8 drivers_network: Sort drivers/patches by legacy (<=5.x) and not legacy for better visibility and ease of use (e.g. when checking which driver commits should be updated) 2024-03-17 18:57:28 +00:00
ColorfulRhino
7b2c985363 drivers_network: Deprecate vendor drivers for RTW8723DS, RTW8723DU and RTL88x2cs in favor of mainline RTW88 for kernel >=6.8
- RTW8723DS, RTW8723DU is unsupported/deprecated/obsolete by the author since kernel 6.7 in favor of RTW88, so deprecate it for kernel >=6.8
- RTL88x2cs specifically says in its repo: "USE RTW88 NOT THIS DRIVER", so deprecate in favor of RTW88, except for meson64 family
- move random RTL88x2cs hook specific for meson64 family in drivers_network.sh to their family config
2024-03-17 18:57:28 +00:00
ColorfulRhino
07c1ea75c2 drivers_network: rtl8812au: Remove two upstreamed patches 2024-03-17 18:57:28 +00:00
ColorfulRhino
b1ec387300 drivers_network: Bump several drivers from upstream
Also add commit dates to make life prettier and easier

The following drivers have been updated with fixes for 6.8
- driver_rtl8811CU_rtl8821C
- driver_rtl88x2bu
- driver_rtl8811_rtl8812_rtl8814_rtl8821

The following drivers have been updated without specific 6.8 patches:
- driver_rtl8189ES (patches for 6.7, deleted two upstreamed patches)
- driver_rtl8189FS (patches for 6.7, deleted four upstreamed patches)
2024-03-17 18:57:28 +00:00
ColorfulRhino
d881d78209 drivers_network: Add repo URLs for ease of use + formatting 2024-03-17 18:57:28 +00:00
Igor Pecovnik
9e0c0caae8 Fixing rtl8192eu wireless driver compatibility, removing deprecated patch 2024-03-17 18:57:28 +00:00
ColorfulRhino
7d38b4273a cli: rewrite-<uboot,kernel>-patches-needing-rebase 2024-03-13 21:01:26 +00:00
Ricardo Pardini
8afe8470f4 cli: introduce rewrite-uboot-patches cli command, works similar to the kernel one
- it prepares git, applies patches to git, and re-writes them back from git
- same as kernel, it does git archeology for mbox-less patches, etc
- `uboot-patches-to-git` alias is also added, but my guess is rewrite is more useful
- refactor a common config function for both kernel and uboot
- example invocation: `./compile.sh BOARD=xxxx BRANCH=edge rewrite-uboot-patches`
2024-03-09 20:03:41 +01:00
Igor Velkov
dfab067f89 Show correct reason about omit tmpfs usage if FORCE_USE_RAMDISK is set 2024-03-08 15:55:26 +01:00
Ricardo Pardini
5b978dc96d lib: drop old boot_logo code; keep png/gif as they're used for plymouth
- origins of what's being dropped: https://github.com/armbian/build/pull/2065
2024-03-06 08:28:31 +01:00
amazingfate
aeda6b8a72 uwe5622: also apply to rk35xx kernel 2024-03-06 08:01:08 +01:00
Igor
33906869c0 Improve loop devices management by allocating random free device instead of next one (#6345) 2024-03-06 01:09:54 +01:00
Ricardo Pardini
d27a03d446 cli: introduce kernel-dtb cli command, to build only DTB, and output full preprocessed dts source
- example: `./compile.sh BOARD=xxxxx BRANCH=edge kernel-dtb`
- outputs preprocessed DTS source for board in question to `output/`
- also outputs same preprocessed DTS source, ran through `dtc` with input and output DTS formats for "normalized" comparisions
2024-03-06 00:58:35 +01:00
Ricardo Pardini
bf7f20776c cli: introduce inventory-boards cli command, for hopefully painless & useful one-board-per-line CSV output
- `inventory-boards-csv.py`: moar Python atrocities done to data; idea here is to output one line per board, with <<varies>> for fields that, well, vary (mainly across BRANCH'es)
- `inventory-boards` sets `TARGETS_FILE` to something that doesn't exist, so the `default-targets.yaml` is used (so same list for everyone, save for userpatched-boards)
2024-03-06 00:58:26 +01:00
hzy
1d31aac7a9 repo-list: fix build issue with eos distribution
armbian repo doesn't existed in eos distribution, which makes `apt update` fail.
2024-03-03 17:59:31 +01:00
amazingfate
86865a446b move firstrun network config to firstlogin 2024-03-03 16:08:04 +01:00
Ricardo Pardini
71753f4b3b python-tools: bump PyYAML to 6.0.1 to fix build failures on sid/trixie/noble etc 2024-03-03 16:07:19 +01:00
Ricardo Pardini
ceed97c57b prepare-host/host-release: enable noble for building; noble also doesn't have python2 anymore 2024-03-03 16:07:19 +01:00
Ricardo Pardini
e3575ecd1d kernel: revert "also, don't add target 'install' twice"
- oops
2024-03-02 22:04:00 +01:00
BlitzKrieg
85eced8d64 Adds --partscan parameter to losetup command for forcing the kernel to scan partition table. #6333 2024-03-02 21:00:55 +01:00
Ricardo Pardini
8a2fad5beb kernel: call make with INSTALL_MOD_STRIP=1 so modules are stripped
- also, don't add target 'install' twice
2024-03-02 20:50:36 +01:00
Ricardo Pardini
b8de0983f0 wsl2: fix: don't pester user for UTF-8 terminal if stdin is not a terminal 2024-03-02 20:48:57 +01:00
Ricardo Pardini
911e71241b patching: fix: use correct has_overlay_directories instead of has_dts_directories for overlay processing 2024-03-02 20:48:32 +01:00
Ricardo Pardini
c3fc3f432c config-prepare: do change tracking for each sourced board file (core vs userpatches) 2024-03-02 20:48:13 +01:00
Ricardo Pardini
49e86b2cff u-boot: call olddefconfig after config hooks; use pipetty instead of unbuffer for make
- also: cli `uboot-config` produces a defconfig diff (useful to create post_config_uboot_target)
2024-03-02 20:48:01 +01:00
Ricardo Pardini
5e1b3ca392 debootstrap: use latest git for Ubuntu/Debian debootstrap instead of host-installed
- `DEBOOTSTRAP_DIR` must be set during the 1st stage, but NOT the second stage
- latest devel versions might be missing scripts for old releases; just symlink to the default one if so
- this hopefully should _end_ the debootstrap madness we've been handling, at least until we get around to mmdebstrap (Perl) one day
2024-03-02 20:46:58 +01:00
Ricardo Pardini
6e0520f3da debootstrap: remove debootstrap from host dependencies 2024-03-02 20:46:58 +01:00
Ricardo Pardini
e37525d234 debootstrap: Partially revert f2e663f0 "Improved debootstrap hacking support with fixes for Ubuntu Noble" 2024-03-02 20:46:58 +01:00
Ricardo Pardini
34bfa92052 Revert "Debootstrap is again too old for latest releases. Lets ship currently latest with and install it when we build distros that needs it."
This reverts commit 7b61b05867.
2024-03-02 20:46:58 +01:00
c0rnelius
88ed514b89 RTW88: RTL8822/21CU FIXUPS (#6314)
* patch: misc: rtw88: `rtl8822/21cu fixups`

Backported 6.7.y to 6.1.y.
Included fixups for 6.1, 6.6, 6.7 and added 6.8.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* patch: misc: rtw88: 6.6: removed mbox

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* patch: misc: rtw88: `v2 rtl8822/21cu fixups`

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2024-03-02 13:14:43 -05:00
Igor Pecovnik
7b61b05867 Debootstrap is again too old for latest releases. Lets ship currently latest with and install it when we build distros that needs it. 2024-03-01 12:45:11 +01:00
Ricardo Pardini
bf1f57faef artifact-uboot: include BOOTCONFIG in u-boot artifact version hash
- HOW did we get this far without this?
- should cause rebuild of all u-boots, hopefully
2024-02-23 11:21:47 +01:00
Gunjan Gupta
2bce64e24d kernel: add hook to allow modifying kernel headers before packaging 2024-02-21 06:34:43 +05:30
Gunjan Gupta
6f1b675591 Prevent systemd from starting all services on first-boot 2024-02-11 01:20:17 +05:30
Viacheslav Bocharov
d0cfcfa733 Add hook to activate build module for rtl88x2cs driver in kernel config 2024-02-10 15:32:34 +01:00
Viacheslav Bocharov
4e7363f227 Update commit for network driver rtl88x2cs. Re-enable build 2024-02-10 15:32:34 +01:00
Gunjan Gupta
03a9465f00 armbian-bsp-cli: Allow adding contents to preinst, postrm scripts using post_family_tweaks_bsp hook 2024-02-09 19:40:14 +01:00
Darsey Litzenberger
ce33bddb58 Make the colorized build output readable on a light background
This fixes the readability of colorized output of compile.sh when
running on a terminal with a light background.  It uses the COLORFGBG
environment variable similarly to how the ip(8) command does.

Signed-off-by: Darsey Litzenberger <dlitz@dlitz.net>
2024-02-09 19:38:03 +01:00
Gunjan Gupta
2341940cbe Fix broken compilation for boards with multiple targets 2024-02-04 16:23:09 +01:00
Ricardo Pardini
86cfcf304a patching: support 'incremental' Makefile auto-patching, for vendor kernels
- without incremental: true:
  - we replace the DT Makefile based on *.dts at the DT directory after all patching/copying is done
  - overlay target is added if overlays present
- with incremental: true:
  - we parse the Makefile, parse the DTs being built, and only add .dts's we have added from 'dt' directory
  - overlays target are not added; we assume smth else already added them
2024-02-04 11:24:31 +01:00
Gunjan Gupta
473548220c uboot: make sure patches work for custom uboot builds too 2024-02-04 11:22:27 +01:00
Gunjan Gupta
218f54dc28 Fix git_ensure_safe_directory function again
The command added to check whether the directory is git or not was
having syntax error. Fixed the same. Also it seems adding safe-directory
with local doesn't really work which actually makes sense. hence
reverting to using global instead. Its still safer than before as
we are not adding * and are adding the actual path of the directory
2024-02-03 04:50:42 +05:30
Rafael
94d4c007d1 Feature lvm support (#6204)
* using the configured volume group name
* added LVM support
* ensuring /boot never on LVM volume, created hook to setup root device
* preparing root device via extension, not assuming any particular partition for root
* using tab spacing
* using global parameter to require a boot partition
* using boot require, moving cryptroot code to extension
* adds crypt image suffix
---------

Co-authored-by: rafael <rvalle@privaz.io>
2024-02-01 20:01:58 +01:00
Igor Pecovnik
07037232a1 Unstable / testing packages sometimes contain hacks that are patching files 2024-02-01 22:01:44 +05:30
Gunjan Gupta
7b81255a5f Fix compilation within docker-shell 2024-02-01 21:04:23 +05:30
Gunjan Gupta
7bb20d7063 uwe5622: reduce system load 2024-01-31 23:55:58 +05:30
Gunjan Gupta
d9d6524e7f Add hook to allow forcing uboot update 2024-01-30 12:00:24 +01:00