Commit Graph

500 Commits

Author SHA1 Message Date
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