Commit Graph

555 Commits

Author SHA1 Message Date
M. Efe Çetin
1b423adf2f
Add rockchip-rk3588 board family to armbian-hardware-optimization (#4838)
* Add rockchip-rk3588 board family to armbian-hardware-optimization

* Update armbian-hardware-optimization
2023-02-17 22:37:48 +01:00
The-going
e570f737a0 fix: armbianmonitor: used cpufreq/scaling_cur_freq if 1 Cluster available 2023-02-16 23:24:37 +03:00
The-going
6922edc4c8
Fix: Armbianmonitor: Print the CPU frequency correctly without privileges (#4823)
* Type: Remove trailing spaces

* Fix: Print the CPU frequency correctly without privileges.
2023-02-12 21:52:12 +01:00
Igor Pečovnik
7f5c20d75c
Bugfix: GRUB installation failed to install on UEFI systems (#4758)
- removing "removable" paramter
- UUID from EFI partition was not found
2023-01-28 00:14:51 +01:00
Oleg
eb7b1aa1d1
fix kernel edge for Jetson Nano (#4719) 2023-01-20 18:43:42 +01:00
The-going
4fe4e21969 fix: pass an argument to the awk script as a variable
MonitorIO: Add an argument check and a hint to the user
2023-01-20 20:28:07 +03:00
The-going
fc417f5c29 Fix: Uniquely determine the mount point in GetDevice 2023-01-20 20:28:07 +03:00
The-going
bf462f3517 clean: remove unused code, replaced df with findmnt 2023-01-20 20:26:37 +03:00
Igor Pečovnik
1955f4fcfe
Move htoprc to proper location as this method doesn't work properly (#4689)
* Move htoprc to proper location as this method doesn't work properly

* Remove the file
2023-01-12 13:31:45 +03:00
Igor Pečovnik
24d2510c28
Proper device lookup (#4612)
* Proper device lookup

* Remove unnecessary part

* Add closing double quote
2022-12-28 16:39:47 +03:00
Igor Pečovnik
c982e54f7b
Suppress RX today error in MOTD if wrong NIC is detected (#4610)
* Don't display RX today: Error: No interface matching when wrong NIC is detected

* Improve checking

* Address shellcheck problem

* Switch conditions order
2022-12-25 08:45:25 +01:00
Markus Hoffrogge
1a59152009
armbian-install: further fixes plus MTD char driven flash support (#4596)
* Fix variable $root_partition_device to be a device path

- variable $root_partition_device is intended to be a
  device path as /dev/$root_partition_device_name

* Fix determination and usage of variable $sduuid

- a) lookup mmc devices excluding the mmc device probably providing
     the current root partition
- b) if there is no sduuid determined by this lookup,
     then lookup any mmc partition matching /dev/mmcblk*p1
- c) move the sduuid calculation to the script header
     to enable usage for scenario selection filtering
- d) hide installation scenario #1 selection,
     if $sduuid is empty, since $sduuid is essential for that scenario

* Hide current root partition device from destination selection

- add new variable $root_partition_name
- use this variable to filter current root partition
  from destination selection in check_partitions()

* Fix behavior in case of no available partition

- The logic in check_partitions() in case of no available
  partition is improved not to fail for a hidden reason
  and UX for fresh disk devices is improved
- Fix the calculation of $FREE_SPACE for devices without or
  with an empty partition table
- Ask the user to proceed AFTER the minimum free capacity
  required is verified
- Improve the logic for auto-creating initial partitions
  as follows:
    1. Check for a minimum free space of 4GB for a partition
    2. Ask user to proceed with auto-created partition(s) or not
    3. Distinguish between UEFI and non UEFI device
    4. Create a partition of full free size for non UEFI devices also

* Add support for MTD char driven flash

- replace $spicheck by $mtdcheck
- add probable MTD char device partitions to $mtdcheck
- update comments and dialog content:
  - replace "SPI Flash" by "MTD Flash"
- replace call of "create_armbian 'spi' ..." by "create_armbian 'mtd' ..."
- update description for /dev/nand1 /dev/nand2 as "legacy SUNXI NAND"
- additional parameters passed to import function "write_uboot_platform_mtd":
   $3 - Log file name
   $4 - SPACE separated list of all MTD device partition(s)
2022-12-23 21:58:19 +01:00
Markus Hoffrogge
893ed2347d
Fix for selecting non formatted target partitions (#4577)
- function check_partitions():
  - remove file system filter on lsblk commands
    for listing probable target partitions
  - fix typo "Destnation" -> "Destination"
  - fix indentation on if scopes

fixes #4576
2022-12-19 07:34:23 +01:00
Matthijs Kooijman
0aa61abe78
armbian-audio-config: Massively speed up script (#4549)
* armbian-audio-config: Massively speed up script

This script calls amixer to set various mixer volumes, by simply trying
a bunch of mixer names for each sound card in the system. In practice,
this meant the amixer command was called 158 times for each sound card.
The overhead of all these forks and probably also amixer startup added
together to produce a noticable slowdown in startup.

For example on an Orange Pi PC, the script took about 6 seconds per
soundcard. This was on a system with a few extra USB soundcards (6 alsa
cards in total):

    $ time bash ./armbian-audio-config.original

     real    0m35.662s
     user    0m20.145s
     sys     0m15.145s

This commit modifies the script to spawn amixer only once per alsa card,
passing all the mixer set commands through stdin. This pretty much
completely kills the slowdown. On the same 6-card system:

    $ time bash ./armbian-audio-config

    real    0m0.406s
    user    0m0.345s
    sys     0m0.229s

* armbian-audio-config: Add quotes to fix lint errors
2022-12-12 08:15:35 +01:00
Oleg
0de2891bcd
fix install mode SPI for extlinux.conf (#4553) 2022-12-12 08:14:50 +01:00
Igor Pečovnik
854834e166
armbian-install: limit automated swap creation to 16Gb (#4528) 2022-12-06 09:47:30 +01:00
Igor Pečovnik
d66e8205ed
Replace nand-sata-install with symlink to armbian-install (#4529) 2022-12-06 09:47:20 +01:00
Marco Nelissen
e8f441a7e3 armbian-firstlogin: fix root password handling
Root password was only applied when it was weak. The intention was
probably to warn when it was weak, but apply it regardless, so
make it so.
2022-11-28 18:10:54 -08:00
Marco Nelissen
40effe1d23 armbian-firstlogin: remove unnecessary check
Commit c909864922 removed a prompt
asking the user if they want to change display settings, but didn't
remove the checks that later used the answer. Since it's been like
this for 2 years now apparently without issue, remove the checks and
the shellcheck workaround.
2022-11-28 18:10:54 -08:00
marcone
e52958db93
armbian-firstlogin: make Y/n questions consistent (#4489)
Make the two Y/n questions that firstlogin asks behave consistently
with each other, and more in line with user expectation:
- Reject anything that is not Y, y, N, n or <enter>. Previously the
  "Connect via wireless? [Y/n]" question would interpret Y, y and
  <enter> as "yes", and everything else as "no", whereas the
  "Set user language based on your location? [Y/n]" question would
  loop until the user selected Y, y, N or n.
- Make pressing enter equivalent to the default "Y", since that
  is the capitalized option.
- Echo back what the user typed.
2022-11-27 21:45:03 +01:00
marcone
e5f234c324
armbian-firstlogin: fix shellcheck issues (#4494)
Fix all shellcheck issues, as well as some formatting/indentation.
2022-11-27 21:44:16 +01:00
Igor Pečovnik
7304af6be8
Small tweaks (#4492)
* Update HTOP defaults

* Remove ZFS PPA sources. We will move them to main repo. Its just a repo anyway.
2022-11-27 00:10:44 +01:00
Michael Klein
925c344615
30-armbian-sysinfo: make IP address unique (#4483) (#4484) 2022-11-25 18:02:25 +01:00
Werner
2ee2fd3d73
Fix faulty lsblk argument (#4466)
https://forum.armbian.com/topic/24554-armbian-install-fails-due-to-bad-lsblk-argument/#comment-153675
2022-11-20 23:00:34 +01:00
Igor Pečovnik
d01e3519a8
We need to follow redirect with Curl (#4456)
* We need to follow redirect with Curl

* Update armbian-apt-updates
2022-11-17 17:43:58 +01:00
schwar3kat
86fce751a5
armbian-firstlogin-make-password-warning-messages-consistent (#4457) 2022-11-17 17:43:21 +01:00
Igor Pečovnik
3f1fe17d9c
Don't block but warn user on weak password (#4436)
* Don't block but warn user on weak password

* Previous fix was done only for user
2022-11-15 20:19:59 +01:00
Igor Pečovnik
5888bc9704
Enable additional motd tips showing some internal ads (#4396)
* Enable additional motd tips showing some internal ads

33% probability of showing, just like for the armbian-config

* Update quotes and add expiration date support

* Change variable names

* Add support to download quotes from our server

* Fix curl parameters

* Keep only weekly update
2022-11-14 14:59:58 +01:00
Ricardo Pardini
c57ff67aaa
Syntax error fixes, dep checks & shfmt of board-side bash scripts (#4430)
* `armbian-audio-config`: do nothing if aplay/amixer/alsactl missing; shfmt

* `armbian-hardware-optimization`: fix for `case` without `esac` introduced in #4417; `shfmt`
2022-11-14 14:59:32 +01:00
Joe Khoobyar
f3d26f123a
AR-1398: Fix wrong error message when missing fs tools (#4424) 2022-11-12 07:10:00 +01:00
Oleg
d0d8a35db8
Updating the optimization\acceleration procedure (author @tkaiser) (#4417) 2022-11-11 17:20:07 +01:00
Matthijs Kooijman
10af624a73
Make sure the build fails if generating uInitrd fails (#4398)
Without this, when mkimage fails (for example because the boot partition
is too small), install.log shows an error like:

    mkimage: Write only 16310208/17794920 bytes, probably no space left on the device

But this does not terminate the build, so the compile script shows no
error and an image is generated, but it is unbootable.

This runs the script with -e, so when mkimage fails, the script fails,
which makes update-initramfs fail, which makes the build fail.
2022-11-08 18:36:38 +01:00
Igor Pečovnik
e077835171
Fixing wrong display condition (#4395) 2022-11-08 12:38:00 +01:00
Igor Pečovnik
157b7c56e5
Installation fix when /var/log.hdd/journal exists (#4371) (#4382)
* Fix to flush volatile journald to prevent full /var/log at startup

* re-introduce directory / in non-rsync copy, and exclude journal* in this copy
Note: this may need some testing if someone doesn't use rsync

* Fix for non-rsync copy to Disk, since journal cannot be copied onto itself

* Backed up journal files are removed with vacuum, so no need to delete them separately

* Make room at boot by removing old logs, in addition to the removal later
every 15 minutes

* remove old archived journal files modified more than 1 day ago

* make sure volatile logging is used, since journald sometimes turns persistent at boot
remove unused commented lines in ramlog

* Fix check for configured journald volatile logging

* revert #3799, the rsync --delete

* Exclude /var/log/journal from install, and create empty /var/log/journal directory when it exists during install

Co-authored-by: dennis laptop <dennis@smartstatetechnolgy.nl>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>

Co-authored-by: Dennis <bijwaard@gmail.com>
Co-authored-by: dennis laptop <dennis@smartstatetechnolgy.nl>
2022-11-05 08:22:20 +01:00
Igor Pečovnik
58ed41d385
Fix two small cosmetic bug (#4357)
- debian showed not supported due to absence of lsb-release
- motd didn't address displaying update aval correct
2022-10-27 18:51:58 +02:00
Joe Khoobyar
ead3409f95
fix for #4323 in newer script too 2022-10-23 13:41:25 -04:00
Joe Khoobyar
e3df506959
a fix for #4323 2022-10-23 13:34:37 -04:00
Igor Pečovnik
0b9bd251c7
Add support for apt-mark hold warning (#4294)
* Add support for apt-mark hold warning

- we need to know if kernel packages are on hold
- when upgrade is finished, fix numbers and update list

* Add postupdate hook

* Bugfix

* Bugfix

* Small refactoring

* Improve UX

* Improve detection and change wording
2022-10-18 09:24:36 +02:00
Igor Pečovnik
1d5a1f242f
Remove ext2 and ext3 filesystem option from armbian-install (#4285)
* Remove ext2 and ext3 filesystem option from armbian-install

* Bugfix
2022-10-15 10:46:20 +02:00
Werner
42d0138b64
Add fallback for debug upload (#4194)
* Add fallback for debug upload

in case ix.io is unreachable

* Update packages/bsp/common/usr/bin/armbianmonitor

Co-authored-by: hzyitc <h1260071766@126.com>

* adjust url

* fix missing sentence

* Fix broken logic

* Set paste.armbian.com as default service
y

Co-authored-by: hzyitc <h1260071766@126.com>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Igor <igor@armbian.com>
2022-10-13 18:34:24 +02:00
Igor Pečovnik
7afa645b38
Improve ARM64 UEFI support (#4271)
* Root partition is not recognised properly

* Add support for ARM64 UEFI install

Work if installed to eMMC, installs also to NVME (T4), but u-boot fails to init PCI. Also u-boot 2022.10

Needs more testings.

* Lets clean the drive before
2022-10-13 18:34:05 +02:00
Igor Pečovnik
0c85794ba4
Add support for UEFI install with a new script armbian-install (#4227)
* Add preliminary support for UEFI install to nand-sata-install

Signed-off-by: Igor <igor@armbian.com>

* Add symbolic link

* Hardening and cleaning

* Removing obsolete NAND support

- create swal size of memory
- enable hibernation (S4) to have additional power saving mode
- enable GRUB search for another OS

* Move nand cleaning into separate commit

* Add support for UEFI install to eMMC

* Add support for install to empty UEFI target

Tested install to eMMC powered UP Square board

* Add UEFI improved script as standalone armbian-config

Once we are happy with functionality, remove the old and add a link

* Switch to a single 32 MB offset scheme.

* Improve readme

Signed-off-by: Igor <igor@armbian.com>
2022-10-07 17:57:21 +02:00
Igor Pečovnik
27040df553
Bugfix - BSP package does not contain BRANCH information so we need to read it. (#4263)
Now this works.
2022-10-07 08:36:15 +02:00
Oleg
3ff351cc52
move media current 5.19 and edge 6.0 (#4262)
* move media current 5.19 and edge 6.0

* del old patch
2022-10-06 18:07:36 +02:00
Igor Pečovnik
a0a4668ee8
Fixing Gnome logo, remove Nvidia if not present, shortcut bugfix (#4238)
* Remove Nvidia drivers in case not detected in first run

* Gnome branding logo hack

* Fix panel shortcuts
2022-09-26 18:34:48 +02:00
Igor Pečovnik
15078ba0a1
Bugfix / cusmetic / race condition for scaling enablement (#4221) 2022-09-23 19:05:45 +02:00
Igor Pečovnik
9006c54f70
GRUB optimisations (#4213)
* Add wallpaper to grup, set fixed screen size, enable hidpi mode on lightdm

* Enable graphics terminal on UEFI x86, ARM64 can't test

* Missing folder

* Enable `Plymouth`

* Add proper HiDpi support and enable intel graphics auto probing

Tested on Intel and Nvidia, both works OOB. Plymouth works as expected, no text logs on screen, if OEM vendor logo is present, it picks it up auto, otherwise shows armbian (chip) logo

Co-authored-by: hzy <hzyitc@outlook.com>
2022-09-23 09:35:07 +02:00
Igor Pečovnik
4dcd053eed
Install xfce4-power-manager by default on xfce desktop (#4205)
* Install xfce4-power-manager by default on xfce desktop

- remove x11 config which is obsolete and prevent dkms functinality
- remove per board power manager install

* Update xfce4 configs
2022-09-20 17:20:43 +02:00
hzyitc
11d2ef63c3
Support Plymouth (#4133)
* Add plymouth-theme-armbian package

* Adjust all bootscripts to adapt plymouth

* Auto show logo accroding to BOOT_LOGO

* Enable plymouth detail mode when bootlogo=false

* Add a new board config var - HAS_VIDEO_OUTPUT

This var is used to indicate whether device has a HW video output.
If it's set to "no", we will disable kernel bootsplash, plymouth and BUILD_DESKTOP

* Rename package to be aligned with others

* Disable kernel bootloader, but keep the code for it

* Rather keep bootlogo in the kernel for a while, otherwise kernel upgrade will turn bootup into the darkness

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Igor <igor@armbian.com>
2022-09-13 15:16:30 +02:00
Erik Faye-Lund
10aeb2f305
Fix armbian header (#4144)
* bsp: quote pattern passed to grep

This fixes a regression from #4013

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>

* bsp: refactor DISTRIBUTION_CODENAME logic

There's no need to repeat the check for /etc/armbian-distribution-status
over and over again, let's just use an if-statement instead.

Similarly, let's not repeat the logic to look up DISTRIBUTION_STATUS in
/etc/armbian-distribution-status; we can just do it at the end instead.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>

* bsp: only fallback to /etc/os-release if /etc/lsb-release failed

This fixes a regression from #3619

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>

* bsp: only fallback to "lsb_release -c" if all else failed

Debian Bookwork and Sid both neither have the debian-edu-config package
by default (which provodes /etc/lsb-release in Debian), nor does their
version of base-files (12.2) contain the VERSION_CODENAME field.

So we need another fallback. We *do* have lsb_release, which can provide
this information as well. So let's do that, but add a check as well in
case neither the lsb-release nor the lsb-release-minimal packages is
installed on a user's system.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
2022-09-03 23:21:00 +02:00