Commit Graph

166 Commits

Author SHA1 Message Date
ThomasKaiser
39a1b80585 Adjust another swap anachronism
Allowing the kernel to handle individual pages slightly decreases wear on flash storage and compression/decompression cycles with zram/zswap
2018-09-25 22:13:47 +02:00
ThomasKaiser
7851473fef Bypass/minimize file system caching for ramlog
https://bugzilla.samba.org/show_bug.cgi?id=9560#c3
2018-09-24 17:01:59 +02:00
Thomas Kaiser
9688c96a04 Introduce MEM_LIMIT_PERCENTAGE variable for zram
(defaulting to 50% so zram will not use more than this treshold anyway
2018-09-24 15:48:57 +02:00
Gauthier Provost
7adf9f70cf Fix prefix for generated MAC 2018-09-19 16:25:42 +08:00
Igor Pecovnik
bb81585c61 Set correct file permission 2018-09-18 14:16:26 +02:00
Gauthier Provost
d375c46f4e Helios4 : Linux use eth1addr variable form U-boot as eth0 mac address.
Make armbian-firstrun script also randomizes mac address for eth1addr in armbianEnv.txt
2018-09-18 16:03:41 +08:00
Igor Pecovnik
9ec439f0a7 Meson64 family fixes: set mac addr in kernel, few patches for Lepotato default, kernel config update 2018-09-17 20:31:10 +02:00
Igor Pecovnik
f2d368916a Fix random MAC creation and remove one deprecated patch 2018-09-17 17:38:44 +02:00
Igor Pecovnik
b3d98ecbdb Proper random MAC handling. Set range for Allwinner and locally administered addresses for others. 2018-09-17 14:46:50 +02:00
Igor Pecovnik
acf84bac59 Fix xradio not showing up on Nanopi Duo, set fixed network MAC when using shield, small 1st run script RFC, removing deprecated stuff 2018-09-17 13:25:53 +02:00
5kft
9c15130252 add "discard" option to armbian-ramlog zram mount
When using a zram device mounted and formatted as ext4 it should be mounted using
the "discard" option so that the actual allocated memory is freed and returned to
the system when files are deleted.
2018-09-15 22:10:44 +00:00
5kft
115075f1d6 add "discard" option to zram tmpfs mount
When using a zram device mounted and formatted as ext4 it should be mounted using
the "discard" option so that the actual allocated memory is freed and returned to
the system when files are deleted (as opposed to just flagging the delete in the
metadata, and leaving the underlying memory still allocated).
2018-09-15 16:41:42 +00:00
ThomasKaiser
845baff038 Switch to lzo for zram swap\nhttps://forum.armbian.com/topic/8161-swap-on-sbc/?do=findComment&comment=61668 2018-09-11 14:33:27 +02:00
ThomasKaiser
be0778b176 Improve NVMe support
Running with btrfs on el cheapo NVMe SSD: http://ix.io/1mpG
2018-09-10 20:06:46 +02:00
Lane Jennison
13ea64b1e9 Revert "Try to fix DNS (privacy) issues"
This reverts commit f10acc0080.

Making room for alternative approach
2018-09-09 23:59:45 -04:00
ThomasKaiser
9eff058568 Improve zram related monitoring 2018-09-06 23:44:37 +02:00
ThomasKaiser
098a391996 Prepare zram compressed /tmp
Will only be active when /tmp entry is removed from /etc/fstab.
2018-09-06 23:08:02 +02:00
Thomas Kaiser
c24ceea4b1
Allow also RAMLOG_ALGORITHM to be defined with zram 2018-09-06 21:56:51 +02:00
Thomas Kaiser
3d0a5a38ca
Split zram swap and ramlog creation
armbian-zram-config acts partially only as helper for armbian-ramlog so use the latter's config.
2018-09-06 21:19:12 +02:00
ThomasKaiser
e0d8b11ade Make SWAP_ALGORITHM also configurable with zram swap 2018-09-06 01:36:18 -07:00
Thomas Kaiser
4804c91114
Make ZRAM_PERCENTAGE and ZRAM_MAX_DEVICES configurable 2018-09-06 10:04:37 +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
Igor Pecovnik
fda2c1c424 Meson64 boot script bugfix and 1st run setting MAC via Network manager for boards where is random 2018-09-02 14:04:16 +02:00
Igor Pečovnik
51b5cfdc42
Merge pull request #1069 from zhiverbox/master
Redo of implementation for feature request #947 on current master
2018-08-31 11:40:33 +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
zciendor
bd83c60b23
Merge remote-tracking branch 'upstream/master' 2018-08-26 07:04:03 -05:00
ThomasKaiser
f10acc0080 Try to fix DNS (privacy) issues 2018-08-24 20:26:08 +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
9bce3eb58b
Cosmetic log fix 2018-08-12 11:47:08 +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
zciendor
ddf0ed1edf
Redo of implementation for feature request #947 on current master
This was already implemented with https://github.com/armbian/build/pull/948,
before but never made it into the master branch yet. Probably because the
development branch has been abandoned in the meantime and it is to much effort
now to merge it into master.

It includes all the cleanup changes from commit 08743d3 and has been successfully
tested on an Odroid HC1.

In addition to what is currently in the `luks` branch the following improvments
where done/added:

1. update_initramfs() function in debbootstrap-ng.sh, which needs to be invoked
   after the partition layout and /etc/crypttab was created. Else `cryptroot-unlock`
   won't work and you'll run into:
   https://serverfault.com/questions/907254/cryproot-unlock-with-dropbear-timeout-while-waiting-for-askpass

   Apart from that it might be useful to always run `update-initramfs` at the end
   of the build process anyway, in case customize_image (userpatches) made some
   changes to the initramfs tools configs.

2. CRYPTROOT_SSH_UNLOCK=yes/no config option. It's by default set to yes, but it
   might be desired by some users to disable enable SSH/dropbear access while
   still having LUKS support. E.g. if they have a device that has a display
   and keyboard.

3. If no `authorized_keys` file is provided via userpatches, a new SSH key pair
   is generated and for convenience copied to the output directory along with
   the final image.
2018-07-31 16:02:26 -05:00
Igor Pečovnik
80ea69910a
Suppressing irrelevant error code 2018-07-20 09:02:41 +02:00
ThomasKaiser
4117a76167 Minor bugfixes 2018-07-19 12:41:09 +02:00
Thomas Kaiser
7c5b606a85
Add cron-apt and unattended-upgrades to RecreateLogs 2018-07-18 15:53:35 +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
ThomasKaiser
0c5d1b3639 Correct partition aligment in nand-sata-install
Also prepare for RK3399
2018-07-11 09:16:43 +02:00
ThomasKaiser
8540778100 Minor ramlog fixes 2018-07-11 07:29:08 +02:00
ThomasKaiser
80c8753d78 [OMV] Minor fixes 2018-07-09 13:41:24 -07:00
ThomasKaiser
5c214b0cc1 Few ramlog/zram fixes/improvements 2018-07-09 11:55:39 -07:00
Thomas Kaiser
5bd6ab4b0d
Formatting fixes and log creation only when needed 2018-07-09 15:40:12 +02:00
Igor Pečovnik
7283c12ffd Fix permissions for script and in one patch, s5p6818 kernel config adjustement 2018-07-06 07:07:41 +00: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
cf40fda60a Add OMV 4 module dependencies and a workaround for ram2log that OMV can make use ZRAM powered ramlog. It is also helpful in case of sudden crash. Nginx can't start without log places into its subdir. We create them on start. 2018-07-04 14:19:50 +00:00
Igor Pecovnik
908dd71d2d Revert "Adjusted ZRAM implementation"
This reverts commit 46d754f909.
2018-06-30 23:00:26 +02:00
Igor Pečovnik
46d754f909 Adjusted ZRAM implementation
https://forum.armbian.com/topic/7503-we-need-your-help/?tab=comments#comment-57029
2018-06-29 11:14:04 +00:00
Igor Pečovnik
bffd9a4a72 Workaround for activating ZRAM on some older kernels and enabling zram compression method in Odroid C2 kernel config 2018-06-22 11:51:05 +00:00
Igor Pecovnik
04254c4878 Fixing crontab and adjusting logrotate command
https://github.com/armbian/build/issues/1021
2018-06-20 09:49:06 +02:00
Igor Pečovnik
a0a49416e0 Bugfix and add another file to cleaning list 2018-06-17 13:07:02 +00: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
f0b4ac9f2a Check if file exists 2018-06-16 18:57:41 +00: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
Igor Pecovnik
312ec0ba91 Merged packages from development 2018-05-27 10:17:03 +00:00
Igor Pecovnik
ca63d66abb Add Chromium initial configuration for Ubuntu and Debian 2017-12-14 18:26:01 +01:00
Stefan Mavrodiev
f473e1a9fb Update support for sun5i (#846)
* Initial support for A13
* Update u-boot.bin
* Update nand-sata-install
2017-12-14 13:27:50 +03:00
zador-blood-stained
b0140bcee6 Small updates to firstrun config 2017-11-04 22:32:15 +03:00
zador.blood.stained
b6ab198b43 Split and activate firstrun configuration service
The code was disabled some time ago, split it to a separate unit file
and reenable. Since configuration file needs to be renamed to activate
it, it won't be run by default.
2017-11-04 21:56:23 +03:00
zador-blood-stained
2c0115d780 Refactor BSP directory structure 2017-07-24 16:38:00 +03:00