Commit Graph

4360 Commits

Author SHA1 Message Date
Ricardo Pardini
d24d3327a8 armbian-next: the great cli entrypoint (+docker) rewrite; introduce USE_LOCAL_APT_DEB_CACHE replacing apt-cacher-ng
- armbian-next: introduce `USE_LOCAL_APT_DEB_CACHE` (default `=yes`) as alternative/in addition to `apt-cacher-ng` (eg, in Docker)
  - this uses `cache/aptcache/${RELEASE}-${ARCH}` (in the host) for
      - apt cache, by bind-mounting it to `${SDCARD}/var/cache/apt` in the `chroot_sdcard_apt_get()` runner and its usages
      - debootstrap, by passing it `--cache-dir`
  - utility function to help understand what is happening to cache during usage
  - apt itself mantains this cache, removing old packages when new ones are installed. apt does this _by default_
      - introduce `DONT_MAINTAIN_APT_CACHE=yes` to skip out of automatic apt maintenance of apt cache, eg, during `remove`s
      - don't do `apt clean` and such if using local cache, that would clean the cache, not the chroot
  - clean up `install_deb_chroot()` a little, find an unrelated bug there
- WiP: the great cli entrypoint (+docker) rewrite, Phase 6: relaunching structure; re-pass ARMBIAN_BUILD_UUID; use ARMBIAN_COMMAND for log filename; fix for output/logs dir perms
- WiP: the great cli entrypoint (+docker) rewrite, Phase 5: cleanups 4/x; better logging, check & force `DEST_LANG`
- WiP: the great cli entrypoint (+docker) rewrite, Phase 5: cleanups 3/x; don't write to stderr in generated Dockerfile
  - it's `drastic red` on non-buildx dockers
- WiP: the great cli entrypoint (+docker) rewrite, Phase 5: cleanups 2/x, logging
- WiP: the great cli entrypoint (+docker) rewrite, Phase 5: cleanups 1/x
  - source configs in a logging section.
  - Docker: silent, fast retries to make sure `docker system df` works
  - shut-up `chown` (no `-v`) output related to  `SET_OWNER_TO_UID`
  - ask user to wait while `DESTIMG` is rsync'ed to `FINALDEST` -- it's potentially very slow
  - use green apple for Mac logging, instead of red apple which might imply error...
- WiP: the great cli entrypoint (+docker) rewrite, Phase 4: run as non-root, maybe-with-Docker
  - introduce `is_docker_ready_to_go()`; if it is, and we're not root, use Docker instead of sudo. <- GOOD IDEA? BAD IDEA? lol
  - introduce `SET_OWNER_TO_UID` var to be passed to Docker/sudo so written files are owned by the launching user, not root.
    - introduce `mkdir_recursive_and_set_uid_owner()` and `reset_uid_owner()` to reset owner based on `SET_OWNER_TO_UID`
    - use it for userpatches files created, logs, and output files, including images and debs.
  - @TODOs ref. `$SUDO_USER` which I think the old version of this?
  - add a lot of @TODOs, ref being able to relaunch something that's not `build` inside Docker, also add/change params and configs and command.
    - initially add `ARMBIAN_DOCKER_RELAUNCH_EXTRA_ARGS`
- WiP: the great cli entrypoint (+docker) rewrite, Phase 3: rpardini is demented, v3
- WiP: the great cli entrypoint (+docker) rewrite, Phase 2: rpardini is demented
- WiP: the great cli entrypoint (+docker) rewrite, Phase 1
- armbian-next: WiP: Docker: actually use the GHA-image as base; pull it every 24hs.
  - using image in my private repo.
  - this has significant speedup to "start building time" on the 1st run
  - move some Linux specific stuff to its own if
  - add comments and todo
