Commit Graph

3220 Commits

Author SHA1 Message Date
Oleg
03ef96715e
fix emmc nano-pc-t4 (#3557)
* fix emmc nano-pc-t4
* fix node and del not used patch
2022-03-25 20:51:03 +01:00
Jianfeng Liu
03115888c3
fix radxa rock3a usb regulator and clean useless info in patches (#3559)
Co-authored-by: Jianfeng Liu <jfliu@zshield.net>
2022-03-24 12:44:58 -07:00
Paolo Sabatino
a20be324b9 rockchip: enable bluetooth serdev for tinkerboard and disable userland binaries 2022-03-24 09:22:47 +00:00
Oleg
f52a4193d0
Adding Pine64 Quartz64a as WIP target (#3539)
* add Quartz64a

* quartz64 to wip

* add m2\p2 current

* move patch archive
2022-03-20 22:58:21 +01:00
Yuntian Zhang
e63b8044b1
Reduce Radxa Zero's SDIO frequency (#3543)
This fixes the issue where some boards have increased difficulty to initialize Wi-Fi hardware under the cold weather.
2022-03-19 16:47:08 +01:00
Jianfeng Liu
88464cc412
Radxa rock3a gpu support (#3547)
* Refresh the vop2 patch from catalinii

* add SCMI related config to support rk3568 gpu

Co-authored-by: Jianfeng Liu <jfliu@zshield.net>
2022-03-19 07:10:37 -04:00
Paolo Sabatino
13469fd8a9 rk322x: add overlay for USB OTG peripheral mode, add current and edge kernel config options 2022-03-18 17:26:46 +01:00
Paolo Sabatino
c6a8ca6d1a rk322x: add disabled patch for not-yet-working rknand mainline driver 2022-03-18 17:26:46 +01:00
Julian Sikorski
73e878d49f
Update odroidxu4-current to 5.4.185 (#3540) 2022-03-16 17:53:04 +01:00
Julian Sikorski
e1b93257f2
Update odroidxu4-current to 5.4.184 (#3536) 2022-03-15 08:59:14 +01:00
iav
6fee4247f9
add patch to avoid meson64 random reboots under load (#3520)
patch source https://lore.kernel.org/linux-amlogic/1c71a7c1e58590811094ebdd0e1abc54@agner.ch/T/#t
2022-03-12 23:16:29 +01:00
Vyacheslav
42617c23f8
Add meson64 patch net: phy: meson-gxl: fix interrupt handling in forced mode (#3524)
* Add meson64 patch net: phy: meson-gxl: fix interrupt handling in forced mode

https://patchwork.kernel.org/project/linux-amlogic/patch/04cac530-ea1b-850e-6cfa-144a55c4d75d@gmail.com/

This PHY doesn't support a link-up interrupt source. If aneg is enabled
we use the "aneg complete" interrupt for this purpose, but if aneg is
disabled link-up isn't signaled currently.
According to a vendor driver there's an additional "energy detect"
interrupt source that can be used to signal link-up if aneg is disabled.
We can safely ignore this interrupt source if aneg is enabled.

This patch was tested on a TX3 Mini TV box with S905W (even though
boot message says it's a S905D).

This issue has been existing longer, but due to changes in phylib and
the driver the patch applies only from the commit marked as fixed.

Fixes: 84c8f773d2dc ("net: phy: meson-gxl: remove the use of .ack_callback()")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

* Add meson64 kernel patch: net: phy: meson-gxl: improve link-up behavior

https://patchwork.kernel.org/project/linux-amlogic/patch/e3473452-a1f9-efcf-5fdd-02b6f44c3fcd@gmail.com/

Sometimes the link comes up but no data flows. This patch fixes
this behavior. It's not clear what's the root cause of the issue.

According to the tests one other link-up issue remains.
In very rare cases the link isn't even reported as up.

Fixes: 84c8f773d2dc ("net: phy: meson-gxl: remove the use of .ack_callback()")
Tested-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/phy/meson-gxl.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
2022-03-12 23:16:17 +01:00
The-going
c58d048a0a
Fixed the application of an unnecessary patch (#3534)
* This is already contained in the 5.15.27 kernel

pinctrl: sunxi: Use unique lockdep classes for IRQs

commit 896d1b8a36129c3f1378fbbafd7c394a877635b5 linux-5.15.y
commit bac129dbc6560dfeb634c03f0c08b78024e71915 upstream.

This driver, like several others, uses a chained IRQ for each GPIO bank,
and forwards .irq_set_wake to the GPIO bank's upstream IRQ. As a result,
a call to irq_set_irq_wake() needs to lock both the upstream and
downstream irq_desc's. Lockdep considers this to be a possible deadlock
when the irq_desc's share lockdep classes, which they do by default:

     ============================================
     WARNING: possible recursive locking detected
     5.17.0-rc3-00394-gc849047c2473 #1 Not tainted
     --------------------------------------------
     init/307 is trying to acquire lock:
     c2dfe27c (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0x58/0xa0

     but task is already holding lock:
     c3c0ac7c (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0x58/0xa0

     other info that might help us debug this:
      Possible unsafe locking scenario:

            CPU0
            ----
       lock(&irq_desc_lock_class);
       lock(&irq_desc_lock_class);

      *** DEADLOCK ***

      May be due to missing lock nesting notation

     4 locks held by init/307:
      #0: c1f29f18 (system_transition_mutex){+.+.}-{3:3}, at: __do_sys_reboot+0x90/0x23c
      #1: c20f7760 (&dev->mutex){....}-{3:3}, at: device_shutdown+0xf4/0x224
      #2: c2e804d8 (&dev->mutex){....}-{3:3}, at: device_shutdown+0x104/0x224
      #3: c3c0ac7c (&irq_desc_lock_class){-.-.}-{2:2}, at: __irq_get_desc_lock+0x58/0xa0

     stack backtrace:
     CPU: 0 PID: 307 Comm: init Not tainted 5.17.0-rc3-00394-gc849047c2473 #1
     Hardware name: Allwinner sun8i Family
      unwind_backtrace from show_stack+0x10/0x14
      show_stack from dump_stack_lvl+0x68/0x90
      dump_stack_lvl from __lock_acquire+0x1680/0x31a0
      __lock_acquire from lock_acquire+0x148/0x3dc
      lock_acquire from _raw_spin_lock_irqsave+0x50/0x6c
      _raw_spin_lock_irqsave from __irq_get_desc_lock+0x58/0xa0
      __irq_get_desc_lock from irq_set_irq_wake+0x2c/0x19c
      irq_set_irq_wake from irq_set_irq_wake+0x13c/0x19c
        [tail call from sunxi_pinctrl_irq_set_wake]
      irq_set_irq_wake from gpio_keys_suspend+0x80/0x1a4
      gpio_keys_suspend from gpio_keys_shutdown+0x10/0x2c
      gpio_keys_shutdown from device_shutdown+0x180/0x224
      device_shutdown from __do_sys_reboot+0x134/0x23c
      __do_sys_reboot from ret_fast_syscall+0x0/0x1c

    However, this can never deadlock because the upstream and downstream
    IRQs are never the same (nor do they even involve the same irqchip).

    Silence this erroneous lockdep splat by applying what appears to be the
    usual fix of moving the GPIO IRQs to separate lockdep classes.

    Fixes: a59c99d9eaf9 ("pinctrl: sunxi: Forward calls to irq_set_irq_wake")
    Reported-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Samuel Holland <samuel@sholland.org>
    Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
    Tested-by: Guenter Roeck <linux@roeck-us.net>
    Link: https://lore.kernel.org/r/20220216040037.22730-1-samuel@sholland.org
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

* This is already contained in the 5.16.13 kernel

pinctrl: sunxi: Use unique lockdep classes for IRQs

commit e221ef82d9f5e97bca61f7c25e2b58b04466de87 linux-5.16.y.
commit bac129dbc6560dfeb634c03f0c08b78024e71915 upstream.

This driver, like several others, uses a chained IRQ for each GPIO bank,
and forwards .irq_set_wake to the GPIO bank's upstream IRQ. As a result,
a call to irq_set_irq_wake() needs to lock both the upstream and
downstream irq_desc's. Lockdep considers this to be a possible deadlock
when the irq_desc's share lockdep classes, which they do by default:

============================================
WARNING: possible recursive locking detected
5.17.0-rc3-00394-gc849047c2473 #1 Not tainted
--------------------------------------------
....
2022-03-12 23:15:35 +01:00
Heisath
f9abfd60d2 Fix mvebu patch 2022-03-09 14:46:59 +01:00
Igor Pecovnik
716022ce46
Disable broken patch
@heisath Check if any part of it is still needed.
2022-03-09 09:20:02 +01:00
Paolo
05a3b46393
Rk restore drm patches (#3516)
* rk322x: restore drm patches, rework a couple of hunks due to upstream changes

* rockchip: restore drm patches, rework hunks due to upstreamed patch

* Revert also on media kernel

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-02-26 17:56:52 +01:00
The-going
9b611efc21
Update a series of patches for sunxi-5.16 and fix on the tag=v5.16.11 for release (#3513)
* Add megous files for 5.16, tag orange-pi-5.16-20220216-2000

* Optimize the selection of a set of patches

* Remove unused patches

* Fix the state on the version tag=v5.16.11

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-02-26 15:04:00 +01:00
schwar3kat
6ff15fe54f
Add orangepi r1 plus lts (#3514)
* Rockchip64 Linux-5.10y - drivers for Motorcomm YT8531
renamed the previous "net-phy-Add-driver-for-Motorcomm-YT85xx-PHYs.patch" to "net-phy-Add-driver-for-Motorcomm-1-YT85xx-PHYs.patch" to fix patch order and added a new patch "net-phy-Add-driver-for-Motorcomm-2-YT8531-PHYs.patch"
The new YT8531 patch is sourced from from Lean's OpenWrt source rockchip/patches-5.10/601-net-phy-Add-driver-for-Motorcomm-YT8531-PHYs.patch.
It is intended to extend a patch identical to Armbian's "net-phy-Add-driver-for-Motorcomm-YT85xx-PHYs.patch" and is used without alteration.

* Add new board OrangePi R1 LTS (rk3328)
Includes uBoot and support for Linux-5.10y

* Rockchip64 Linux-5.15y drivers for YT8531 and other Motorcomm chips

YT8010, YT8510, YT8511, YT8512, YT8521. The driver patch set is sourced from Xunlong-OrangePi OpenWRT and is used as is, with only a name and makefile change.
A single patch set uses the same underlying source code as the Armbian Linux-5.10y set, but uses inbuilt logic to apply tweaks that depend on the Linux kernel version.
The patch is renamed similarly to the 5.10 patch set, net-phy-Add-driver-for-Motorcomm-T85xx+PHYs.patch to imply code base continuity with the previous similar Armbian patch sets.

* Rockchip64 Linux-5.15y support for Orange Pi R1 Plus LTS

Includes DTS and makefile changes. A driver for net phy YT8531C is in a separate commit

* change orangepi-r1plus-lts.csc to orangepi-r1plus-lts.conf

board is now supported

* - add patch also to 5.16.y
- fix wrong patch permission

* Fix Makefile patch

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-02-26 15:03:33 +01:00
Igor Pečovnik
594cf5c3d1
Merge rockhip drm patches into one, adjust configs (#3515) 2022-02-26 14:04:38 +01:00
Piotr Szczepanik
ac8fc43855
Switch rockchip64 current to linux 5.15.y (#3489)
* Switched rockchip64-current to linux 5.15

* Backported and adjusted patches from rockchip64-current

* Switched rockchip64 edge to 5.16.y (#3499)

* Initial rockchip64-edge at 5.16.y
* Bunch of fixes for rockchip64-edge at 5.16.y

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2022-02-26 07:46:44 +01:00
Yuntian Zhang
3da96b2d77
Add support for Radxa Zero 2 (#3413)
Radxa Zero 2 is a small form factor SBC based on the Amlogic A311D
chipset that ships in a number of eMMC configurations:

- Amlogic A311D (Quad A73 + Dual A53) CPU
- 4GB LPDDR4 RAM
- 32/64/128GB eMMC
- Mali G52-MP4 GPU
- HDMI 2.1 output (micro)
- BCM4345 WiFi (2.4/5GHz a/b/g/n/ac) and BT 5.0
- 1x USB 2.0 port - Type C (OTG)
- 1x USB 3.0 port - Type C (Host)
- 1x micro SD Card slot
- 40 Pin GPIO header

Signed-off-by: Yuntian Zhang <yt@radxa.com>
2022-02-25 19:27:41 +01:00
Oleg
06c410860b
fix station m2 edge NVME and Wifi (#3505) 2022-02-25 19:27:22 +01:00
Vyacheslav
3816d768fe
Remove patch already included in kernel 5.15-stable (#3509) 2022-02-25 19:27:10 +01:00
Julian Sikorski
9d5e1151fa
Update odroidxu4-current to 5.4.181 (#3510) 2022-02-25 19:26:56 +01:00
Leif
27771d0e8a
Remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays (#3495)
* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

* remove incorrectly duplicated GPIO pins from I2C7, name I2C7/I2C8 bus, from README.rockchip-overlays

Co-authored-by: Leif Sawyer <leif@akhepcat.com>
2022-02-17 22:06:54 +01:00
Igor Pečovnik
cfa4188d4e
Bump UEFI current & edge kernels to 5.15.y / 5.16.y (#3491) 2022-02-14 23:34:40 +01:00
Oleg
c51857b67a
fix USB and SATA p2 (#3486) 2022-02-14 19:05:37 +01:00
Igor Pečovnik
88a56ef3b7
Add Odroid xu4 current patches (#3490) 2022-02-14 18:59:29 +01:00
Jannis
3c1dde938c
Merge pull request #3474 from armbian/mvebu-updates
Bump mvebu-current to 5.15 and mvebu-edge to 5.16
2022-02-11 12:16:36 +01:00
Heisath
4de4c42e6f Bump mvebu-current to 5.15 and mvebu-edge to 5.16 2022-02-11 11:00:57 +01:00
Igor Pečovnik
1e37959e53
Bumping sunxi/64, xu4, rockchip and mvebu64 to 5.16.y (#3453)
* Prepare xu4 edge for 5.16.y, move current of imx6 to 5.15.y and edge to 5.16.y

- fix bootsplash on 5.16.y

* rk322x: advance current to 5.15 and edge to 5.16

* rockchip: advance current kernel to 5.15, edge to 5.16

* - adjust configs
- fix bootsplash patches
- adjust aufs

* Switch sunxi / sunxi64 current to 5.15.y, edge to 5.16.y

- cleanup bootsplash patches
- adjust configs

* Update mvebu64

Co-authored-by: Paolo Sabatino <paolo.sabatino@gmail.com>
2022-02-10 20:32:58 +01:00
The-going
fbe942b150
Patching sunxi (#3463)
* Add new patches from the tag orange-pi-5.16-20220205-1958

* Remove mutually exclusive patches

* Add, sort next patches for series armbian  5.16

* Add next armbian patches to series.conf

* Swich BRANCH for sunxi: legacy=5.10 current=5.15 edge=5.16

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Add upstream megous 5.16 patch to 5.15

* Add wifi rtl8723cs patches to series armbian

* Add a new one, remove old patches that are already in the kernel

* Add redesigned patches for 5.15 to the armbian series

* Remove unused patches

* Finish line

* The old rtl8723cs driver is disabled by default.

* Enable the old rtl8723cs driver by default.

* Comment enable\disable the old driver rtl8723cs-old

* Revert "Swich BRANCH for sunxi: legacy=5.10 current=5.15 edge=5.16"

This reverts commit aad1e92b5e.
2022-02-10 15:08:01 +01:00
The-going
990798c3fb
Patching sunxi 5.15 (#3460)
* Remove an aged patch from use #3443

Allwinner-Add-frame-inversion-to-correct-audio-chann.patch

* Rename and prepare for the series 5.15

* Split and rename files for sun50i-h616-dtsi

* Split and rename files for sunxi overlays

* Remove mutually exclusive patches

* Add fifty redesigned patches to the series

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Remove fifty-four old patches

* Fix compile error

* Delete unused ones and sort if possible for megous series

* sunxi-5.15: Sort, fix compile warning, remove unused

* Rework print log for patching
2022-02-05 21:53:26 +01:00
Julian Sikorski
1d499d9ac2
Update odroidxu4-current to 5.4.176 (#3458)
* Update odroidxu4-current to 5.4.176
* Update odroidxu4-current to 5.4.177
2022-02-05 18:05:47 +01:00
The-going
f80117f21c
Recycling of megous v5.16.4 patches (#3449)
* Recycling of megous v5.16.4 patches

The patches were sorted as far as possible. Some patches are renamed
according to their place of application. The length of the patch name
has been changed to improve readability using
the `git format-patch --filename-max-length=75` method.

The folder containing the patches will have the name `patches.name`
and the corresponding file `series.name` for the convenience
of processing and moving them upstream. But the control file remains
`series.conf`.


Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Add a series of armbian patches for 5.16

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Remove patches whose fixes are already in the kernel

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2022-02-02 11:03:44 +01:00
catalinii
188d6d0a8a
Support edge kernel for Rock 3A and rk35xx (#3371)
* Support edge kernel for Rock 3A and rk35xx

* Removing patch email headers

There is also some script floating around to do this automatically when pooling from patchwork

* Update rk356x-usb2-support.patch

* Remove email headers

* Remove email headers

* Remove email headers

* Update config and change edge branch

* Enable edge beta build

* Refresh the rk35xx patches and update the dts
Remove also previous wireless patches related to IPX removal

* Removing hirsute target

deprecated

Co-authored-by: Catalin Toda <catalinii@yahoo.com>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2022-02-01 22:53:43 +01:00
The-going
d885bfc97d
Patching sunxi (#3445)
* waiter_local_repo: Fixed incomplete logic

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* A series of patches for sunxi v5.15.16

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* DEBUG

* check 70

* check 101

* Add 101 Armbian patches as series

Patches are renamed using the logic of the file structure
and the essence of the changes, sorted in the order
of their receipt. Fixed a lot of incorrect overlay
of some pieces in patches. Several small patches are
combined, because they changed one file.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Remove old patches that have been reworked into a series

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Fix for apply to v5.15.17

* Two Bluetooth-BTRTL patches for sunxi will be applied in the series.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* check 113

* Fix print output

* Revert "DEBUG"

This reverts commit 49e2c7fdc0.
2022-01-28 19:08:04 +01:00
Igor Pecovnik
8fda8d4852
Remove deprecated patches that breaks meson64 edge 2022-01-28 14:00:34 +01:00
Paolo Sabatino
ce0899e1e5
rockchip64: add broadcom bluetooth serdev workaround against default MAC address for edge 5.15 kernel 2022-01-27 14:21:09 +00:00
Paolo
d1e8c0d27b
rockchip64: add realtek rtl8723cs and rtl8703bs wifi and serdev bluetooth support for edge 5.15 kernel (#3422) 2022-01-22 19:48:34 +01:00
Julian Sikorski
deda43aca8
Update odroidxu4-current to 5.4.173 (#3423) 2022-01-22 19:29:35 +01:00
Yao Fei
2f6ccd12c8
Add OrangePi 3 pps-gpio (#3081) 2022-01-20 14:48:41 +01:00
Vyacheslav
8ae85b9eca
JetHome: JetHub D1 fix patch: sdio: update JetHub D1 regulators for SDIO (#3389)
Fix the dts to match board's reference design:
- update vddio_boot regulator to 3.3v (Wi-Fi SDIO module)
- add vccq_1v8 regulator with 1.8v for eMMC SDIO

In the first revision of JetHub D1 the vccq_1v8 regulator was 3.3v.
All installed eMMC modules were tested to work in HS200 mode at 3.3v
supply voltage. In the next revisions of the device eMMC will be
powered with 1.8v according to the standard.
2022-01-17 18:10:10 +01:00
The-going
8331e8b9dc
Add initial series patches for sunxi-5.16 (#3392)
* Add initial series patches for sunxi-5.16

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Now all patches are applied to the v5.16 kernel without errors

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Handle an exception if the initial tag is the top of the branch.

Remove the handling of the old exception.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* sunxi64_common.inc: Fix for 5.16

* sunxi-common.inc: Fix for 5.16

* Revert debug for EDGE: KERNEL_VERSION_LEVEL to "5.15"

* Add new patches from megous and switch to v5.16.1

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* waiter_local_repo: Fixed comment

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2022-01-17 14:19:53 +01:00
Igor Pecovnik
b568c3aa68
Patch adjustements 2022-01-16 17:57:24 +01:00
Igor Pečovnik
2b8fc08eeb
Adjust broken patches and remove deprecated (#3403) 2022-01-16 14:53:14 +01:00
Igor Pecovnik
e9fb9542c7
Remove deprecated patch for functionality we don't need (Rpi wiring compatibility)
Closing https://github.com/armbian/build/issues/3400
2022-01-12 19:47:30 +01:00
Oleg
ea5bfeff0a
fix kernel media-edge (#3396) 2022-01-12 08:07:54 +01:00
Igor Pečovnik
3196fac0d1
Maintenance (#3395)
* Upstream patches and bug fixes

* Move to CSC
2022-01-11 18:53:52 +01:00
Oleg
6b490e1694
move kernel edge to 5.16 (#3387) 2022-01-11 15:26:11 +01:00
Igor Pečovnik
4ffef325ba
Several improvements for RPi builds (#3391)
* Several improvements for RPi builds

- attach to RPi kernels
- current (ubuntu) -> legacy
- current -> 5.10.y, edge, 5.15.y

* Move current Rpi to 5.15.y and edge to 5.16.y
2022-01-11 15:25:58 +01:00
Paolo Sabatino
f3388b9aee add ssv6051 driver for kernel 5.10 and 5.15 2022-01-07 11:29:20 +01:00
Igor Pečovnik
d7794cc7b1
Add upstream patches (#3380) 2022-01-06 11:50:58 +01:00
Oleg
e453e4dfba
fix kernel legacy for firefly-rk3399 (#3369) 2021-12-27 08:27:01 +01:00
catalinii
f6143eff67
Fix the uboot for rock-3a (#3271)
* Sync kernel config with radxa and remove packaging patch

* Merge the rockchip64 legacy config as well

* Lower priority of EFI partitioning against DOS partitioning which is used by Armbian

Co-authored-by: Catalin Toda <catalinii@yahoo.com>
2021-12-25 11:57:26 -05:00
Julian Sikorski
acfbbd9660
Update odroidxu4-current to 5.4.168 (#3365) 2021-12-22 20:55:43 +01:00
Igor Pečovnik
e1c96e5257
Attempt to fix kernel OOPS (#3358) 2021-12-20 09:42:53 +01:00
The-going
94e17628c3
Fix megouse patches for 5.15.10 2021-12-17 20:48:45 +03:00
Dan Pasanen
7be9e8b995
rockchip-[current,edge]: add pcie hack and lsi scsi/sas support (#3351)
* build: kernel: rockchip64-[current,edge]: add pcie bus scan delay patches

These are needed for cards like the LSI SAS2008 which needs a little
extra time to initialize or they'll cause a kernel panic.

References:
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0013-rk3399-rp64-pcie-Reimplement-rockchip-PCIe-bus-scan-delay.patch
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0022-arm64-dts-rockchip-Add-pcie-bus-scan-delay-to-rockpr.patch

* config: linux-rockchip64-[current,edge]: enable lsi sata/sas support
2021-12-16 05:17:33 -05:00
Vyacheslav
5efc78b531
JetHome JetHub D1/H1 patch/bsp updates (#3348)
* JetHome: Update u-boot patches: fix emmc work on JetHub D1
* JetHome: update kernel patches with last updates for JetHub devices.
* JetHome: Update Bluetooth init script to more stable start.
2021-12-14 12:08:26 +01:00
Paolo Sabatino
e1a88959f8 rk322x: add bluetooth overlay, updated rk322x-config 2021-12-10 21:53:57 +01:00
Paolo Sabatino
c8f48d8368 rk322x: add rtl8723cs and rtl8703bs serdev bluetooth support 2021-12-10 21:53:57 +01:00
The-going
146803353c
Remove the garbage from the install.log file (#3333)
* Remove the garbage from the `install.log` file

You cannot use `--info=progress2` for the `rsync`
command when all output is sent to a file.
This creates a large garbage file.

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* Changes megous reverse commit. Just disable the patch

commit bd592ec43b76b298be29126e667850113b84376d (tag: orange-pi-5.15-20211125-1352)
Author: Ondrej Jirman <megous@megous.com>
Date:   Thu Nov 25 13:51:59 2021 +0100

    Revert "rtw88: Add more channels"

    This reverts commit cb1e3839822d4f782a9af6c27568540414093ba6.
2021-12-10 08:32:44 +01:00
Paolo
d876b9a5e1
rk322x: minor device tree fixes and upgrades (#3334)
Introduced a couple of device tree sets for MXQ_PRO and R29_MXQ boards
2021-12-10 00:08:03 +01:00
Igor Pečovnik
7783a2fe6b
Odroid XU4 - remove deprecated patches that were breaking build process (#3332) 2021-12-09 11:42:08 +01:00
The-going
c86dd24180
Sunxi 5.10: Fix ISO C90 forbids mixed declarations and code (#3329)
* Revert "Calculate patches changes only on first level since this fails when including subfolder. Bug in sort. Needs to be reworked once"

 Return `megous` patches

This reverts commit 2eae831889.

* Sunxi 5.10: Fix ISO C90 forbids mixed declarations and code
2021-12-08 16:15:41 +01:00
Paolo Sabatino
6506575e53
rk322x: restored 8723cs driver for edge kernel 2021-12-08 13:39:51 +00:00
Paolo Sabatino
0d5182e848
rk322x: remove mainlined hunks from kernel 5.15 patchset 2021-12-08 11:07:48 +00:00
Ricardo Pardini
90e0fe0ba2
extensions framework + UEFI aarch64/x86 + rpi4b + core changes/fixes (#3300)
* extensions framework (née "fragments")

- this should actually change nothing at this point, just add capabilities
- the framework is implemented in lib/extensions.sh
- the "if function x exists then call x" replaced with call_extension_method()
  - +inline documentation
  - +compatibility names

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions framework; meta-extensions: auto-docs and sample extension gen

- 2 extensions dealing with extensibility itself
  - detect-unused-extensions: shows which extensions are enabled, but never called.
  - gen-sample-extension-docs: generates a sample empty extension & Markdown documentation for extensions

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* new extension methods and features via config variables in core Armbian

- `SKIP_EXTERNAL_TOOLCHAINS=yes` - does not download or use any linaro toolchains, only build host-installed ones
- `SKIP_BOOTSPLASH=yes` - does not patch kernel for splash file
- `EXTRA_BSP_NAME=xyz` - allows for BSP variants, useful for when extensions modify the BSP
- `EXTRA_ROOTFS_MIB_SIZE=x` - add x mib's to rootfs size, for use with very small images
- `KERNEL_EXTRA_TARGETS` - what extra targets to make kernel for, default to "modules dtbs"
- `BOOTCONFIG=none` - does not build nor install u-boot; also doesn't handle bootscripts et al
- `unset KERNELSOURCE` - does not build nor install kernel, nor build initrd, nor build nor install firmware
- `ARMHF_ARCH=skip` - does not add armhf to apt/dpkg, thus pure arm64
- `SKIP_ARMBIAN_REPO=yes` - results in armbian.list.disabled in the final image
- define `APT_EXTRA_DIST_PARAMS` with apt-cacher-ng options and use it for `PACKAGE_LIST_INSTALL/REMOVE` et al
- initial support for targeting x86/amd64 UEFI and BIOS
    - some do's/don'ts for x86/amd64, like a different `UBUNTU_MIRROR` default
    - GPT/EFI(ESP) partitions (fat, `UEFISIZE=256` to enable, mount `UEFI_MOUNT_POINT=/boot/efi`, first on disk but ends
      up at `$uefipart`=15)
    - GPT/BIOS partitions (fat, `BIOSSIZE=1` to enable, second on disk but ends up at partition 14)
    - `UEFI_FS_LABEL="armbiefi"` - to set the FAT label for the EFI partition, visible in Win/Mac
    - hard-requires gdisk package host-side
- add add_host_dependencies() extension method; fill `EXTRA_BUILD_DEPS="pkg pkg2"` to install to host before toolchains
  download
- add pre_prepare_partitions() extension method, for custom partition size calculations
- add create_partition_table() extension method, used to do full-custom partitioning if `USE_HOOK_FOR_PARTITION=yes`
- add post_create_partitions() extension method, mostly for easy debugging
- add post_write_sdcard() extension method, where you can also set `SKIP_VERIFY=yes` to skip sdcard verification
- add post_install_kernel_debs() extension method.
- multiple fixes to bsp to avoid spurious errors when files are not where it expects
- v4: detect `update-initramfs` failure and abort build with useful message if it does
- v4: show useful stacktrace in `exit_with_error`
  - if `ERROR_DEBUG_SHELL=yes`, drop into a shell before unmounting/deleting everything, so we can inspect what went wrong
- v4: display a message before `apt-get remove PACKAGE_LIST_BOARD_REMOVE` packages, so any errors while removing are easy to understand
- v4: preserve kernel .config's dates when copying

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions framework; refactor tool fetching/building into extensions

- a few examples of core refactoring using extensions
- sunxi-tools extension, enabled by 2 different sunxi family includes ("reuse" example)
- marvel-tools extension, enabled by 2 different mvebu family includes
- rkbin-tools extension, enabled by rockship64_common family include
- amlogic-fip/c2-blobs stuff refactored directly into meson64_common.inc ("single-use" example)
- removed the 'testings' fetch_from_repo completely since not used anywhere.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* .wip's for UEFI arm64 and UEFI/BIOS x86 via new GRUB extension

- v3: added `growroot`-awareness to `armbian-resize-filesystem`
    - the partition-growing part of `armbian-resize-filesystem` does not deal correctly with the UEFI layout
    - `growroot` is installed on UEFI images by default, that handles growing partition during initramfs
    - now `armbian-resize-filesystem` handles `resize2fs` only, and works.
- v4: reworked UEFI board/family/include structure:
    - use Distro's `linux-generic` kernel only for `current`
    - `edge` now builds it's own pure-mainline `5.15.y` kernel, for both x86 and arm64
        - `.config` taken from Ubuntu, probably needs tuning for EXTRAWIFI=yes et al
- v4: introduce `SKIP_KERNEL_SYMLINK=yes`, tested in `builddeb`
    - to avoid symlinking kernel; u-boot likes it, but grub and flash-kernel hates it
- v5: many fixes
- v7: more small fixes.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* .wip for the RaspberryPi 4B via new flash-kernel extension

- this does not build it's own kernel "yet", but uses default linux-raspi kernel from Ubuntu
- flash-kernel is not really a bootloader
    - it just prepares kernel et al a FAT partition for booting by the RPi4b bootloader
    - flash-kernel is standard Debian package, but has only been tested on Ubuntu releases
- it is really only known-working since Hirsute release.
  - Debian's rpi kernel is armhf only, so out of scope here, at least until we add source-built kernels.
- v3: fixed focal rootfs build. untested.
- v3: better variable names, preparing for source-built kernel.
- v5: new edge build with pure mainline kernel.
- v6: many fixes and some hacks for packaging and layout, also firmware (using Ubuntu's)

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Added first patch to edge x86 related to wifi drivers

* extensions: leave hostapd alone; remove hackish ext; block reentrancy

- package-list-utils does not belong in this PR
- grub or bcm2711 is not the place to remove hostapd
- block recursive enable_extension() calls, for now.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* gen-sample-extension-docs: fix: avoid counter in generated sample

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: dependencies: enable_extension() in extensions with a stack

- and better stacktraces, I hope

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Remove code from package list since we don't have it in repository
Adjust kernel config to disable driver that needs further polishing.

* Allow amd64 to build the same desktops as aarch64. We only have this limit for armhf, where some desktops don't work

* amd64: allow building amd64 on aarch64 with system toolchain

- conditionally add gcc-x86-64-linux-gnu to hostdeps

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* add libelf-dev directly to hostdeps (and Dockerfile), remove extension

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* packaging: remove SKIP_KERNEL_SYMLINK hack, fix the root cause

- which was the missing $image_name for non-arm64 & non-arm, so: x86 for example

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* grub: really obliterate u-boot stuff from BSP

- for now. soon we'll refactor u-boot so not have to do this

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* flash-kernel: really obliterate u-boot stuff from BSP

- for now. soon we'll refactor u-boot so not have to do this

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: add host_dependencies_ready() hook

- this passes FINAL_HOST_DEPS containing all hostdeps for the run after they're installed

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Add verification functions for correct selection.

* If UEFI Skip symlink creation

* Do not create dtb package for amd64

* Skip scripts folder cleaning if build process native.

Skip creating  postinst prerm scripts  for headers.

* Skip applying headers-debian-byteshift.patch if build native

* Fix architecture syntax as x86_64

* Revert "amd64: allow building amd64 on aarch64 with system toolchain"

This reverts commit 0c5ee20bb1.

* Compare architectures before starting compilation.



Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>

* extensions: cleanups after fixes by the-Going

- packaging:
  - there is _no need_ anymore for the symlink hack, CONFIG_EFI or no. But check is great, see below
  - it's not `amd64` that has no DTB's, it's all UEFI, thus: `is_enabled CONFIG_EFI`, thanks!
- Explicitly disallow "reverse cross compile" in amd64.conf.
- whitespace-only-deletions: revert. we shall shellfmt the whole thing one day, but not today.
- fix a few syntax warnings in newly introduced code (floating `$ARCH` vs `"${ARCH}`) - blame shellcheck

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* packaging: fix: turns out a lot of boards have CONFIG_EFI=y, can't use that for dtb/no-dtb decision.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* grub: remove debug

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* firmware: allow installing `armbian-firmware-full`; make it really full

- can now use `BOARD_FIRMWARE_INSTALL="-full"` to install full firmware for the board. enable for UEFI.
- don't rely on KERNELSOURCE for firmware-related decisions. introduce `INSTALL_ARMBIAN_FIRMWARE` which defaults to `yes`
- rpi4b/flash-kernel: disable Armbian firmware; we need linux-firmware-raspi2, which conflicts.

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: log to /${LOG_SUBPATH}/ instead of fixed /debug/

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: introduce cleanup_extension_manager() called by build-all-ng's unset_all()

- to reset/unset everything done by the the initializer, so build can run again

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: remove 'global' logging, for use with build_all_ng

- enable_extensions() will have to live on without logging to file. it's just too early.
- now init EXTENSION_MANAGER_TMP_DIR in initialize_extension_manager()
- now init EXTENSION_MANAGER_LOG_FILE in initialize_extension_manager()

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* extensions: build-all-ng.sh bugfix due to extension's debug to stdout

- extensions (among other things) can produce output to stdout when activated
- fix: check_hash() produced "idential" (sic, now changed to IDENTICAL) to stdout as a trigger
- debugging output got mixed with "idential", rendering hash cache void for families that used extensions
  - eg: sunxi, others
- fix is to send stdout to the bitbucket when sourcing the board & arch config files
- proper fix would be stop using stdout in this case and use return code for check_hash()
  - one day soon

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>

* Add CI build targets

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
Co-authored-by: The-going <48602507+The-going@users.noreply.github.com>
2021-12-06 09:49:49 +01:00
Igor Pecovnik
2eae831889
Calculate patches changes only on first level since this fails when including subfolder. Bug in sort. Needs to be reworked once
Also cleanup few patches we don't need.
2021-12-05 16:53:08 +01:00
Julian Sikorski
aed2717909
Update odroidxu4-current to 5.4.163 (#3308) 2021-12-02 20:26:36 +01:00
Vyacheslav
39263b5e76
JetHome: fix thermal zones in JetHub D1 dts file (#3301) 2021-11-30 19:00:19 +01:00
The-going
bfe0300700
Fix warning: "IEEE80211_MAX_AMPDU_BUF" redefined if rtl8723cs module build (#3286)
All warning:
debug> grep warning: compilation.log | wc -l
152
A large number of garbage warnings:
debug> grep warning: compilation.log | grep IEEE80211_MAX_AMPDU_BUF | wc -l
103

After v4.19 linux kernel, this definition is not required.

Check:
list="$(find drivers/net/wireless/realtek/ -type f)"
for f in $list;do awk -v f=$f '/IEEE80211_MAX_AMPDU_BUF/{print f}' $f;done
drivers/net/wireless/realtek/rtlwifi/base.c
drivers/net/wireless/realtek/rtl8723cs/include/wifi.h

Only one drivers/net/wireless/realtek/rtlwifi/base.c file uses
the definition IEEE80211_MAX_AMPDU_BUF_HT.
or
See `git log -p b8042b3da925f390c1482b -3` command in
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
2021-11-28 21:32:07 +01:00
The-going
ada47377b5
Patches megous current branch to v5.10.82 (#3294)
* Kernel switch tag: v5.10.82
* Rework series megouse for v5.10.82
* Switch new packaging for kernel 5.10 and more
2021-11-28 21:31:24 +01:00
The-going
33c413c679
Patches megous 5.15.5 (#3295)
* Rework patches for sunxi 5.15.4

* Rework patches sunxi for 5.15.5

* Kernel switch tag=v5.15.5 for sunxi EDGE

* Temporarily disabled, requires rework.

drivers/clk/sunxi-ng/sun8i-de33.c: In function ‘sunxi_de33_clk_probe’:
drivers/clk/sunxi-ng/sun8i-de33.c:155:8:
 error: implicit declaration of function ‘sunxi_ccu_probe’;
 did you mean ‘of_sunxi_ccu_probe’? [-Werror=implicit-function-declarati>
  ret = sunxi_ccu_probe(pdev->dev.of_node, reg, ccu_desc);
        ^~~~~~~~~~~~~~~
        of_sunxi_ccu_probe
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:277:
         drivers/clk/sunxi-ng/sun8i-de33.o] Error 1
make[2]: *** [scripts/Makefile.build:540: drivers/clk/sunxi-ng] Error 2

* Correct the comment.
2021-11-28 16:48:47 +01:00
The-going
7964a578f5
Patches megous 5.10 (#3293)
* Add a series of patches for sunxi 5.10

Patches from the repository
https://github.com/megous/linux branches of orange-pi-5.10

* Patches adapted to the kernel version v5.10.81

* Remove unnecessary patches 5.10.19-5.10.75

* Kernel switch tag=v5.10.81 for the current sunxi

* Adjust broken patches, build tested on sunxi and sunxi64

* Remove patch added by mistake

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-11-27 00:48:30 +01:00
Heisath
d861f37a9f Fix mvebu patches once more 2021-11-25 09:05:55 +01:00
Oleg
9204ef6f81
fix dts firefly-rk3399 for edge (#3287) 2021-11-23 23:10:17 +01:00
Igor Pecovnik
cf2b423b5c
Disabling two broken patches that prevent kernel recompilation
@heisath
2021-11-23 23:07:37 +01:00
Paolo Sabatino
e9fe8fe177
rockchip64: remove mainlined patches/hunks for current 5.10 kernel 2021-11-23 14:51:15 +00:00
Heisath
caa68d4085 Update mvebu patches 2021-11-22 08:46:18 +01:00
Igor Pecovnik
9dbb72b01c
Adjusting patches due to upstream changes to make mvbe family operational again
@heisath
2021-11-21 17:58:03 +01:00
Piotr Szczepanik
3b1812c002
Fixed rockchip64 current compilation - broken since c67b70aa3d 2021-11-20 22:38:34 +01:00
Oleg
c67b70aa3d
fix SD for firefly-rk3399 (#3268) 2021-11-20 19:49:42 +01:00
simple
401fb1fde4
Fixed rt5651 codec build module (#3270) 2021-11-20 19:49:22 +01:00
The-going
864ae626a8
Switch sources for sunxi 5.15 to the mainline kernel source. (#3272)
* Add new function apply_patch_series
* Apply a series of patches if a series.conf file exists
* Add all megous orange-pi-5.15 branch patches as series
* Add an Exception for version 5.15 for sanxi
* Adjust the switch for sunxi
* Fix megous patches series for v5.15.3
* Switch version to 5.15.3 for sunxi
* Check the exception for 5.15 sunxi
2021-11-20 19:48:51 +01:00
Igor Pecovnik
f889bc775c
Fixing broken Orangpi Zero2 legacy build due to upstream changes 2021-11-20 17:12:49 +01:00
Igor Pečovnik
d3386b5480
Upstream patches (#3267) 2021-11-17 23:59:00 +01:00
Igor Pečovnik
1ecdf0af57
Remove upstream patches to workaround libc bug (#3261) 2021-11-16 19:40:51 +01:00
Igor Pečovnik
9d8609d965
Add critical patches from Khadas repository (#3255) 2021-11-15 12:42:57 +01:00
tonymac32
9ccb9966e3 Fix UART speed for K2 BT
if you don't set the max speed, it doesn't run well.
2021-11-14 20:40:38 -05:00
tonymac32
2a78d51306 NanoPi K2 add BT support
NanoPi K2 has built-in wifi/BT, add BT DT entry.
Firmware has been added to armbian/firmware repo
2021-11-14 19:14:04 -05:00
Julian Sikorski
958a95b933
Update odroidxu4-current to 5.4.159 (#3249) 2021-11-12 21:15:17 +01:00
catalinii
4b246221e0
Fix the build on rk35xx platform (#3247)
Co-authored-by: Catalin Toda <catalinii@yahoo.com>
2021-11-12 06:17:07 +01:00
Paolo Sabatino
29335b0c99 rk3328: dmc driver fixes:
* rework to fix regulator and frequency issues
 * rework nanopi-r2s, roc-cc and roc-pc patches to accomodate dmc dtsi changes
 * map gpu as cooling device
 * fix dmc 600 Mhz opp node min voltage
2021-11-11 22:31:07 +01:00
Paolo
4c3dcbf4fc
Rockchip 5.15 (#3242)
* rockchip: bump to kernel 5.15, reworked mainlined patches

* rk322x: bump edge kernel to 5.15, reworked mainlined patches

* rk322x: update edge kernel config

* rockchip: remove some debug config options due to chatty dmesg

* Add patches to revert ipx.h header file remove in 5.15 kernel
2021-11-09 21:58:35 +01:00
Igor Pečovnik
dd51f9f2af
Bump imx6, xu4, rockchip64 and jetson-nano to 5.15 (#3238)
* Bump to 5.15.y imx6, xu4, rocchip64, jetson-nano

* Sunxi patches cleanup

Thanks @jernejsk

* Bump Meson64 to 5.15.y

* Bump mvebu* to 5.15.y

@heisath

Disable 13-net-mvneta.patch - double check.

* Add uppstram patch for opi zero2 legacy kernel

* Update mvebu mvneta patch

* Orangepi Zero2 reboot fix

Co-authored-by: Heisath <jannis@imserv.org>
2021-11-09 18:06:34 +01:00
Igor Pečovnik
36c06fec28
Bump sunxi to 5.15.y (#3236) 2021-11-07 00:04:02 +01:00
Piotr Szczepanik
d178ad02bf
Disabled regulator supply validation in rockchi64 current
Works around all those "Failed to register regulator: -517" errors
2021-11-06 22:08:48 +01:00
Igor Pecovnik
a74ef8778f
Update upstream patches 2021-10-28 19:37:09 +02:00
Paolo Sabatino
5fa022603c rockchip64: provide rkvdec node for rk3328 2021-10-23 16:54:56 +02:00
Paolo Sabatino
f9275135aa rk3328: add rga node, fix probe 2021-10-22 19:58:33 +02:00
Paolo
682e4085ab
rockchip64: add IEP driver (#3215)
* rockchip64: add IEP driver
* enable IEP driver as kernel module
2021-10-21 22:55:25 +02:00
Igor Pečovnik
5ba09b73cd
Add upstream patches, remove deprecated (#3214) 2021-10-21 18:55:58 +02:00
Vyacheslav
3c4b69650e
Add support for JetHome JetHub D1/H1 home automation controllers (#3176)
* JetHome: add basic files for JetHub D1/H1 boards

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add uboot patches

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel patches for JetHub D1/H1 (backport from 5.16-dt kernel)

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add bsp packages for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add kernel options for hardware JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: fix targets-cli-beta.conf for JetHub D1/H1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>

* JetHome: add axg uboot creation function for JetHub D1

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2021-10-19 21:05:36 +02:00
Igor Pecovnik
c83bb5c3b2 Remove deprecated patch 2021-10-19 10:44:36 +02:00
Igor Pečovnik
c9afbb26b9
Add upstream patches (#3203) 2021-10-18 19:52:23 +02:00
Oleg
286eed02f7
fix jetson-nano (#3199) 2021-10-15 14:19:00 +02:00
Igor Pečovnik
997c103c26
Upstream patches and a patch name correction (#3194)
* Just upstream patches and a patch name correction

* Add configs
2021-10-14 00:01:42 +02:00
Igor Pečovnik
51ee548ab4
Delete 0381-drivrs-mmc-revert-g103a5348c-to-fix-some-wifi.patch
https://github.com/armbian/build/pull/3192
2021-10-13 13:18:19 +02:00
Vyacheslav
ae7c00689e
Remove unnecessary patch as backported to kernel 5.10.72 (#3192)
commit e5cb3680b958ed3eb66504c0865f767d760cc9cd
Author: Neil Armstrong <narmstrong@baylibre.com>
Date:   Tue Sep 28 09:36:52 2021 +0200

    mmc: meson-gx: do not use memcpy_to/fromio for dram-access-quirk

    commit 8a38a4d51c5055d0201542e5ea3c0cb287f6e223 upstream.

Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2021-10-13 12:49:41 +02:00
Paolo Sabatino
a1d044de8e rockchip: update support for edge kernel 5.14
* imported Rockchip project patches from libreelec
	* disable duplicate/unapplicable patches and rework others
	* add patches for tinkerboard, miqi and xt-q8l-v10 to enable hevc, hevc_mmu and rga nodes
2021-10-12 15:59:01 +02:00
Heisath
d972daac50 Update net dsa mv886xxx patch 2021-10-10 21:31:27 +02:00
Heisath
d45499694e Update mvebu-edge 5.14 patches with version from http://git.armlinux.org.uk/cgit/linux-arm.git/log/?h=clearfog 2021-10-10 21:31:14 +02:00
Heisath
5a8513360c Switch mvebu-edge to kernel 5.14 2021-10-10 21:30:56 +02:00
Heisath
4b87543863 Add PCIe Wifi quirks patch for Atheros and Qualcomm cards
https://lore.kernel.org/linux-pci/20210505163357.16012-1-pali@kernel.org/
2021-10-10 09:21:02 +02:00
Igor Pečovnik
a38a3ff77b
Upstream patch (#3183) 2021-10-09 17:58:25 +02:00
Igor Pečovnik
c74b8ea582
Orangepi Zero 2 legacy - add upstream patches (#3180) 2021-10-09 17:57:33 +02:00
Igor Pečovnik
cd7131cd86
Add upstream patches for sunxi (#3177) 2021-10-07 18:53:56 +02:00
Oleg
b2d54059f7
fix analog sound station-p1 (#3166) 2021-10-07 16:48:09 +02:00
Igor Pečovnik
5059acac6a
Add upstream patches (#3175) 2021-10-07 01:08:09 +02:00
Haraade
cab962caa5
Odroidxu4 upstream 5.4.149 (#3170) 2021-10-04 18:20:25 +02:00
Paolo Sabatino
03ef2ce9ac
rockchip64: raise voltage on rk3328 gpu opp table for stability with high-speed ddrbins on edge kernel 2021-09-27 19:12:34 +00:00
Ricardo Pardini
956c1606de
meson64: current (5.10.y): ODROID N2(+) patchset rework for mainline u-boot, stability and rebootability (#3154)
- starting from Home Assistant OS (HASSOS) setup/patchset, which is stable with pure-mainline
  - *huge thanks* to Stefan Agner (@agners) from Home Assistant for his work and help with this
  - CONFIG_DRM_MESON=y fixes the order of shutdown callbacks, allowing it to reboot without patches
    - this increases the kernel size a bit, due to some dependencies like DRM=y
    - remove the shutdown revert patch, allowing other meson64 boards to mainline-reboot
  - add fdt/no-map patch fixing the dreaded "SError Interrupt on CPU4" panics that plagued the N2
- move the N2 to mainline u-boot on current (rebased, already done)
  - add SPI-enabling DTB variants, which allow writing to SPI NOR flash (and usage instructions in comments)
    - add UBOOT_TARGET_MAP and write_uboot_platform_mtd to current, for nand-sata-install to SPI/USB goodness
  - remove the UHS-enabling patch, to avoid 1.8v vs 3.3v mess. Make sure to use only A1-rated SD cards as recommended.
- change default cpufreq governor for 24h+ stability
- other patch cleanups:
  - move deprecated/non-applying patch to need-check
  - remove the HardKernel ODROID-specific reboot driver and DTS patches (odroid-reboot.c) which are now useless.
  - remove documentation-only patches (we have enough patches in meson64 without those)
  - remove duplicated SAR ADC patches
  - remove multiple different and conflicting patches for DTS and emulated-PWM GPIO fan
    - now using simple on/off GPIO fan at 30 celsius, unrelated to passive cooling
2021-09-26 21:44:28 +02:00
Igor Pecovnik
5ba4159b17
Upstream patches and config adjustements 2021-09-26 20:06:31 +02:00
Igor Pecovnik
fbaeb940ca
Consolidate wireless driver related patch
Fixing troubles in https://github.com/armbian/build/pull/3154
2021-09-26 17:25:52 +02:00
Paolo Sabatino
a71ef23575 rockchip64: tidy up rk3328 patches
* remove 0-rever-rk3328.dtsi-.patch
 * split rk3328-dtsi-mmc-vdec-usb3-tweaks.patch into different specific patches (sdmmc-ext, mmc-reset, power domains, usb3 resets)
 * split rk3328-audio-and-renegade-supplies.patch into specific roc-cc audio and supplies patch and general rk3328 spdif patch
 * add "dtsi" infix to rk3328 patches that deal with dtsi files
 * add back mali gpu operating points patch
2021-09-26 08:35:58 +00:00
Igor Pecovnik
17507962f5
Maintenance - add and remove upstream patches 2021-09-25 08:30:11 +02:00
Werner
7dfc3e34f6
Create 9999-revert-net-stmmac-dwmac-rk-fix-unbalanced-pm_runtime_enab… (#3149)
* Create 9999-revert-net-stmmac-dwmac-rk-fix-unbalanced-pm_runtime_enable-warnings.patch

Temporary fix for rk3399 eth issue introduced with 5.14.y
https://forum.armbian.com/topic/18956-hirsute-no-ethernet-after-update/?do=findComment&comment=128876

* wrong archive

* Create revert-fix-unbalanced-pm_runtime_enable-warnings.patch

Reverts 2d26f6e39a
https://forum.armbian.com/topic/18956-hirsute-no-ethernet-after-update/?tab=comments#comment-128877
2021-09-24 19:00:01 +02:00
Paolo Sabatino
a25ce2e075
rk322x: remove mainlined patches 2021-09-19 16:58:15 +00:00
Igor Pecovnik
2fb7ad52e0 Update upstream patch for sunxi edge 2021-09-19 15:14:47 +02:00
Kali Prasad
b29527c697
Thermal sensor support for H616 SoC. (#3153)
Signed-off-by: Kali Prasad <kprasadvnsi@protonmail.com>
2021-09-19 12:10:59 +02:00
Piotr Szczepanik
a105cd2756
Removed mainlined (5.10.67+, 5.14.6+) rockchip_i2s_tdm changes for ROCK Pi S 2021-09-18 22:48:20 +02:00
Paolo Sabatino
5710008358 rk322x: add rga probe patch for edge kernel 2021-09-18 10:29:57 +00:00
Paolo Sabatino
176fa36df4 rk322x: disable rtl8723cs wifi patch for edge kernel 2021-09-18 10:29:57 +00:00
Paolo Sabatino
5474cba740 rk322x: fix sdio wifi pinctrl on IPB900 board 2021-09-18 10:29:57 +00:00
Paolo Sabatino
dd1d2ba781 rk322x: hardware cursor for current kernel 2021-09-18 10:29:57 +00:00
Paolo Sabatino
b39c367a35 rk322x: prefer 8-bit hdmi output over YCbCr 2021-09-18 10:29:57 +00:00
Paolo Sabatino
31d238930b rockchip: enable broadcom serdev bluetooth for current and edge kernels
* add workaround against default MAC Address (userland utility bdaddr does not work to set MAC Address as expected)
	* enable bits for xt-q8l-v10 board (ap6330/bcm4330 part), switching AP6330 bluetooth to btbcm driver using serdev
	  facilities to avoid userspace machinery with deprecated hciattach tool, added bits to enable driver support in kernel.
	  Removed ap6330 bluetooth service from bsp packages, added initramfs-tools hook to include bcm4330b1.hcd firmware in initramfs
2021-09-16 17:51:34 +00:00
Paolo Sabatino
8409f1bfcb rockchip: fix rga probe function 2021-09-16 14:38:44 +00:00
Chris McGee
bc7dfd1dd6
Bring forward and update pinecube sound patch for kernel 5.14 (#3144) 2021-09-15 22:21:21 +02:00
Ruikai (Rick) Liu
687c363918
Add NanoPi R2C support (#3138)
* Add NanoPi R2C support
* Bring NanoPi R2C, R2S to edge
2021-09-15 22:20:35 +02:00
Piotr Szczepanik
0069ad60a6
Preliminary support for rockchip rk35xx boards (#3111) 2021-09-15 22:08:39 +02:00
simple
15819f00e2
general add panel simple dsi (#3140)
* Backporting patch to 5.10 kernel makes sense. Lets do it.

Co-authored-by: iamdrq <iamdrq@qq.com>
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-09-12 20:06:02 +02:00
Paolo Sabatino
bef4992ac1 rk322x: analog audio codec for edge kernel 2021-09-12 14:26:18 +00:00
Paolo Sabatino
85a0682229 rk322x: enable yuv modes for win1, enable 10bit modes for both win0/1 2021-09-11 17:56:26 +00:00
Paolo Sabatino
f15bc37276 rk322x: add back edge kernel patches lost in the process, hardware cursor dedicated plane 2021-09-11 12:51:28 +00:00
Paolo Sabatino
6f95a75542 rk322x: fix edge kernel dtb patch 2021-09-11 12:51:28 +00:00
Igor Pečovnik
5672f0fa5d
Add Odroid XU4 current upstream patches and enable Mali kernel driver (#3137) 2021-09-10 08:25:03 +02:00
Paolo
4425589e15
rk322x: bump edge kernel to 5.14, u-boot to 2021.07 (#3133) 2021-09-09 22:59:12 +02:00
Igor Pecovnik
96dd55548e
Add patches which were deleted by mistake. Also add upstream patch for sunxi 2021-09-08 20:13:00 +02:00
Igor Pečovnik
744ea89a58
Bumping EDGE kernel to 5.14.y (#3125)
* Bumping EDGE kernel to 5.14.y

Meson64:
- removing Odroid reboot shutdown patch since its probably not needed anymore

Rockchip64:
- removing Rockpi S. No interest to maintain this any further
- removing PBP suspend. Doesn’t align. Need inspection if some other way was mainstreamed
- temporally removing Orangepi R1

* Re-adding rockpis, pbp suspend, HFLPS170 wifi and cleanup

* Removing deprecated patch, fixing ap6256 wifi

* Re-enable Opi R1 plus, untest

* Add and fix Radxa Zero
2021-09-08 17:51:34 +02:00
Oleg
a33445c910
fix kernel station current (#3127) 2021-09-08 17:50:23 +02:00
Igor Pečovnik
abbe87a450
Add Radxa Zero initial support (#3128)
* Add support for Radxa Zero

u-boot: new patch based on v2021.04
kernel: use patches sent to kernel list by chewitt

Tested with minimal build and cinnamon desktop:
- SD/eMMC, ok
- USB3, works in USB 2 mode
- HDMI, ok
- WiFi/BT, ok

Signed-off-by: Jack Ma <jack@radxa.com>

* Add build targets

* Cleanup and set min speed to 666000

* Change to WIP target

Support status undetermined

Co-authored-by: Jack Ma <jack@radxa.com>
2021-09-08 17:50:05 +02:00
Piotr Szczepanik
5f2e23e908
Disabled hs400 on Helios64 (hopefully only temporarily) (#3126) 2021-09-08 09:54:06 +02:00
Chris McGee
72def00d8c
Pinecube: add i2s device to the sound patch (#3122) 2021-09-03 18:28:26 +02:00
Chris McGee
97f9725033
Add enable pinecube sound to 5.13 (#3120)
This brings the patch forward from 5.11 to the new edge 5.13 kernel
2021-09-02 20:44:45 +02:00
Ricardo Pardini
334d847512
ODROID N2(+): chewitt's uboot + SPI-NOR enable via extra DTBs = SPI Boot to USB, no more hangs. (#3119)
- fix/dup bootscript, since new u-boot fixed n2_plus to n2-plus variant
- g12b: if n2 and edge, enable new u-boot; include non-SD version as SPI binary; write_uboot_platform_mtd
- Kernel DTS patch to add SPI-flash-enabled DTBs (slower eMMC), produces -spi .dtbs for n2 and n2-plus
  - This could also be an overlay, but I dunno overlays.
- SPI+USB3 boot works with "pendrive" storage, untested with cabled/high power USB->SATA or USB->NVMe

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-09-02 20:44:19 +02:00
Stefan
c6c1981631
fix bananapro dts for using lima driver (#3117)
https://forum.armbian.com/topic/14180-bananapro-lima-driver-problems/
2021-09-02 20:44:01 +02:00
Kali Prasad
eca69597d7
Fix h616-RTC patches that are breaking builds for armhf (#3118)
* Fix h616-RTC patches that are breaking builds for armhf
* Place fixed patches inline

Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2021-09-02 20:41:53 +02:00
Haraade
b67ac420a2
Upstream Hardkernel 5.4.134 (#3116)
* Upstream Hardkernel 5.4.134

Upstream Hardkernel 5.4.134

* Upstream 5.4.142

Upstream hardkernel 5.4.142
2021-08-27 13:31:24 +02:00
Igor Pecovnik
c9785ba958
Upstream patches 2021-08-24 09:21:03 +02:00
Igor Pecovnik
9a478d4376
Adding and removing upstream patches 2021-08-19 18:29:03 +02:00
Igor Pecovnik
f55584f9e9 Remove deprecated patches 2021-08-19 18:16:18 +02:00
Igor Pečovnik
6d82498bec
Remove deprecated patch (#3097) 2021-08-16 20:32:22 +02:00
Igor Pecovnik
5402a2770b Add upstream patches 2021-08-16 12:53:22 +02:00
Igor Pečovnik
d54b2d6a84
Adding OPi Zero2 legacy kernel support (#2620)
* Adding OPi Zero2 legacy kernel support
2021-08-12 19:19:18 +02:00
Igor Pecovnik
14a04e66b5 Upstream patches 2021-08-12 19:17:29 +02:00
Tony
c5edfdcc6d
Delete board-nanopi-k2-ethernet-fix.patch
This patch is no longer relevant and interferes with Ethernet in newer kernels.
2021-08-12 12:24:47 -04:00
Paolo Sabatino
cba37d6b47 rk322x: fix mainlined patches 2021-08-09 20:17:28 +00:00
Tony
f3a8c1769e
Fixing ethernet on K2, audio on C2 and patch cleanup (#3089)
* [ meson64 ] nanopi K2 ethernet fix

Fix NanoPi K2 Ethernet issues

Do some cleanup of the Meson64 folder while at it

* [ Meson64 ] revert accidental delete of C2 audio patch
2021-08-09 08:27:39 +02:00
Tony
ee610096bc
RK3328 GPU DMC OPP tables (#3088)
* [ RK3328 ] boost GPU voltages to avoid starving Memory controller

The RK3328 has the dynamic memory controller and GPU on the same power rail.
Both are able to be dynamically clocked, both have opp tables.

 - DMC min voltage:  1.075V
 - GPU min voltage:  0.950V

On boards with only the GPU enabled, they memory controller can be under-voltaged.
On boards attempting to use both, the disagreeing opps result in the GPU failing to init

This patch applies a mV range opp to the GPU and fixed opps to the DMC on rk3328-roc-cc
to allow everything to get alongin all possible devfreq situations.

* [ rockchip64 ] clean up disabled patches

* [ rock64 ] add mali supply and remove unused 5V supply

- New Mali opps will keep from starving ram controller

- extra supply was causing dmesg errors.

As it shares enable with another supply and both were marked "always on"
I removed the second.  Neither are referenced by any ports/devices.
2021-08-09 08:24:51 +02:00
Igor Pecovnik
d1aaa70511 Upstream patches add and remove 2021-08-08 14:12:06 +02:00
Tony
01f67a51dc
Merge pull request #3065 from armbian/rk3328-usb3
Move Rk3328 usb3 to mainline
2021-08-06 19:48:04 -04:00
Igor Pecovnik
4bc2dd27b1 Bugfix - disable wireless driver for older kernels and add a few upstream patches for meson64 legacy
Kernel was only tested for building.
2021-08-06 18:27:23 +02:00
Igor Pecovnik
7f44207062 Add upstream patches and re-add Orangepi3 to u-boot 2021-08-05 01:15:36 +02:00
Igor Pečovnik
f317cd72b4
Upstream patches (#3071)
* Upstream patches

* Adjust configs

* Revert xu4 config
2021-07-29 17:24:52 +02:00
Ricardo Pardini
13329ebcd0
Odroid HC4: pick 5.13's patches for SPI-NOR dts and XT25F128B flash chip (#3069)
- add mtd-utils to PACKAGE_LIST_BOARD.
- this should be enough to wipe Petitboot;
- more investigative work and u-boot building is needed for SPI+SATA boot

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-07-28 21:54:35 -04:00
tonymac32
3205bb1d90 [ rockchip64 ] Rock64 and roc-cc usb3 2021-07-27 01:31:17 -04:00
tonymac32
d8dbefd618 [ rockchip64 ] rk3328 change to mainline USB3 2021-07-27 00:05:09 -04:00
Paolo Sabatino
74561e9800 rockchip64: remove patches committed by accident 2021-07-26 15:45:17 +00:00
Oleg
4a1e862ebd
fix 5.10.53 (#3059) 2021-07-26 14:55:32 +02:00
Werner
eaea7142be
Fix ebin SATA (#3057)
* Create 0001-pci-Add-Max-Payload-Size-quirk-for-ASMedia-ASM1062-SATA-controller.patch

* Removing email headers from patch

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2021-07-26 10:06:20 +02:00
Igor Pecovnik
885a99fe66 Adjust and add upstream patches
- reenable 8723ds on K5.13 and remove deprecated wifi patches
- adjust rockchip audio and vdec patches in 5.13.y as in 5.10.y
2021-07-26 07:54:09 +00:00
tonymac32
4c52601d52 [ rockchip64 ] remove superceded pacth
Kernel 5.10.51 --> 5.10.52 fixed this in mainline
2021-07-25 16:06:54 -04:00
tonymac32
67599e3dbb [ rockchip64 ] fix RK3328 build issues
5.10.52 --> 5.10.53 changed all power doamin names, and bugfixed the sdmmc regulator states
2021-07-25 16:02:44 -04:00
Haraade
d348851e70
Upstream Hardkernel 5.4.134 (#3049)
Upstream Hardkernel 5.4.134
2021-07-23 10:07:51 +02:00
Paolo Sabatino
5023beb1e5 rk322x: remove upstreamed patch 2021-07-22 15:21:24 +00:00
Igor Pecovnik
f83100f9af Orangepi Lite 2 - fixing HDMI and removing bits that are already mainlined
Thanks to Jernej:
https://forum.armbian.com/topic/12862-orange-pi-lite2-no-more-1920x1080-kernel-55x/?do=findComment&comment=127157
2021-07-22 09:06:01 +02:00
Igor Pečovnik
e7377248b3
Second part of EDGE bumping to 5.13.y (#3045)
* Bump Meson64 EDGE to 5.13
* Bump Rockchip64 EDGE to 5.13.y
* Bump Odroid Xu4 edge to 5.13.y
* Bump rockchip edge to 5.13.y
2021-07-22 00:15:54 +02:00
Igor Pecovnik
e7177f3b9b Adjust sunxi-current patches - remove broken, add upstream 2021-07-21 17:46:55 +00:00
Oleg
30e8fc7d83
fix station-current 5.10.52 (#3043) 2021-07-21 14:31:34 +02:00
Igor Pečovnik
e21e82b546
Upgrading sunxi, sunxi64, imx6, jetson-nano, mvebu and mvebu64 EDGE to 5.13 (#3042)
* Upgrading sunxi and sunxi64 EDGE to 5.13

Both variants tested for building

* Bump imx6 to 5.13.y

Tested

* Bump Jetson nano kernel to 5.13.y

* Move mvebu and mvebu64 edge to 5.13.y
2021-07-21 00:46:51 +02:00
Igor Pecovnik
06a8324977 Bugfix for rockchip64 current kernel compilation and upstream patches 2021-07-19 15:59:58 +00:00
Oleg
1c7b8ab10d
fix kernel 5.10.51 (#3034) 2021-07-19 13:41:46 +02:00
Paolo Sabatino
fe4f00ecdc rk322x: fix deferred voltage regulator, gpu opp table and dmc missing regulator for edge kernel 2021-07-18 15:31:49 +00:00
Paolo Sabatino
e4add7b8fd rk322x: update rk322x-edge kernel config, add DMC patches and overlays 2021-07-18 14:06:35 +00:00
Paolo Sabatino
baf9815f8b rk322x: add DMC driver and runtime clock adjust, change rk322x-config emmc options
* add DFI driver to provide hardware-based memory controller load
     * adapted DRAM Memory Controller driver from rk3328, add necessary headers
     * provide device tree overlays to enable DDR3 clock scaling
     * adapted rk322x-box to allow DDR speed bin selection to user
     * add ipb900 board gpio configuration
     * add rtl8723cs driver to linux-current kernel
     * use ddrbin v1.10 set to 330 Mhz at boot
     * provide overlays for ddr3 at 330, 528, 660 and 800 mhz
     * split emmc overlays to enable options by user choice
     * modified rk322x-config to support dmc, emmc overlays
     * remove optee trust os in favor of rockchip proprietary blob
       for dmc functionality
2021-07-17 15:21:48 +00:00
Paolo Sabatino
429136e062 rk322x: rework patch for kernel 5.12 2021-07-17 13:52:30 +00:00
Paolo Sabatino
a2942247ca rk322x: adjust patches for kernel 5.10 2021-07-17 13:52:30 +00:00