Commit Graph

701 Commits

Author SHA1 Message Date
Igor
dcd6fd2e54 Revert Meson64 / odroid fancontrol (#5617)
* Revert "packages: bsp: odroid: fanctrl: `maintenance`"

This reverts commit 94f7bfff89.

* Revert "Improve Meson64 Support: `ODROID`"

This reverts commit 40530ee344.
2023-08-20 21:11:54 +02:00
Patrick Yavitz
94f7bfff89 packages: bsp: odroid: fanctrl: maintenance
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-20 19:20:06 +02:00
Patrick Yavitz
40530ee344 Improve Meson64 Support: ODROID
Backport DTS/DTSI changes from linux-6.4.y to 6.1.y
Add meson64-reboot driver to all boards
Add board: ODROID N2L
Add uart_A uart_AO_B uart_B uart_C where appropriate
U-Boot v2023.07.02: ODROID N2/N2L/N2Plus/C4

Meson64-reboot driver: (source: tobetter)
While the current meson64-reboot driver is cleaner and doesn't
depend on modding other kernel sources, its functionality leaves
much to be desired. One example can be found in the ODROID C4.
Using the current driver, the board will not properly power off,
leaving the POWER LED still on. The new driver powers off the unit
completely.

Fan control: (ODROID N2L/N2PLus)
Added service and script for controlling the trip point.
fanctrl: arguments: 65 55 45 35 25 menu run

                              ┌──┤ Fan Control ├──┐
                              │                   │
                              │    6) 65°C        │
                              │    5) 55°C        │
                              │    4) 45°C        │
                              │    3) 35°C        │
                              │    2) 25°C        │
                              │    E) Exit ..     │
                              │                   │
                              │                   │
                              │      <Ok>         │
                              │                   │
                              └───────────────────┘

NOTES: (N2L/HC4): I do not own the units so I can't run tests.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-20 19:20:06 +02:00
Phani Pavan Kambhampati
823738dedd Update armbian-add-overlay
added another case to handle stray spaces and to not add a space if no overlays are already present.
2023-08-18 17:11:51 +02:00
Joseph Turner
da0d169f9a Update armbianmonitor 2023-08-04 10:33:04 +02:00
Gunjan Gupta
da6c238f79 armbianmonitor: update cpuminer and remove arm only limit (#5503) 2023-07-23 20:23:36 +02:00
Vyacheslav Bocharov
4d5edf5eda JetHome: Add RS485 ports aliases in /dev/serial/rs485 for JetHub D1/D1+ 2023-07-23 14:42:37 +02:00
Vyacheslav Bocharov
22ed391b16 JetHome: Update jethub-init service 2023-07-23 14:42:37 +02:00
Patrick Yavitz
effbb4c900 Board: Bananapi M2S additional support
Removed WIP status
Added CONFIG_R8169=m to defconfig(s) (eth support)
Modified and added additional patches (linux 6.1 / 6.4)
U-Boot v2023.07.2 (dropped v2022.10)
Upstream BT FW (rtl8822cs) is now shared between CM4IO and M2s

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-23 14:40:52 +02:00
Richard Neese
b5e9774eda Adding support for new desktops (#5367) 2023-06-22 20:21:09 +02:00
Markus Hoffrogge
5072966b44 armbian-install: use consistent logfile name and align the according /usr/lib folder name (#5340)
* armbian-install: The log file should be named identical to the originally called install script

- the log file should be named as:
  - /var/log/armbian-install.log if script armbian-install was originally called
  - /var/log/nand-sata-install.log
- same for directory /usr/lib/nand-sata-install:
  - rename this directory to /usr/lib/armbian-install
  - create a symbolic link nand-sata-install to this folder for backward compatibility
    in a subsequent commit
- abort script armbian-install with an error message:
  - if file ${EX_LIST} does not exist
  - if dir ${BOOTLOADER} does not exist
- remove the "beta" from the version title of armbian-install

* Add symlink /usr/lib/nand-sata-install to /usr/lib/armbian-install
2023-06-19 22:04:01 +02:00
c0rnelius
5ae7a4c40e BananaPi CM4IO: Upstream RTL8822CS bluetooth firmware (#5354)
* BananaPi CM4IO: `Upstream RTL8822CS bluetooth firmware`

* Firmware search paths
/lib/firmware/updates/UTS_RELEASE/
/lib/firmware/updates/
/lib/firmware/UTS_RELEASE/
/lib/firmware/

dmesg | grep RTL
[    8.242830] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[    8.246443] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    8.246447] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    8.280073] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    8.308295] Bluetooth: hci0: RTL: cfg_sz 33, total sz 37069
[    8.695731] Bluetooth: hci0: RTL: fw version 0x05c6d2e3

cat /etc/armbian-release
BOARD=bananapicm4io
BOARD_NAME="Banana Pi CM4IO"
BOARDFAMILY=meson-g12b
BUILD_REPOSITORY_URL=https://github.com/pyavitz/build.git
BUILD_REPOSITORY_COMMIT=e189c104c-dirty
VERSION=23.08.0-trunk
LINUXFAMILY=meson64
ARCH=arm64
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
FORCE_BOOTSCRIPT_UPDATE=
VENDOR=Armbian
REVISION=23.08.0-trunk
BOOTSCRIPT_FORCE_UPDATE="no"
BOOTSCRIPT_DST="boot.cmd"
BRANCH=current

patrick@bananapicm4io:~$ bluetoothctl
Agent registered
[CHG] Controller C4:3C:B0:A3:D0:40 Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller C4:3C:B0:A3:D0:40 Discovering: yes
[NEW] Device 46:B4:28:9B:FA:0D 46-B4-28-9B-FA-0D
[DEL] Device 46:B4:28:9B:FA:0D 46-B4-28-9B-FA-0D
[NEW] Device 00:1A:7D:DA:71:13 speaker

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

* bananapicm4io.conf: `maintenance`

mkdir after the fact

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-19 22:02:43 +02:00
Brent Roman
d2b49456de switched from using ifconfig to ip command to set mac address of wlan 2023-05-24 19:29:42 +02:00
Igor
aba5df4689 Remove postinst manipulation as its not needed. SKEL is copied at user creation, psd at first run
Also fix executing bit at armbian-firstlogin script
2023-05-23 16:34:56 +02:00
Igor Velkov
9b68c4e42a Add support for nilfs2 fs based image
Signed-off-by: Igor Velkov <iav@iav.lv>
2023-05-16 08:51:05 +02:00
Pander
11c967322d installer prompt fix 2023-05-09 10:05:23 +02:00
Igor
bc5329ec84 Disable pinning policy but while leave example
It should not be needed anymore since we re-pack those packages
https://github.com/armbian/scripts/pull/44/files
2023-05-03 15:09:36 +02:00
Ricardo Pardini
2d2fec85d8 initramfs post-update 99-uboot: add verbose logging, no actual changes 2023-04-28 21:32:52 +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 Pečovnik
e71d8dba10 Clenup minimal and server lists (#4893) 2023-03-02 22:44:47 +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
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
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
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
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
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