Commit Graph

565 Commits

Author SHA1 Message Date
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
paolo
bd17d4dbd0 Many changes for rk322x target:
- Chanaged default x.org configuration to disable glamor
- Reintroduce patch to use DRM cursor plane as overlay in rk322x-current and -dev
- Updated wifi patches for kernel 5.8.10
- Bumped rk322x to u-boot v2020.07, removed reserved zones from device trees
- Updated OPTEE to v3.10, using ddrbin v1.10
- Bumped rk322x-current to kernel 5.8.y
- Imported new patches from knaerzche's LibreELEC fork for rk322x-dev (kernel 5.8.y)
- Adjusted existing patches to match changes, updated rk322x-dev kernel config file
- Add default modprobe conf file for esp8089 to force the crystal frequency to 40Mhz for rk322x targets
- Removed ssv6051 firmware packages to move to armbian-firmware repository
- Switching ssv6051-wifi.cfg to /lib/firmware for rk322x-legacy
- Removed P2P interface for esp8089 driver for rk322x-legacy
- Optimized ssv6051 performance: kernel module gains -Os flag, disabled p2p interface, enabled HW crypto for CCMP cipher
- Enabled remote control interface, IR GPIO kernel module and HDMI CEC modules
2020-09-19 15:20:16 +00:00
Piotr Szczepanik
b8991002f0
Bring back Igor's "Cosmetical changes to htop" 2020-09-18 07:43:09 +02:00
Piotr Szczepanik
3b7136416b
Revert "Cosmetical changes for htop"
This reverts commit abf6961c30.
2020-09-18 07:32:23 +02:00
Igor Pecovnik
abf6961c30 Cosmetical changes for htop 2020-09-17 22:14:11 +02:00
Aditya Prayoga
6f6543c6f5
Assign Fault LED, rework HDD power staggering, fix minor systemd service warning on Helios64 (#2204)
* Supress systemd service warning

* helios64: u-boot: staggered HDD power up

Set the delay to 10s in between turning on the next HDD power rails.
Remove the delay property from kernel device tree, let it only apply to
u-boot

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

* helios64: fault LED as kernel panic indicator

also sync, u-boot dts

* helios64: fix hwmon udev rules

Legacy kernel (LK 4.4) has different class/naming on SoC Temp sensor.
Also fix typo on current/dev udev rules.
2020-09-15 09:46:06 +02:00
Igor Pecovnik
ebc497ff6b Enable GPU temperature in htop for Odroid XU4 2020-09-14 16:22:16 +02: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
045fd4a3b0
Improve HTOP with scripted updating based on network up/down (#2199)
* Improve HTOP with scripted updating based on network up/down

Also enable / disable GPU temperature - where available.

* Update Htop default configuration
2020-09-13 20:39:52 +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 Pecovnik
97c8c26bb4 Cosmetic issue for Htop
Aligning text, removing spaces
2020-09-09 15:12:55 +02:00
Igor Pecovnik
e395961f77 Cosmetic bugfix + motd updating script
Motd updating script should be moved under proper service later on
2020-09-08 23:07:37 +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
Igor Pecovnik
e6fa811d6f Moving Meson64 to 5.8.y
Tested once again on N2/N2+
Note: disabled mesond_vdec module in kernel config since it crashes complete video system when loaded. Need to be added back once stable - or perhaps we need to adjust some parameters?
2020-09-01 19:50:09 +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
Igor Pecovnik
dc8300a638 A pack of minor fixes:
- remove Debian stretch from image creations.
- if LOCAL_MIRROR is defined use just that, not armbian upstream packages
- move aptly web server from 8080 to 80
- adjust welcome motd
- remove Ubuntu Eoan from distribution selection menu
2020-08-30 16:13:38 +02:00
Paolo
804a6b60d4
Moved rk322x-dev to rk322x-current (current now is 5.7.y) (#2153)
Adapted rk322x-dev to kernel 5.8.y
Added ssv6x5x driver to legacy kernel, rk322x-config now allows the user to select which driver load at boot
Added esp8089 kernel module, device tree overlay and detection in rk322x-config script
Fixed some indentation
Added reset button binding
Added sdcard debounce
Fixes indentation, added device tree overlay for high-leakage cpus
Added support for bluetooth device tree overlay and realtek systemd service for rk322x targets
2020-08-28 18:48:55 +02:00
1pav
4e5db96a9a
Remove superfluous newline in shell prompt (#2165)
Fixed a bug in armbian-check-first-login-reboot.sh which caused a
newline character to be prepended to the shell prompt even when a reboot
required warning was not shown to the user.
2020-08-28 18:43:54 +02:00
Igor Pecovnik
3a5b572c0f Improve multithreaded building, few changes for BUILD_ALL and removing debug code from MOTD 2020-08-18 22:31:07 +02:00
Igor Pecovnik
22ad8abfcf Set TERM to linux at first login. In some cases this prevent from seeing weird charactes in ncurses menu 2020-08-15 22:11:15 +02:00
Igor Pecovnik
0bf088ad4a Cosmetical issue - welcome is displaying "Armbian Armbian Focal"
Covering both variants
2020-08-11 18:26:02 +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
Piotr Szczepanik
e0686d5359 Enabled user overlays for rk3399 family 2020-08-06 22:10:29 +02:00
Igor Pečovnik
d567344278
Typo 2020-08-05 16:12:16 +02:00
Igor Pečovnik
7f6d47c575
Ask to set locales and keyboard from location (Y/n) or tell how to do it later (#2133) 2020-08-05 15:43:09 +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
Igor Pecovnik
ad34b54d08 First login fine tunning 2020-08-02 00:53:15 +02:00
Igor Pecovnik
313d176715 Bump htop version 2020-08-01 11:07:15 +02:00
Igor Pecovnik
c909864922 Improve first login
Automate setting up console keyboard based on a user country code.
2020-08-01 09:23:30 +02:00
dagix5
eaf685381a
rk3399 - fixed irq smp affinity for usb (#2121) 2020-07-31 17:44:03 +02:00
Igor Pečovnik
425aea17b8
Bugfix - remove not needed trap
Its just a potential trap for creating all locales which can takes hours to complete.
2020-07-19 21:08:03 +02:00
Igor Pečovnik
a48877aeaa
Disable offloading on RK3399 network devices (#2079)
* Disable offloading on RK3399 network devices
* Add kernel version checking since we only need this for legacy
* Adjust / fix condition
2020-07-18 17:41:51 +02:00
Igor Pečovnik
6ce3396d2b
Root auto login at first boot, determine TZ and locales from geo location (#2081)
* enable root auto login on first boot, automatically determine timezone from geolocation
* Improve tzdata and locales detection
* Add timeouts for Curl and support for selecting more locales per location.
* Disable NetworkManager-wait-online.service
https://askubuntu.com/questions/1018576/what-does-networkmanager-wait-online-service-do
* Improve overall UX when creating new username and changing root password
- check password quality and reject if not good enough. Not very heavy.
- shorter way of adding new username
* Resolve killing inactive consoles, remove FAQ silently since we open more consoles
2020-07-17 10:38:27 +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
dvanderfaeillie
1e7f6142a7
Update 30-armbian-sysinfo (#2087)
Fix for locales where the decimal separator is a 'comma'. For these systems `uptime` would output `load average: 0,06, 0,08, 0,07`. And then it would be possible for `006` to be above `critical_load`. Forcing the dot separator with `LC_ALL=C uptime` fixes this issue.
2020-07-08 20:37:58 -04: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
Igor Pečovnik
f6abcc7c85
Add most recent drivers for Realtek RTL8152/RTL8153 that supports 2.5G adapters (#2071) 2020-06-29 19:16:10 +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
dc1b17aeac Enable ROCK Pi S overlays support in armbian-add-overlay 2020-06-28 22:18:27 +02:00
Igor Pečovnik
7d758026b5
Enable kernel boot splash, env and bootscript files cleanup, upstream patches (#2065)
* Initial commit for kernel boot splash
* Add startup files to disable bootlog when system is up / down
* Update logo, remove deprecated one
* Introduce new u-boot variable bootlogo
* Adjust kernel config
* Make logo possible on Odroid XU4
- add legacy and current upstream patches
- delete xu4 environment since its not used
* Cleanup C2,C4, both tested, logo works on mainline,
- adding legacy upstream patches for c4
* Enable bootlogo by default on Odroid N2
* Enable logo on RK3399 desktop images
* Cleanup the rest of the environment files
* Add initrd hook that copy splash file to initrd.
* Missing logo bits for one boot scripts
* Enable boot logo on Pinebook A64
* Enable bootlogo on Teres
* Update config
2020-06-27 19:14:38 +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
Werner
dce1101ba2
Remove unneeded code (#2003)
There is no *default* branch anymore...
2020-06-23 11:52:29 +02:00
Piotr Szczepanik
e0bb0f294f
Allow install to SD NAND for ROCK Pi S (#2045) 2020-06-20 22:34:28 +02:00