Commit Graph

42 Commits

Author SHA1 Message Date
Oleg
6bd67e18e5
add media kernel for arm64 (#2971) 2021-07-07 16:15:34 +02:00
Aristo Chen
78894792a5
Update URLs (#2870)
* Update URLs

* Update URLs

* Update URLs
2021-06-10 11:27:51 +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
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
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
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
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
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 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
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
xwiggen
301414a71e
Add ZeroPi IRQ balancing (#1976) 2020-05-20 13:16:57 +02:00
xwiggen
b9ce4ef4c4
Fix sed: no input files when all logrotate.d items contain compress option (#1970) 2020-05-18 22:57:00 +02:00
Stefan Mavrodiev
4450e3a037 Fix block iosched for kernel 4.20 2019-05-23 11:16:18 +03:00
Simone Rossetto
f4e50fc963 Change regex match from 'log/' to '/log/'
The sed command was wrongly replacing every folder whose name ends
in 'log/' with 'log.hdd/', so i.e. '/var/log/ulog/*.log' became
'/var/log.hdd/ulog.hdd/*.log'. Subsequent logrotate exections would
fail due to non existent folders.

In addition, some logrotate config files may have more than one path
per line, so a 'g' option in the sed replacement regex is required
to replace all '/log/' entries at once.
2019-03-20 16:38:38 +01:00
Hugh Cole-Baker
beef42c6ef [ odroid xu4 ] use udev rules to set ethernet rps
In Debian Stretch, among others, udev's "predictable interface naming" has been
adopted, meaning the onboard ethernet is no longer named eth0, instead it's
"enx00..(mac address bytes)..". Use a udev rule to apply the RPS settings
instead of /sys/class/net/eth0/... which no longer exists.
2018-12-23 13:09:56 +00:00
Igor Pecovnik
277e6e6f65 [security/cosmetic] Adjust permission for cpuinfo_cur_freq to be accesible by a normal user and adjusting htop configuration based on cpu count 2018-10-14 18:07:12 +02:00
Igor Pečovnik
c8c6c9d96f
Typo 2018-10-09 13:46:07 +02:00
Igor Pecovnik
50cd819a4d Swappiness correction for update and a few bugfixes https://forum.armbian.com/topic/5565-zram-vs-swap/?page=2&tab=comments#comment-61168 2018-09-04 22:13:43 +02:00
Igor Pecovnik
5d57dbea3a OrangePi win GMAC is very unstable on gigabit. Limit it down to 100Mb solve problems + enlarge desktop image size for 5% 2018-09-03 10:21:07 +02:00
ThomasKaiser
e0a1028797 Set dmc DRAM governor to performance on RK3399/default
https://forum.armbian.com/topic/7511-nanopi-m4/?do=findComment&comment=60848
2018-08-30 18:37:30 +02:00
ThomasKaiser
4910ad2fc2 Revert "Set dmc DRAM governor to performance on RK3398/default"
This reverts commit 3b713754a8.
2018-08-30 18:31:34 +02:00
ThomasKaiser
3b713754a8 Set dmc DRAM governor to performance on RK3399/default
https://forum.armbian.com/topic/7511-nanopi-m4/?do=findComment&comment=60848
2018-08-30 17:59:09 +02:00
ThomasKaiser
b00ba112ac Adjust board family rename in armbian-hardware-optimization too 2018-08-26 16:30:28 +02:00
Igor Pecovnik
e04177dfba Updated RK3399 config, revert executing bit on armbian-hardware-optimisation, enable overclocking for RK3399 boards 2018-08-12 19:24:36 +02:00
Thomas Kaiser
68d1fae8ce
RK3399 IRQ affinity assignment first try 2018-08-12 11:41:32 +02:00
Igor Pecovnik
802c7be55f ArmbianEnv.txt file cleanup. Without LF parameters can be added to the same line and board might not boot at all. This should fix the problem. 2018-08-11 17:43:20 +02:00
ThomasKaiser
52bef7ddf9 Try to improve ondemand scheduler and thermal readouts
https://forum.armbian.com/topic/6398-orange-pi-zero-cpu-and-load-issues-with-538/?do=findComment&comment=58057 and https://forum.armbian.com/topic/7032-nanopi-k1-plus-to-be-released-soon/?do=findComment&comment=58172
2018-07-15 23:10:26 +02:00
Igor Pečovnik
52c71aba80
Logrotate fix
https://github.com/armbian/build/issues/1033
2018-07-06 06:59:38 +02:00
Igor Pečovnik
75e17b0e21 Switch logic. logrotate is active at /var/log.hdd if we use it. Compression happens only there. Truncate script (if /var/log is over 75%) saves logs, run logrotate on log.hdd and truncate logs. ZRAM partition was switched back to EXT4 since there are many troubles with older kernels. Image size was reduced due to lack of swap creation. 2018-06-17 11:52:15 +00:00
Igor Pečovnik
09b313f860 Added timeouts for our new services, bugfix for packaging 2018-06-17 08:23:40 +00:00
Obihörnchen
dace054d9d
ODROID XU4: Improve IRQ detection regex
Some kernels might have additional interrupts like ```extcon_usb3_0```. The previous regex matches this as well, so usb3 smp_affinity was never set correctly.
```
 80:       1465         54          0          0          0          0          0          0     GICv2 103 Edge      ehci_hcd:usb1, ohci_hcd:usb2
150:       3915          0     132611          0          0          0          0          0     GICv2 104 Edge      xhci-hcd:usb3
151:        334          0          0          0          0          0          0    7406300     GICv2 105 Edge      xhci-hcd:usb5
152:          0          0          0          0          0          0          0          0  exynos4210_wkup_irq_chip   5 Edge      extcon_usb3_0
153:          1          0          0          0          0          0          0          0  exynos4210_wkup_irq_chip   1 Edge      extcon_usb3_1
154:          0          0          0          0          0          0          0          0  exynos4210_wkup_irq_chip   4 Edge      extcon_usb3_1
```
Note: The armbian kernel doesn't have these additional interrupts, but it can't hurt to improve it anyways ;)
2018-06-17 01:31:51 +02:00
Igor Pečovnik
347af78b46 Detecting compressed devices doesn't work properly. fixed to dev/zram0 for now 2018-06-16 20:31:15 +00:00
Igor Pečovnik
9509640c65
Bugfix.
After, not before
2018-06-16 21:25:03 +02:00
Igor Pečovnik
fc07886a1d
Bsp services RFC (#1015)
* Basic armbian services RFC
- tested building and upgrade
- armbian-optimize-hardware and armbian-setup-hardware have still the same content

* fix permissions

* Forther renaming and small fixes

* Odroid C2 NEXT tiny config adjustement to remove errros from bootup and moving u-boot to 2018.05

* More cleanings

* permissions fix

* More cleanup ...

* permi

* Remove few Ubuntu related things, fix permissions

* Further mini improvements

* Fix logrotate compression and permission issues

* Bugfix

* Wrong services setup at package install. fixing

* RAM logging: workaround for older kernel/btrfs driver versions

* Renaming services, proper config for zram, few bugfixes.

* Various fixes

* Various fixes

* No $TMPFILE needed here

* Various fixes

* Lower this so boards with low memory can use it too

* Various fixes

* Adjust logfile to armbian-hardware-monitor.log

* Remove swap file creation

* Fix permissions in all logrotate configs if needed.

* Prevent loading parallel printer port drivers which we don't need here.
2018-06-16 19:41:16 +02:00