Commit Graph

4399 Commits

Author SHA1 Message Date
Ricardo Pardini
2f7423d0e4 shellfmt/.editorconfig: enable trim whitespaces, run shellfmt, no actual code changes (#4849)
- shellfmt: bump to 3.6.0 (run with `bash lib/tools/shellfmt.sh`)
- .editorconfig: rationalize, remove duplicated logic
2023-02-23 09:24:41 +01:00
hzyitc
41709dd756 meson: bump current to v6.1 and edge to v6.2 (#4843)
* meson: bump current to v6.1 and edge to v6.2
2023-02-22 09:24:41 +01:00
Igor Pečovnik
26b41a50fa Merge branch 'main' into AR-1543 2023-02-22 08:12:57 +01:00
amazingfate
6193ec3ebd use sdk branch for rk35xx legacy 2023-02-22 08:04:09 +01:00
amazingfate
1b0d8f33d3 add radxa e25 2023-02-22 08:03:56 +01:00
amazingfate
d005dc8574 update rk35xx legacy kernel to 5.10 2023-02-22 08:03:48 +01:00
Igor
27cdc2f7ff Armbian next CI/pre switch adjustements
- bump version to 23.05
- adjust OCI repositories, changed hash lenght to 12 and removed rootfs- prefix to shorten names (costmetic adjustement)
- build configs were moved to https://github.com/armbian/os
- remove CI that is not going to work anymore. This means also master is out of this CI
- small changed to Readme.txt. Just adding some note, removing obvious
- add propery - supported arhitectures for distribution. Needed for CI optimisation
- remove README.armbian-next.md (need to be somewhere else)
- shrink CODEOWNERS due to messages overload

Signed-off-by: Igor <igor@armbian.com>
2023-02-21 18:51:41 +01:00
Ricardo Pardini
7b5d606a9b split BOARD bananapim2pro from bananapim5, and force use of its new DTB; only for 6.2+, so edge only; use m5 FIP for m2pro 2023-02-18 07:46:44 -03:00
Ricardo Pardini
9e29827ad9 risc-v/starfive/starfive2/d1: all of RichNeese's Risc-V boards and families - squashed
- `risc-v`: rework RichNeese's boards, reduce families, move tweaks to boards
- `risc-v`/`starfive`: `CONFIG_MOTORCOMM_PHY=m` for the onboard Ethernet
- `risc-v`/`starfive`: use mainline kernel 6.1.y, with StarFive's rebased patches against `v6.1.5`
  - from https://github.com/starfive-tech/linux/commits/visionfive
  - contention point: `1022-soc-sifive-ccache-Add-StarFive-JH71x0-support.patch` which I merged half-assed, need review/fixes?
  - `risc-v`/`starfive`: update kernel config, sans changes
- `risc-v`/`starfive`: switch from `grub` to `extlinux`
- `risc-v`/`starfive`: new `starfive` family with their (vendor) kernel

Co-authored-by: Richard Neese <r.neese@gmail.com>
2023-02-18 07:46:43 -03:00
Ricardo Pardini
68e20a4bf4 qemu-uboot-xxx: fix missed rootfs cache due to pkg removals 2023-02-18 07:46:41 -03:00
Igor
ce68e373f1 Clean Mate desktops [cherry-pick] 2023-02-18 07:46:40 -03:00
Igor
4a4639f6a5 Clean / unify gnome desktop packages [cherry-pick] 2023-02-18 07:46:39 -03:00
Ash Hughes
2b896d72fb meson64: current + edge: bring back fixed version of odroid-reboot driver (Fix reboot on odroid C4 when using UHS-II SD cards) [cherry pick] 2023-02-18 07:46:38 -03:00
Kreyren
12f56ad78c boards/README: Document SKIP_ARMBIAN_REPO [cherry-pick]
See ./lib/functions/rootfs/distro-specific.sh
2023-02-18 07:46:36 -03:00
SteeManMI
c2ff82b7fe meson64: current: Enable MGLRU on meson64-current [cherry-pick]
Per PR#4697 this was enabled first on meson64-edge to test.
I am now following up to enable on meson64-current.
2023-02-18 07:46:34 -03:00
amazingfate
493b8773e9 rockchip64: update bl31 and ddr blobs of rk3568 [cherry-pick] 2023-02-18 07:46:33 -03:00
Ricardo Pardini
4db330178f odroidhc4: u-boot to 23.01; add HC4-SPI target preboot for USB; change HC4-SD target defconfig to new hc4_sd, similar to c4
- `odroidhc4`: pre-configure `fancontrol` so fans work right out of the box
2023-02-18 07:46:32 -03:00
Ricardo Pardini
27d6592580 sun50iw9: half-fixes to get going under armbian-next (@TODO needs review/nextify/confirm busybox is not needed) 2023-02-18 07:46:30 -03:00
Ricardo Pardini
6ceb772a7a v6.2-rc7: bump edge to v6.2-rc7 for UEFI / meson64 / rk3568-odroid / rockchip-rk3588 2023-02-18 07:46:29 -03:00
Ricardo Pardini
0bcc6c1ca2 odroidm1: bump to 6.2-rc3; look ma, no patches.
- pure mainline, https://github.com/torvalds/linux/commits/master/arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts
- don't disable EXTRAWIFI
2023-02-18 07:46:23 -03:00
Ricardo Pardini
3ea6da8c7a odroidm1: enable working userland fw_setenv, so users can go back to Petitboot & otherwise tweak u-boot env from Armbian 2023-02-18 07:46:22 -03:00
Ricardo Pardini
fa64a1d9af meson64: edge/6.2: bump to 6.2-rc5 2023-02-18 07:46:20 -03:00
Ricardo Pardini
faa0d7ee8f odroidc2: u-boot: use minimal patchset for v22.01 u-boot
- symptoms:
  - no video display in u-boot
  - can't boot from SD (but does from eMMC)
- this has proven to solve nothing, but is still neat
- real problem is probably the FIP?
2023-02-18 07:46:18 -03:00
Ricardo Pardini
0eb441c9cd [kinetic] un-symlink cli/main kinetic->jammy packages; add systemd-resolved which was split off from main systemd package in Kinetic 2023-02-18 07:46:17 -03:00
Ricardo Pardini
c73d60368a armbian-next: remove references to stuff that doesn't exist or isn't hit by default anymore 2023-02-18 07:46:09 -03:00
Ricardo Pardini
ca6bf9046b armbian-next: remove all traces of Vagrant and FEL boot 2023-02-18 07:46:00 -03:00
Ricardo Pardini
ed3416dc7d armbian-next: kernel-debs: squash some warnings; add KERNEL_SRC_ARCH to arch configs; don't warn about NAME_KERNEL 2023-02-18 07:44:37 -03:00
Ricardo Pardini
872463f2f0 armbian-next: aggregation: dont' require or consider BOARD or LINUXFAMILY for aggregation anymore
- it was only used for "bsp-aggregation" of `rk3318-box` which I will come up with something extensions/hooks based later
2023-02-18 07:44:25 -03:00
Ricardo Pardini
e344bc1fc7 armbian-next: nextify "Re-enabling support for Rpi3" 2023-02-18 07:43:38 -03:00
Ricardo Pardini
0ac6a8fc1d armbian-next: add core extension c-plus-plus-compiler which hostdeps on g++-aarch64-linux-gnu and enable it in JetHub family 2023-02-18 07:42:45 -03:00
Ricardo Pardini
00e1dec8a2 armbian-next: odroidxu4 vs kernel: move firmware hack to family using extension hook
- @TODO: is this even needed/used anymore?
2023-02-18 07:42:36 -03:00
Ricardo Pardini
d979c73c1d armbian-next: split compilation/debs.sh; compile_xilinx_bootgen() moved to family 2023-02-18 07:42:31 -03:00
Ricardo Pardini
e1f136124b armbian-next: remove old template Dockerfile, -next does not use this at all 2023-02-18 07:42:13 -03:00
Ricardo Pardini
353bf93bb5 armbian-next: uefi-common: declare -g, not export 2023-02-18 07:41:58 -03:00
Ricardo Pardini
775826e970 armbian-next: rockchip-rk3588 edge bump & armbian-next'ify 2023-02-18 07:41:31 -03:00
Ricardo Pardini
8fa7f36b4f armbian-next: mvebu.conf::family_tweaks(): small armbian-next'ify for better logging 2023-02-18 07:41:29 -03:00
Ricardo Pardini
a512edbaa9 armbian-next: better logging for jethub's tweaks 2023-02-18 07:41:06 -03:00
Ricardo Pardini
eb6081678f armbian-next: fix sunxi/sunxi64 using wrong KERNELPATCHDIR and incurring in old symlinks 2023-02-18 07:40:59 -03:00
Ricardo Pardini
4a9529dd34 armbian-next: qemu-uboot-arm64 and qemu-uboot-x86 new boards
- sharing most UEFI code, will replace the `virtual` one soon
- x86: patch uboot defconfig to use the `q35` machine type, not `i440fx`
  - separate x86 bootscript, due to non-uInitrd-ness of it
  - hack ramdisk load address both in u-boot source and bootscript
  - use 32-bit u-boot, not 64-bit
- grub: introduce `UEFI_GRUB=skip`, does not deploy GRUB (but does the kernel packages, etc)
- auto-enable qcow2 output for these
- works with both distro's and Armbian's kernels
2023-02-18 07:40:33 -03:00
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