Commit Graph

826 Commits

Author SHA1 Message Date
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
SteeManMI
8dcab2be64
Proposal to create a Community Supported config for Amlogic based TV Boxes (#4296)
* Proposal to create a Community Supported config for Amlogic based
TV Boxes to pickup the work that was done previously by balbes150
but is no longer supported by him.
This also provides a place where development can occure within the
Armbian framework since others on the internet are producing builds
called Armbian that are not done from within the Armbian community.

 Changes to be committed:
	new file:   config/boards/aml-s9xx-box.tvb
	modified:   config/sources/families/include/meson64_common.inc
	modified:   config/sources/families/meson-gxl.conf
	new file:   packages/bsp/aml-s9xx-box/boot/aml_autoscript
	new file:   packages/bsp/aml-s9xx-box/boot/emmc_autoscript
	new file:   packages/bsp/aml-s9xx-box/boot/extlinux/extlinux.conf
	new file:   packages/bsp/aml-s9xx-box/boot/s905_autoscript
	new file:   packages/bsp/aml-s9xx-box/boot/u-boot-readme.txt
	new file:   packages/bsp/aml-s9xx-box/boot/u-boot-s905
	new file:   packages/bsp/aml-s9xx-box/boot/u-boot-s905x-s912
	new file:   packages/bsp/aml-s9xx-box/boot/u-boot-s905x2-s922
	new file:   packages/bsp/aml-s9xx-box/root/fstab.template
	new file:   packages/bsp/aml-s9xx-box/root/install-aml-s905-emmc.sh
	new file:   packages/bsp/aml-s9xx-box/root/install-aml.sh

* Merge sources

Co-authored-by: Igor <igor@armbian.com>
2022-11-06 20:33:24 +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
Tony
d101f2a69c
update asound.stae for le potato (#4379)
* Repair damage to Le Potato by untested u-boot bump

Since 15cab819fe decided to move everything to 22.07 without tests, revert back as this causes the ""Synchronous Abort" handler, esr 0x96000004" error.

* Fix damage caused by untested U-boot bump

Revert result of 15cab819fe and restore booting to Odroid C2

* Create asound.state.lepotato

alsa config for le potato

* Update lepotato.conf

use board specific asound.state
2022-11-03 10:48:09 -04: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
Oleg
d41125a5fd
move Jetson Nano EFI\Grub (#4284)
* move Jetson Nano EFI\Grub

* fix dtb for efi

* remove list module initrd curren\edge for Jetson Nano

* rename to  grub-sbc-media
2022-10-25 11:28:23 +02:00
simple
d9eb3723e0
Fix mic for rt5651 asound.state (#4331)
* [rockchip64-dev]Fix OrangePi4 Bluetooth and Mic

* [rockchip64-dev]enable CONFIG_SERIAL_DEV_CTRL_TTYPORT for bluetooth

* Update patch/kernel/rockchip64-dev/add-board-orangepi-4.patch

Co-Authored-By: Piotr Szczepanik <piter75@gmail.com>

* Update patch/kernel/rockchip64-dev/add-board-orangepi-4.patch

Co-Authored-By: Piotr Szczepanik <piter75@gmail.com>

* Update patch/kernel/rockchip64-dev/add-board-orangepi-4.patch

Co-Authored-By: Piotr Szczepanik <piter75@gmail.com>

* Update patch/kernel/rockchip64-dev/add-board-orangepi-4.patch

Co-Authored-By: Piotr Szczepanik <piter75@gmail.com>

* general add panel simple dsi

* Backporting patch to 5.10 kernel makes sense. Lets do it.

* Fixed rt5651 codec build module

* Fix mic for rt5651 state

Co-authored-by: iamdrq <iamdrq@qq.com>
Co-authored-by: Piotr Szczepanik <piter75@gmail.com>
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-10-24 20:42:45 +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
brentr
d3a3afe385
Rockpis wifi fixes (#4008)
* RockPI-S board has no video I/O

* udev rule to fix MAC address of iface based on UUID

Deals with WiFi chip lacking any EEPROM to store its unique Ethernet MAC address
Generic mechanism -- could be utilized for other boards having similar issues

* Handy Device Tree overlays for the RockPI S

Use armbian-add-overlay to install these

Reduce CPU voltage for the RK3308 B-S
  Option to overclock RK3308 B-S to 1.3Ghz

Increase SDIO clock rate from 1Mhz to 10Mhz
  This increases WiFi throughput from 300K bytes/s to 2.4M bytes/s

* corrected comment

* No longer repeat standard opp's in this dts

Require that the standard bs dts already be installed

* User README for adding RockPI-S board variant specific dts overlays

* "enabled" --> "okay"

* added mention of sdnand.dts, fixed typo

* added p2p0 to interfaces whose MAC address should be "fixed"

* RK3308 CPU serial number in nvmem replaces UUID for derivation of fixed MAC addr
Restored use of install utility

* Use RK3308 specific CPU serial number

rather than rootfs UUID

* remove generic fixMACaddress

* Install fixMACaddr file-by-file via install utility

* Drive SDIO bus signals faster

setting RK3308_SOC_CON0_VCCIO3 reduces signal rise/fall times to WiFi SDIO chip
from 30ns to 5ns.
This odd fix forward ported from legacy kernel.
Allows Rock Pi-S WiFi to operate at full speed.

* Set RK3308 I/O voltage domains before SDIO initializes

This patch moves responibility form the io-domain to the pinctrl driver because
the io-domain driver is probed after the SDIO devices are discovered.
This was causing multiple SDIO I/O failures during boot.

A new pinctrl property is added:
io-1v8-domains
is a u32 interpreted as a bit mask where each set bit corresponds to
a 1.8V I/O domain (as opposed to the default of 3.3V for I/O)
The mask is writted to the RK3308_SOC_CON0 GRF register
(once) when the pinctrl driver starts

The default mask is 0x10 where only I/O domain 4 runs at 1.8V

This is necessary for the RockPI-S to run the SDIO clock at high (50Mhz) speed

* align whitespace

* factored rk3308bs overlays out up sdio speedup patch

* factored dts for RK3308 iodomains and pinctrl patches out of speedup patch

* remains of sdio speedup patch merely add iodomains support for rk3308

* factored rockpis dts modification out from rk3308 io voltage domains

replaced rk3308 support from iodomains with
new io-voltage-domains property added to pinctrl
io-voltage-domains specific to rk3308 for now, others SOCs may be added later.

* add sequence numbering to names of rk3308 patches

* corrected tab alignment
2022-10-13 18:34:43 +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
Paolo
78bbdf44d0
rockchip64: add ssv6051p wifi driver for current and edge kernel (#4269)
* Add ssv6051p wifi driver for rockchip64 current and edge kernel

 * also reorders and tidies device tree overlays for rk3318-box

* increase ssv6051 sdio bus to 50MHz in the driver
2022-10-12 11:22:33 +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
Paolo Sabatino
f158551922 fix typo 2022-10-04 21:59:14 +02:00
Paolo Sabatino
c5117ff37a rk322x: add esp8089 driver for mainline kernels 2022-10-03 14:34:13 +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
120eb7902e
Add initial custom configuration for Terminator (#4220) 2022-09-23 19:05:55 +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
93093220ea
Adjust basic skel settings for XFCE to support HiDPI (#4216) 2022-09-23 09:34:55 +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
Igor Pečovnik
9db23f2341
Fix wallpaper not showing correct in virtual desktop (#4202) 2022-09-20 08:53:15 +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
hzyitc
a57b9ca97f
Show more informations in first-login (#4072)
* Show more informations in first-login

* Keep 1st login as minimal as possible.

* Add line space

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-09-01 23:08:09 +02:00
monkaBlyat
c0a911204c
Switch KDE plasme to wayland (#4092)
* enable 5.19.y edge kernel for the radxa zero 2 builds

* Update packages

* Update packages

* Update packages

* Set wayland as default on KDE plasma

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-08-24 07:48:48 +02:00
Igor Pečovnik
27154e472f
Extend network interface auto detection to suppress errors (#4096)
* Extend network interface auto detection to suppress errors

* Remove pointless grep

* Use grep internal limiter instead of head
2022-08-21 20:36:20 +02:00
Oleg
6123307c2a
fix buid kernel 5.19.2\5.18.8 (#4088) 2022-08-19 18:10:30 +02:00
hzyitc
96dade2d5a
Bugfix: armbian-resize-filesystem (#3981)
* Rewrite armbian-resize-filesystem

* Update message
2022-08-13 21:17:33 +02:00
Dennis
e5ab9389e9
Fix for journald filling /var/log using flush from volatile instead of copy, and removing cache files when nearly full (#3967)
* 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

Co-authored-by: dennis laptop <dennis@smartstatetechnolgy.nl>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2022-08-10 09:02:03 +02:00
Paolo
c91029dc10
rk322x: fixed minor things for device trees, fix rk322x-config script (#4020) 2022-07-27 08:46:09 +02:00
Rosen Penev
fdf73a025b
some shellcheck fixes (#4013)
* bsp: remove useless cats treewide

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* bsp: replace egrep with grep -E

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-25 11:39:11 +02:00
Aristo Chen
63795262e1
Bugfix: fix issue that 30-armbian-sysinfo doesn't show network usage (#4014) 2022-07-25 11:38:56 +02:00
hzyitc
df1f0b4fdc
Onecloud: fix bugs (#4022)
* Support pwm regulator

* meson: Fix MAC
Remove useless codes from odroidc1

* Bugfix: xorg config

* dts: mark regulators always-on
2022-07-25 11:37:15 +02:00
jmue
3196ef8bd8
Revert "Added '--delete' to syncToDisk in armbian-ramlog (#3779)" (#4012)
This reverts commit 6b43018c22.
2022-07-19 16:52:51 -04:00
JuergenBausa
9c52562176
Update armbian-ramlog (#4005)
https://github.com/armbian/build/pull/3779#issuecomment-1184759787
2022-07-17 14:37:57 -04:00
brentr
663be6550f
Allow non-legacy RockPi-S images to boot from their built-in EMMC (aka SDNAND) chips (#4002)
This moves the console from UART2 to UART0 because it
relies on a upgraded Radxa loader blob that only supports console on UART0.
Discussion at:
https://forum.armbian.com/topic/11228-rock-pi-s-rk3308-cpu-is-it-supported-by-anything/page/3
2022-07-16 10:37:37 +02:00
Rosen Penev
baa6968fc4
Shellcheck fixes on armbianmonitor (#3994)
* mdadm-fault-led: port to dash

Also ran through shellcheck. dash is faster and uses less RAM than bash.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: get rid of pipe to /dev/null

shellcheck warns that it can't parse this. Also seems to be a mistake.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: replace egrep with grep -E

The former is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: add -r to read

Avoids mangling backslashes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: remove unnecessary ${}

They're in $(()) making it redundant

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: simplify various printf calls

For some reason, printf and echo -e get mixed together even though they
do the same thing. Just use printf.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-14 10:12:24 +02:00
alive4ever
c83b11cf14
packages/bsp/common: use iw instead of iwconfig (#3995)
Use iw to handle wifi power management instead of legacy iwconfig.

Also fix udev rule to use kernel name (%k) instead of hardcoded name.
2022-07-14 10:12:13 +02:00
Vyacheslav Bocharov
bfa8732477
AR-1263 Fix armbian-led-state-save.sh for boards without gpio leds. 2022-07-13 20:27:23 +03:00
Vyacheslav
8a1be43c87
Update oneshot service for eth reset at system start. (AR-1098) (#3965) 2022-07-09 11:46:40 +02:00
Igor Pečovnik
eef3b33807
Plasma KDE desktop package name fix + improving welcome message (#3951)
* Typo in packaga name

* Several small fixes for KDE plasma

* Change "no support" to "community support" at 1st welcome

Its more or less the same thing just sounds better
2022-07-01 11:04:57 +02:00