- armbian-next: WiP: Docker, high-WiP, beginnings of Armbian mount dict, with linux/darwin preferences
- armbian-next: WiP: Docker, configure `BUILDKIT_COLORS`
- armbian-next: WiP: Docker, make docker image from Dockerfile more compact by flattening layers
- armbian-next: `logging`: add whale indicator if build running under Docker
- armbian-next: WiP: `docker`: working with `bookworm`, `sid`, and `jammy` on Darwin & Linux; works with `bullseye` on Linux only
- armbian-next: WiP: `docker`: force ARMBIAN_RUNNING_IN_CONTAINER both in Dockerfile and passed as `--env`; apt update and install in same layer; back to jammy
- armbian-next: introduce `armbian_is_running_in_container()` and `armbian_is_host_running_systemd()`, replacing `systemd-detect-virt` in multiple spots
- WiP: try with debian:bullseye -- can't detect docker at all
- armbian-next: WiP: 2nd stab at new Docker support; Darwin still works; Linux `docker.io` working
  - gen .dockerignore together with Dockerfile
  - split in funcs
  - hacks for Linux and `/dev/loop` stuff, CONTAINER_COMPAT=yes
  - mac still works, Linux stuff would break it but I if'fed
- armbian-next: the secrets of `CONTAINER_COMPAT` revealed; add size checking to check_loop_device() and avoid retry when `mknod`ing
  - this fails for the right reasons now, causing retries, which are then retried and work ;-)
  - this is related to building under Docker on Linux, using docker.io package (not docker-ce)
- armbian-next: remove `.dockerignore` and add it to `.gitignore`; it's going to be auto-generated
- armbian-next: `.dockerignore`: Docker context should only have minimal files and folders, to speed up Dockerfile build
  - IMPORTANT: `.dockerignore` is going to be generated from now on: so this is the last commit with changes before removal
-  armbian-next: WiP: initial stab at new Docker support; really run the passed cmdline; add Dockerfile to gitignore
-  armbian-next: WiP: initial stab at new Docker support; generate Dockerfile; introduce REQUIREMENTS_DEFS_ONLY
  - uses REQUIREMENTS_DEFS_ONLY
  - works on Docker Desktop on Mac;
  - linux TBA
- armbian-next: don't error out if `.git` not present; other small fixes
- armbian-next: general "work or at least don't misbehave when run on a very bare ubuntu:latest instance"
  - can't assume things, for example:
  - that `sudo` will be available; it might not, and might be already root, no reason to fail
  - that `/etc/timezone` will exist
  - that `systemd-detect-virt` will be available
  - that `git` will be available
  - that `locale-gen` will be available
