Commit graph

615 commits

Author SHA1 Message Date
balbes150
46912c4e2b add Jetson Nano 2021-03-15 11:28:18 +03:00
Paolo Sabatino
81cc6841e9 Better compatibility for rk322x ddrbin v1.10, changed to set ddr3 to 660 Mhz 2021-03-14 18:47:52 +00:00
NekoB0x
922f1ca49e
Fix Motd disk temperature (#2707)
Fixes displaying of "Always°C" temperature on disks without Min/Max temperature values.
2021-03-14 16:34:32 +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
tparys
37c324975f
Detect overlay capability from uboot boot.cmd (#2628) 2021-02-22 21:50:50 +01:00
Lukas Pirl
4e25b7257b
remove mount option "nodiratime" where "noatime" is given (#2645)
mount option "noatime" implies "nodiratime", see, e.g.:
https://github.com/torvalds/linux/blob/v5.11/fs/inode.c#L1807-L1808
2021-02-22 21:49:04 +01:00
Paolo Sabatino
04670580ea Moved rk322x-dev to linux kernel 5.11
Added led configuration dtbo for rk322x targets
2021-02-20 20:48:42 +00:00
Evka2k
933a00515b
Helios64 UPS. System shutdown when battery reach 7.0V. (#2599)
* Helios64 UPS. System shutdown when battery reach 7.0V.
2021-02-05 18:27:15 +08:00
Uglymotha
af90b3237e
Fix armbianmonitor -n for vlan interfaces (#2594)
Currently armbianmonitor -n does not detect vlan interfaces correctly.
This is because of an incorrect egrep -o which filters out the parent interface name:
network interface: 100
instead of
network interface: eth0.100

Cascading into:
armbianmonitor: line 1095: eth0. - 0 : syntax error: invalid arithmetic operator (error token is ". - 0 ")

Fixed by changing the egrep logic to filter out the last field of route -n output.

Also fixes a timer issue by moving the timer start to after the interface selection.
time controller adjustment: -2.43
/usr/bin/armbianmonitor: line 1128: read: -2.43: invalid timeout specification
2021-02-03 20:19:08 +01:00
Igor Pecovnik
6679449bdf Bugfix and further optimisations of first login script 2021-02-03 18:23:08 +01:00
Igor Pečovnik
44ceb61427
Read distro data from our files, not from generic locations which might be changed (#2597) 2021-02-01 08:39:54 +01: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 Pecovnik
268ca95a86 Bugfix - Change systemd timer to start counting from when it starts
Service starts after 1st login finishes and then it removes autologin settings which we only want that they are ebabled in 1st run
2021-01-26 09:14:05 +01:00
Igor Pecovnik
94dbd83c62 Make sure that firstlogin service starts last
This way we avoid that other services messes up our nice and shiny 1st login
2021-01-26 09:12:59 +01:00
Piotr Szczepanik
e78fb53113
Swithed rk3399-bluetooth service type to simple
- bionic's systemd (237) does not support exec.
 - tested with both buster and bionic using OrangePi 4
2021-01-24 20:48:12 +01:00
Igor Pečovnik
315ca731f0
Fix shell selection bug in Bionic version (#2573) 2021-01-22 12:54:39 +01:00
Igor Pecovnik
c07e6e3da5 Revert "Update 80-update-htop-and-offload-tx (#2555)"
This reverts commit ee6ead45a6.
2021-01-19 23:47:13 +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
eric poscher
ee6ead45a6
Update 80-update-htop-and-offload-tx (#2555)
As suggested by Igor https://forum.armbian.com/topic/16287-very-confused-etcnetworkmanagerdispatcherd80-update-htop-and-offload-tx/?tab=comments#comment-117540
2021-01-18 19:58:23 +01:00
Igor Pecovnik
85ca772b5f Adjusting / lowering timeout for desktop autologin removal 2021-01-18 00:31:16 +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
JMCC
8b83866e16 rockchip-legacy: Enable RGA for RK3288 2021-01-04 22:53:12 +01:00
JMCC
bc6acc5b0a rockchip64/rk3399 legacy: Enable RGA for 64-bit Rockchips 2021-01-04 15:41:36 +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
Marcin Mielniczuk
e7406614ac
Add support for configuring CPU temperature offset (#2516)
* Add support for configuring CPU temperature offset

Some boards, such as the Orange Pi Zero LTS, report shifted CPU temperatures.
For more details, see https://forum.armbian.com/topic/11534-orange-pi-zero-lts-incorrect-temps-reported/

* Update armbian-motd.dpkg-dist

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-12-30 17:47:30 +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
Piotr Szczepanik
a84c69ddea
Fix boot (and bluetooth) for NanoPi M4*, NanoPC T4 and Firefly RK3399 in legacy (#2480)
* Fix boot (and bluetooth) for NanoPi M4*, NanoPC T4 and Firefly-RK3399 in legacy

* Changed rk3399-bluetooth service type to exec
2020-12-20 23:45:30 +01:00
Werner
053fb76d61
Fix typo 2020-12-15 15:03:19 +01:00
Duncan Bellamy
4a689f8b89
change DEFAULT_BOOTSIZE to 256 for nand-sata-install and debootstrap.sh (#2437) 2020-12-10 21:17:13 +01:00
Duncan Bellamy
4947f95b46
nand-sata-install increase DEFAULT_BOOTSIZE to 200 as 96 is not enough to upgrade (#2425) 2020-12-10 11:47:09 +01:00
Igor Pečovnik
f41c50db01
Cosmetical changes to MOTD regarding ZFS (#2417) 2020-12-04 21:12:37 +01:00
Igor Pečovnik
6c8a9fff22
Fixing stuck at locales genarate (#2407) 2020-12-03 18:00:28 +01:00
Igor Pečovnik
dc0cebe3d2
Cosmetical
Suppress warnings like: RX yesterday:  eth0+eth1+wlan0+wlan1: Not enough data available yet.
2020-12-03 17:37:41 +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
Paweł Krawczyk
0eea768c86
Resolve network issue on Clusterboard (#2396)
* Resolve network issue on Clusterboard

A long-known issue with Clusterboard is that SOpine does see network interface but no traffic is getting through. This solution has been described in many forum discussions and has proven to work:

https://forum.armbian.com/topic/9402-ethernet-not-working-on-sopine-module/

* Port the rgmii-txid patch for SOpine in Clusterboard

From https://github.com/CallMeFoxie/EmbeddedBOINC/blob/master/buildsteps/patches/kernel/pine64-network-new.patch
2020-12-02 20:58:10 +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
Icenowy Zheng
e19d014e00
Add Pine64 PineCube support (#2364)
* sunxi: kernel: current/dev: enable sun6i-csi and disable LL debug on UART0

The former is useful on some boards, e.g. PineCube.

The latter blocks boards that do not utilize UART0 from booting.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

* sunxi: add new family sun8i-v3s

This family is intended for boards with V3/V3s/S3/S3L chips and low
DRAM capacity.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

* sunxi: add PineCube board

This board features Sochip S3 SoC (Allwinner V3 die + co-packaged 128MiB
DRAM), and an OmniVision OV5640 camera is shipped with the board.

Add support for it. It could be used as an IP camera then.

Kernel support is only added to current/dev branch, with dev just using
mainline-merged DT and current using backported DT from 5.10-rc.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

* sunxi: kernel: current/dev: add V3s OHCI/EHCI nodes

These are needed for USB host on V3s boards to work.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2020-11-25 19:50:10 +01:00
Aditya Prayoga
a3beb9b5a3
Helios64: Update fan configuration, enable network LED and enable UPS timer (#2376)
* update fancontrol configuration

* Enable network activity led, default to eth0

* Do not disable auto poweron on power loss event

* Added UPS timer

Provide timer to poweroff system after 600 s (10 minutes) of power loss
event. If power restored within that time window, cancel the timer.

* Use different service for legacy

LK 4.4 does not have ledtrig-netdev, so it will cause the service to
fail.

* Use 10m instead 600 seconds in UPS timer

Systemd time can use m suffix for minutes. Use this to make it easier to
read.
2020-11-25 14:18:29 +07:00
JMCC
c0bf6a42ad
Add session chooser to lightdm menu (#2341)
Right now, you simply cannot choose between different DE's installed on the system. The session indicator uses very little space, and doesn't clutter the greeter.
I noticed it was missing when trying to integrate a Kodi session. It will be useful in the future also, when we incorporate more DE's than Xfce
2020-11-14 08:58:04 +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
Piotr Szczepanik
2eb98374f5
Fixed htop cpufreq meter for non-root users (#2273) 2020-10-24 16:57:24 +02: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
Piotr Szczepanik
25b6709991 Added SPI flashing to nand-sata-install's SPI -> SATA, USB, NVMe option 2020-10-17 23:38:05 +02:00
JMCC
688782062c
Fix mali permissions for RK3328
RK 3328 and RK3399 have different names for the mali kernel node ("mali" vs "mali0"). Adjusting the udev rule to cover both.
2020-10-16 18:13:07 +02:00
Igor Pečovnik
448484f6d8
Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC (#2254)
* Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC

Tested CLI and desktop image, but needs cache creation and repository before it will be possible to build without error.

* Update Groovy compiler for chroot

* Adjust pkg dependencies for groovy

Sadly htop doesn't build
2020-10-14 22:50:11 +02:00