Commit Graph

884 Commits

Author SHA1 Message Date
Ricardo Pardini
2d2fec85d8 initramfs post-update 99-uboot: add verbose logging, no actual changes 2023-04-28 21:32:52 +02:00
Pander
3c09c2ffbe reduced PNG file size with optipng 2023-04-22 20:08:15 +02:00
Pander
26fb31cfbf require Enter for all promts at first login 2023-04-22 20:07:50 +02:00
Igor
4789113c78 Be more specific which packages to pin as otherwise they are downgraded upon image creation 2023-04-22 20:07:37 +02:00
Igor
9467736a64 Remove doubled swap creation 2023-04-22 10:05:10 +02:00
Matthijs Kooijman
da626d1502 armbian-audio-config: Fix muting and controls with spaces
In commit 0aa61abe7 (armbian-audio-config: Massively speed up script)
this script was changed to not call amixer for each control, but just
once for each card, feeding commands for many controls in one invocation
with the `--stdin` option.

In that commit, two errors were introduced:
 - Controls that were intended to be muted were turned on instead. This
   affects the "CD", "Mic" and "Internal Speaker" controls.

   This occured because there is a helper shell function whose arguments
   were renumbered, but the last argument kept the old numbering,
   keeping it always at the default value of "on", even when it should
   have been "mute".

 - Controls with a space in their name would be ignored. In the original
   script, arguments (including these names) were quoted and passed
   separately to the `amixer` command. Now, they are quoted when passed
   to `echo`, but that produces an unstructured line with the quoting
   removed that can no longer be correctly parsed by amixer for names
   with spaces.

This commit fixes both problems be correctly numbering the arguments and
adding an additional layer of quoting.
2023-04-17 13:43:30 +02:00
Igor
730ac1f8ba Create apt priority configuration 2023-04-15 22:48:38 +02:00
hzy
2a9279c27d armbian-firstlogin: Make sure that the first charactor of username isn't number 2023-03-29 23:22:04 +02:00
Igor
5de120edfe Allow numbers in username 2023-03-27 23:24:35 +02:00
Markus Hoffrogge
142dec4618 Fix $sduuid being overlapped by a probable emmc device existing
- if $emmccheck is not empty, then exclude this
  from the lookups for $sdblkid
- simplified $sduuid assignment within a single line

closes AR-1611
2023-03-20 13:31:06 +01:00
Markus Hoffrogge
0bd6fea636 Fix $sduuid to be of format UUID=uuid
- this issue was introduced by commit 7e9ebe1
- the variable sduuid is supposed to start with "UUID="
- fixed now by prepending UUID= to $sduuid, if the "raw" $sduuid is not empty

closes AR-1611
2023-03-20 13:31:06 +01:00
SteeManMI
4948417152 Update u-boot-s905x-s912 binary to a new build (#4947)
Previously, the u-boot binary files used to chainload u-boot for the
amlogic tv boxes were the ones produced by balbes150 in his old
tv box builds.  There was no source code for them.
This commit is the first to convert from those old binary files
to newly built ones along with a u-boot patch file and instructions
on how to build/rebuild them.  Eventually this needs to be incorporated into
the build framework to automate it.  But for now one step at a time.

 Changes to be committed:
	new file:   packages/bsp/aml-s9xx-box/boot/build-u-boot/readme.txt
	new file:   packages/bsp/aml-s9xx-box/boot/build-u-boot/u-boot-s905x-s912.patch
	deleted:    packages/bsp/aml-s9xx-box/boot/u-boot-readme.txt
	modified:   packages/bsp/aml-s9xx-box/boot/u-boot-s905x-s912

Co-authored-by: Igor Pečovnik <igor@armbian.com>
2023-03-15 08:30:28 -04:00
Barry Lind (SteeManMI)
feb1e4cf64 Convert from using uImage to Image for aml-s9xx-box
This is needed to bring this board in line with the expectations of
the new main build (armbian-next), which dropped uImage from meson64
kernel packages.

 Changes to be committed:
        modified:   packages/bsp/aml-s9xx-box/boot/extlinux/extlinux.conf
2023-03-13 17:29:47 -03:00
Igor
6646e2f880 Cleanup after merging too much files
https://github.com/armbian/build/pull/4902
2023-03-05 11:59:40 -03:00
Igor Pečovnik
724e05e92a Add Riscv64 related blobs that got lost during merge (#4902) 2023-03-04 16:29:33 +01:00
Igor Pečovnik
e71d8dba10 Clenup minimal and server lists (#4893) 2023-03-02 22:44:47 +01:00
Ricardo Pardini
e98c66b859 armbian-next: general-packaging, mkdebian and builddeb are NO MORE 2023-02-18 07:38:49 -03: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
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
Igor Pečovnik
74aa5d9e0a Clean and unify XFCE, Gnome and Cinnamon (#4731)
* Clean and unify XFCE, Gnome and Cinnamon
2023-01-25 18:32:25 +01:00
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
hzy
66cf974672 Clean extras-buildpkgs 2023-01-09 11:47:16 +03:00
M. Efe Çetin
71ac9beb28 Fix USB2 and Type C ports on Orange Pi 5 (#4634) 2022-12-31 13:37:31 -08: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
The-going
36d9420d65 Fix issues 4589 (#4614)
* Fix: Install dependencies if we install kernel headers

* DEBUG builddeb for armhf

* Remove DEBUG echo
2022-12-26 21:12:34 +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
SteeManMI
17d7e7b67b Remove attempt to support install to emmc on s905 based TV Boxes. (#4588)
There is no way to support this on s905 TV Boxes while reusing the
android u-boot as the android uboot on s905 conflicts with the partition
table location of standard mainline linux.

 Changes to be committed:
	modified:   config/sources/families/meson-gxl.conf
	deleted:    packages/bsp/aml-s9xx-box/root/install-aml-s905-emmc.sh
2022-12-19 07:30:34 +01:00
The-going
6146943c83 The choice for kernel headers if the version is more than 5.19. (#4518)
* The choice for kernel headers if the version is more than 5.19.

* Depends: Add linux-base for build kernel
2022-12-12 21:21:07 +03: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
Barry Lind (SteeManMI)
3b8e37f311 Fix the builddeb script so linux-image upgrades work correctly
on fat /boot partitions

 Changes to be committed:
	modified:   packages/armbian/builddeb
2022-11-30 16:39:17 +03:00
SteeManMI
c92c7e5cb9 Fix the amlogic tvbox build's extlinux.conf to use uImage for the kernel (#4509)
image file instead of Image as some of the included uboot files do not support the Image format and require the uImage.

 Changes to be committed:
	modified:   packages/bsp/aml-s9xx-box/boot/extlinux/extlinux.conf
2022-11-29 19:47:50 +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