Commit Graph

77 Commits

Author SHA1 Message Date
Igor Pecovnik
14ecc52fb3 Build modpost in linux-header postinst script https://github.com/armbian/build/pull/1553 Should fix DKMS issues. 2019-09-15 21:43:19 +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 Pečovnik
633242e835
Changes to build script and patches adjustment (#1423)
- change console welcome text
- 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
* Adjust tabs and alter displaying build options at the end - hide empty ones
* Fix wrong MOTD message, adjust logic to autologin by default and request login for both notebooks
* Making fs cache naming more intuitive, rename script
* Move additional kernel drivers into separate file. Add AUFS for K5.1 this way, attach wireguard sources to last known working tag. master is broken atm
* Add two more extra wireless drivers 88x2BU, (improved) 8811EU and introduce switch EXTRAWIFI which is enabled by default
* Move 8812AU to the same version we have now. More recent has some performance issues in AP mode. Adjust configuration, add mvebut-dev 5.1.y kernel
* Enable Wireguard also on 3.10.y since it was fixed upstream. Attach bach to master branch since its working now
* Rockchip64 & RK3399 - upstream patches and remove deprecated patches, mvebu64 add DEV kernel attached to 5.1.y
* Enable BT on Tinkerboard CLI images as well
* cubox-i move to 5.1.y and enable missing HDMI
* Bugfixes for adding wireless driver to Kconfig. Adjusted RK3399 kernel due to upstream changes at FriendlyARM - does not boot yet. Changes has to be extract from their commits. Removed patches with RTL8188EU since we add more recent driver with a new precedure. Small fixes mvebu-default, udoo-next, s56818-next, ... remove deprecated patches.
* Boot-able RK3399-default config, add upstream patches for K4.4.y mvebu-default/udoo-next
* Adjust overclocking patch to meet upstream changes
* Odroid XU4 - remove deprecated kernel patches
2019-06-26 07:31:11 +02:00
Igor Pecovnik
9758711ed4 [ general ] Attach Realtek 8811, 8812, 8814 and 8821 drivers source, remove our old patches, adjust configs, tested on all combinations 2019-02-07 15:24:06 +01:00
Igor Pecovnik
385d464131 [mvebu default] Upstream patches 2018-10-26 16:15:48 +02:00
Igor Pecovnik
28ac7a3683 Realtek 881xAU patch cleanup and adjustement for 4.19.y 2018-10-10 17:03:21 +02:00
Igor Pecovnik
ef6847e647 Small bugfix regarding removing old swap files, K4.4 upstream patches, bump with a version 2018-09-30 15:22:44 +02:00
Igor Pecovnik
7a831f2a70 Bump with version and K4.4 upstream patches 2018-09-26 11:55:44 +02:00
Igor Pecovnik
546c30dd13 Kernel 4.4 upstream patches 2018-09-15 17:33:06 +02:00
Igor Pecovnik
32807a7e3a Add an upstream patch and adjust board config 2018-09-01 19:04:49 +02:00
Igor Pecovnik
18a68ec9b2 Add and fix kernel 4.4 upstream patches 2018-08-24 17:33:24 +02:00
Igor Pecovnik
96ca6f0e07 MVEBZ default upstream patches, config ajdustement, remove deprecated patches, adjusted build targets 2018-08-22 13:26:06 +02:00
Igor Pečovnik
1c11d6ff58 Fixed headers installation. Thanks to Jean Christian
https://forum.armbian.com/topic/2901-orange-pi-pc-stuck-on-compiling-headers
2018-07-25 17:06:37 +00:00
Igor Pecovnik
4af7efa568 Merge MVEBU to stable 2018-05-24 14:18:01 +02:00
Igor Pecovnik
ae14e90a30 Upstream patches for 4.4 and 4.9 2018-03-01 23:21:24 +01:00
Igor Pecovnik
1b79743b79 Upstream patches for 4.4 and 4.9 for those which builds 2018-02-23 18:36:43 +01:00
Igor Pecovnik
865a9386d3 mvebu next and default update
- added updated AUFS and updated 8811/12/14AU Wireless driver
- added 8188 to next
- config update
2018-02-08 17:23:27 +01:00
Gauthier Provost
5c25889fb7 Add missing ATA-port-LED-trigger patch for mvebu-{default,next} (#887) 2018-02-07 20:58:13 +03:00
Igor Pecovnik
208c98f2f0 Upstream patches for K4.4 2018-02-05 14:07:33 +01:00
Gauthier Provost
e453a43107 Helios4 - cleanup fan control setup 2018-02-04 19:17:33 +08:00
Gauthier Provost
494d6b0376 Helios4 - kernel patch clean-up / consolidation 2018-02-04 19:00:39 +08:00
Gauthier Provost
75a40bcfdb Merge remote-tracking branch 'origin/helios4_LK4.4' into helios4 2018-02-04 14:03:55 +08:00
Gauthier Provost
2a16922623 Merge remote-tracking branch 'upstream/master' into helios4 2018-02-04 12:44:09 +08:00
aprayoga
ad1b0b712f mvebu-default, enable pwm-fan module and hardware pwm in gpi-mvebu 2018-02-04 08:32:47 +08:00
aprayoga
ead4b8fb4e dts, restore pwm-fan 2018-02-04 05:10:57 +08:00
Igor Pecovnik
1488bd0f6b Add 8812/14AU wireless to mvebu-default 2018-01-23 21:58:00 +01:00
Igor Pecovnik
fd45476299 Upstream patch for mvebu default, adjusting download images for Helios4 2018-01-23 15:38:42 +01:00
Igor Pecovnik
dbfb88943e Kernel 4.4 upstream patches 2018-01-11 20:07:30 +01:00
Igor Pecovnik
7f7d82a6c1 Helios4 cleanup. Adding default branch 2018-01-07 09:58:52 +01:00
Gauthier Provost
945572718a Helios4 intergation cleanup
- move fancontrol install under a family_tweak func
- remove unused helios4 bootenv and bootscript
- clean-up patches
2018-01-07 13:24:34 +08:00
Gauthier Provost
9685d863ad Merge branch 'helios4_LK4.4' into helios4 2018-01-06 19:09:11 +08:00
Gauthier Provost
baad7fe421 Merge remote-tracking branch 'upstream/master' into helios4 2018-01-06 19:04:10 +08:00
Gauthier Provost
2e86ccf4c5 Update Helios4 Device Tree - board rev1.1
- Change GPIO for I2C IO expander interrupt pin
- Remove gpio-key button0
2018-01-06 18:57:18 +08:00
Igor Pecovnik
a90154b811 Kernel 4.4 upstream patches 2018-01-05 18:24:23 +01:00
aprayoga
2cc7b312f3 [net] Fixed Ethernet Act LED on Marvell 88E1512
The PHY is used by SolidRun microSOM. Backport 88E1510 family driver
from Linux Kernel 4.13
2017-12-29 04:37:32 +08:00
aprayoga
860efdc8e8 [dts] Disable SPI NOR flash on Helios4
Any activity on SPI NOR flash will interrupt SATA activity and caused
SATA device to reset (Sometime downgrade the speed to SATA II - 3Gbps)
2017-12-29 04:33:50 +08:00
aprayoga
89baa9130c [dts] Use GPIO-fan instead of PWM-fan on Helios4
Hardware PWM on mvebu GPIO officially supported on Linux Kernel 4.13.
Backport to Linux Kernel 4.4 still in progress
2017-12-29 04:30:41 +08:00
aprayoga
610d811b00 [dts] remove SD card UHS option/support on helios4
(Ultra) High Speed timing have compability issue on SanDisk and Toshiba
card.
Known brand that works with the UHS timing:
- Transcend
- Strontium
2017-12-29 04:26:07 +08:00
aprayoga
768e85abb1 Various Helios4 device tree changes
- Fixed wrong gpio assigned to fault led & pwm fan due to old schematic
reference
- Removes unrelated SDIO option
- Increase i2c0 clock, refer to http://git.arm.linux.org.uk/cgit/linux-
arm.git/commit/?h=clearfog-4.9&id=46d963450400eebf60a8c3568aa6ccaf4516bcff
- Production board use 2GB ECC memory
- Reassign IO expander INT pin
- Added PHY0 INT
2017-12-29 03:20:40 +08:00
Igor Pecovnik
617ee26c96 Kernel 4.4 upstream patches 2017-12-21 06:13:06 +01:00
Igor Pecovnik
e0549a654d Kernel 4.4 upstream patches 2017-12-17 12:41:54 +01:00
Igor Pecovnik
352cefc1f1 Configuration update for Rockchip default kernel + upstream patches 2017-12-08 23:16:54 +01:00
Igor Pecovnik
fa1ed47086 Kernel 4.4.y upstream patches and removing the one added by mistake. 2017-12-01 12:16:17 +01:00
Igor Pecovnik
210b7efdd2 Upstream patches 2017-11-24 19:48:44 +01:00
Igor Pecovnik
62182e3680 Kernel 4.4 upstream patches 2017-11-23 08:56:09 +01:00
Igor Pecovnik
4c6e014cf7 Kernel 4.4 upstream patches 2017-11-18 20:35:13 +01:00
Igor Pecovnik
984dafe7b3 Upstream patches 2017-11-13 22:58:53 +01:00
Gauthier Provost
85ead6b6b0
Merge branch 'master' into helios4 2017-11-13 18:15:23 +08:00
Igor Pecovnik
5ac46cf810 Upstream patches and Odroid XU4 DEV enabling docker support 2017-11-03 22:01:08 +01:00
Gauthier Provost
fcd0e5cb6c Pull parts of Helios4 support from #812 2017-11-03 01:59:30 +08:00