2023-02-18 07:39:43 -03:00
Ricardo Pardini
40e3b642d6 armbian-next: don't break if parsing BOOT_SOC out of BOOTCONFIG fails; sanity checks for BOOT_SOC/DDR_BLOB
- (eg: `none` case: `jetson-nano`)
- but add sanity checks for BOOT_SOC/DDR_BLOB etc
- and fail if BOOT_SOC is not defined when function runs
2023-02-18 07:39:37 -03:00
Ricardo Pardini
4055399d15 armbian-next: sources/families: meson64: gx: use python2 explicitly for calling acs_tool.pyc; better logging 2023-02-18 07:39:17 -03:00
Ricardo Pardini
8f729a351a armbian-next: update defaults and comments in config file 2023-02-18 07:38:50 -03:00
Ricardo Pardini
6815b0ff57 armbian-next: remove source common.conf in arch configs; fix/protect against bash shortcircuits in arch configs 2023-02-18 07:38:44 -03:00
Ricardo Pardini
66c81e96db armbian-next: sources and sources/family armbian-next changes - MEGASQUASH - squashed changes from c9cf3fc241cfb4c872f4aef7bbc41d5854db7ea3 to 6809de3d6063cb041205a8318e19da6a4dee68c9 ref extensions_08_10_2022_pre_v30 2023-02-18 07:38:42 -03:00
Tony
babc8d52fe Revert extlinux for roc-rk3328-cc (#4840)
As extlinux is not matured within the armbian tools (armbian-config in particular), revert change until such a time as the proponents of extlinux mature the Armbian utilities. 

-Fixes use of overlays
2023-02-18 10:34:37 +01:00
Oleg
b9d19da461 add khadas edge2 (#4836)
* add khadas edge2

* fix wifi
2023-02-17 23:06:21 +01:00
Oleg
4aac2fca72 add fan-control station m3 (#4837) 2023-02-17 22:51:02 +01:00
Igor Pečovnik
523c4f2149 Radxa Zero generates EDGE images instead of CURRENT (#4833) 2023-02-17 22:38:48 +01:00
Paolo Sabatino
38389e2e73 rockchip: fix missing bluetooth for tinkerboard, add back AUFS driver 2023-02-17 17:05:45 +01:00
Ivan Podogov
d7c5e0c834 Set pcie_aspm to default instead of powersave
This matches the Radxa's BSP change [here](60071e3a4d).
See [here](https://github.com/ThomasKaiser/Knowledge/blob/master/articles/Quick_Preview_of_ROCK_5B.md#suggestions-to-radxa) for details about why this is needed.
2023-02-14 15:07:04 +00:00
Igor Pečovnik
31ee14377c Split Bananapi M2PRO from M5 (#4826)
This is comming to 6.2 / 6.3
2023-02-12 21:51:59 +01:00
Igor Pečovnik
313c893f88 Remove missing package from Cinnamon desktop (#4831) 2023-02-12 15:29:01 +01:00
Igor Pečovnik
ce30644a09 Disable Event debugging CONFIG_INPUT_EVBUG (#4828) 2023-02-12 15:21:55 +01:00
Igor Pečovnik
64e3070613 Wrong wallpaper path on i3wm package creation (#4808) 2023-02-12 14:22:56 +01:00
Igor Pečovnik
3008e60c68 Due to possible transitioning from WPA_Supplicant to Intel's IWD daemon for Linux wireless needs hard dependancy was removed. (#4830) 2023-02-12 14:22:43 +01:00
The-going
e7ab342abd sunxi: switch CURRENT to v5.15.93 EDGE to 6.1.11 2023-02-10 12:09:47 +03:00
Igor Pečovnik
50ee6eaae7 Hooks are called system wise (#4819)
No need to put call function here.
2023-02-07 08:33:13 +01:00
Igor Pečovnik
7bf3c297cb add support for various HID game controllers and waydroid (#4806)
add support for various HID game controllers and waydroid on rk3588 legacy kernel

Co-authored-by: monkaBlyat <54044929+monkaBlyat@users.noreply.github.com>
2023-02-03 18:44:44 +01:00
Igor Pečovnik
adbef32dda Move Neo to last known working boot loader (#4784) 2023-02-03 13:01:30 +01:00
SteeManMI
bda9975ec8 Add TV Box targets to stable builds per the discussion from the (#4798)
23/01/18 Developers Meeting.
Added aml-s9xx-box and rk3318-box (rk322x-box was already there)

 Changes to be committed:
	modified:   config/targets.conf
2023-02-03 10:04:47 +01:00
Oleg
5bb75741c0 Disables the use of the obiabf repository by default (#4783) 2023-02-02 14:08:48 +01:00
schwar3kat
72a505d061 Merge pull request #4778 from schwar3kat/Tweak-orangepi-r1plus-lts-LEDs-and-networking
Tweak orangepi-r1plus-lts LEDs and networking.
2023-02-02 11:29:10 +13:00
Oleg
20ee08325f move kernel media current 6.1 and edge 6.2 (#4781)
* move kernel media current 6.1 and edge 6.2
add board quartz64b

* fix nanopc-t4
2023-02-01 20:24:20 +01:00
hzyitc
133c595539 meson: remove legacy branch (#4769) 2023-02-01 20:23:36 +01:00
The-going
ca696c2839 sunxi: switch CURRENT to 5.15.91, EDGE to 6.1.9 (#4785)
Delete previously applied
2023-02-01 20:15:37 +01:00
M. Efe Çetin
0f64de49f9 New legacy bootscript for rockchip-rk3588 so vendor/patched overlays work (#4734)
* Rename overlay prefixes to `rockchip-rk3588`

* support radxa-specific overlays
2023-02-01 20:15:01 +01:00
catalinii
95267c37b4 Fix CEC for Radxa Rock 3A (#4786)
Co-authored-by: Catalin Toda <catalinii@yahoo.com>
2023-02-01 11:01:57 -08:00
schwar3kat
9cd5c76b2e Tweak orangepi-r1plus-lts LEDs and networking.
Add sys-triggered LED's, fix LAN LEDS, and improve Debian dual network function.
2023-02-01 17:52:18 +13:00
Paolo
79019296d8 rockchip64: consolidation for uwe5622 driver, v6.1 kernel compatibility (#4766) 2023-01-30 17:28:37 +01:00
Igor Pečovnik
013867f617 Prevent error at password strength check (#4760)
Cracklib check library must be present in minimal variant
2023-01-28 00:14:36 +01:00
M. Efe Çetin
411b607e46 Add some Wireless modules to RK3588 legacy kernel (#4759)
* Add some Wireless modules to RK3588 legacy kernel

* Add some Wireless modules to RK3588 legacy kernel

* Add some Wireless modules to RK3588 legacy kernel
2023-01-27 23:19:08 +01:00
The-going
4a61f38df8 Switch sunxi: current to 5.15.90, edge to 6.1.8 (#4757)
* switch-sunxi: CURRENT to 5.15.90, EDGE to 6.1.8

* sunxi-6.1: update upstream to tag orange-pi-6.1-20230118-1327

sunxi-5.15: rebase
2023-01-27 15:25:50 +03:00
Kreyren
4c709d688b build/config/boards/readme: Make usable (#4748)
* build/config/boards/readme: Make usable

* Document DEFAULT_OVERLAYS

* Fixed typo

* Update config/boards/README.md

Co-authored-by: hzyitc <hzyitc@outlook.com>

Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
Co-authored-by: hzyitc <hzyitc@outlook.com>
2023-01-26 19:09:47 +01:00
Oleg
462b3befec correction of bpir2pro frequency control and changing the composition of images (#4753) 2023-01-26 19:08:48 +01:00
Konstantin Litvinov
8398dd1116 Added Debian 12 Bookworm. (#4740)
* Added Debian 12 Bookworm.

* Link identical

* Make minimal truly minimal again

Move netplan.io to CLI image only

* Add netplan.io to Bullseye standard CLI

Co-authored-by: Konstantin Litvinov <klitvinov@piesoft.us>
Co-authored-by: Igor <igor@armbian.com>
2023-01-26 10:04:17 +01:00
Kreyren
a7bd7f5dbb rk3318-box: Remove DEFAULT_CONSOLE bcs undefined
The keyword DEFAULT_CONSOLE with value 'both' has undeclared behavior in the build repository -> removing it
2023-01-25 23:01:44 +01:00
Igor Pečovnik
74aa5d9e0a Clean and unify XFCE, Gnome and Cinnamon (#4731)
* Clean and unify XFCE, Gnome and Cinnamon
2023-01-25 18:32:25 +01:00
M. Efe Çetin
edcc165b41 Move OPi5 from wip to conf (#4730) 2023-01-25 00:38:06 +01:00
M. Efe Çetin
5811543c7f Enable some Ralink modules for RK3588 (#4736) 2023-01-25 00:37:48 +01:00
Paolo Sabatino
8aa351a999 rk322x: bump current kernel flavour to 6.1 2023-01-24 20:56:18 +01:00
Paolo Sabatino
cb3226dfa3 bump rockchip 32bit to kernel 6.1 2023-01-24 20:56:00 +01:00
Erik
31b5113c75 added support for MediaTek USB drivers (#4727)
* added support for MediaTek USB drivers

* merged most recent pull

* fixed merge

* removed unset comments
2023-01-23 07:18:19 +01:00
Igor Pečovnik
6d38906c8d Move UWE5622 from kernel patches to misc (#4723)
Todo: Compare and unify with the driver that floats in Rockchip patches
2023-01-22 08:40:12 +01:00
The-going
fc70c73608 sunxi: switch CURRENT to v5.15.89, EDGE to v6.1.7 (#4724) 2023-01-22 08:39:59 +01:00
catalinii
fadcb7d915 Fix cec disconnecting after TV restart (#4725)
Co-authored-by: Catalin Toda <catalinii@yahoo.com>
2023-01-22 08:39:48 +01:00
Oleg
eb7b1aa1d1 fix kernel edge for Jetson Nano (#4719) 2023-01-20 18:43:42 +01:00
Oleg
09408c6f6c move bpir2pro csc to config (#4720) 2023-01-20 18:43:30 +01:00
Igor Velkov
fe61154cc1 Mount /tmp in docker builder container as tmpfs. Same as #4703 (#4704)
Signed-off-by: Igor Velkov <iav@iav.lv>

Signed-off-by: Igor Velkov <iav@iav.lv>
2023-01-19 18:50:20 +01:00