Commit Graph

904 Commits

Author SHA1 Message Date
lanefu
3b05065d71
fix armbian-ramlog default functionality breaking comments (#3603) 2022-03-29 14:05:09 +02:00
Jannis
ae3ad1fdee
Apply changes to Espressobin from Issue#2861 (#3498)
* Apply changes to Espressobin from Issue#2861

* Additional config changes

* Add cryptopp to marvell tools

* Remove local DDR topology changes

* Disable ebin MACs in armbianEnv.txt

* Change kernel options for ebin, remove mtdparts

* Add CZ.NICs ebin firmware

* Increase ATF compiler version"

* fixup external toolchains

* add gcc-aarch64-linux-gnu package (#3585)

* correct compiler names for ATF, external toolchain

Co-authored-by: Derek LaHousse <dlahouss@mtu.edu>
Co-authored-by: Derek <ManoftheSea@users.noreply.github.com>
2022-03-28 07:16:22 -04:00
Oleg
d227b6d3a4
fix message install use extlinux.conf (#3556) 2022-03-24 20:54:59 +01:00
Oleg
2daf35107d
fix BT and wifi for station m1 legacy (#3533)
* fix BT for station m1 legacy

* add firmware
2022-03-13 09:05:14 +01:00
Oleg
dc54b0c2c6
fix install emmc (#3532) 2022-03-12 23:15:47 +01:00
Yuntian Zhang
07d6630421
Add missing asound.state for Radxa Zeroes (#3523) 2022-03-06 11:33:49 +01:00
The-going
8693b355eb
Bugfix for packages/armbian/builddeb, packages/bsp/common/etc/kernel/preinst.d/initramfs-cleanup (#3511)
* Fix the standard location of dtb files

This fix allows standard system scripts from flash-kernel,
u-boot-menu packages to search in this location

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Bugfix: No need to unmount a separate partition for the /boot

These issues should be solved by system scripts.
In the future, this check should be removed.

* Remove unused generated file 'initrd.img-*' 'uInitrd-*'

These files were generated by initramfs-tools script
called postinst.d scripts.
And should be removed in the postrm.d or postinst.d scripts
and should be run after the initramfs-tools script
and under the same conditions.
2022-02-26 15:04:24 +01:00
Vyacheslav
5d3271dc3a
JetHub H1: dirty userland fix for net interface does not up at boot (#3507) 2022-02-25 19:27:57 +01:00
Oleg
3305d45b81
add firmware wifi for p2\m2 (#3493) 2022-02-15 10:35:52 +01:00
The-going
484c6f04f7
Packaging (#3487)
* Revert "rpi: copy DTBs to Debian/Ubuntu standard location /lib/firmware/$version/device-tree; remove build-time-only hacks (#3462)"

This reverts commit 2f2d10c04a.

* Revert "Fix rpi upgrades to kernel and dtbs (#3461)"

This reverts commit 3b7f5b1f34.

Copying dtb files to a folder that cannot belong to a dtb package
creates additional clutter. If this is required for an individual
family, then it is necessary to implement it at the level of system
scripts. And only for this family.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2022-02-14 19:04:57 +01:00
Igor Pečovnik
84944eaaf4
Enable audio on Rpi in config (#3479)
* Enable audio on Rpi in config
* Add asound.state
2022-02-12 19:36:06 +01:00
Oleg
a037db891e
add utils ddbr for create\restore full backup eMMC (#3406) 2022-02-10 15:32:57 +01:00
Oleg
43daaea590
fix disable u-boot and initramfs hooks (#3470)
Close https://github.com/armbian/build/issues/3457
2022-02-10 14:59:05 +01:00
Vyacheslav
e8480e9705
Add support for JetHub D1 new revision with AP6256 WiFi/BT (#3471) 2022-02-10 14:57:57 +01:00
Ricardo Pardini
2f2d10c04a
rpi: copy DTBs to Debian/Ubuntu standard location /lib/firmware/$version/device-tree; remove build-time-only hacks (#3462)
- this allows us to remove the most horrible hack
- should allow for correctly working DTB upgrades
- should NOT impact other families
2022-02-07 11:36:22 +01:00
Ricardo Pardini
3b7f5b1f34
Fix rpi upgrades to kernel and dtbs (#3461)
* rpi: fix: flash-kernel fix to ignore kernel 'flavour' for all raspi's

- use uppercase RPICFG label, so it shows up on Windows/Mac (FAT requires uppercase)

* builddeb: fix indenting of heredocs and shellfmt

* rpi: add DTB symlink in Debian/Ubuntu standard location /lib/firmware/$version/device-tree; remove build-time-only hacks

- this allows us to remove the most horrible hack
- should allow for correctly working DTB upgrades
- should NOT impact other families, although a new symlink will be created, nothing uses it.
2022-02-06 09:24:13 +01:00
Oleg
7d69cfeb6e
fix install u-boot to eMMC (#3448) 2022-02-02 10:49:41 +01:00
Igor Pecovnik
1d80b5cde3
Revert "When checking for shell, use strict grep (#3437)"
This reverts commit b77bd30460.
2022-01-26 20:18:46 +01:00
Igor Pečovnik
b77bd30460
When checking for shell, use strict grep (#3437) 2022-01-25 23:26:05 +01:00
Aristo Chen
21b4d4bd42
Ask user again if the response is not expected (#3411) 2022-01-20 14:44:40 +01:00
Vyacheslav
f230b5fca5
JetHome: add jethome package repository (#3399) 2022-01-17 18:09:37 +01:00
The-going
23afccf56e
Bugfix: debugging package for kernel are not created #3405 (#3409)
Build a debugging package for the kernel if the CONFIG_DEBUG_INFO=y parameter is set in the kernel configuration.
Issues: packages are not created #3405
2022-01-17 14:51:19 +03:00
Oleg
6b490e1694
move kernel edge to 5.16 (#3387) 2022-01-11 15:26:11 +01:00
Vyacheslav
41a761281d
JetHome: update bsp package for AP6255 firmware match (#3388) 2022-01-11 11:49:55 +01:00
Igor Pečovnik
310495ddf1
Refactor armbian-bsp-cli package creation (#3378)
* Refactor armbian-bsp-cli package creation

- added general distro status for all in separate file inside BSP
- remove branch and distro specifics

* Looking for prebuild pack

* Small fixes
2022-01-06 11:50:24 +01:00
Igor Pečovnik
e76a5b0bfe
Improve fist login UX (#3375)
* Improve 1st login script

* Update packages/bsp/common/usr/lib/armbian/armbian-firstlogin

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Address accessibility issue

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
2022-01-05 17:55:10 +01:00
Oleg
3f8da052e8
fixes the manual launch of the installation script from USB media (#3377) 2022-01-05 17:54:30 +01:00
Igor Pecovnik
181d0e2fc3
Limit sunxi-tools install to Allwinner family only
Close https://github.com/armbian/build/issues/2941
2022-01-03 19:11:37 +01:00
The-going
fedc9c1f58
Install debian packages using a special function (#3368)
* Add new function install_pkg_deb

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Use the install_pkg_deb function

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* sunxi-tools: Calculate build dependencies

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* hostapd, hostapd-realtek: Calculate build dependencies

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Clean Environment for building as default

* upgrading: Repack a clean Environment archive

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-12-27 14:23:35 -05:00
Oleg
08568a6005
add station m2\p2 (#3352) 2021-12-26 16:37:49 +01:00
iav
37662d8ed3
helios64: fix udev rules to let fancontrol work again (#3367) 2021-12-25 21:53:53 +01:00
Vyacheslav
5efc78b531
JetHome JetHub D1/H1 patch/bsp updates (#3348)
* JetHome: Update u-boot patches: fix emmc work on JetHub D1
* JetHome: update kernel patches with last updates for JetHub devices.
* JetHome: Update Bluetooth init script to more stable start.
2021-12-14 12:08:26 +01:00
Paolo Sabatino
e1a88959f8 rk322x: add bluetooth overlay, updated rk322x-config 2021-12-10 21:53:57 +01:00
Igor Pecovnik
20e3da18e7
Orangepi Zero2 legacy - adjust memory voltage according to manufacturer's recommendation 2021-12-08 21:41:23 +01:00
Leo
3c5e8820d1
Source /etc/armbian-release before the motd conf file (#3326)
That way the user can set $BOARD_NAME in /etc/default/armbian-motd. This is useful because e.g. the Odroid HC2 is internally an Odroid XU4, and in /etc/armbian-release it shows up as Odroid XU4.
2021-12-07 20:13:34 +01:00
Ricardo Pardini
90e0fe0ba2
extensions framework + UEFI aarch64/x86 + rpi4b + core changes/fixes (#3300)
* extensions framework (née "fragments")

- this should actually change nothing at this point, just add capabilities
- the framework is implemented in lib/extensions.sh
- the "if function x exists then call x" replaced with call_extension_method()
  - +inline documentation
  - +compatibility names

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions framework; meta-extensions: auto-docs and sample extension gen

- 2 extensions dealing with extensibility itself
  - detect-unused-extensions: shows which extensions are enabled, but never called.
  - gen-sample-extension-docs: generates a sample empty extension & Markdown documentation for extensions

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* new extension methods and features via config variables in core Armbian

- `SKIP_EXTERNAL_TOOLCHAINS=yes` - does not download or use any linaro toolchains, only build host-installed ones
- `SKIP_BOOTSPLASH=yes` - does not patch kernel for splash file
- `EXTRA_BSP_NAME=xyz` - allows for BSP variants, useful for when extensions modify the BSP
- `EXTRA_ROOTFS_MIB_SIZE=x` - add x mib's to rootfs size, for use with very small images
- `KERNEL_EXTRA_TARGETS` - what extra targets to make kernel for, default to "modules dtbs"
- `BOOTCONFIG=none` - does not build nor install u-boot; also doesn't handle bootscripts et al
- `unset KERNELSOURCE` - does not build nor install kernel, nor build initrd, nor build nor install firmware
- `ARMHF_ARCH=skip` - does not add armhf to apt/dpkg, thus pure arm64
- `SKIP_ARMBIAN_REPO=yes` - results in armbian.list.disabled in the final image
- define `APT_EXTRA_DIST_PARAMS` with apt-cacher-ng options and use it for `PACKAGE_LIST_INSTALL/REMOVE` et al
- initial support for targeting x86/amd64 UEFI and BIOS
    - some do's/don'ts for x86/amd64, like a different `UBUNTU_MIRROR` default
    - GPT/EFI(ESP) partitions (fat, `UEFISIZE=256` to enable, mount `UEFI_MOUNT_POINT=/boot/efi`, first on disk but ends
      up at `$uefipart`=15)
    - GPT/BIOS partitions (fat, `BIOSSIZE=1` to enable, second on disk but ends up at partition 14)
    - `UEFI_FS_LABEL="armbiefi"` - to set the FAT label for the EFI partition, visible in Win/Mac
    - hard-requires gdisk package host-side
- add add_host_dependencies() extension method; fill `EXTRA_BUILD_DEPS="pkg pkg2"` to install to host before toolchains
  download
- add pre_prepare_partitions() extension method, for custom partition size calculations
- add create_partition_table() extension method, used to do full-custom partitioning if `USE_HOOK_FOR_PARTITION=yes`
- add post_create_partitions() extension method, mostly for easy debugging
- add post_write_sdcard() extension method, where you can also set `SKIP_VERIFY=yes` to skip sdcard verification
- add post_install_kernel_debs() extension method.
- multiple fixes to bsp to avoid spurious errors when files are not where it expects
- v4: detect `update-initramfs` failure and abort build with useful message if it does
- v4: show useful stacktrace in `exit_with_error`
  - if `ERROR_DEBUG_SHELL=yes`, drop into a shell before unmounting/deleting everything, so we can inspect what went wrong
- v4: display a message before `apt-get remove PACKAGE_LIST_BOARD_REMOVE` packages, so any errors while removing are easy to understand
- v4: preserve kernel .config's dates when copying

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions framework; refactor tool fetching/building into extensions

- a few examples of core refactoring using extensions
- sunxi-tools extension, enabled by 2 different sunxi family includes ("reuse" example)
- marvel-tools extension, enabled by 2 different mvebu family includes
- rkbin-tools extension, enabled by rockship64_common family include
- amlogic-fip/c2-blobs stuff refactored directly into meson64_common.inc ("single-use" example)
- removed the 'testings' fetch_from_repo completely since not used anywhere.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* .wip's for UEFI arm64 and UEFI/BIOS x86 via new GRUB extension

- v3: added `growroot`-awareness to `armbian-resize-filesystem`
    - the partition-growing part of `armbian-resize-filesystem` does not deal correctly with the UEFI layout
    - `growroot` is installed on UEFI images by default, that handles growing partition during initramfs
    - now `armbian-resize-filesystem` handles `resize2fs` only, and works.
- v4: reworked UEFI board/family/include structure:
    - use Distro's `linux-generic` kernel only for `current`
    - `edge` now builds it's own pure-mainline `5.15.y` kernel, for both x86 and arm64
        - `.config` taken from Ubuntu, probably needs tuning for EXTRAWIFI=yes et al
- v4: introduce `SKIP_KERNEL_SYMLINK=yes`, tested in `builddeb`
    - to avoid symlinking kernel; u-boot likes it, but grub and flash-kernel hates it
- v5: many fixes
- v7: more small fixes.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* .wip for the RaspberryPi 4B via new flash-kernel extension

- this does not build it's own kernel "yet", but uses default linux-raspi kernel from Ubuntu
- flash-kernel is not really a bootloader
    - it just prepares kernel et al a FAT partition for booting by the RPi4b bootloader
    - flash-kernel is standard Debian package, but has only been tested on Ubuntu releases
- it is really only known-working since Hirsute release.
  - Debian's rpi kernel is armhf only, so out of scope here, at least until we add source-built kernels.
- v3: fixed focal rootfs build. untested.
- v3: better variable names, preparing for source-built kernel.
- v5: new edge build with pure mainline kernel.
- v6: many fixes and some hacks for packaging and layout, also firmware (using Ubuntu's)

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Added first patch to edge x86 related to wifi drivers

* extensions: leave hostapd alone; remove hackish ext; block reentrancy

- package-list-utils does not belong in this PR
- grub or bcm2711 is not the place to remove hostapd
- block recursive enable_extension() calls, for now.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* gen-sample-extension-docs: fix: avoid counter in generated sample

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: dependencies: enable_extension() in extensions with a stack

- and better stacktraces, I hope

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Remove code from package list since we don't have it in repository
Adjust kernel config to disable driver that needs further polishing.

* Allow amd64 to build the same desktops as aarch64. We only have this limit for armhf, where some desktops don't work

* amd64: allow building amd64 on aarch64 with system toolchain

- conditionally add gcc-x86-64-linux-gnu to hostdeps

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* add libelf-dev directly to hostdeps (and Dockerfile), remove extension

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* packaging: remove SKIP_KERNEL_SYMLINK hack, fix the root cause

- which was the missing $image_name for non-arm64 & non-arm, so: x86 for example

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* grub: really obliterate u-boot stuff from BSP

- for now. soon we'll refactor u-boot so not have to do this

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* flash-kernel: really obliterate u-boot stuff from BSP

- for now. soon we'll refactor u-boot so not have to do this

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: add host_dependencies_ready() hook

- this passes FINAL_HOST_DEPS containing all hostdeps for the run after they're installed

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Add verification functions for correct selection.

* If UEFI Skip symlink creation

* Do not create dtb package for amd64

* Skip scripts folder cleaning if build process native.

Skip creating  postinst prerm scripts  for headers.

* Skip applying headers-debian-byteshift.patch if build native

* Fix architecture syntax as x86_64

* Revert "amd64: allow building amd64 on aarch64 with system toolchain"

This reverts commit 0c5ee20bb1.

* Compare architectures before starting compilation.



Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* extensions: cleanups after fixes by the-Going

- packaging:
  - there is _no need_ anymore for the symlink hack, CONFIG_EFI or no. But check is great, see below
  - it's not `amd64` that has no DTB's, it's all UEFI, thus: `is_enabled CONFIG_EFI`, thanks!
- Explicitly disallow "reverse cross compile" in amd64.conf.
- whitespace-only-deletions: revert. we shall shellfmt the whole thing one day, but not today.
- fix a few syntax warnings in newly introduced code (floating `$ARCH` vs `"${ARCH}`) - blame shellcheck

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* packaging: fix: turns out a lot of boards have CONFIG_EFI=y, can't use that for dtb/no-dtb decision.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* grub: remove debug

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* firmware: allow installing `armbian-firmware-full`; make it really full

- can now use `BOARD_FIRMWARE_INSTALL="-full"` to install full firmware for the board. enable for UEFI.
- don't rely on KERNELSOURCE for firmware-related decisions. introduce `INSTALL_ARMBIAN_FIRMWARE` which defaults to `yes`
- rpi4b/flash-kernel: disable Armbian firmware; we need linux-firmware-raspi2, which conflicts.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: log to /${LOG_SUBPATH}/ instead of fixed /debug/

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: introduce cleanup_extension_manager() called by build-all-ng's unset_all()

- to reset/unset everything done by the the initializer, so build can run again

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: remove 'global' logging, for use with build_all_ng

- enable_extensions() will have to live on without logging to file. it's just too early.
- now init EXTENSION_MANAGER_TMP_DIR in initialize_extension_manager()
- now init EXTENSION_MANAGER_LOG_FILE in initialize_extension_manager()

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: build-all-ng.sh bugfix due to extension's debug to stdout

- extensions (among other things) can produce output to stdout when activated
- fix: check_hash() produced "idential" (sic, now changed to IDENTICAL) to stdout as a trigger
- debugging output got mixed with "idential", rendering hash cache void for families that used extensions
  - eg: sunxi, others
- fix is to send stdout to the bitbucket when sourcing the board & arch config files
- proper fix would be stop using stdout in this case and use return code for check_hash()
  - one day soon

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Add CI build targets

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
Co-authored-by: The-going <48602507+The-going@users.noreply.github.com>
2021-12-06 09:49:49 +01:00
Igor Pečovnik
d8285296ec
Bugfix - safer way of deleting headers (#3316) 2021-12-04 23:53:00 +01:00
Paolo Sabatino
b4749af062
rk332x: fix esp8089 module option 2021-11-24 17:28:03 +00:00
Igor Pečovnik
6979718d58
Chroot build packages cleanup and bug fixing (#3266)
* Small fixes and removal of deprecated component
* Fix to properly create armbian repo in chroot
2021-11-17 19:35:32 +01:00
Igor Pečovnik
aaa050959b
Replace which with command -v (#3253) 2021-11-15 23:30:39 +01:00
Igor Pečovnik
8258a0ee36
Implement fan controller for Nanopi M4 (#3231)
* Implement fan controller for Nanopi M2V2

* Fan works on all Nanopi M4
2021-10-31 12:12:06 +01:00
Igor Pecovnik
612529aa8f
Fixing errors in armbianmonitor and add release info
Close https://github.com/armbian/build/issues/2798
2021-10-28 23:22:29 +02:00
Ricardo Pardini
be5f2b8c75
introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS (#3222)
* introduce DEB_COMPRESS for dpkg-deb+kernel's KDEB_COMPRESS

- Avoids zstd which is now default in Ubuntu Impish, but can't be read by Debian dpkg
- Allows for xz, gzip, or none; defaults to xz; use gzip for faster, and none for much faster.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* use KDEB_COMPRESS in packages/armbian/builddep for 5.12+ kernels too

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-10-27 18:55:12 +02:00
Vyacheslav
3c4b69650e
Add support for JetHome JetHub D1/H1 home automation controllers (#3176)
* JetHome: add basic files for JetHub D1/H1 boards

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add uboot patches

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel patches for JetHub D1/H1 (backport from 5.16-dt kernel)

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add bsp packages for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel options for hardware JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: fix targets-cli-beta.conf for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add axg uboot creation function for JetHub D1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2021-10-19 21:05:36 +02:00
Oleg
ddc90be2c7
fix sound station (#3200) 2021-10-15 14:19:53 +02:00
Paolo Sabatino
31d238930b rockchip: enable broadcom serdev bluetooth for current and edge kernels
* add workaround against default MAC Address (userland utility bdaddr does not work to set MAC Address as expected)
	* enable bits for xt-q8l-v10 board (ap6330/bcm4330 part), switching AP6330 bluetooth to btbcm driver using serdev
	  facilities to avoid userspace machinery with deprecated hciattach tool, added bits to enable driver support in kernel.
	  Removed ap6330 bluetooth service from bsp packages, added initramfs-tools hook to include bcm4330b1.hcd firmware in initramfs
2021-09-16 17:51:34 +00:00
Piotr Szczepanik
0069ad60a6
Preliminary support for rockchip rk35xx boards (#3111) 2021-09-15 22:08:39 +02:00
Aristo Chen
905cf37bd3
Enlarge dialog size to prevent string cut off (#3141) 2021-09-12 19:26:33 +02:00
Paolo Sabatino
d9c1954052 rk322x: enable glamor acceleration for X11 2021-09-11 12:51:28 +00:00
Paolo Sabatino
0ba760e148 rk322x: ddrbin now uses 2T Command Rate, dynamically adjust ddrbin command rate on u-boot updates 2021-09-11 12:51:28 +00:00
The-going
593104add4
Rework compile (#3124)
* DEBUG code

* make M=scripts clean before creating the package

Move the cleanup of the scripts target from the postinst script
to the logically correct place so that the cleanup occurs with
the same arguments of the make command and the same compiler.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* clear all files in target directory

* Debugging for version 5.10.10 and higher

* Return to version 5.12

Since version 5.12, there are no collisions
with deleting the scripts/module.lds file.

This pathology begins with 5.10 and ends on 5.11 inclusive,
and this is due to internal migration in the core.

* Change the order of creating packages

The linux-headers package must be built in the last queue

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Revert "DEBUG code"

This reverts commit 6bd8dcaa3b.
2021-09-06 21:29:20 +02:00
Aristo Chen
fab9ff1dba
Remove unused variable in format string (#3105) 2021-09-02 21:51:54 +02:00
Werner
23d5aa12ba
Possible fix for syntax error (#3115)
https://forum.armbian.com/topic/18838-invalid-armbian-trucate-logs-error/
I assume all userspaces have bash shipped anyways?
2021-09-02 20:47:46 +02:00
Igor Pečovnik
5004a05a15
Store wallpapers with better compression (#3108)
Saves around 50% without loosing noticable on quality.
2021-08-24 00:44:14 +02:00
Aristo Chen
9aa60df063
Exclude IP of network interface with :avahi at the end of name (#3099) 2021-08-21 11:04:22 +02:00
Jannis
147b8b54e6
Merge pull request #3092 from armbian/helios64-udev-hwmon-fix
Helios64 combine hwmon rules between legacy and current
2021-08-16 13:46:04 +02:00
Igor Pečovnik
91457ff216
Adjusting Cinnamon back to stock graphics (#3094)
- removing tracker-extract since its crashing and is anyway useless tool
- adjusting text to meet the real meaning
2021-08-12 20:14:29 +02:00
Igor Pečovnik
d54b2d6a84
Adding OPi Zero2 legacy kernel support (#2620)
* Adding OPi Zero2 legacy kernel support
2021-08-12 19:19:18 +02:00
Richard Neese
b354ede7e2
revert xcfe to old look (#3090)
* revert xcfe to old look

* fix login screen xfce old look

* Re-add monitorVirtual-1

* There is not such icon

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2021-08-11 23:03:35 +02:00
Igor Pečovnik
84b111487f
Fixing first login shows "degraded" (#3091)
Status is shown to stdout, but we don't want that in 1st login screen
2021-08-11 00:01:21 +02:00
Richard Neese
fe74c3ffcc
fixed typo's in the wallpaper xml file for xfce desktop (#3078) 2021-08-04 17:53:15 +02:00
Richard Neese
6364643ffb
fixing menu look for both debian/ubuntu (#3072)
ubuntu does not have the theme package to match ubuntu so had to change the background to one both debian and ubuntu have.
2021-07-29 21:44:37 +02:00
Ricardo Pardini
59509407aa Khadas VIM3: add asound.state file
- via Jeremiah Cornelius on the Armbian Forums
- also clarify comment about 2 dtbs in mainline kernel

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-07-24 18:32:55 -04:00
lanefu
4b91e49c72
khadas edge tweaks (#3022)
* remove static mac assignment hack for khadas edge

* khadased edge rk3399 default asound
2021-07-18 23:14:02 -04:00
Igor Pečovnik
c064c11b47
Remove duplicated entries for Pinebook PRO bsp creation (#3031)
* Remove duplicated entries for Pinebook PRO bsp creation

* Link only CLI and desktop BSP package per board

* Adjust "
2021-07-18 15:41:58 +02:00
Paolo Sabatino
baf9815f8b rk322x: add DMC driver and runtime clock adjust, change rk322x-config emmc options
* add DFI driver to provide hardware-based memory controller load
     * adapted DRAM Memory Controller driver from rk3328, add necessary headers
     * provide device tree overlays to enable DDR3 clock scaling
     * adapted rk322x-box to allow DDR speed bin selection to user
     * add ipb900 board gpio configuration
     * add rtl8723cs driver to linux-current kernel
     * use ddrbin v1.10 set to 330 Mhz at boot
     * provide overlays for ddr3 at 330, 528, 660 and 800 mhz
     * split emmc overlays to enable options by user choice
     * modified rk322x-config to support dmc, emmc overlays
     * remove optee trust os in favor of rockchip proprietary blob
       for dmc functionality
2021-07-17 15:21:48 +00:00
Rich
89e0c8699f fixing xfce for new xfconf-query -c xfwm4 -p /general/vblank_mode -s off 2021-07-16 09:53:18 -04:00
Rich
23aacd78bb added virturl setting for dektop backgrounds 2021-07-14 13:47:36 -04:00
Rich
3405d91873 working to fix backgrounds 2021-07-13 13:02:55 -04:00
Rich
07dd14b108 fixing xfce background and launcher icon 2021-07-12 18:52:12 -04:00
Richard Neese
be44bb7d61
Merge pull request #3003 from RichNeese/desktop-background-cleanup
Desktop background cleanup
2021-07-12 17:19:24 -04:00
Rich
9b3fcdac85 fixing background issue 2021-07-12 11:24:59 -04:00
Rich
4dc1b10311 working to split backgrounds lighdm and desktop 2021-07-12 09:38:08 -04:00
Oleg
1e5133dd2b
fix u-boot sector station (#2999) 2021-07-12 09:32:35 +02:00
Richard Neese
1a0bd6ab2f
Merge pull request #2995 from RichNeese/addscrcpy-icon
adding scrcpy.desktop and icon for use with scrcpy to connect android…
2021-07-11 08:53:41 -04:00
Rich
d050265c5a adding scrcpy.desktop and icon for use with scrcpy to connect android phones to armbian and display them 2021-07-11 08:52:06 -04:00
Rich
83a95cdb7a enabled iconfn on armbian-config desktop script 2021-07-11 08:43:42 -04:00
Rich
8ebf148e91 adding in 2 new desktop icons for armbian-config 2021-07-11 08:37:53 -04:00
Oleg
4c80535fd8
update kernel legacy 4.9.201 and current 5.10 (#2987) for jetson 2021-07-09 20:54:40 -04:00
Richard Neese
f1e9c76b37
Merge pull request #2989 from RichNeese/xfce-color
Xfce color
2021-07-09 12:28:36 -04:00
Rich
ac8e594377 chane to blue icon 2021-07-09 11:19:58 -04:00
Rich
9dd1aec5d5 adding new icons and backgrounds 2021-07-09 11:05:25 -04:00
Rich
9f2de611cd changing the look for xfce 2021-07-09 08:29:57 -04:00
Oleg
6bd67e18e5
add media kernel for arm64 (#2971) 2021-07-07 16:15:34 +02:00
Igor Pečovnik
9d4e0408c5
Improvements for BSP creation (#2975)
* Improvements for BSP creation

- add support for the same principle found in desktop creation. For CLI package we are copying content from "bsp-cli" folders.
- moving bsp* copy function to image-helpers
- improve readme
2021-07-07 16:06:00 +02:00
lanefu
71f67e664e
wait for systemd fully started before first login (#2979) 2021-07-06 22:32:37 -04:00
Rich
7e3c4b6a5f cleaning up packages and look for xfce 2021-07-06 19:14:47 -04:00
Rich
42c6f446c1 fixing icon for desktop 2021-07-06 08:56:20 -04:00
Igor Pečovnik
9249d3f954
Add support for desktop board support package (#2972)
* Add support for desktop board support package

Extracting from https://github.com/armbian/build/pull/2776 which can be closed after.
* Desktop BSP creation is working, but need broader testing and some quick how-to
* Create empty files as examples where we can put things.
* Fixing Pinebook desktop bsp creation
* We need to have information about ARCH in the desktop bsp package. This ain't universal.
2021-07-06 00:59:50 +02:00
lanefu
8c09e1fa93
khadas support (#2903)
* cleanup add vim3l

* Add Khadas edge config

* Add Khadas edge sources definitions. It boots

* Change configuration to maximised model

* Adjust build configs

* witch to case statement for meson x11 config

* push vim1 naming

* Booting VIM2 with khadas prebuild u-boot

Can load from an empty eMMC, can be installed to eMMC via nand-sata-install

* Add Vim1 and move 1 and 2 to supported. VIM1 is not tested yet.

* Enable full featured desktop with 3D for khadas vim 1 and vim2

* Update meson64_common.inc

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-07-05 21:05:43 +02:00
Rich
c4a98859a7 fixing desktop menu icon. 2021-07-04 14:03:24 -04:00
Igor Pecovnik
8ab6aeb342 Cosmetic - supress error vnstat can't be found at first login 2021-07-03 19:27:39 +02:00
Aristo Chen
5082eb9d4e
Skip checking TX/RX for interface not exists in /var/lib/vnstat/ (#2948) 2021-07-02 07:56:27 +02:00
Richard Neese
1880df66b4
Fix bad slick patch (#2942)
* fixing my bad patch from lastnight.

Removing the bad patch I did last night and fixing it with proper sed commands

* fixing names .

had to fix names in the files

* configuring new settings in slick-greeter
2021-06-30 16:51:28 +02:00
Richard Neese
a4db93be66
fixing slick greater for the diff desktops short term for testing (#2940) 2021-06-30 06:47:12 +02:00
The-going
92b8320edd
Packaging (#2935)
* kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n

Since commit 269a535ca931 ("modpost: generate vmlinux.symvers and
reuse it for the second modpost"), with CONFIG_MODULES disabled,
"make deb-pkg" (or "make bindeb-pkg") fails with:

find: ‘Module.symvers’: No such file or directory

If CONFIG_MODULES is disabled, it doesn't really make sense to build
the linux-headers package.

Author: Masahiro Yamada <masahiroy@kernel.org>
Date:   Wed Oct 14 03:38:19 2020 +0900
Upstream commit bac977cbc0d6731fb8e67c2be0e4acbd959e10b3

Fixes: 269a535ca931 ("modpost: generate vmlinux.symvers and reuse it for the second modpost")
Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* mkdebian: fix: build a package for version 5.13

upstream commit 82526ef43399a7556b860538041802042b3872c1
Author: Masahiro Yamada <masahiroy@kernel.org>
Date:   Tue Apr 20 02:05:05 2021 +0900

    kbuild: deb-pkg: change the source package name to linux-upstream

    Change the source package name from 'linux-$(KERNELRELEASE)' to
    'linux-upstream'.

    Initially, I tried to use 'linux' to be aligned with the Debian
    kernel package, but Ben suggested 'linux-upstream' so that it is
    clearly distinguished from distribution packages. [1]

    The filenames will be changed as follows:

    [Before]
      linux-5.12.0-rc3+_5.12.0-rc3+-1.dsc
      linux-5.12.0-rc3+_5.12.0-rc3+.orig.tar.gz
      linux-5.12.0-rc3+_5.12.0-rc3+-1.diff.gz

    [After]
      linux-upstream_5.12.0-rc3+-1.dsc
      linux-upstream_5.12.0-rc3+.orig.tar.gz
      linux-upstream_5.12.0-rc3+-1.diff.gz

    Commit 3716001bcb7f ("deb-pkg: add source package") introduced
    KDEB_SOURCENAME. If you are unhappy with the default name, you can
    override it via KDEB_SOURCENAME.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Search by template when updating initramfs

Search by pattern first, then use in the command.
If unsuccessful then exit by mistake.

Fix:
depmod: WARNING:
could not open modules.order at /var/tmp/mkinitramfs_bp3vP5/lib/modules/5.13.0-sunxi64:
 No such file or directory
could not open modules.builtin at /var/tmp/mkinitramfs_bp3vP5/lib/modules/5.13.0-sunxi64:
 No such file or directory
When a valid directory lib/modules/5.13.0-rc6-sunxi64
Or when the user added a localversion to the configuration file
and valid directory lib/modules/5.13.0-rt7-sunxi64

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Code Cleanup: kernel build: Removing EXTRAVERSION Cleanup

This was intended for the EDGE kernel and is no longer required.
Moreover, this code is not working.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-06-29 20:18:52 +02:00
Richard Neese
c3c9dfa4c6
added new backgrounds and icons (#2932)
* added new backgrounds and icons

* adding in dir for png files and desktop new icons

* rm png wallpaper files
2021-06-29 13:32:41 +02:00
Jannis
c43b31fe7c
Delete 90-helios64-hwmon-legacy.rules 2021-06-20 10:43:59 +02:00
Jannis
503476d0d1
Update 90-helios64-hwmon.rules
Proposal of a way to fix the udev problems described here https://forum.armbian.com/topic/18238-armbian-21052-focal-with-linux-51035-rockchip64-fancontrol-die-in-error-fans-not-spinning/?tab=comments#comment-125963

It just combines legacy and current lines so hopefully will work correctly on both.
2021-06-20 10:42:23 +02:00
Oleg
e05b207058
add BT for Station (#2901) 2021-06-16 09:32:33 +02:00
lanefu
cb18979a64
Merge pull request #2896 from AristoChen/master
Modify the mechanism for showing IP address in 30-armbian-sysinfo
2021-06-13 11:24:41 -04:00
lanefu
63e73e50ed
Merge pull request #2894 from nwf/master
armbian-ramlog: extra rsync options
2021-06-13 11:19:04 -04:00
AristoChen
a84da70535
Modify the mechanism for showing IP address in 30-armbian-sysinfo
Exclude "dummy0" and "lo" interface, thus the IP address for all other
interface(include those having customized name) can be properly displayed
2021-06-13 20:58:05 +08:00
Paolo Sabatino
e19500f6f6 Fix typo and options in slick-greeter (greater->greeter), enable it for rk322x-box 2021-06-12 10:33:28 +00:00
Nathaniel Wesley Filardo
2606d17ec7 armbian-ramlog: extra rsync options
Add two bash arrays, XTRA_RSYNC_{FROM,TO}, defined in
/etc/default/armbian-ramlog, and expand these in the two rsync
invocations in /usr/lib/armbian/armbian-ramlog.

The use of bash arrays simplifies the use of multiple arguments and also
allows for in-band commentary between array elements.

When expanding, safely test for these arrays to exist.  This is, sadly,
a little verbose in bash, so, while here, split the rsync invocations to
use line continuations.

Fixes https://github.com/armbian/build/issues/2846
2021-06-12 02:25:23 +01:00
Laurent
a9f5c0a050
AR-315: Add support for GPT table inside nand-sata-install (#2856) 2021-06-10 11:49:29 +02:00
Oleg
a3f2777f52
add legacy jetson-nano (#2890) 2021-06-10 11:46:12 +02:00
Aristo Chen
78894792a5
Update URLs (#2870)
* Update URLs

* Update URLs

* Update URLs
2021-06-10 11:27:51 +02:00
Richard Neese
81c75b8a95
slick greeter change from gtk greeter (#2883)
* Create slick-greater.conf

adding new greeter conf file

* Create 10-slick-greeter.conf

setting the seat session for the new slick greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter

* Update packages

added slick-greeter
2021-06-10 11:25:11 +02:00
Igor Pečovnik
adaf5956bb
Less chatty logs for 8189fs (#2857) 2021-06-01 19:49:21 +02:00
Aristo Chen
9f27fd9274
Fix issues in read_password() (#2860)
- When trying to delete by using "backspace", it will also print a "*"
and also appended to password
- When pressing keys too fast, it is possible that some characters
actually printed on the screen
2021-06-01 19:49:08 +02:00
The-going
050feb590f
Fixed recompilation of kernel headers into a single thread. (#2851)
Compiling the kernel headers repeatedly and in a single thread
increased the overall package build time by several times.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-05-27 20:40:29 +02:00
Werner
1f2dc3423a
Delete 80-update-htop-and-offload-tx
- users are "confused" about manipulating files in their home directories
- introduced security issues which have been worked around but there might be others too
- more recent  htop may support network stuff oob (https://armbian.atlassian.net/browse/AR-771?focusedCommentId=10546)
2021-05-26 05:49:52 +02:00
The-going
fc892b7e3f
Rework make linux headers (#2849)
* Rework make linux headers

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Make linux-source first and clear the memory

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-05-25 02:50:16 +02:00
Igor Pečovnik
f7c2dc2bc3
More motd related fixed (#2848)
Fixing error when we don't have etherned
2021-05-23 18:25:21 +02:00
ThomasKaiser
0f348185be
Fix typo in f0f10a5 (workaround for 7350topless) 2021-05-23 14:48:51 +02:00
ThomasKaiser
f0f10a5b68
Workaround for 7350topless
Not touching logic or the (IMO ridiculous) behavior of this script. Just meant as a quick&dirty workaround for the specific sed/symlink attack vector. Check https://github.com/stealth/7350topless for details.
2021-05-23 13:51:04 +02:00
The-going
8f1fb2e2be
Packaging (#2844)
* New build kernel if version ge 5.12

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Rename packagename for kernel in the armbian style

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Fix depends pkg for build linux-*

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Fixed version search by Source field

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Fix postinst, prerm scripts for headers pkg

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-05-22 17:01:29 +02:00
Igor Pečovnik
4cc754e0b3
Bugfix - vnstat doesn't like very long input parameterts and it fails on certain wireless devices (Ampak, most common ones) (#2839)
Limiting device to eth* enp* only seems like a viable workaround.
2021-05-18 09:15:55 +02:00
Igor Pečovnik
73e8dfcc7e
Extracting branch and write it to the /etc/armbian-release file. This information is still needed for armbian-config (#2831) 2021-05-15 18:38:11 +02:00
Przemysław Sztoch
486a821a55
VENDOR, rock-pi-n10, RM_LIST for armbian-config/zsh, Static MAC for networkd (#2789)
* VENDOR, rock-pi-n10, RM_LIST for armbian-config/zsh

VENDOR parameter in configuration
zsh is the best of course...
Static MAC for networkd

ROCK Pi N10 (Radxa) - Initial support, knwon bugs:
- Problem with poweroff (kernel panic).
- DeviceTree is not fully verified, I suspect missing and unnecessary
entries.
- No support for NPU
- u-boot without NVME support
- I have doubts if I chose the right preboot loader for RK3399Pro, NPU
  and installed DDR memory.

* New RK3399Pro boot preloaders.

* rootfs checksum, DEBOOTSTRAP_LIST fix, output.log fix

Repaired checksum for rootfs
Added use PACKAGE_LIST_RM to purge DEBOOTSTRAP_LIST
Better logging to output.log
Fix for new host distribution detection (ie Debian Bullseye).
ubootdebs as new cleaning option
2021-05-11 21:50:14 +02:00
lanefu
903bf67973
Merge pull request #2778 from armbian/htop-fix-uncheched-buffer-writes
Fix unchecked buffer writes in custom htop code
2021-05-01 22:20:21 -04:00
Paolo Sabatino
fb0f8f73bd rk322x: add led/gpio config for T066 boards, updates to rk322x-config 2021-04-25 11:55:45 +00:00
Piotr Szczepanik
816187bd9e
Made clear what the patch fixes and add notes on code sources 2021-04-18 22:16:07 +02:00
Piotr Szczepanik
8b3efeedd5
Fix unchecked buffer writes in custom htop code 2021-04-16 23:16:59 +02:00
Oleg
20c06c0ba3
fix install-nand for extlinux.conf (#2775) 2021-04-15 01:16:13 +02:00
Przemysław Sztoch
3f4c73727a
Better conditions for newer distribution (#2768) 2021-04-14 00:44:29 +02:00
lanefu
3369a0d538
Merge pull request #2608 from ChrisDumont/fix-alignment
fix arithmetic to align filesystem sizes to 16MiB (not 16KiB)
2021-04-11 15:02:29 -04:00
Chris Dumont
5bbf2f0396 Fix arithmetic to align filesystem sizes to 16MiB on nand devices. 2021-04-03 10:18:23 -07:00
Igor Pečovnik
d9e3657171
First login keyboard configuration bugfix (#2746)
* 1st login keyboard configuration bugfix

- added small bugfix which caused to select locales too broad
- switch "automated" keyboard detection for selection prompt

* Remove dpkg-reconfigure keyboard-configuration

* Remve unused variable
2021-04-02 08:21:59 +02:00
Igor Pecovnik
93ed1e85b8 Displays that EDGE branch is in action 2021-03-28 12:21:02 +02:00
NekoB0x
8b063ca8a6
Update armbian-ram-logging 2021-03-25 11:19:35 +02:00
NekoB0x
540d7abd88
Fix redundant log writing
Fixes calling "armbian-ramlog write" twice on systems with logrotate systemd unit.
2021-03-25 01:02:23 +02:00
NekoB0x
271756dcc4
Some 30-armbian-sysinfo fixes (#2732)
* Update 30-armbian-sysinfo

Fixed alignment of "Local users" and "IP" in third column.
Made it more compact by adding extra new line.
Added "both" traffic direction.
Removed "-h" vnstat argument because it doesn't do anything, changed "last 24h" to "today" (there is only "rx/tx for today" in --oneline output).

* Update armbian-motd.dpkg-dist

Add PRIMARY_DIRECTION description

* Update 30-armbian-sysinfo

fix new line logic
clean-up unused variables
2021-03-24 19:19:38 +01:00
Igor Pečovnik
61b87bee74
W1 temp sensor can have different properties. Adjusting (#2737) 2021-03-24 19:07:53 +01:00
Gauthier Provost
5e69351b3d
Re-enable network checksum TX offload on rockchip64 family (#2623)
* Re-enable network checksum TX offload on rockchip64 family

* Adjust gmac PBL setting for rk3399 legacy to fix network issues with MTU 1500

* Adjust gmac PBL setting for rk3328 in rockchip64-legacy to fix network issues with MTU 1500

Co-authored-by: Piotr Szczepanik <piter75@gmail.com>
2021-03-23 08:00:10 +01:00
NekoB0x
9e599d0f87
Fix motd traffic stats
Fixes:
RX/TX: "Unknown parameter "1". Use --help for help."
RX always displaying "n/a"
2021-03-19 11:35:38 +02:00
lurdan
d264a8fd74
Change apt's default compression method to gzip (#2729)
APT uses lz4 as its default compression method, but Some ARM board has performance problem on it.
This setting make apt prefer gzip over lz4.

cf. https://forum.armbian.com/topic/14064-my-apt-search-has-become-super-slow-recently/page/2/
2021-03-19 07:17:30 +01:00
Oleg
9aa7aafd4f
Adding Nvidia Jetson Nano (#2720)
* add Jetson Nano

* Update jetson-nano.conf

* Update targets.conf

* Add better description

* Adjust config - try to enable ZRAM

* Packaging patch not needed

* Extlinux was solved in other commit

* Move board to CSC for now

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-03-18 18:29:34 +01:00
Paolo Sabatino
81cc6841e9 Better compatibility for rk322x ddrbin v1.10, changed to set ddr3 to 660 Mhz 2021-03-14 18:47:52 +00:00
NekoB0x
922f1ca49e
Fix Motd disk temperature (#2707)
Fixes displaying of "Always°C" temperature on disks without Min/Max temperature values.
2021-03-14 16:34:32 +01:00
NekoB0x
975025f170
Fix armbian-hardware-optimization logrotate (#2705)
Fixes editing of logrotate configs when ramlog is enabled and /var/log is mounted on zram device other than /dev/zram0.
2021-03-13 19:43:18 +01:00
Igor Pečovnik
3a74abe43d
Merge desktop branch (#2662)
Co-authored-by: Miouyouyou (Myy) <myy@miouyouyou.fr>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Richard Neese <r.neese@gmail.com>
Co-authored-by: iav <iav@iav.lv>
Co-authored-by: lanefu <lanefu@users.noreply.github.com>
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
Co-authored-by: Oleg <balbes-150@yandex.ru>
Co-authored-by: Lane Jennison <lane@lane-fu.com>
Co-authored-by: JMCC <jmcc1@gmx.com>
2021-02-24 18:19:09 +01:00
tparys
37c324975f
Detect overlay capability from uboot boot.cmd (#2628) 2021-02-22 21:50:50 +01:00
Lukas Pirl
4e25b7257b
remove mount option "nodiratime" where "noatime" is given (#2645)
mount option "noatime" implies "nodiratime", see, e.g.:
https://github.com/torvalds/linux/blob/v5.11/fs/inode.c#L1807-L1808
2021-02-22 21:49:04 +01:00
Paolo Sabatino
04670580ea Moved rk322x-dev to linux kernel 5.11
Added led configuration dtbo for rk322x targets
2021-02-20 20:48:42 +00:00
Evka2k
933a00515b
Helios64 UPS. System shutdown when battery reach 7.0V. (#2599)
* Helios64 UPS. System shutdown when battery reach 7.0V.
2021-02-05 18:27:15 +08:00
Uglymotha
af90b3237e
Fix armbianmonitor -n for vlan interfaces (#2594)
Currently armbianmonitor -n does not detect vlan interfaces correctly.
This is because of an incorrect egrep -o which filters out the parent interface name:
network interface: 100
instead of
network interface: eth0.100

Cascading into:
armbianmonitor: line 1095: eth0. - 0 : syntax error: invalid arithmetic operator (error token is ". - 0 ")

Fixed by changing the egrep logic to filter out the last field of route -n output.

Also fixes a timer issue by moving the timer start to after the interface selection.
time controller adjustment: -2.43
/usr/bin/armbianmonitor: line 1128: read: -2.43: invalid timeout specification
2021-02-03 20:19:08 +01:00
Igor Pecovnik
6679449bdf Bugfix and further optimisations of first login script 2021-02-03 18:23:08 +01:00
Chris Dumont
561833ea28 fix arithmetic to align filesystem sizes to 16MiB (not 16KiB) 2021-02-02 09:45:18 -08:00
Igor Pečovnik
44ceb61427
Read distro data from our files, not from generic locations which might be changed (#2597) 2021-02-01 08:39:54 +01:00
Igor Pečovnik
a1fb805d64
Rework first login script (#2578)
* At first login we set users locales based on his location which seems to be to agressive

Add a question before setting it should suffice. Closing https://github.com/armbian/build/issues/2398

* Read it silently

* Detect locales selection only if we choose to add normal user

* Asking for shell right after seting root password

* Move selections inside traps

* Remove duplicated call
2021-01-26 09:16:25 +01:00
Igor Pecovnik
268ca95a86 Bugfix - Change systemd timer to start counting from when it starts
Service starts after 1st login finishes and then it removes autologin settings which we only want that they are ebabled in 1st run
2021-01-26 09:14:05 +01:00
Igor Pecovnik
94dbd83c62 Make sure that firstlogin service starts last
This way we avoid that other services messes up our nice and shiny 1st login
2021-01-26 09:12:59 +01:00
Piotr Szczepanik
e78fb53113
Swithed rk3399-bluetooth service type to simple
- bionic's systemd (237) does not support exec.
 - tested with both buster and bionic using OrangePi 4
2021-01-24 20:48:12 +01:00
Igor Pečovnik
315ca731f0
Fix shell selection bug in Bionic version (#2573) 2021-01-22 12:54:39 +01:00
Igor Pecovnik
c07e6e3da5 Revert "Update 80-update-htop-and-offload-tx (#2555)"
This reverts commit ee6ead45a6.
2021-01-19 23:47:13 +01:00
Igor Pečovnik
57604fa275
Change locales detection methodology and add failsafe mechanism (#2561)
In case they are not deteced for some reason
2021-01-19 23:24:57 +01:00
eric poscher
ee6ead45a6
Update 80-update-htop-and-offload-tx (#2555)
As suggested by Igor https://forum.armbian.com/topic/16287-very-confused-etcnetworkmanagerdispatcherd80-update-htop-and-offload-tx/?tab=comments#comment-117540
2021-01-18 19:58:23 +01:00
Igor Pecovnik
85ca772b5f Adjusting / lowering timeout for desktop autologin removal 2021-01-18 00:31:16 +01:00
Igor Pecovnik
555171ac09 Bugfix - calculation of free ain't number
Closing https://github.com/armbian/build/issues/2548
2021-01-13 08:37:33 +01:00
JMCC
8b83866e16 rockchip-legacy: Enable RGA for RK3288 2021-01-04 22:53:12 +01:00
JMCC
bc6acc5b0a rockchip64/rk3399 legacy: Enable RGA for 64-bit Rockchips 2021-01-04 15:41:36 +01:00
Igor Pecovnik
604fced6ff ZSH - if choosen at first boot - tell user to logout / login
Executing shell from BASH can cause troubles ...
2020-12-30 20:17:24 +01:00
Marcin Mielniczuk
e7406614ac
Add support for configuring CPU temperature offset (#2516)
* Add support for configuring CPU temperature offset

Some boards, such as the Orange Pi Zero LTS, report shifted CPU temperatures.
For more details, see https://forum.armbian.com/topic/11534-orange-pi-zero-lts-incorrect-temps-reported/

* Update armbian-motd.dpkg-dist

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-12-30 17:47:30 +01:00
Thomas Kaiser
8e7ef752e3 Make zram and zswap mutually exclusive.
(TODO: document 'expert mode': how to get rid of zram on systems with fast storage)
2020-12-29 17:40:14 +01:00
Uglymotha
d186d70191
Added parameters to armbian-zram-config (#2463)
Added 2 configuration parameters to armbian-zram-config.
First paramter (SWAP=) can explicitely disable zram swap (while leaving log and tmp untouched).
Second parameter (TMP_SIZE) can be used to explicitely set tmp ramdisk size.
The behaviour of existing configurations is not changed.

New function activate_zram() to initialize zram devices and parameters.
Changed script to use zramctl to more flexibly establish zram devices to use for log and tmp.
This also fixes issues which result from both armbian-zram-config and armbian-ramlog being hardcoded to use zram0
2020-12-22 11:21:21 -05:00
Igor Pečovnik
a4f315c72d
Add support for ZSH / TMUX / oh-my-zsh (#2478)
* Add support for ZSH / TMUX / oh-my-zsh

* Selecting default shell at 1st run

* Install ZSH by default except on minimal image

* Lets rather create armbian-zsh package

* - fix remaining ZSH problems
- add systemd timer to remove default desktop autologin feature
- change DESKTOP_AUTOLOGIN to disabled by default

* Few small improvements

* Oneliner for revering all users back to BASH if package is uninstalled

* Properly escape variables

* Fixing chmod

* More cryptic awk magic to fix permissions for all normal users that are getting zsh magic
2020-12-21 00:44:22 +01:00
Piotr Szczepanik
a84c69ddea
Fix boot (and bluetooth) for NanoPi M4*, NanoPC T4 and Firefly RK3399 in legacy (#2480)
* Fix boot (and bluetooth) for NanoPi M4*, NanoPC T4 and Firefly-RK3399 in legacy

* Changed rk3399-bluetooth service type to exec
2020-12-20 23:45:30 +01:00
Werner
053fb76d61
Fix typo 2020-12-15 15:03:19 +01:00
Duncan Bellamy
4a689f8b89
change DEFAULT_BOOTSIZE to 256 for nand-sata-install and debootstrap.sh (#2437) 2020-12-10 21:17:13 +01:00
Duncan Bellamy
4947f95b46
nand-sata-install increase DEFAULT_BOOTSIZE to 200 as 96 is not enough to upgrade (#2425) 2020-12-10 11:47:09 +01:00
Igor Pečovnik
f41c50db01
Cosmetical changes to MOTD regarding ZFS (#2417) 2020-12-04 21:12:37 +01:00
Igor Pečovnik
6c8a9fff22
Fixing stuck at locales genarate (#2407) 2020-12-03 18:00:28 +01:00
Igor Pečovnik
dc0cebe3d2
Cosmetical
Suppress warnings like: RX yesterday:  eth0+eth1+wlan0+wlan1: Not enough data available yet.
2020-12-03 17:37:41 +01:00
Igor Pečovnik
d00410d1c3
Adding MOTD support for vnstat and ZFS and fix minor bugs (#2402)
* Move default values where they should be and fix for updates not showing up
* Add support for vnstat and ZFS
* Cosmetical
* Put defaults back
* Update data displaying
* Add support for displaying "reboot required" when regular packages like e.g. dbus requires a reboot
* Add dependency problem check
* Also add storage to user defaults
2020-12-03 01:39:12 +01:00
Paweł Krawczyk
0eea768c86
Resolve network issue on Clusterboard (#2396)
* Resolve network issue on Clusterboard

A long-known issue with Clusterboard is that SOpine does see network interface but no traffic is getting through. This solution has been described in many forum discussions and has proven to work:

https://forum.armbian.com/topic/9402-ethernet-not-working-on-sopine-module/

* Port the rgmii-txid patch for SOpine in Clusterboard

From https://github.com/CallMeFoxie/EmbeddedBOINC/blob/master/buildsteps/patches/kernel/pine64-network-new.patch
2020-12-02 20:58:10 +01:00
Igor Pečovnik
ac44b87406
Non-existing keyboard can be selected in firstlogin script. Adding check (#2385) 2020-11-30 16:52:21 +01:00
Icenowy Zheng
e19d014e00
Add Pine64 PineCube support (#2364)
* sunxi: kernel: current/dev: enable sun6i-csi and disable LL debug on UART0

The former is useful on some boards, e.g. PineCube.

The latter blocks boards that do not utilize UART0 from booting.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

* sunxi: add new family sun8i-v3s

This family is intended for boards with V3/V3s/S3/S3L chips and low
DRAM capacity.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

* sunxi: add PineCube board

This board features Sochip S3 SoC (Allwinner V3 die + co-packaged 128MiB
DRAM), and an OmniVision OV5640 camera is shipped with the board.

Add support for it. It could be used as an IP camera then.

Kernel support is only added to current/dev branch, with dev just using
mainline-merged DT and current using backported DT from 5.10-rc.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

* sunxi: kernel: current/dev: add V3s OHCI/EHCI nodes

These are needed for USB host on V3s boards to work.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2020-11-25 19:50:10 +01:00
Aditya Prayoga
a3beb9b5a3
Helios64: Update fan configuration, enable network LED and enable UPS timer (#2376)
* update fancontrol configuration

* Enable network activity led, default to eth0

* Do not disable auto poweron on power loss event

* Added UPS timer

Provide timer to poweroff system after 600 s (10 minutes) of power loss
event. If power restored within that time window, cancel the timer.

* Use different service for legacy

LK 4.4 does not have ledtrig-netdev, so it will cause the service to
fail.

* Use 10m instead 600 seconds in UPS timer

Systemd time can use m suffix for minutes. Use this to make it easier to
read.
2020-11-25 14:18:29 +07:00
JMCC
c0bf6a42ad
Add session chooser to lightdm menu (#2341)
Right now, you simply cannot choose between different DE's installed on the system. The session indicator uses very little space, and doesn't clutter the greeter.
I noticed it was missing when trying to integrate a Kodi session. It will be useful in the future also, when we incorporate more DE's than Xfce
2020-11-14 08:58:04 +01:00
Aditya Prayoga
d749589810
Fix race condition on armbian-hardware-optimization (#2301)
* armbian-hardware-optimization: delay applying eth0 tweak on rk3399

* armbian-hardware-optimization: delay applying eth0 tweak on rockchip64

* armbian-hardware-optimization: fixed irq smp affinity for usb

on rockchip64.

Similar like the one applied to rk3399 on commit [eaf6853]
2020-11-04 08:20:43 +01:00
Piotr Szczepanik
7ff4ea61dd
Do not exit the armbian-hardware-optimisation in armbian-audio-config (#2291) 2020-10-30 17:59:26 +01:00
Piotr Szczepanik
5b43356d17
Fix xhci smp affinity settings for Helios64 2020-10-30 12:29:47 +01:00
Piotr Szczepanik
2eb98374f5
Fixed htop cpufreq meter for non-root users (#2273) 2020-10-24 16:57:24 +02:00
Igor Pečovnik
a9005dc2c4
Fix Odroid N2 audio and also add sound setting script to be run at start (#2263)
Tied to hardware-optimisation service.
2020-10-18 23:45:00 +02:00
Piotr Szczepanik
25b6709991 Added SPI flashing to nand-sata-install's SPI -> SATA, USB, NVMe option 2020-10-17 23:38:05 +02:00
JMCC
688782062c
Fix mali permissions for RK3328
RK 3328 and RK3399 have different names for the mali kernel node ("mali" vs "mali0"). Adjusting the udev rule to cover both.
2020-10-16 18:13:07 +02:00
Igor Pečovnik
448484f6d8
Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC (#2254)
* Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC

Tested CLI and desktop image, but needs cache creation and repository before it will be possible to build without error.

* Update Groovy compiler for chroot

* Adjust pkg dependencies for groovy

Sadly htop doesn't build
2020-10-14 22:50:11 +02:00
Igor Pečovnik
397d037089
Creates additional locales automatically (#2234)
Creates additional locales automatically and change them only for a created user. Don't replace additional, but add another keyboard
2020-10-05 00:13:57 +02:00
lanefu
7352426629
Ar 445 (#2233)
* add journalctl vacuum

* remove absolute path of journalctl. only run if journal in /var/log
2020-10-01 00:16:51 +00:00
lanefu
c6e01744e3
add journalctl vacuum to armbian-truncate-logs (#2224) 2020-09-26 02:29:50 +00:00
lanefu
b2800dbd25
WIP: Pinebookpro tweaks (#2208)
Pinebook-Pro Support:
suspend to idle via key and lid close
brightness keys
volume control keys
wifi, bluetooth frimware
touchpad tweaks
keyboard config
armbian-hardware-optimization
bootsplash
Co-authored-by: Britt Dodd <britt@reactornet.net>
2020-09-22 21:03:45 -04:00
paolo
bd17d4dbd0 Many changes for rk322x target:
- Chanaged default x.org configuration to disable glamor
- Reintroduce patch to use DRM cursor plane as overlay in rk322x-current and -dev
- Updated wifi patches for kernel 5.8.10
- Bumped rk322x to u-boot v2020.07, removed reserved zones from device trees
- Updated OPTEE to v3.10, using ddrbin v1.10
- Bumped rk322x-current to kernel 5.8.y
- Imported new patches from knaerzche's LibreELEC fork for rk322x-dev (kernel 5.8.y)
- Adjusted existing patches to match changes, updated rk322x-dev kernel config file
- Add default modprobe conf file for esp8089 to force the crystal frequency to 40Mhz for rk322x targets
- Removed ssv6051 firmware packages to move to armbian-firmware repository
- Switching ssv6051-wifi.cfg to /lib/firmware for rk322x-legacy
- Removed P2P interface for esp8089 driver for rk322x-legacy
- Optimized ssv6051 performance: kernel module gains -Os flag, disabled p2p interface, enabled HW crypto for CCMP cipher
- Enabled remote control interface, IR GPIO kernel module and HDMI CEC modules
2020-09-19 15:20:16 +00:00
Piotr Szczepanik
b8991002f0
Bring back Igor's "Cosmetical changes to htop" 2020-09-18 07:43:09 +02:00
Piotr Szczepanik
3b7136416b
Revert "Cosmetical changes for htop"
This reverts commit abf6961c30.
2020-09-18 07:32:23 +02:00
Igor Pecovnik
abf6961c30 Cosmetical changes for htop 2020-09-17 22:14:11 +02:00
Aditya Prayoga
6f6543c6f5
Assign Fault LED, rework HDD power staggering, fix minor systemd service warning on Helios64 (#2204)
* Supress systemd service warning

* helios64: u-boot: staggered HDD power up

Set the delay to 10s in between turning on the next HDD power rails.
Remove the delay property from kernel device tree, let it only apply to
u-boot

Signed-off-by: Aditya Prayoga <aditya@kobol.io>

* helios64: fault LED as kernel panic indicator

also sync, u-boot dts

* helios64: fix hwmon udev rules

Legacy kernel (LK 4.4) has different class/naming on SoC Temp sensor.
Also fix typo on current/dev udev rules.
2020-09-15 09:46:06 +02:00
Igor Pecovnik
ebc497ff6b Enable GPU temperature in htop for Odroid XU4 2020-09-14 16:22:16 +02:00
Igor Pecovnik
621765292d Bugfixes including moving txoffload to the Network manager dispatcher script
Current RK3399 offload implementation is removed and enabled for rockchip64 family via dispatcher - they are all affected to this problem
2020-09-14 00:01:49 +02:00