Commit graph

55 commits

Author SHA1 Message Date
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
61f7953842 Remove deprecated patches in most mainline kernels and adjust few configs. 2019-06-02 22:15:15 +02:00
Aditya Prayoga
1ec2a163fe mvebu-next: helios4: Add Wake on LAN support
Interrupt pin of the Ethernet PHY is connected to GPIO. The PHY can be
configured to raise interrupt when it received WoL magic packet.

This patch use gpio-keys as wakeup source for Wake on LAN as currently
there is no way to use the GPIO directly under mvneta driver.

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2019-02-12 10:34:30 +08:00
Aditya Prayoga
8cac6dba94 kernel: mvebu-next: Add Wake on GPIO support
The SoC provides several waking options sourced by different peripherals
to take the system out of power save modes. One of the options is Wake
on GPIO.

This patch implements missing function to support gpio as wakeup source
and properly route it to upper interrupt controller (Arm GIC).

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2019-02-12 10:34:30 +08: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
cbfcd85715 [ dvbsky S960 ] User request https://forum.armbian.com/topic/9318-nanopi-neo2-kernel-update-for-patch-dvbsky-s960 2019-01-23 18:55:17 +01:00
Aditya Prayoga
99a377d647 kernel: mvebu-next: Reduce performance impact on libata led trigger
previous version of the patch has slightly higher performance impact
compared to disk activity trigger.
This updated patch should have similar impact as disk activity trigger.
2018-12-07 10:13:32 +08: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
Igor Pecovnik
28ac7a3683 Realtek 881xAU patch cleanup and adjustement for 4.19.y 2018-10-10 17:03:21 +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 Pečovnik
fa1382d64d Adjust MVEBU packagin patch and configuration 2018-07-24 12:31:31 +00:00
Igor Pecovnik
4af7efa568 Merge MVEBU to stable 2018-05-24 14:18:01 +02:00
Gauthier Provost
6edb347336 Reorder mvebu-next patches 2018-02-16 00:28:56 +08:00
Igor Pecovnik
06008c956d Fix timedrift
https://forum.armbian.com/topic/6387-clearfogpro-huge-timedrift-between-hw-and-sysclock/
2018-02-09 10:37:25 +01:00
Igor Pecovnik
81be74f9c1 Revert "Disable mvebu-next DFS since it affects system timer"
This reverts commit d47ec10c06.
2018-02-09 10:36:49 +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
zador-blood-stained
d47ec10c06 Disable mvebu-next DFS since it affects system timer 2018-02-07 20:56:39 +03:00
Gauthier Provost
494d6b0376 Helios4 - kernel patch clean-up / consolidation 2018-02-04 19:00:39 +08:00
Gauthier Provost
2a16922623 Merge remote-tracking branch 'upstream/master' into helios4 2018-02-04 12:44:09 +08:00
Igor Pecovnik
c753d75b3a Separating Makefile patch from 8812/14 on MVEBU next 2018-01-23 22:04:25 +01:00
zador-blood-stained
dd5582f73e Remove unused SFP support patches from mvebu-next
There are some recent upstream patches related to Clearfog SFP support (i.e. https://patchwork.ozlabs.org/cover/854657/) so old ones are obsolete
2018-01-17 19:30:52 +03:00
Igor Pecovnik
8dae7b88f4 Patch for dvb usb issues since kernel 4.9 2018-01-11 19:15:20 +01:00
Igor Pecovnik
751fb4fd13 Remove deprecated DT file. https://github.com/armbian/build/pull/858 2018-01-11 18:59:04 +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
47c7c814de Remove wrong Helios4 Device Tree patch from mvebu-next. 2018-01-06 23:02:41 +08:00
Gauthier Provost
40db97da68 Merge branch 'helios4_next' into helios4 2018-01-06 19:12:21 +08:00
Igor Pecovnik
a725691d2e Adding Helios4 NEXT (only) target. All basic features are working ... moving to .conf 2018-01-05 20:55:39 +01:00
aprayoga
63fca0a876 enable "next" branch on Helios4 2017-12-30 16:50:32 +08:00
Igor Pecovnik
fe08fceb36 Wireless drivers update for 8812/11/14AU, added where missing. Ready for kernel 4.15.y 2017-12-14 18:06:37 +01:00
zador-blood-stained
763a2fa38d Update mvebu-{next,dev} kernel to 4.14 2017-11-25 17:46:35 +03:00
zador-blood-stained
28502a0472 Clean up executable bits in patch files 2017-11-11 17:49:39 +03:00
Igor Pecovnik
85a6325579 Add RT patches. All are default disabled. 2017-10-31 19:56:01 +01:00
Igor Pecovnik
978e927073 Updated configs, changing 8812/11/14 driver on all next kernels, removing deprecated patch 2017-10-30 16:10:53 +01:00
zador-blood-stained
13e94e58f0 Remove random executable bits from patch files 2017-10-27 16:14:21 +03:00
Igor Pecovnik
3b14cf6ab0 MVEBU NEXT - Clearfog, Helios4. Add recent USB wifis and AUFS 2017-09-23 23:35:57 +02:00
zador-blood-stained
c4e05b961d Update mvebu-next to 4.13 2017-09-06 13:22:18 +03:00
zador-blood-stained
0c4b74faf0 Add missing header files to mainline header packages 2017-07-24 20:11:07 +03:00
zador-blood-stained
887909909f Update mvebu-next to 4.12 2017-07-12 21:58:34 +03:00
Igor Pecovnik
8037db580a Patches adjustements 2017-07-07 08:07:12 +02:00
zador-blood-stained
11f7e6168f Add patch to fix crash related to AES kernel modules 2017-06-23 14:52:53 +03:00
zador-blood-stained
40953b2b68 Revert "Adjusting CUBOX and CLEARFOG next branches for kernel 4.9.x"
This reverts commit f37196cad0.
2017-06-23 14:43:05 +03:00
Igor Pecovnik
f37196cad0 Adjusting CUBOX and CLEARFOG next branches for kernel 4.9.x 2017-06-23 13:03:16 +02:00
zador-blood-stained
1080d5f840 Add ipsec fix for stable mainline kernels (#693) 2017-06-11 16:25:10 +03:00
zador-blood-stained
aa1b59710d Update mvebu-next branch to 4.11 2017-05-14 19:11:33 +03:00
zador-blood-stained
377a3e09e2 Add cpufreq support for mvebu-next 2017-04-15 13:12:05 +03:00
zador-blood-stained
547b7732e9 Small cleanup for mvebu-next patches 2017-04-15 12:42:23 +03:00
zador-blood-stained
3b2bfeecef Cleanup for patches - disable random file mode changes 2017-02-26 20:38:28 +03:00