Commit Graph

426 Commits

Author SHA1 Message Date
Gunjan Gupta
2341940cbe Fix broken compilation for boards with multiple targets 2024-02-04 16:23:09 +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
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
Gunjan Gupta
c47c9372bf Khadas VIM1S & VIM4 - 5.15 kernel bump (#6201)
* meson-s4t7: bump u-boot to khadas-vims-u-boot-2019.01-v1.6-release
* Use khadas default bootargs as much as possible
* Add new hook to allow copying code into kernel
* meson-s4t7: legacy: Switch to 5.15 kernel
* meson-s4t7: add kernel-config for 5.15 kernel
* device tree overlays for 5.15 kernel for vim1s and vim4
* restructure packaging of bsp files for vim1s/vim4
* silence vblank warning on boot
* Remove display workaround as it doesn't work with 5.15 kernel
* Remove 5.4 kernel patches
2024-01-26 08:40:11 +01:00
Igor Pecovnik
5383bd3cfa Upstream wireless RTW88: Both 6.6 and 6.7 got patch integegrated, thus don't apply it for 6.6 and up 2024-01-26 08:34:38 +01:00
amazingfate
d9389553e0 rtw88: remove merged patch for kernel 6.8 2024-01-24 17:43:27 +01:00
Paolo Sabatino
8786526914 rtl8723cs: fix driver compilation on kernel 6.7 2024-01-11 23:38:57 +01:00
Ricardo Pardini
c434c3613c core: semantic change, KERNELSOURCE must be explicitly 'none' to avoid kernel compilation (not unset) 2024-01-07 18:58:36 +01:00
Ricardo Pardini
65dcd9e264 [cleanup] extensions: flash-kernel: removed (and a few references to it)
- thanks to Gunjan for replacing it
2023-12-28 13:52:19 +01:00
Ricardo Pardini
1efe94cc0d drivers_network: bumps to drivers from upstream repos (by Igor, from AR-2005)
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2023-12-27 13:29:37 +01:00
amazingfate
5e49728b2b add support for building linux-next kernel 2023-12-27 12:11:42 +01:00
Gunjan Gupta
2ea9d98656 xradio: remove upstreamed patch 2023-12-25 12:20:50 +05:30
Gunjan Gupta
03cbbdff7b driver-harness: fix compilation failure with 6.7 kernel as observed with allwinner kernels 2023-12-24 09:13:08 +01:00
Gunjan Gupta
5f4b0e335b Do not set upper limit for uwe5622 driver as this can make the driver get lost during upgrade 2023-12-24 09:13:08 +01:00
Igor Pecovnik
ca2ecf556e Revert "Fix armbian-firmware-full package build."
This reverts commit 0396c65c30.
2023-12-17 13:24:45 +01:00
Kevin Schmidt
0396c65c30 Fix armbian-firmware-full package build.
Include symlinks from linux-firmware.
2023-12-17 10:32:42 +01:00
Paolo Sabatino
af031aeefd uwe5622: tidy up patch files organization
* move uwe5622 driver patches into specific misc directory
 * remove "_allwinner" suffix in function call
2023-12-08 18:25:10 +01:00
Paolo Sabatino
2b342b2366 rockchip64: move uwe5622 adjust patch to misc 2023-12-08 18:25:10 +01:00
Gunjan Gupta
9131aac1c9 Switch entirely to fifteenhex repo for xradio driver as it performs better 2023-12-02 17:30:31 +05:30
Ricardo Pardini
983d8258d9 armbian-kernel: don't force =n for DEBUG_INFO_DWARF5 and DEBUG_INFO_BTF
- really can't remember why I added those, and they cause trouble for BTF
  - See https://www.kernel.org/doc/html/next/bpf/btf.html
  - `CONFIG_DEBUG_INFO_BTF: Generate BTF typeinfo`
    - _Generate deduplicated BTF type information from DWARF debug info. Turning this on expects presence of pahole tool, which will convert DWARF type info into equivalent deduplicated BTF type info._
2023-11-29 20:00:13 +01:00
Ricardo Pardini
99d4abf7a1 drivers_network: replace all "branch:xxx" references with sha1; add notice about it 2023-11-25 13:38:10 +01:00
Ricardo Pardini
1dd4a95a77 drivers-harness: hash the whole of patch/misc; throw error if driver does fetch_from_repo with mutable ref
- this should make drivers hash consistent, at the expense of being moar tiresome
- _any_ changes at _any_ patches or drivers-related bash code will cause _all_ kernels to be rebuilt
  - opposed to "some changes caused all kernels to be rebuilt"
2023-11-25 13:38:10 +01:00
Ricardo Pardini
7e2e557532 armbian-kernel: enforce CONFIG_LOCALVERSION in .config as empty 2023-11-25 13:38:01 +01:00
Alban Browaeys
312738fa70 Revert "Add a patch that breaks compilation of wifi driver 8723ds on a kernel 6.6 (#5912)"
Fix is now merged in upstream master branch.

This reverts commit 563de0bd8a.
2023-11-17 06:47:47 +01:00
Igor
563de0bd8a Add a patch that breaks compilation of wifi driver 8723ds on a kernel 6.6 (#5912)
+ attach sources to commmit ID
2023-11-14 18:21:21 +01:00
Igor
a1294f470e Fixing wrong Makefile location when adjusting wireless driver rtl8723cs 2023-11-14 13:45:20 +01:00
Igor
dc5d461c95 Move Makefile section from patch (#5909)
There are many changes in this file and its impossible to cover this with a patch for now current and all kernels back
We are using same hack in UWE drivers.
2023-11-14 12:04:15 +01:00
Gunjan Gupta
2980065b8c uwe5622: Fix kernel warning for incorrect netdev-dev_addr 2023-10-20 17:37:40 +05:30
Gunjan Gupta
dc8c46c27e lib: kernel-config: fix menuconfig dialog not appearing when building image with KERNEL_CONFIGURE=yes 2023-10-18 16:16:42 +05:30
Ricardo Pardini
daf65b3f93 armbian-desktop: remove "Conflicts: gdm3"
- if you installed gdm3 (even if you don't use it), you lose Armbian wallpapers
2023-10-14 00:01:07 +02:00
Ricardo Pardini
0047f8e3bd dpkg-deb: rename fakeroot_dpkg_deb_build -> dpkg_deb_build 2023-10-13 18:04:56 +02:00
Ricardo Pardini
5ed338fb60 dpkg-deb: don't use fakeroot, we're already root; don't add fakeroot dep either 2023-10-13 18:04:56 +02:00
Gunjan Gupta
571997b053 cli: add command to rewrite/refresh kernel configs 2023-10-06 02:17:51 +05:30
Ricardo Pardini
41d79906c3 rockchip64 + sunxi*: drivers_network: add patch for uwe5622, fixing build on 6.6.y 2023-10-03 13:54:03 +02:00
Ricardo Pardini
0ebfa3acde rockchip64 + sunxi*: drivers_network: enable uwe5622 driver also for 6.6 2023-10-03 13:54:03 +02:00
Gunjan Gupta
2d0447b391 uwe5622: fix compilation for sunxi64 on 6.3+ kernels 2023-09-19 20:08:18 +02:00
c0rnelius
fdc1966847 RTW88: linux-6.x.y (#5697)
This is just a cosmetic change. Patches have been consolidated
into one patch within each corresponding linux version directory.

Added: linux-6.6 (RC-1)
Removed: linux-6.2/6.3

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-09-11 20:18:36 -04:00
amazingfate
6d981baba6 rockchip64: bump rockchip64-edge kernel to 6.5 2023-09-04 14:55:50 +02:00
Gunjan Gupta
ef3f252d49 allwinner: bring back uwe5622 back on legacy kernel 2023-09-04 14:37:10 +02:00
Gunjan Gupta
46e756540e xradio: fix compilation for 6.1+
Also added some cleanup fixes to silence some of the compiler warnings,
fixes for issues during inserting and removing xradio module and fixes
for possible data corruption on vmmaped stack.

All of these fixes were taken from https://github.com/fifteenhex/xradio
2023-09-04 14:37:10 +02:00
c0rnelius
dbe8ea49b0 patch: misc: rtw88: wireless-next: 2023-08-25 (#5653)
* patch: misc: rtw88: wireless-next: 2023-08-25

Updated: 6.1 / 6.4
Added: 6.5

For doc sake, this update makes 6.1 slightly differrent than 6.4 and
6.5 in one particular area of main.c.

As shown here:
7746e2fa87

6.1 requires we use del_timer_sync, where the above releases use
timer_delete_sync.

Tested-on: ODROID-C4 X96-AIR BPI-CM4 (linux 6.x.y)
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* driver_rtw88: `linux-version compare "${version}" ge 6.1`

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

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-29 13:15:59 -04:00
Gunjan Gupta
36f0425358 rtl8811CU, rtl8723cs: Fix module build failure on 6.5 kernel 2023-08-23 20:52:25 +02:00
Ricardo Pardini
11df81403d config/lib/exts: run shellfmt
- `bash lib/tools/shellfmt.sh`
- mostly spacing changes that accumulated over time
2023-08-22 14:28:14 +02:00
Igor Pecovnik
fb4774e2f4 Add two popular MT7921U devices to the driver pid so they work OOB
Signed-off-by: Igor <igor@armbian.com>
2023-08-20 19:19:44 +02:00
Kreyren
09fe68cd59 Address https://github.com/armbian/build/pull/5597#issuecomment-1679089917 2023-08-17 22:09:33 +02:00
Kreyren
d9c10acb07 Better output
Address https://github.com/armbian/build/pull/5597#issuecomment-1679030905

@viraniac plz review
2023-08-17 22:09:33 +02:00
Kreyren
40bfcfe0f1 utils-dpkgdeb: Add alert for compressing
The command takes long time to continue and it makes it seem like the build halted, so this adds an alert to mitigate this
2023-08-17 22:09:33 +02:00
Ricardo Pardini
2142f73b97 hashed-OCI-revisioned-debs: introduce "reversioning" of .deb packages
> tl-dr:
> - maximize OCI cache hit ratio across nightlies/releases/PRs/etc;
> - publish simple `Version:`'s that don't include a crazy hash in repo and images
> - introduce `output/packages-hashed` directory
> - radically change the `output/debs` directory structure

- simplify artifact's `prepare_version()` method for `deb` and `deb-tar` artifacts:
  - `artifact_base_dir` and `artifact_final_file` will now be auto-calculated; thus removed from each artifact (except `rootfs`)
  - `artifact_deb_repo` ("global", "jammy", "bookworm") is now required; "global" means common across all RELEASES
  - `artifact_deb_arch` is now required, "all" is arch-independent, otherwise use `${ARCH}`
  - `artifact_map_debs` is now auto-calculated based on the above, and shouldn't be specified manually
  - `artifact_final_version_reversioned` is optional, and can force the final version of the artifact (specific for the `base-files` case)
  - artifacts that need special handling for reversioning can add function names to `artifact_debs_reversion_functions` array (`base-files` and `bsp-cli` cases)
  - artifacts `prepare_version()` should set `artifact_version`, but _never_ include it in other variables; `artifact_version` is now changed by framework after `prepare_version()` returns
- no longer use/refer/mention `${REVISION}` when building packages. All packages should be `${REVISION}`-agnostic.
- `${REVISION}` (actually, `artifact_final_version_reversioned`) will be automatically swapped in the `control` file during reversioning
- `fakeroot_dpkg_deb_build()` now takes exactly two arguments: the directory to pack, and the deb ID (key of `artifact_map_packages` dict); add this change in all the artifact's code for this
- `obtain_complete_artifact()`:
  - automatically adds `-Rxxxx` "revisioning-hash" to `artifact_version`, by hashing the revisioning functions and any `artifact_debs_reversion_functions` set
  - calculates more complex subdirectory paths for both the `output/packages-hashed` and `output/debs`/`output/debs-beta` directories
    - with the new subdirectories we can be sure a re-version is already done correctly and can skip it (eg, for partial `download-debs` re-runs)
    - in the future we can automatically clean/remove old versions that are no longer relevant based on the dir structure
    - exports a lot more information to JSON, including the new subdirectory paths
  - comment-out code that implemented `skip_unpack_if_found_in_caches`, I'm very unsure why we had this in the first place
- `obtain_artifact_from_remote_cache()`
  - for `deb` type artifacts, OCI won't preserve the subdirectory structure, so move downloaded files to the correct subdirectory manually
  - this is not needed for `deb-tar`, since that can preserve the dir structure itself
- introduce `artifacts-reversion.sh` and its main function `artifact_reversion_for_deployment()`
  - this has the logic for reversioning .deb's, by `ar`-unpacking them, changing `control.tar` (and possibly `data.tar`), handling `.xz` compression, etc.
  - also handles hashing those functions, for consistency. Any changes in reversioning code actually change the artifact itself so we're not caught by surprise
  - by default, it changes `control` file only:
    - replace `Version:` (which is the hash-version originally) with `artifact_final_version_reversioned` (which is mostly just `${REVISION}`)
    - add a custom field `Armbian-Original-Hash:` with the original hash-version
  - `artifact_reversion_for_deployment()` is called by
    - new CLI wrapper `cli_obtain_complete_artifact()`, used for CLI building of specific artifact, but also for `download-artifact`
    - `build_artifact_for_image()` used during image build
- `armbian-bsp-cli-deb.sh`: move `${REVISION}` related stuff from the main package build to new reversioning functions.
- `artifact-armbian-base-files.sh`: move `${REVISION}` related stuff from the main package build to new reversioning functions.
- `kernel`:
  - add some custom fields to `DEBIAN/control`:
    - `Armbian-Kernel-Version:` / `Armbian-Kernel-Version-Family:` (for future use: cleanup of usage of `Source: ` field which should be removed)
  - declutter the `Description:` field, moving long description out of the first line
  - obtain `IMAGE_INSTALLED_KERNEL_VERSION` from the reversioned deb (this is still a hack and has not been fixed)
- `uboot`:
  - declutter the `Description:` field, moving long description out of the first line
  - use the reversioned .deb when deploying u-boot to the image
- `main_default_build_packages()` now stores reversioned values and complete paths to reversioned .deb's
- `list_installed_packages()` now compares custom field `Armbian-Original-Hash: `, and not the `Version:` to make sure debs in the image are the ones we want
- `install_artifact_deb_chroot()` is a new wrapper around `install_deb_chroot()` for easy handling of reversioned debs
  - use it everywhere `install_deb_chroot()` was used in `distro-agnostic.sh` and `distro-specific.sh`
2023-08-12 09:58:32 +02:00
Ricardo Pardini
7129f7ac28 uboot: drop CHOSEN_UBOOT, change deployment directory, remove uboot_name as temp_dir prefix
- change deployment dir to not include REVISION or ARCH
- get rid uboot's CHOSEN_UBOOT, REVISION and ARCH in the directory name.
- no two u-boot debs can be installed in the same machine anyway
2023-08-12 09:58:32 +02:00