Commit Graph

735 Commits

Author SHA1 Message Date
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
Paolo
e0e77fc8b1
Restored missing OPTEE blob for rk322x targets (#2043) 2020-06-20 17:12:00 +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
Igor Pečovnik
e5876ba032
Adjust hostapd patches to apply without errors (#1985)
* Adjust hostapd patches to apply without errors
* Cleanup FUZZ from patch
* Fix patch
* Disable broken feature
2020-05-24 20:31:27 +02:00
Igor Pečovnik
99f6bef7de
Attach Meson64 CURRENT to 5.6.y and make DEV = CURRENT at this point. (#1956)
* Attach Meson64 CURRENT to 5.6.y and make DEV = CURRENT at this point.

There is a lot of changes to 5.7.y and can be done after release or by someone that feels a need for this right now.

* Delete meson64_fclk_div3.patch

this fix has been upstream for some time, I had issues with it on 5.4, which is why it had been removed there.

* [ meson64 current ] kconfig tweak

disable Rockchip SoC drivers

* [ meson64 current ] remove rockchip patches

* [ meson64 current ] disable CMA patch GX

* [ meson64 current] add libretech cc audio patch

This brings the dts even with the khilman 5.8/integ branch which includes all of the audio changes.  The kernel is registering audio devices, however nothing comes out.  committed in case someone wants to spend time debugging/testing theories.

* fix permissions

was editing from another machine, accidental change of permissions in the patch

* Set default mixer settings

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* [ meson64 current ] GXL audio commit

This moves to the mainline patches and covers le potato and la frite.  Adjusted asound config to handle a commonized sound card name.

* [ meson64 current ] add gxbb audio WIP

Playback is too fast, a clock setting is off somewhere.

* Update kernel configs

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

Co-authored-by: Tony <tonymckahan@gmail.com>
2020-05-22 00:17:08 +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
Piotr Szczepanik
40a3d4ecb9
Fixed rt5651 codec probing after its driver was changed to module (#1969) 2020-05-17 18:42:24 +02:00
Gauthier Provost
e3dd8abedb
[ mvebu ] Switch fake-hwclock to hardware RTC AR-159 (#1946)
* [ mvebu ] Switch fake-hwclock to hardware RTC AR-159

* remove fake-hwclock dpkg
* tweak /lib/udev/hwclock-set to be executed even if systemd present
* move helios4 bsp file under mvebu folder for tidiness
2020-05-13 11:44:44 +08:00
Igor Pecovnik
1d2f00ee98
Hostapd packages verision bump
Fixing wrongly uploaded package

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-05-11 19:14:08 +02:00
Piotr Szczepanik
1535f9d2ae
Switched NanoPi R2S to mainline u-boot (#1940) 2020-05-05 21:20:31 +02:00
useful64
b37d63a481
Enable user overlays on rockchip64 based boards (#1931)
User overlays are working fine on this boards (I have already tested on rock64).
Added the possibility to use on rockchip64 based boards.
Changed "if" to "case" to facilitate adding more supported boards.
2020-05-01 08:57:01 +02:00
lsartory
af68daf739
Fix the 2GB 2CS Espressobin bootloader config (#1925)
The 2 CS 2 GB image was compiled with the same DDR topology parameter as the 2 CS 1 GB image (DDR_TOPOLOGY=2).
This prevented the system from accessing more than 1 GB of memory.

See
https://forum.armbian.com/topic/13672-espressobin-only-1-gb-ram-detected-on-a-2-gb-board/
for the whole history.
2020-04-27 19:30:13 +02:00
michlv
ce7dec8719
Truncate logs: add -r to xargs to suppress calling with no arguments (#1889) 2020-04-17 21:14:40 +02:00
Igor Pečovnik
d359596da1
Set fixed MAC for Nanopi R2S (#1893)
Needed to avoid changing IP on reboot

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-17 09:10:57 +02:00
Igor Pecovnik
2f389a6cb6
ZRAM Journal bugfix
Limit journal size Closes: https://github.com/armbian/build/issues/1843

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-03-25 16:35:55 +01:00
Igor Pecovnik
87cc79726f
Bugfix
Fix file permission

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-03-25 13:52:20 +01:00
Ash
4bdf9cb8bd
Add lighttpd entries to armbian-ramlog (#1853) 2020-03-22 16:22:43 +01:00
Igor Pecovnik
3a7340594c
[ general ] Typo
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-03-12 14:54:40 +01:00
Igor Pečovnik
a0e009a73e
WIP: Add initial support for FriendlyARM Nanopi R2S (#1793)
* Add initial support for FriendlyARM Nanopi R2s

One net port not working yet.

* Enable 2nd network, rename it to lan0, adjust motd to see lan*

* Added rk3328 dmc devfreq driver

* Fixed SD card issues for NanoPi R2s

* Added usb serial gadget console for NanoPi R2s

Co-authored-by: Piotr Szczepanik <piter75@gmail.com>
2020-03-09 00:03:27 +01:00
robstroess
49f104bf9e
Update 30-armbian-sysinfo (#1829) 2020-03-03 23:45:45 +01:00
Harry Moyes
310f5374cc
Update 41-armbian-config (#1806)
This file is inconsistent with the rest of the files in this set. The description in the file /etc/defaults/armbian-motd says that you can block sections of the generate motd  thus:
# add space-separated list of MOTD script names (without number) to exclude them from MOTD
# Example:
# MOTD_DISABLE="header tips updates"
#
This presently fails for this file, you need to add  "armbian-config" to the MOTD_DISABLE list to block it.

Matching the style of the THIS_SCRIPT name in this file, to the other files in the set, removes this inconsistency. I've found no unexpected behavior after making the change.
2020-02-22 23:59:07 +01:00
chwe17
3b3d46ca7f update boot binary to BPI-R2-preloader-2k.img to fix:
https://forum.armbian.com/topic/12834-banana-pi-r2-stuck-on-first-boot/?tab=comments#comment-95681
2020-02-20 01:32:23 +01:00
Igor Pecovnik
3e9f46d3cd Few last bug fixes 2020-02-17 01:52:08 +01:00
JMCC
59d008816c
Fix temporarily disabling glamor for bionic due to Mesa bug 2020-02-15 22:01:28 +01:00
Igor Pečovnik
bdba55a74f
Fixes htop package building under Ubuntu Focal (#1783) 2020-02-06 22:32:14 +01:00
Igor Pečovnik
0ca5a8dd29
Bugfix - Network manager randomizing MAC (#1780) 2020-02-04 18:25:30 +01:00
Igor Pecovnik
bfdedeee11 Cosmetic fix. Wrong coloring on welcome screen. 2020-02-04 15:57:49 +01:00
Igor Pecovnik
55481fad87 Update MOTD warnings and add to read also distribution support status. 2020-02-02 11:58:29 +01:00
Igor Pečovnik
6da5760a5a
Display warning at login prompt if image is nightly, self-built, wip or csc (#1776) 2020-02-02 10:29:00 +01:00
Igor Pečovnik
13d250b675
Fix perl warnings on Debian Buster (#1777)
* Fix perl warnings at apt update
2020-02-02 10:27:56 +01:00
Igor Pečovnik
74a2e23f8a
Implement a workaround for Bionic Mesa related issues (#1760)
Closing [AR-152]
2020-01-23 22:40:49 +01:00
tonymac32
08f46f3241 [ rockchi64 ] Add xorg.conf to Pinebook Pro 2020-01-18 22:28:33 -05:00
Igor Pecovnik
aa42d5f453
Cosmetical: disabling DEBUG on EXT4 which is disabled everywhere, but on two remaining kernels. Also disable erros if files not found in armbian-truncate 2020-01-03 00:55:54 +01:00
Werner
21b2f6cf5b Script does not properly stop on network issue (#1706)
Fixes https://forum.armbian.com/topic/12579-opi-stuck-after-restart-cant-connect-to-network/
2020-01-01 20:48:40 +01:00
Roman Ondráček
faa9a74719
Truncate logs: keep log files ownership
Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz>
2019-12-27 22:58:49 +01:00
gdm85
c819b385df Have systemd-journald start after armbian-ramlog (#1627)
Prevents log entries to be exclusively logged to /var/log/syslog
2019-12-22 09:16:35 +01:00
Igor Pečovnik
e6ad392f85
[AR-103] Bugfix: Adding repository via PPA doesn't find & set proper release name. (#1677) 2019-12-16 12:58:42 +01:00
Igor Pečovnik
2e69b173bf
Merge pull request #1673 from armbian/focal
Add Ubuntu 20.04 LTS Focal and Debian Bullseye
2019-12-14 11:18:23 +01:00
Igor Pecovnik
130c23c503 Adjust motd to work properly also on Debian bullseye 2019-12-13 20:16:48 +01:00
Igor Pecovnik
8df3e98401 Add Debian 11 bullseye 2019-12-13 20:01:00 +01:00
Igor Pecovnik
1351bdfe3f Espressobin: add missing/corrected RAM topology 2019-12-13 07:53:48 +01:00
Karabek
7d7daa7390
armbian-add-overlay: fixed for non-dev-branches
Current version only allows user-added overlays for 'dev' kernels. Excluding 'legacy' kernels should not be necessary anymore since <4 kernels are not supported anymore.
2019-12-04 15:41:33 +01:00
Igor Pečovnik
150ac0c2af
Remove K<4, change branches, new features (#1586)
AR-1 - Adding support category for distributions
AR-4 - Remove Allwinner legacy
AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family
AR-9 - Rename sunxi-next to sunxi-legacy
AR-10 - Rename sunxi-dev to sunxi-current
AR-11 - Adding Radxa Rockpi S support
AR-13 - Rename rockchip64-default to rockchip64-legacy
AR-14 - Add rockchip64-current as mainline source
AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y
AR-16 - Rename RK3399 default to legacy
AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y
AR-18 - Add Odroid N2 current mainline
AR-19 - Move Odroid C1 to meson family
AR-20 - Rename mvebu64-default to mvebu64-legacy
AR-21 - Rename mvebu-default to mvebu-legacy
AR-22 - Rename mvebu-next to mvebu-current
AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y
AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6
AR-26 - Adjust motd
AR-27 - Enabling distribution release status
AR-28 - Added new GCC compilers
AR-29 - Implementing Ubuntu Eoan
AR-30 - Add desktop packages per board or family
AR-31 - Remove (Ubuntu/Debian) distribution name from image filename
AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files
AR-33 - Revision numbers for beta builds changed to day_in_the_year
AR-34 - Patches support linked patches
AR-35 - Break meson64 family into gxbb and gxl
AR-36 - Add Nanopineo2 Black
AR-38 - Upgrade option from old branches to new one via armbian-config
AR-41 - Show full timezone info
AR-43 - Merge Odroid N2 to meson64
AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
2019-11-19 23:25:39 +01:00
V33m
85080ff373 Update armbian-ramlog (#1620)
Prevent hard disk drive spin-up.
2019-11-11 23:17:14 +01:00
Bot Fap
3e149d2fa9
Prevent rotated .xz logs from being loaded to ramlog 2019-10-08 13:09:10 +01:00
Averell7
d999875cb5
Remove --delete from syncToDisk 2019-10-08 02:51:47 +02:00
Averell7
51ee63978f
Modify logrotate.service
Create a modified logrotate.service to improve armbian-ramlog.
See discussion here
https://github.com/armbian/build/issues/1582
2019-10-07 19:44:18 +02:00
Averell7
62e6febab8
add postrotate to ramlog
Improve armbian-ramlog. See discussion here :
https://github.com/armbian/build/issues/1582
2019-10-07 19:29:17 +02:00
Gauthier Provost
031a6350ae
[ Helios4 ] Fix systemctl WoL unit file to work with NetworkManager 2019-09-02 17:28:17 +08:00
Igor Pečovnik
1221d59233
Build all targets RFC (#1515)
* Introducing build-all-ng
* Implementing REBUILD_IMAGES='board1,board2,...' for rebuilding certain images only
* Add optimisations when building kernels - only cycle trough needed targets. Adding variable for defining whether an image is build, otherwise only BSP is made.
* repository manipulating RFC
* Add bianco deb file that is added by default if repository is clean
* Switch to gpg2 signing method, small bugfix
* Create subdir for debs and debs-beta
* Synaptic bugfix: installing indexing tools https://forum.armbian.com/topic/8021-orange-pi-one-synaptic-package-manager-search-very-slow/?do=findComment&comment=74918
* add all modules by default to Odroid N2, but leave them commented
* Bugfix: not making any builds when selecting kernel_only
* Remove EXTERNAL=yes ... move armbian-config and armbian-firmware into main compilation area, drop others since they are deprecated anyway. This will also enable multi threaded images making
* Move armbian.list to create_sources_list function. Replace NTP by Chrony. Remove armbian-firmware from PACKAGE_LIST and RockPi 4A (#1528)
* Replace NTP by chrony. Remove installion of outdated armbian-firmware from reposity.
* added RockPi 4A
* New format for board config
* Fix Bluetooth dependencies for minimal package - add rfkill to family related installs
* Moving networkd-dispatcher from minimal image
* Cubox-i: update default config
* Improving umount process
* Add purgesource feature
* Add FULL_DESKTOP to install few more applications on top of our desktop - notebooks should * rk3399 default: adjust patches and configuration
* Enable full desktop on most powerfull boards and notebooks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 22:13:13 +02:00
5kft
f89703360e nand-sata-install: mkfs.f2fs needs "force" option in case target has an existing filesystem 2019-08-17 07:39:11 -07:00
5kft
7a2bf78e10 increased the default boot partition size to 96MB (from 64MB) for multi-partition fs targets 2019-08-16 21:44:01 -07:00
Igor Pečovnik
f416c35c16
Adding minimal image (#1504)
* Minimal build setup (#1463)
* Netplan folder check & armbian-tools dependency on expect (and tcl) solved (#1464)
* Prevent netplan configration if it is not installed
* Resolved expect dependecy of armbian-tools
* More packages added for armbian-tools
* Added python3-apt and rsyslog to minimal installation
* Debootstrap variant doesn't play nice. We loose networking and it affects standard builds as well. Removing.
* Python-to-Bash conversion (#1470)
* Remove python3-apt dependency from BSP package, fix netplan error also on Disco and putting back varint=minbase ... tested Disco, Bionic
* Distinguish package list: *-minimal.list and *-desktop.list
* Enable Wireguard back which was removed by mistake. https://github.com/armbian/build/issues/1471
* Having minbase debootstrap variant for all will require further adjustements with current package base - backward compatibility. Minimal image is now Python free but need further testings ...
* Add wireless-regdb and crda to the pakage base, fix Ubuntu keyring warning while debootstrap.
* Add figlet to sort out missing fonts
* Moving few packages here and there. Bugfix when creating a cache package list
* Manually compared base images - they are the same with small insignificant difference. Minimal image has to be futher tuned
* Adjustements for bash powered lsb_release, adding some needed packages
* Fixed (no) network problems on Bionic/Disco
* Add rsync to debootstrap_list and few minor fixes
* Adjust text in lsb_release
* Olimex Micro A20: fix wrong boot config
* Remove duplicate depenedency
* Odroid C1: adjust kernel config
2019-08-16 19:21:12 +02:00
Aditya Prayoga
e261c6f828 Move mvebu DEFAULT, NEXT and DEV branch to next kernel (LTS) and U-boot #1426 (#1487)
* Initial Mvebu RFC https://github.com/armbian/build/issues/1426

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* mvebu: add missing patches

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* mvebu: change making u-boot targets to standard way, adjust patches and config

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* helios4: set default branch to use U-Boot 2018.11

Switch over to U-Boot 2018.11 that has been used for some time in next
branch.

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

* mvebu: helios4: Enable DEV branch

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

* u-boot: Add RTC support on Clearfog and Helios4

Added DM driver for mvebu RTC and enable it on Clearfog and Helios4
configuration.

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

* add boot-marvell.cmd backward compatibility

The patches added missing variable that used on boot-marvell.cmd and
also adjust the some memory addresses to prevent crash due to usage of
fdt_high and initrd_high.

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

* helios4: Added SPI NOR flash target

Build bootable SPI NOR flash image.
Change the boot order to USB -> SATA -> MMC

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

* Restore SPI support on U-Boot 2019.04

* mvebu: kernel: Added Wake-On-GPIO and WoL support

The patch set was missing during transition.

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

* [#1429] SolidRun's ARMADA A388 SOM U-Boot ODT Update

Old versions of U-Boot did not configure correctly the ODT on data
signals of DDR RAM on SolidRun's ARMADA A388 SOMs.

According to SolidRun Knowledge Base, the changes already pushed to
mainline U-Boot. But then it was overwritten when Marvell DDR Training
Tool updated

[URL]
https://developer.solid-run.com/knowledge-base/armada-38x-som-u-boot-odt-update/

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

* [#1429] mvebu: u-boot: Add revision id for Armada 38x B0

Added patch for SolidRun U-Boot v2018.01 and
for Helios4 U-Boot v2018.11

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

* clearfog: Added SPI NOR flash target

Build bootable SPI NOR flash image.

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

* mvebu: clearfog: DEV branch use mainline U-Boot

Also move clearfog base patch into its own board folder.

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

* mvebu: enable U-Boot uart target

Normal MMC image can be used for uart boot using following command:

./tools/kwboot -b u-boot-spl.kwb /dev/ttyUSBX

But on Helios4, the SPL failed to continue the booting process if ECC is
enabled, so disable it.

Since the usage of uart boot is more for rescue/debug, disable autoboot.

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

* mvebu: NEXT branch use mainline U-Boot

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

* mvebu: helios4: fix fancontrol related bug during buster testing

- On kernel 4.19, cpu thermal sensor changed the name from
armada_thermal into f10e4078.thermal. Added this new name to udev rules
- Since DEFAULT branch now use kernel 4.14, update fancontrol
configuration
- Load lm75 kernel module
- On kernel 4.19, cpu temp reading about 20 degree C lower, update
fancontrol configuration.

[URL]
https://forum.armbian.com/topic/10214-clearfogpro-possible-change-in-temperature-reporting-between-414next-and-419dev

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

* mvebu: helios4: Override vendor provided fancontrol unit

systemd emit following message on dmesg

systemd[1]: /lib/systemd/system/fancontrol.service:9: PIDFile=
references path below legacy directory /var/run/, updating
/var/run/fancontrol.pid \xe2\x86\x92 /run/fancontrol.pid; please update
the unit file accordingly.

Override and change the value in the unit file to remove the message.

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

* mvebu: DEV branch use its own u-boot patch folder

The patches are copied over from u-boot-mvebu-next

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

* mvebu: u-boot: Make clearfog model distinction more obvious

While at it, also change SerDes LANE4 into USB 3.0 on Clearfog Base.

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

* lib: Use apt-get install instead of dpkg on install_deb_chroot()

dpkg -i does not install dependencies required by the package.
This is needed if the BSP package requires other package that is not
installed during debootstrap.

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

* config: mvebu: helios4: Move various tweak to family_tweak_bsp()

Various tweak in family_tweaks_s() only applied to SD card image.
Move it to family_tweaks_bsp() so it will also included on the BSP
package and applied to existing user.

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

* config: mvebu: helios4: Add /etc/modules to BSP

On kernel 4.19, user need to modify the /etc/modules to add lm75 kernel
module. Pack the file into BSP so user no longer needed to modify it.

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

* mvebu: kernel: Make zbud as built-in module

To remove the following error:
[    1.705485] zswap: default zpool zbud not available
[    1.705488] zswap: pool creation failed

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

* bootscripts: mvebu: Add default value for spi_workaround

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

* mvebu: kernel: Backport armada_thermal changes to 4.14 (#1452)

On kernel 4.19, armada_thermal driver has been fixed to address
Marvell's Errata #132698 (The changes first appear on LK 4.16). The
result is temperature reading is around 20 degree Celsius lower.

Currently armbian-motd apply -20C tweak for both LK 4.14 and LK 4.19
which is incorrect. Instead of adding some logic on what condition to
apply the tweak, it is better to remove the tweak and patch the kernel
instead.

Revert commit b3dd4e9 ("[ mvebu ] Put back Armada temperature tweak in
motd")
which is part of #1421 solution.

[URL]
https://forum.armbian.com/topic/10214-clearfogpro-possible-change-in-temperature-reporting-between-414next-and-419dev/

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

* mvebu: helios4: unified fancontrol config

Since LK 4.14 on DEFAULT branch already patched and the temp reading is
same as LK 4.19 on NEXT branch, it is no longer needed to separate
fancontrol configuration file.

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

* u-boot: helios4: Remove rev id patch

The patch is already applied in helios4 repo, no need to have it in
armbian.
This revert helios4 part of commit 7411c55

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

* u-boot: clearfog: enable PCIe support and PCIe reset

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

* u-boot: clearfog: add boot-marvell.cmd backward compatibility

The patches added missing variable that used on boot-marvell.cmd and
also adjust the some memory addresses to prevent crash due to usage of
fdt_high and initrd_high.

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

* mvebu: helios4: tweak regarding temperature setting

Make fan speed similar compared to pre-patched armada-thermal. Target
PWM value around 70 during idle.

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

* config: sources: clearfog to use u-boot 2018.01 for NEXT branch

This changes also affect Helios4. Moved the shared U-Boot source setting
back to Helios4 for NEXT branch.

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

* config: boards: build Stretch image for Clearfog and Helios4

Also remove DEV from Helios4 CLI_TARGET

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

* kernel: mvebu-next: Disable access to SPI Flash

User need to set spi_workaround=yes to enable SPI Flash access and lost
access to internal SATA.

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

* mvebu-next: adjust kernel config

* mvebu-dev: bump to 5.2 and adjust kernel configuraion. Tested for building.

* Adjust kernel config, add AUFS

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* mvebu-next: Adjust kernel config, add debug GPIO

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

* mvebu-dev: separate Clearfog Base U-boot configuration file and patch

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2019-07-31 12:51:00 +02:00
Igor Pecovnik
abd3b20696
odroidc1: set fixed mac address at first boot 2019-07-25 16:27:17 +02:00
Piotr Szczepanik
9b10c1c1f3 Added avafinger's and Igor's patches for cpu monitoring in htop (#1466) 2019-07-24 09:15:03 -04:00
Thomas Kaiser
443b460ad8
Better check for /tmp being a tmpfs. Closes #1473 2019-07-23 17:05:55 +02:00
Igor Pečovnik
4acb3795d6
imx6: make all u-boot targets, fix 4.14.y, remove unfunctional BT patch, enable DEV branch ... all variants tested (#1438)
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-07-01 07:21:17 +02:00
zhangn1985
cf40c549ac extra firmware: check USE_MAINLINE_GOOGLE_MIRROR (#1427)
if users want to use google mirror for mainline linux, then he/she has
same reason to use google miiror for linux firmware.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-06-26 07:10:26 -04:00
Igor Pečovnik
4a3ca5e075
Cosmetics
Suppress console error for A20 boards that can have battery but its not detected
2019-06-25 10:12:57 +02:00
Gauthier Provost
3ebd38e86a [ helios4 ] add custom armbian-motd to change temp threshold in motd 2019-06-22 12:33:19 +08:00
Gauthier Provost
44189b87a1 [ general ] Make motd warning threshold temperature customizable
If required default warning threshold temperature, which is 45C for CPU and 40C for Ambiant, can be overwrite in /etc/default/armbian-motd by setting values

* CPU_TEMP_LIMIT=
* AMB_TEMP_LIMIT=
2019-06-22 12:28:14 +08:00
Gauthier Provost
b3dd4e9d9b [ mvebu ] Put back Armada temperature tweak in motd 2019-06-22 11:53:37 +08:00
Igor Pečovnik
141ac0f7cd Bugfix: check LOG_TYPE only at script start (#1417)
Only at start of the service since checking spins up attached mechanical drives and we don't want that. https://forum.armbian.com/topic/10406-armbian-ramlog-spin-up-all-hdds-once-every-day/
2019-06-17 07:25:01 +02:00
Igor Pecovnik
12fd79bcc7
Show warning when image is compiled from DEV branch.
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-06-14 21:33:42 +02:00
Igor Pecovnik
858ff1d47b
Debian Buster desktop making bugfix/workaround https://bugs.debian.org/cgi-bin/bugreport.cgi\?bug\=923289 2019-06-14 20:17:25 +02:00
Igor Pecovnik
7e66e95962 [ general ] add tiny debug option to track installed packages per each rootfs cache (internal feature), htop bugfix, sunxi upstream patch 2019-06-12 21:20:03 +02:00
Igor Pečovnik
da86ab5df5
Cosmetics (#1404)
- changed display manager to lightdm by default and remove nodm completly
- desktop login manager enabled by default, toogle can be done with armbian-config
- added URL to the build script and commit hash to /etc/armbian-release file
- added debconf-utils,html2text,mmc-utils,sunxi-tools to the base and additional pkg list
- added synaptic package manager and onboard keyboard to the desktop base
- changed motd console welcome text to: Welcome to Debian Stretch with Armbian Linux 5.1.6-sunxi
- added "logout" to the panel/menu
- added normal users to additional groups: disk tty users games
2019-06-11 00:24:46 +02:00
Igor Pecovnik
d172d37dd8 [ rk3399 bluetooth ] Fixed and tested on Rockpi4, NanopiM4, Orangepi RK3399 2019-06-09 17:15:02 +02:00
Igor Pecovnik
c936995b61 [ rockpi-4b ] Enable Bluetooth 2019-06-09 09:23:15 +02:00
Thomas McKahan
ad2588ede2 [ rockchip next ] improve ALSA config
https://github.com/armbian/build/issues/1367
2019-06-09 00:18:58 -04:00
Igor Pečovnik
5473fe28d8
Soft video playback on full screen
https://github.com/armbian/build/pull/1379
2019-05-23 21:30:24 +02:00
Igor Pečovnik
7a58184037
Merge pull request #1381 from OLIMEX/fix_hardware_optimization
Fix block iosched for kernel 4.20
2019-05-23 21:28:13 +02:00
Stefan Mavrodiev
20c4209a3b Add rootdev= to armbianEnv if missing 2019-05-23 13:27:50 +03:00
Stefan Mavrodiev
4450e3a037 Fix block iosched for kernel 4.20 2019-05-23 11:16:18 +03:00
Igor Pecovnik
6abbb74cbc [ general ] Unattended upgrades are disabled by default. This commit gives only sane startup pattern if one wish to enable this feature. Perhaps toggle once lands in armbian-config 2019-05-20 20:03:29 +02:00
Igor Pečovnik
70dc1c1b2f
Cosmetical
Exclude also when syncing to disk
2019-05-20 14:07:48 +02:00
Igor Pečovnik
6429ea8d63
Cosmetical
We don't need to sync this and in some cases it throws out warnings
2019-05-20 12:46:07 +02:00
Igor Pečovnik
ff3bb4265f
Merge pull request #1371 from mzhboy/ups
bug fixes and enhancements
2019-05-18 13:19:20 +02:00
may
80adf4aded [general] fix always downloading linux-firmware.git
clone to new dir 'linux-firmware-git' instead the old
'$plugin_dir/lib/firmware', and then copy files as hardlinks.
2019-05-15 17:33:23 +08:00
Igor Pecovnik
18f6113751 Revert "some enchantments for build scripts (#1364)"
This reverts commit 7f1c5b19cd.
2019-05-15 10:00:23 +02:00
mei
7f1c5b19cd some enchantments for build scripts (#1364)
* downloader aria2 replace curl

aria2 is a fast downloader and it can do much more than curl
 - skip download when target file exists
 - restart an interrupted download session
 - multithreading

* remove duplicate download item

* change btrfs compression to zstd and no force compression

* mkfs.btrfs options '--data single --metadata single --label btrfs'

disable dup(duplication) on microsd card

* [fstab] change mountopts[btrfs] compression method to zstd

lzo is no fater than zstd because the low 4k write performance on my
Samsung EVO+ 32GB microsd card.
meanwhile the best io size is above 32k based on benchmark

* replace dd with truncate, create a sparse disk image

* create btrfs subvolume by default

subvolume @ as rootfs, mount at /
subvolume @home as /home, mount at /home

* fix extraargs in armbianEnv.txt

* remove tmpfs mount on /tmp

A zram block device will mount on /tmp by
/usr/lib/armbian/armbian-zram-config.

And instead, mount /media as tmpfs.

* [rsync] add '--inplace' option, optimize for btrfs

* [general.sh] change ntp server to pool.ntp.org

* [general] new option to setup btrfs compression method

for support old and boring 3.x kernels

* [general] set btrfs space cache based kervel version

kernel version above 4.5 select 'v2' as default

* [btrfs] BTRFS_COMPRESSION accept compression ratio

BTRFS_COMPRESSION=zlib
BTRFS_COMPRESSION=zstd:5
BTRFS_COMPRESSION=zstd:12 are acceptable

* [btrfs] set btrfs compression to lzo when input is illegal

* [general] new option DOWNLOAD_MIRROR to select download mirror

current DOWNLOAD_MIRROR=china is used
the mirror is provided by tsinghua university

* [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR

MAINLINE_MIRROR=google, use google provided mirror
MAINLINE_MIRROR=tuna, use tsinghua provided mirror
leave it empty, use official git.kernel.org

* fix btrfs default compression

* display $fscreateopt

* display_alert BTRFS_COMPRESSION

* try fix BTRFS_COMPRESSION variable not working

* debug fetch_from_repo

* configuration.sh debug BTRFS_COMPRESION

* update logic

* debug checking btrfs compression

* fix variable check,fix local variable usage

* [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR

MAINLINE_MIRROR=google, use google provided mirror
MAINLINE_MIRROR=tuna, use tsinghua provided mirror
leave it empty, use official git.kernel.org

* [general] new option DOWNLOAD_MIRROR to select download mirror

current DOWNLOAD_MIRROR=china is used
the mirror is provided by tsinghua university

* Revert "try fix BTRFS_COMPRESSION variable not working"

This reverts commit 9814cfb054.

* Revert "debug fetch_from_repo"

This reverts commit ba571f0d89.

* add default compression method for mountopts

* remove useless var

* remove debug

* remove debug

* [general] set btrfs space cache based on kernel version

kernel version above 4.5 select 'v2' as default,
below 4.5 select 'v1' as default

* [general] reintroduce USE_MAINLINE_GOOGLE_MIRROR

* [general] case replaces 'if xx ;elif xxx;fi'

* [general] fix always downloading linux-firmware.git

clone to new dir 'linux-firmware-git' instead the old '$plugin_dir/lib/firmware'
,and then copy files as hardlinks.

* [general] create soft link instead of moving directory

* [btrfs] change rootfs subvolume name to @$RELEASE

now, the rootfs subvolume looks like @stretch,@bionic
it is possible to use different distribution in the same btrfs
partition.
2019-05-14 18:37:00 +02:00
Igor Pečovnik
cde51f556a
Merge pull request #1370 from wtfo-guru/fix_truncate_logs
added missing mail logs, and firewalld log
2019-05-14 18:29:21 +02:00
Quien Sabe
d3257d247c added missing mail logs, and firewalld log 2019-05-14 09:35:53 -04:00
Igor Pečovnik
f67464e03f
Show 1-wire in motd only if declared
in /etc/default/armbian-motd
2019-05-14 15:27:14 +02:00
Igor Pečovnik
a5fba366ce
Update armbian-motd.dpkg-dist 2019-05-14 15:25:49 +02:00
Igor Pečovnik
b88d999b3b
Tiny improvements 2019-05-14 14:13:37 +02:00
Igor Pečovnik
86b8fac8ef
Small improvements
for not showing errors when w1 is enabled but device not present
2019-05-14 12:24:43 +02:00
Igor Pečovnik
5d94f08deb
Optional temp readings
Display W1 temp in MOTD as ambient if present
2019-05-14 12:00:20 +02:00
Igor Pecovnik
30fd3162ef [ general ] added htop to be build from sources, disco and buster only, our motifications will be added later. 2019-05-13 10:34:57 +02:00
Igor Pecovnik
552db3d323 Buster and Disco releated adjustements. 2019-05-13 07:47:29 +02:00
Igor Pecovnik
438133dac4 [ meson64 ] set fixed cloned mac in the first run, adjust patches for DEV branch 2019-05-05 23:32:29 +02:00
Igor Pečovnik
7368b0bfe1
Window was too big
Adjusting to sane values
2019-05-04 10:03:36 +02:00
Igor Pečovnik
4da09e425e
Cosmetical
Fixing broken "warning" display
2019-05-04 09:38:26 +02:00
Igor Pečovnik
783c2d0e25
Bugfix
https://github.com/armbian/build/issues/1359
2019-05-02 08:14:09 +02:00
Igor Pecovnik
04f9f85794 [ rk3399 & general ] Move RK3399 to U-boot 2019.04 (briefly tested on T4+). Adding hostname to htop 2019-04-28 22:57:42 +02:00
Igor Pecovnik
21478fed59 Nanopi boards - set consistent naming 2019-04-19 19:58:08 +02:00
Stefan Mavrodiev
1cd0a8b486 Place Armbian wallpapper also on monitor 1 2019-04-08 16:04:38 +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
Igor Pecovnik
a08d72b4b8 [ rk3399 default ] enable workaround for fixed MAC 2019-03-10 18:28:51 +01:00
ThomasKaiser
59e8085ca1 Bugfixes and remove unused function in nand-sata-install 2019-03-08 17:58:46 +01:00
ThomasKaiser
71e7ad2e02 Avoid kernel 5.x surprise 2019-03-08 17:38:30 +01:00
ThomasKaiser
6631b18e79 Use only 1 zram device for swap with modern kernels 2019-03-08 16:55:34 +01:00
ThomasKaiser
e871577202 Enable optional zram backing device 2019-03-08 16:40:34 +01:00
lanefu
5f83200147
Merge pull request #1299 from wtfo-guru/fix_path_issue
fix path issue for cron.d script
2019-03-05 23:07:58 -05:00
Quien Sabe
52eaaf69c9 updated per recommendation, reference https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617898#22" 2019-03-05 11:34:25 -05:00
Thomas Kaiser
10f9ea7db5
Avoid temp file vulnerabilities 2019-03-04 07:52:46 +01:00
Igor Pečovnik
824fcbf744
Merge pull request #1300 from helios-4/helios4-wol
[ helios4 ] Enable WoL for eth0
2019-03-03 17:33:31 +01:00
Anton-Latukha
f2e183da34 nand-sata-install: different errors - different codes & debug help 2019-03-02 22:22:19 +02:00
Anton-Latukha
b37f4e13c8 nand-sata-install: errors should go to stderr and have clear message 2019-03-02 22:22:17 +02:00
Anton-Latukha
85e0d124cd nand-sata-install: errors should have the error exit code 2019-03-02 22:20:34 +02:00
Anton-Latukha
b2075df485 nand-sata-install: fix exit -1 - impossible exit code
Someone wrote ridicilous stuff. There is only one exit code range - [0-255].
There is no negative return codes in Unix shells.
2019-03-02 20:33:52 +02:00
Anton-Latukha
fcd95f997e nand-sata-install: deprecated egrep -> grep -E 2019-03-02 20:30:54 +02:00
Gauthier Provost
194d887ab1 [ helios4 ] Enable WoL for eth0 2019-03-02 22:59:36 +08:00
Quien Sabe
9dd404c4aa fix path issue for cron.d script 2019-02-26 16:22:36 -05:00
Anton-Latukha
120e898ddd nand-sata-install: $n, ${n} -> "$n" 2019-02-25 18:54:54 +02:00
Anton-Latukha
328737f9c9 nand-sata-install: $2 -> "$2" 2019-02-25 18:54:54 +02:00
Anton-Latukha
e282aa5781 nand-sata-install: ${1} -> "$1" 2019-02-25 18:54:54 +02:00
Anton-Latukha
34615eba0d nand-sata-install: "..." -> literal '...' 2019-02-25 18:54:54 +02:00
Anton-Latukha
05fc98bdcf nand-sata-install: $1 -> "$1" 2019-02-25 18:54:49 +02:00
Igor Pečovnik
ae07298011
Merge pull request #1295 from Anton-Latukha/nand-sata-install-fx02
nand-sata-install: properly quoting some variables
2019-02-25 09:08:17 +01:00
Anton-Latukha
b6576cdb6b nand-sata-install: ${root_partition_device} -> "${...}" 2019-02-24 16:54:17 +02:00
Anton-Latukha
7b515b8b88 nand-sata-install: $DIR -> "$DIR" 2019-02-24 16:51:58 +02:00
Anton-Latukha
188f474628 nand-sata-install: ${root_uuid} -> "${root_uuid}" 2019-02-24 16:50:18 +02:00
Anton-Latukha
ed7a4d7757 nand-sata-install: ${TempDir} -> "${TempDir}" 2019-02-24 16:50:10 +02:00
Anton-Latukha
f142dc8ac3 nand-sata-install: rm unused nanddevice variable 2019-02-24 16:22:47 +02:00
Aditya Prayoga
9f9e92a415 helios4: tweak fancontrol config
User reported HDD high temp during idle, due to fan stop spinning.
Readjust the fancontrol configuration to always run in low speed during
idle.
2019-02-18 17:49:36 +08:00
Igor Pečovnik
f9f104568f
reverting 2019-02-08 14:57:21 +01:00
Igor Pecovnik
1541de32b8 [ rk3399 ] Enable bluetooth on M4, T4, Neo4, ... 2019-02-06 17:58:17 +01:00
Igor Pečovnik
0ec0f39aaa
bugfix
https://forum.armbian.com/topic/9525-armbian-firmware-regulatorydb/
2019-02-03 16:09:43 +01:00
Igor Pecovnik
7e38968709 [ add orangepi rk3399 ] Board boots, wifi and net works, can be installed on eMMC but various troubles at this point. It's dirty DT copy from stock kernel. Need further rework ... 2019-01-25 20:48:57 +01:00
guillem
ddc71e0cf4 - Corrected visualization of the gauge, no flickering now 2019-01-23 16:09:12 -03:00
guillem
c4af662147 - Corrected misspelling on the comments 2019-01-23 14:41:41 -03:00
guillem
5848826e45 - Increased 10 times the speed copy of the rootfs, the rsync is stuck by dialog. Now it's launched on background
and communicate via files on the tmp
2019-01-23 14:38:05 -03:00
Igor Pecovnik
48d0393a6f [ hostapd ] bugfix. add patchlist 2019-01-22 21:00:21 +01:00
Igor Pecovnik
ec215db23d [ extras-buildpkgs ] bump hostapd to 2.7, remove deprecated patches 2019-01-21 19:29:29 +01:00
Igor Pečovnik
2c3035fff0
Merge pull request #1241 from helios-4/helios4_update
[ General ] Move bootscript update to nand-sata-install
2019-01-21 14:38:21 +01:00
Gauthier Provost
93ba3ec3dd [ General ] Move bootscript update to nand-sata-install 2019-01-21 11:44:24 +08:00
Igor Pečovnik
80e32ef7d1
improvement
https://github.com/armbian/build/issues/1235
2019-01-19 09:34:55 +01:00
karolszklarski
e00fe9814f
Target can be not only partition, but also md raid
Target of nand-sata-install can be not only partition, but also md raid
2019-01-18 19:13:13 +01:00
Aditya Prayoga
9116aa2da3 helios4: Remove fancontrol patch
After some discussion, it is no longer needed to put the fan to low
speed / stop during exit. So remove the patch that alter default
behavior during exit.

[URL]
https://forum.armbian.com/topic/6033-helios4-support/?do=findComment&comment=69732
2019-01-18 02:16:00 -08:00
Igor Pecovnik
34ccb5d625 [ nand-sata-install cosmetics ] Suppress error on probing, bigger message for bootloader write, adding "eMMC". It works - at least where eMMC = SD card 2019-01-08 18:06:22 +01:00
Igor Pečovnik
5beb95d8f9
Merge pull request #1216 from helios-4/helios4_update
U-boot SDcard update changes
2019-01-08 15:53:41 +01:00
Gauthier Provost
dd15668412 [ general ] Add update u-boot on SD option in nand-sata-install
Postinst script is being remove from u-boot package. Therefore now we 
provide a way to user to update (rewrite) u-boot on their SD card.
2019-01-08 18:12:02 +08:00
Gauthier Provost
e72815ca72 [ general ] Clean-up function names in nand-sata-install 2019-01-08 16:55:39 +08:00
Igor Pečovnik
ccf7f50b9b
Merge pull request #1212 from helios-4/helios4_update
Helios4 update
2019-01-08 07:19:52 +01:00
Gauthier Provost
795efc6e79 [ helios4 ] Use a more deterministic path for ambient source temp. 2019-01-08 12:55:01 +08:00
JMCC
e6563d44bd Set performance GPU devfreq governor for RK3399 2019-01-05 00:47:20 +01:00
Gauthier Provost
128000e8c9 [ helios4 ] Improve temperature reading. Issue #1135
* Use mvebu thermal_zone0 as temp source for armbianmonitor
* Remove -20C tweak 
* Add ambient temp source to motd
2019-01-04 23:55:05 +08:00
JMCC
14282dae08 Set permissions for multimedia nodes in RK3288 & RK3399 2019-01-03 20:27:34 +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
077a7f8590 [ sunxi-dev ] Pinebook works now OOB with all patches but with a dirty workaround - PWM not operational, bluetooth added, but could not get it working yet ... 2018-12-18 18:06:18 +01:00
Igor Pečovnik
f2b69cdb97
[ firstrun mac setting ] Bugfix 2018-12-17 19:48:37 +01:00
Gauthier Provost
a8abb6352e Helios4: Fix mdadm-fault-led.sh 2018-12-14 16:29:51 +08:00
Gauthier Provost
7d3a57f4d3 Helios4: Add mdadm script and config to display error on Fault LED 2018-12-04 15:25:16 +08:00
Igor Pečovnik
359caf9a31
Disable due bug
https://github.com/armbian/build/issues/1165
2018-11-26 11:57:43 +01:00
aprayoga
e71d1560f0 Helios4: various updates (#1161)
* helios4: next branch use u-boot 2018

use new u-boot based on upstream 2018

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

* helios4: Tweak fancontrol configuration

Adjusted MINSTART and MINSTOP to suit both old and new fan.
Adjusted TEMP threshold so fan would stop or run in minimal speed when
the system idle.
Fixed wrong MINPWM value.

URL:https://wiki.kobol.io/pwm/#configuration-file
Signed-off-by: Aditya Prayoga <aditya@kobol.io>

* kernel: mvebu-next: use upstream helios4 dts

Helios4 device tree has been merged on upstream since 4.19.
Rework the patch to produce same device tree.

URL:https://patchwork.kernel.org/patch/10449393/

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

* Helios4: Use boot-mvebu-next bootscript

Use boot-mvebu-next.cmd that make use of upstream's Generic Distro
Configuration.
Since loadaddr and fdt_addr varibales are no longer required, remove the
patch.

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

* Helios4: mvebu-next: Add workaround for SPI and SATA concurrent access issue

Concurrent access on SPI NOR and SATA drives can lead to unstable SATA.
Therefore as workaround, disable SATA controller when SPI flash access
is needed and make it as user configurable item in armbianEnv.txt

This workaround might applies to Clearfog too.

Refer to
Commit 59af84c07c ("Helios4: Add SPI bootloader install feature
(#1126)")

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

* Bootscripts: Fixed boot-mvebu-next.cmd

The environment setting (armbianEnv.txt) is loaded to RAM located on
${load_addr} but the env import use wrong address (${pxefile_addr_r}).

bootargs still expect ${boot_interface} which carried over from boot-
marvell.cmd. Upstream's distro configuration use ${devtype} instead.

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2018-11-23 15:39:23 +01:00
Paolo
60b4166a8a Add rk3288 xt-q8l-v10 CSC board (#1158)
This merge request contains various files which add support for xt-q8l-v10 boards (TVBox) equipped with Rockchip RK3288 SoC, AP6330 WiSoC (BCM4330 WiFi + Bluetooth), 2 GB DRAM (LPDDR2 or DDR3), 8 Gb eMMC, Gigabit Ethernet, 3 USB (1 OTG), 1 microSD slot, SPDIF optical output, 1 HDMI.

Kernel patches:

This thouches all three linux-rockchip-* kernelconfigs, just adds brcmfmac and brcmutil modules and remote controller support. default flavor activates rockchip own remote controller driver, next and dev use the mainline GPIO CIR driver (dev has lirc userland support activated too).

About the remote controller, an additional kernel module is added to the existing keymaps which is activated via device tree.

About possibly clashing patches assert-phy-reset-when-waking-up-in-rk3288-platform.patch should be checked against other rk3288 boards because it addresses an errata in rk3288 which causes the USB Host ports to stop responding when exiting from autosleep. On my device if I connect the first USB device when the system is already running, the USB Host gets stuck without this patch. Probably to work correctly on other platforms the device tree should include the proper reset lines of the USB PHYs (for reference, check patch/kernel/rockchip-dev/xt-q8l-v10-add-device-tree.patch starting from line 869).

Patch 1-2-regulator-act8865-add-restart-handler-for-act8846.patch adds a restart handler which allows reboot using SIPC bit on act8846 power regulator. Possibly MiQi board is affected (is reboot working there?), others (tinkerboard) should not care.

Patch brcmfmac-add-ap6330-firmware.patch adds firmware file names for ap6330 , should be harmless in other cases.

Patch 0010-GPU-Mali-Midgard-remove-rcu_read_lock-references.patch is from Miouyouyou. It should be harmless, it was suggested by him to do some tests with devfreq

Other patches just add the proper device trees, Kconfig and bits for supporting the board as a regular kernel supported board and should not interfere with anything else

U-Boot patches:

All the patches for u-boot are per-board, so nothing is added which may interfere with other existing boards here. They include the device tree and u-boot config and also a couple of patches to support the silergy power regulators driving current to CPU and GPU

* Initial commit to provide kernel and u-boot configuration and device trees for xt-q8-v10 as patches
Modification to rockchip config to add initialization bits for xt-q8-v10

* Committing correct path for rk3288_ddr_400Mhz... rockchip blob, moved assembling into another section to produce
immediately an u-boot working binary

* Enabled broadcom fmac driver in rockchip-next config

* Changed name definition of rk3288-xt-q8-v10 board to "TVBox"
Added bits to include support AP6330 and binary firmwares into the final image

* Fixed device tree file name in related patch, added patching of Makefile to produce the device tree binary accordingly

* Fixed xt-q8-v10 device tree patch
Added brcmfmac driver to rockchip dev and default kernel configs

* Syncing with upstream

* Splitted add-xt-q8... kernel patches into two separate patches

* Fixed bad extension while adding dtb in makefile for rockchip-default configuration
Updated device tree patches for all rockchip confs

* Enable mmc0 and usb in u-boot config
Fixed again makefile patch for kernel next

* Adding patches to reset the USB phy when kernel requires a reset, fixes autosuspend issue

* Changed xt-q8-v10 to proper xt-q8l-v10 in every string and every filename
Added power hold to u-boot, so now the device will boot and stay turned on without the need for the OTG cable anymore

* Changed names from 'Q8' to proper 'XT-Q8L-V10' in device tree patch files

* Legacy kernel device tree:
Fixed bluetooth gpio pin clashing
Fixed HDMI gpio pin clashing
Added support for PWM-based IR-Receiver, added driver in kernel default config too
Various other fixes to avoid some complaints from the kernel

* Added booting bluetooth systemd service for AP6330 (xt-q8l-v10) that loads patchram and invokes hciattach
Minor fixes to -next and -dev device trees for xt-q8l-v10

* Disabled OTG USB port in u-boot due to long timeout during initialization
Fixed warning during u-boot dts compilation
Added emmc as second boot device in dts

* Adding myself to licensing

* Committing modifications to device trees

* Fixed dmac_bus_s explicitly set to unused dmac, restored right dmac in xt-q8l-v10 dts only
Change PLL_CPLL frequency in device tree to 408 Mhz to avoid fractional divisor warnings

* Added proper xt-q8l-v10_rk3288 configuration to u-boot, now appearing in config menu and
correctly selectable as a real target
Fixed typo in device tree from rockchip

* Fixed missing semicolon in device tree for default configuration
Fixed patch files for u-boot appending themselves to files on each compilation

* Added bits to enable power to USB ports in u-boot, thus enabling booting from USB devices (only USB host port for now)

* Changed u-boot binary creation using the rockchip SPL properly

* Added boot order for xt-q8l-v10: sdcard, usb0, eMMC, network

* Added bionic:next in beta config for xt-q8l-v10 board

* Changed some minor bits in xt-q8l-v10 device tree files, added missing bits to dev flavour
Added patches to introduce fairchild fan53555/silergy82x regulators to u-boot and enabled in xt-q8l-v10 device tree

* Updated u-boot to version v2018.03 for xt-q8l-v10. Other rk3288 boards will gain v2018.05 from main armbian fork
Removed pre-reloc labels in u-boot device tree because they are not necessary since we don't use u-boot SPL for xt-q8l-v10
Removed vmmc-supply and vqmmc-supply in u-boot device tree to avoid hang on boot

* Tidied up a bit device trees, in particular some modifications are made to power regulator properties comparing them against the original q8l device tree
Removed unnecessary dummy regulator, removed unnecessary capacities to embedded eMMC
Disabled unused USB host
Removed vmmc-supply and vqmmc-supply from emmc section because it causes hang in u-boot v2018.03 and newer

* Restored previous regulator in u-boot dts
removed assert phy reset USB patch from rockchip-dev because of some upstream incompatible changes

* Added patch to enable IRQ for Midgard drivers which caused massive slowdown on dev kernel
Changed u-boot if-code for xt-q8l-v10 in rockchip.conf
Removed references to rk3288-linux.dtsi in xt-q8l-v10 device tree for default kernel

* Committing effective removal of USB reset assert for dev kernel
Committing changes to u-boot device tree

* Added patch to disable USB power down for rockchip devices broken on latest kernel

* Removed usb dwc2 patch to reinject it from specific branch

* Reverting some voltage changes for xt-q8l-v10 device in rockchip-dev

* Reverting some voltage changes for xt-q8l-v10 in u-boot section

* Added patch to make USB ports working again on rockchip devices with mainline
kernel >= 4.18

* Changed the 0 into false

* Moved xt-q8l-v10 u-boot patches into board_xt-q8l-v10 directory

* Changed some minor things in rockchip-dev dts for xt-q8l-v10, added mali midgard driver to dev kernel config

* Added devfreq support for Mali in rockchip-next flavour

* Remove manually applied patch (0007-drivers-drm...) because it has been
added to armbian main repo

* Removed duplicate patch which has added to main armbian repository

* Tidied up regulators for default/next/dev rockchip flavours for xt-q8l-v10, disabling those regulators which are not tied to anything
Enabled voltage regulator to make SPDIF connector work (thus not tested because I have no DAC)
Changed rockchip-dev and rockchip-next config files to enable gpio-ir-receiver module to enable bundled remote IR controller, including kernel patch for keymap

* Enabled back regulator REG7 to allow propert bluetooth functionaly

* Minor changes to u-boot device tree for xt-q8l-v10
Added patch to set act8846 SIPC to correctly reboot the device (thus require some power-hold at reboot to make reboot fully working)

* Fixed u-boot device tree

* Added configuration bits to support TPL in u-boot for xt-q8l-v10 (TPL is thrown away though) to allow faster reboot times and achieve a working reset feature activating power hold gpio pin as soon as possible. gpio pin is hardwired into spl_board_init() u-boot code because it is not possible to let it work via device tree
Fixed OTG USB port in u-boot, allowing devices detection and booting
Added proper vbus-supply properties for USB controllers in u-boot dts, so u-boot activates USB vbus itself

* Fixed dts makefile patching for next and dev rockchip kernel

* Fixed fdt_file renamed to fdtfile in armbianEnv.txt

* Changed xt-q8l-v10 board config as per recomendations

* Moved xt-q8l-v10 configuration to CSC
Restored linux-rockchip-* configurations, enabled brcmfmac driver, GPIO remote controller driver and lirc kernel compatibility interface
Polished a bit rockchip.conf

* Add patch to brcmfmac driver to search for ap6330 firmware
Removed copy-work from rockchip.conf about ap6330 firmware for xt-q8l-v10 and tidied up
Avoid using brcm_patchram_plus in ap6330-bluetooth-service putting proper firmware file in /etc/firmware for hciattach do firmware uploading itself

* Fixed bcm4330 bluetooth firmware linking for hciattach used by ap6330-bluetooth.service

* Removed foreign test patches from xt-q8l-v10 u-boot directory
2018-11-22 07:04:19 +01:00
Igor Pecovnik
a979430e9b [ bsp ] adding axp813 way of displaying battery status on Olimex Lime A64 and similar boards 2018-11-16 14:00:01 +01:00
Igor Pecovnik
e7657a5991 [ bugfix ] Fixing default Chromium preferences file https://forum.armbian.com/topic/3327-asus-tinkerboard/?do=findComment&comment=65807 and adding optional DEFAULT_CONSOLE variable which can override default console settings per board 2018-11-15 19:03:57 +01:00
chwe17
d224be3d42 Mt7623 (#1153)
eMMC install
2018-11-12 07:17:42 +01:00
Igor Pečovnik
efa87b1fb8
Bananapi R2 (#1151)
* Initial commit BPi R2:
Currently working/not working:
- u-boot:
	- builds with minor issues
	- patching and cleanup happens on 'https://github.com/chwe17/u-boot-mt'
- next (https://github.com/frank-w/BPI-R2-4.14)
	- boots with minor issues
	- ETH doesn't work with nm
	- sata works
	- no wifi (needs driver from: https://github.com/frank-w/BPI-R2-4.4)
	- USB not working (xhci-mtk 1a1c0000.usb: fail to get vbus) needs investigation
	- appended device tree is needed due to u-boot doesn't work with fdt (kernelpacking needs adjustemts e.g. cat zImage dtb > zImage-dtb
- dev (kernel.org master)
	- untested, needs adjustments in config (e.g. CONFIG_LOCALVERSION="")
	- since no defconfig is available config is based on frank-w 4.16 Kernel
	- Kernel builds without issues
	- manual packing of kernel and dtb similar to next
The board boots, serial console is available but everything else must be expected as not working!
- to do:
	- u-boot needs a cleanup
	- binary blobs needs investigation
	- eMMC is **not tested** and needs for sure adjustements! (don't try nand-sata-install!!!)
	- bootscript isn't tested (only manual boot over u-boot console at the moment)
	- both kernelconfigs aren't 'armbian standard' modules need to be adjusted

Only use it when you know're familiar with u-boot commands!

* Small fixes, add bootscript
- add bootscript for patched u-boot (needs patching of u-boot, currently under investigation and not working properly)
- revert cat zImage dtb > zImage-dtb (cause not working)
- first cleanup of dev kernelconfig (remove CONFIG_LOCALVERSION="")

* Minor fixup
-kernelconfig for next was adjustet so that USB is recognized
-firt bootscripts was written to boot with source command (doesn't work 100% reliable)
-slightly adjustd boardconfig (e.g. bootscript)
must still be considered as early wip!

* small update (FDT works now)
-working bootscript
-adjusted boardconfig
-earlyprintk activated in kernelconfig

* First attempt to get ETH working
-all interfaces are bridged together
-performance sucks at the moment (not clear if it's related to insane network configuration or I miss something obvious... :P  )

* Major update (see below for changes):
- 4.14 kernel was dropped due to https://forum.armbian.com/topic/7296-bananapi-r2-csc-mt7623-as-new-boardfamily/?do=findComment&comment=55194 and following
	- boot.cmd was adjusted to 'clean' mainline behaviour
	- next build opition and its defaultconfg was removed (at the moment dev only)
- rework of the network default configuration
	- default configuration will be over network.d **not** NetworkManager
	- per default all wired interfaces are bridged together to br0 (still wip)
	- old 'interfaces' configuration was removed
- boardconfig is adjusted (no desktop until I've prove that HDMI works)
- what works/ not works:
	- board boots up without manual u-boot hacking
	- SATA, USB3 (massstorage) is tested and works without issues
	- due to rework of network configuration this is still wip and must be considered as 'not working'

* moved to network.d for configuration of wired network
- renamed bsp packages
- blacklist wired interfaces for NetworkManager
- defined all wired interfaces as br0 in systemd/network
- defined networkd als default renderer for bionic (not tested yet!)

* The houskeeping commit:
- BOARDFAMILY was renamed to mt7623 instead of mt7623n (including patchfolders etc.)
- Network.d has no fully control over wired networkes (block NM from controll, start networkd on firstrun etc.)
- Further cleanup kernelconfig
	- CPU temp is visible from userspace
	- missed switch driver loaded
	- cryptodrivers are there (not tested)
	- still a bunch of work

* Add DMA mem alloc patch
-under testing!

* Add next option (4.17.y) stick dev to master (4.18-rc1 untested)

* minor fixes:
- solve kconfig issues between 4.17 and 4.18
- stick next branch to 4.18
- first attempts to bring up gmac2 (doesn't work currently)

* switch to upstream u-boot
- fix ext4 dependency in patch series
- kernelpacking currently broken

* add bootz & cmd_ext4

* resolved merge conflict

* apply ugly u-boot patch, fix bootscript

* remove unneeded stuff, apply forgotten stuff

* update config for dev & clean up boardconf (remove xenial)

* - drop dev and next, move into default. There is no intention to provide stock kernel
- fixed board description, renamed to WIP, where it can be merged later
- packing boot firmware to the u-boot package
- docker dependencies (aufs will be added later. not essential)
- attached to 4.19.y
- loading armbianEnv.txt
- UUID support (tested)
- enabled ZRAM (tested)
- enabled eMMC install (not quite working properly yet)
- Bionic has some issues with systemd networking.

* gov to ondemand (thermals are conservative anyway), remove unneeded kernelconfigs

* Added AUFS, remove debug from kernel boot parameters, add ath10 mPCI support (which works)

* add power-off-key and rtc

* Added onboard wireless, but it's enabling is disabled by default. Too fragile.

* Change to CSC target
2018-11-08 18:51:42 +01:00
Igor Pecovnik
e5d21eb35c [udoo-neo and udoo] Drop Udoo neo completly, drop udoo default and dev kernel 2018-11-07 14:11:24 +01:00
Igor Pečovnik
b261e4d4c2
[bugfix] enable truncate logs
only if armbian-ramlog is enabled
2018-11-03 07:27:03 +01:00
Igor Pečovnik
423c849511
Merge pull request #1147 from dedalodaelus/master
- Corrected rootfstype added if not present
2018-10-31 15:54:27 +01:00
dedalodaelus
9e018b0ab4 - Corrected rootfstype added if not present 2018-10-31 11:29:42 -03:00
Igor Pecovnik
ae800bb515 [odroid c1] Move to 4.19.y and change its status to EOS. Left in a working state: http://ix.io/1pZa 2018-10-25 12:28:35 +02:00
Igor Pecovnik
88d8a40f1e [small RFC] Set random MAC workarounds for specfic combinations instead of whole family 2018-10-25 11:27:16 +02:00
Igor Pecovnik
b60934a9d0 [small RFC / cleanup] Tweaking script https://github.com/armbian/build/issues/1140 and removing deprecated config file rk3399-dev 2018-10-24 17:21:34 +02:00
Igor Pecovnik
345145f3b6 [bugfix] Set fixed IP address from first randomly assigned one. 2018-10-24 17:01:08 +02:00
dedalodaelus
fd5e899d1d - Corrected the f2fs and btrfs emmc write, due to a missing rootfstype key missing on the armbianEnv.txt 2018-10-22 13:29:42 -03:00
Igor Pečovnik
13abce6d0d
Typo 2018-10-15 10:53:03 +02: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 Pecovnik
1c4340b421 [Rockchip and general] Add upstream patch for K4.4, adjust config to cover https://github.com/armbian/build/issues/1133 and add htoprc to support https://github.com/avafinger/htop-2.1.1_enhanced-version with showing CPU temp out of the box. 2018-10-14 11:20:25 +02:00
Dolf Andringa
b3f52b7028 Fix for issue #1131 (#1132) 2018-10-13 16:42:19 +02:00
Igor Pecovnik
ec53742194 [General bugfix] Set proper permission which were lost by accident 2018-10-12 13:42:44 +02:00
Igor Pecovnik
6fbb6b8777 Proper random MAC workaround for affected boards. Tested on Friendlyelec Nanopc T4 2018-10-10 17:30:07 +02:00
Igor Pečovnik
c8c6c9d96f
Typo 2018-10-09 13:46:07 +02:00
Gauthier Provost
59af84c07c Helios4: Add SPI bootloader install feature (#1126)
* Helios4: Add workaround for SPI and SATA concurrent access issue

Concurrent access on SPI NOR and SATA drives can lead to unstable SATA.
Therefore as workaround, disable SATA controller when SPI flash access
is needed and make it as user configurable item in armbianEnv.txt

This workaround might applies to Clearfog too.

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

* Helios4: Add U-Boot SPI

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

* Helios4: Add SPI bootloader install feature

This will allow to use nand-sata-install to perform the following operations on Helios4 :
- Install bootloader to SPI NOR Flash (Option 5 in Menu).
- Copy RootFS to USB storage in order to boot from SPI with RootFS on USB (Option 6 in Menu).

* Unmount temp mount points in create_armbian() instead of hardcoded /dev/sda
2018-10-08 13:44:36 +02:00
Thomas Kaiser
77d59c69d8
Change wording: Swap --> Zram 2018-10-04 15:40:35 +02:00
Igor Pecovnik
40e5ce955b Permanently disable WiFi powersave. Previous implementation wasn't working on Bionic. Now is. 2018-10-02 07:49:44 +02:00
creativtransfer
575af9d411 Permanently disable WiFi powersave (#1119)
* Create default-wifi-powersave-on.conf 

https://forum.armbian.com/topic/8207-orange-pi-lite2-wireless-support/?do=findComment&comment=63151

Permanently disable wifi powersave

* Permanently disable WiFi power save

* Permanently disable wifi powersave
2018-10-01 12:08:47 +02:00
Igor Pečovnik
00f3406cda
Bugfix
Absolute path is needed here
2018-10-01 09:07:26 +02:00
ThomasKaiser
0406fc3df0 Some RPi-Monitor installation tweaks
Memory template still not touched therefore only bogus values reporting
2018-09-28 16:00:32 +02:00
ThomasKaiser
624132790f Clean up armbian-hardware-monitor
systemd-analyze blame: prior 4.506s, after 174ms
2018-09-27 23:54:30 +02:00
ThomasKaiser
b283ddb7f9 Add virtual memory settings to monitoring 2018-09-27 16:15:13 +02:00
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
7521bb7ff1 Consolidate partition handling in nand-sata-install
Use lsblk to identify disks and partitions and treat SATA, USB and NVMe the same
2018-09-12 07:23:50 +02:00
Werner
c3a8d55f3a Allow interface selection on NetworkMonitorMode (#1108)
When running armbianmonitor -N/n and two or more routable network interfaces are detected create a dynamic dialog box to select which interface should be monitored. Otherwise proceed as usual. Also reverts #1106
2018-09-11 22:25:31 +02: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
Werner
00d44fe40f Crude fix for multiple interfaces (#1106)
I ran into an issue that `armbianmonitor -N` and `-n` spit out an `sed` error message and noticed this is caused when multiple network interfaces (like additional `tun`) are detected.
This is a quick and dirty fix and just grabs the first result to make it work.
2018-09-11 12:08:02 +02:00
Igor Pečovnik
4dcceb3f12
Double waiting time
Just in case.
2018-09-10 21:29:19 +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
Werner
53819a6212 Fix monitormode run unprivileged (#1107)
* Fix monitormode run unprivileged

Running `armbianmonitor -m/M` non privileged leading into an no permission error as user do not have permission to read `cpuinfo_cur_freq`. This will prevent the error and adds a hint.
2018-09-10 18:33:13 +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
Igor Pecovnik
fa88e5c2aa Implement bulding and packing all different boot firmware for Espressobin, bump u-boot and ATF sources to latest version 18.09 2018-09-09 23:22:50 +02: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
Tanarri
83e593e13e Stop also service "fail2ban"
Apache service is stopped. Why not stopping also the service fail2ban, which is often installed beside apache
2018-09-02 22:31:51 +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
zador-blood-stained
64e7dfd923 armbian-add-overlay: Fall back to always using headers dtc
dtc in Bionic still has bugs that affect some overlays
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/livetree.c?id=bba26a5291c8343101e0296b0e478deb4c9b60b0
2018-08-29 21:34:15 +03:00
Igor Pecovnik
936a0ca7b4 Disable Xscreensaver by default 2018-08-29 14:11:51 +02:00
Thomas McKahan
9b6a1c23a3 tinkerboard PA ignore ALC4040
sets udev rule to specifically ignore the USB soundcard on Tinker.
Enumeration of ALC4040 is done with manual config.
2018-08-27 22:59:38 -04:00
Martin Ayotte
f469d4c66e fix missing rockchip64 LINUXFAMILY in nand-sata-install 2018-08-27 17:22:47 -04: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
c542b8fee0 Hostapd bump version to override Bionic stock build, Tinkerboard upstream patches 2018-08-23 18:54:54 +02:00