Commit Graph

166 Commits

Author SHA1 Message Date
Oleg
6bd67e18e5
add media kernel for arm64 (#2971) 2021-07-07 16:15:34 +02:00
lanefu
71f67e664e
wait for systemd fully started before first login (#2979) 2021-07-06 22:32:37 -04: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
Aristo Chen
78894792a5
Update URLs (#2870)
* Update URLs

* Update URLs

* Update URLs
2021-06-10 11:27:51 +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
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
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
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
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
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
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
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 Pečovnik
315ca731f0
Fix shell selection bug in Bionic version (#2573) 2021-01-22 12:54:39 +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
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
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
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
Igor Pečovnik
6c8a9fff22
Fixing stuck at locales genarate (#2407) 2020-12-03 18:00:28 +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
Igor Pečovnik
ac44b87406
Non-existing keyboard can be selected in firstlogin script. Adding check (#2385) 2020-11-30 16:52:21 +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
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
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
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
Igor Pečovnik
3a35f86860
Workaround for kernel bug (#2202)
* Workaround for kernel bug

Until we don't find a solution to this problem, disabling partition checking and it will not bother to resize resized fs again. Most likely the bug is related to the ext4 filesystem changes in the upstream 5.8.y kernel.
2020-09-13 19:45:07 +02:00
Igor Pečovnik
4f24a622e1
Fixes wrong available memory calculation for ZRAM (#2192)
* Fixes wrong available memory calculation

* Further motd rework

- show load in %
- display GB instead of MB depending of treshold
2020-09-08 21:47:14 +02:00
matt335672
ae87d999e2
Move armbian-check-first-login.sh to separate bash script (#2190) 2020-09-07 16:28:43 +02:00
Aditya Prayoga
c242d07397
Helios64 tweak (#2186)
* bsp: helios64: Add fancontrol

- Fancontrol configuration
- Udev rules for fan and temp sensor

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

* bsp: helios64: Enable heartbeat on system status led

The reason systemd service used instead of device tree modification, is
to give visual notification that the system is ready.

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

* armbian-hardware-optimization: SATA & 2.5GbE IRQ pinning on Helios64

- 2.5GbE USB LAN which is attached to XHCI, assigned to CPU4
- SATA controller assigned to CPU4 and CPU5

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2020-09-07 11:17:57 +02:00
Piotr Szczepanik
79096f034f
Updated htop with latest changes from avafinger (#2171)
- latest changes from avafinger
 - minus the flashiness
 - plus fix cpufreq meter on bigLITTLE
2020-08-31 21:55:43 +02:00
Aditya Prayoga
c27379e93f
Add Helios64 support (#2126)
* Add initial Helios64 configuration

Add ethernet udev rules
Added disable auto power on script during shutdown
Configure ALSA to output audio to (DisplayPort) USB type-C

armbian-firstrun: exclude helios64 from generating fixed_mac

Each network interface on Helios64 already assigned to unique MAC
address in factory. Assigning Network Manager with cloned MAC is not
needed.

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

* u-boot: rk3399: Add Helios64

Use rockchip propriettary loader

* kernel: rk3399-legacy: Update r8152 to support 2.5GbE USB RTL8156

Required for Helios64

* kernel: rk3399-legacy: update Rockchip PCIe driver

Port changes by ayufan on rockchip64.

* kernel: rk3399-legacy: Add support for Helios64

Add Helios64 device tree.
Enable missing driver/kernel module.
Auto load lm75 modules

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

* kernel: rk3399-legacy: rework roc-rk3399-pc patch

the patch broken due to additional line added by helios64 on
arch/arm64/boot/dts/rockchip/Makefile

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

* kernel: rk3399-legacy: update Rockchip PCIe driver

Backport bugfix from mainline
refer to
https://patchwork.kernel.org/patch/11561979/
and
https://patchwork.kernel.org/patch/11561977/

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

* kernel: rockchip64-current: Add support for Helios64

Add Helios64 device tree.
Enable missing driver/kernel module.

* config: helios64: use mainline ATF on current branch

and u-boot TPL/SPL instead of Rockchip proprietary loader

* helios64: u-boot v2020.07 update

* Add Helios64 target

* kernel: rk3399-legacy: update Rockchip PCIe driver

Removed unrelated changes from porting ayufan fixes

Signed-off-by: Piotr Szczepanik <piter75@gmail.com>

* helios64: make use of PACKAGE_LIST* variables

Co-authored-by: Piotr Szczepanik <piter75@gmail.com>
2020-08-10 18:22:48 +02:00
Igor Pečovnik
6c26c35344
Add initial support for Odroid N2+ (#2130)
* Add initial support for Odroid N2+
* Update C4 config and test booting
* Updates to C4, N2, N2+
- merge C4 and N2 legacy under meson64, same u-boot
- upgrade legacy kernel to meed DTB from mainline
- merge N2 and N2+, add a hack to display + in motd when N2+ is detected
- shortly spin N2 fan at startup
- merged N2 mainline and legacy boot script
- add upstream patches
* One of the regulators were breaking booting of Odroid N2
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
2020-08-08 17:20:00 +02:00
Igor Pečovnik
36850822cd
Typo bugfix 2020-08-02 17:30:54 +02:00
Igor Pečovnik
dd96b62275
Add basic optimisations for ODROID N2 / G12b family (#2124)
Based on 5030cef51c
2020-08-02 10:14:34 +02:00
dagix5
eaf685381a
rk3399 - fixed irq smp affinity for usb (#2121) 2020-07-31 17:44:03 +02:00
Thomas Kaiser
5030cef51c
Reverting basic optimizations for ODROID N2
Since 1a04b50674 triggered comments like 'stupid, lazy, technical criticism, dick, you vs. us' most probably it's the best to focus on Armbian's current mantra 'quantity first, quality second' (trying to provide OS images for as much SBC as possible so it's ensured none of these things can be supported properly).

Within the last 2 years nobody gave a shit about low-level optimizations except @paolosabatino when adding support for RK322X. Macchiatobin, La Frite, RockPi S, Odroid C4 and N2 are all plagued by an artificial bottleneck on `cpu0`. Other boards that were added since 2018 inherited already present optimizations more or less by accident. So let's try to be consistent and destroy N2 performance to be in sync with almost all other Armbian additions of the past few years. Shit like this https://forum.armbian.com/topic/14469-odroid-n2-single-cpu-handling-all-the-interrupts/ is Armbian's future.
2020-07-15 21:20:06 +02:00
Thomas Kaiser
1a04b50674
Preliminary IRQ affinity settings for meson-g12b
TBD: further network tweaks and IRQ affinity settings for PCIe (other potential members of the board family like VIM3/VIM3L)
2020-06-30 08:40:59 +02:00
Thomas Kaiser
99591837e3
Do silent zram switch from lzo to lzo-rle if available
Available with kernel 5.1 or above, made for ARM and being the new default. So switch silently from lzo to lzo-rle if possible to benefit from better performance:

https://www.phoronix.com/scan.php?page=news_item&px=ZRAM-Linux-5.1-Better-Perform
2020-06-29 08:41:56 +02:00
Piotr Szczepanik
b467e567cc
Fix filesystem resize for small media (#2046)
* Reserve 5% spare on small media instead of 200MiB
* Measure the resize success by used percent and not free space
2020-06-27 14:13:33 +02:00
Paolo
23604e8a0d
Introducing Rockchip RK322X SoC support (#2032)
* Introducing Rockchip rk322x SoC support

Main features:

- Legacy kernel flavour based upon stable v2.x rk3288 Rockchip branch (https://github.com/rockchip-linux/kernel/tree/stable-4.4-rk3288-linux-v2.x)
- Current kernel flavour based on mainline 5.6.y kernel
- Mainline u-boot (v2020.04)
- Single generic tv box target (rk322x-box) which boots on all the known tv boxes
- Hardware devices (eMMC/NAND, led wiring configuration, SoC variant selection) modulation done by user at runtime via device tree overlays - a script (rk322x-config) is provided for autodetection and simple configuration by inexperienced users;
- Bits added to armbian-hardware-optimization to set affinity for irq handlers
- rk322x-box targets already added to targets.conf for automatic image creation

* Removed disabled patches
* Restored mysteriously removed comment character
2020-06-19 17:27:27 +02:00
Muhammed YILDIRIM
d7a05b5781
sed regexp fix (#1984)
This definitely needs to change only `/var/log/`, not every `log` folder.
2020-05-25 19:21:53 +02:00