Commit Graph

234 Commits

Author SHA1 Message Date
Tianling Shen
548267c6bd Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-15 18:49:14 +08:00
Philip Prindeville
23f94aa330 kernel: include CONFIG_KEXEC_SIG in configs
Seeing failure to build because of missing symbols related to provisioning
CONFIG_KEXEC and signed images.  Without this, if you set
CONFIG_KERNEL_KEXEC=y and try to build, target/linux will hang at:

scripts/kconfig/conf  --syncconfig Kconfig
...
kexec system call (KEXEC) [Y/n/?] y
kexec file based system call (KEXEC_FILE) [Y/n/?] y
Verify kernel signature during kexec_file_load() syscall (KEXEC_SIG) [N/y/?] (NEW)

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2022-03-15 08:33:45 +01:00
Tianling Shen
379ff4a41a Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-08 09:55:56 +08:00
msylgj
8dbec6a2fe r8168: allow build for kernel 5.10 2022-03-05 17:11:46 +08:00
Rui Salvaterra
8235723c78 kernel: 5.10: remove CONFIG_DEVTMPFS{,_MOUNT} from kconfigs
They are required for container support, but are handled in Config-kernel.in.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2022-03-01 22:57:40 +00:00
Tianling Shen
5fa0c4a823 rockchip: remove default wireless config for Rockpi 4A
This is actually broken.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-01 21:06:04 +08:00
Tianling Shen
a672f0b7e8 rockchip: motorcomm: fix typo error
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-14 00:12:33 +08:00
Tianling Shen
eaad124155 rockchip: remove outdated kernel version check
Since kernel 5.4 was gone, remove them.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 21:24:45 +08:00
Tianling Shen
9d64b55c2e rockchip: add OrangePi R1 Plus LTS support
This board is a fork of OrangePi R1 Plus, with native NIC changed.

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 20:34:48 +08:00
Tianling Shen
a59a466d57 rockchip: motorcomm: add yt8531 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 20:34:36 +08:00
Tianling Shen
3ca7a5f921 rockchip: motorcomm: move new files to dir
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-13 20:03:34 +08:00
Tianling Shen
1c9c6ec230 rockchip: fix led-data of NanoPi R2C
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-02-11 02:01:51 +08:00
AmadeusGhost
3a8c6f9067 Merge Official Source 2022-02-09 19:51:52 +08:00
David Bauer
2b583ab8a7 rockchip: disable UHS modes for NanoPi R4S
The NanoPi R4S leaves the SD card in 1.8V signalling when rebooting
while U-Boot requires the card to be in 3.3V mode.

Remove UHS support from the SD controller so the card remains in 3.3V
mode. This reduces transfer speeds but ensures a reboot whether from
userspace or following a kernel panic is always working.

Signed-off-by: David Bauer <mail@david-bauer.net>
2022-01-27 01:44:28 +01:00
Tianling Shen
ff4cbb40f2 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-28 05:23:03 +08:00
David Bauer
e1780de5ce rockchip: remove Kernel 5.4
As v5.10 is the default kernel version now, the files for v5.4 can be
dropped.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-12-27 03:13:36 +01:00
Tianling Shen
c019d2a8c4 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-24 23:40:51 +08:00
Sergey Ryazanov
fa3690f8f1 kernel: 5.10: consolidate mac80211 crypto options
Each of
- CRYPTO_AEAD2
- CRYPTO_AEAD
- CRYPTO_GF128MUL
- CRYPTO_GHASH
- CRYPTO_HASH2
- CRYPTO_HASH
- CRYPTO_MANAGER2
- CRYPTO_MANAGER
- CRYPTO_NULL2

either directly required for mac80211 crypto support, or directly
selected by such options. Support for the mac80211 crypto was enabled in
the generic config since c7182123b9 ("kernel: make cryptoapi support
needed by mac80211 built-in"). So move the above options from the target
configs to the generic config to make it clear why do we need them.

CC: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2021-12-17 16:16:34 +01:00
Sergey Ryazanov
b61ab8f57e kernel: filter out both Clang and LLD versions
Both CLANG_VERSION and LLD_VERISON are autogenerated runtime
configuration options, so add them to the kernel configuration filter
and remove from generic and per-target configs to keep configs clean.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
2021-12-17 16:16:34 +01:00
AmadeusGhost
e7d97b0d73 rockchip: 5.10: NanoPi R2S: fixes vcc-rtl8153-regulator
This patch incorrectly puts vcc-rtl8153-regulator at the forefront,
causing probe timeout all the time. This commit backport the upstream
commit https://github.com/torvalds/linux/commit/d49f120 ("arm64: dts:
rockchip: Enable USB3 Ethernet on rk3328 NanoPi R2S") to ensure that
this regulator can be normally supplied.

Before:
  reg-fixed-voltage vcc-rtl8153-regulator: deferred probe timeout,
  ignoring dependency.

After:
  vdd_5v_lan: supplied by vdd_5v

Fixes: d53ae8c ("rockchip: add Kernel 5.10 support")
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 6d407b9ee8)
2021-11-30 00:12:49 +08:00
Tianling Shen
89390604f2 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-11-01 12:53:08 +08:00
Chukun Pan
cc2a8c2545 rockchip: move r8152 related patches to generic
These patches can be used on other platforms, so
move it to generic.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
2021-10-30 21:17:20 +02:00
AmadeusGhost
93030815a7 rockchip: hwrng: sync with official develop-4.19 branch
ee89075 hwrng: rockchip: add rk356x support

(cherry picked from commit c7621fb09f)
2021-10-21 12:29:52 +08:00
AmadeusGhost
c7f21b8f63 rockchip: remove vendor usb3 inno driver files
(cherry picked from commit 4db435509d)
2021-10-21 12:29:44 +08:00
Tianling Shen
e94abee050 rockchip: remove rockchip's proprietary usb3 inno driver
It's never used.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-20 16:43:54 +08:00
AmadeusGhost
a4fed6919d kmod-saradc-rockchip: fixes dependencies on 5.10
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 16be2d38b4)
2021-10-20 16:42:12 +08:00
AmadeusGhost
c2d9f084db kmod-drm-rockchip: fixes dependencies on 5.10
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 05f93afae6)
2021-10-19 11:10:57 +08:00
AmadeusGhost
11f65c6de5 rockchip: rename nanopi2-timing to default-timing
There is nothing device specific about this file.

(cherry picked from commit 375466ae21)
2021-10-19 11:10:52 +08:00
Tianling Shen
188044c6e7 rockchip: refresh Kconfig
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 13:30:53 +08:00
AmadeusGhost
13f77f6098 kmod-saradc-rockchip: add new package
This driver support for the SARADC found in SoCs
from Rockchip.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 1df20c4d7d)
2021-10-18 13:27:55 +08:00
AmadeusGhost
b72a3b72f4 kmod-drm-lima: rename and enable support for sunxi
This driver can be used on AllWinner h3/h5 and rk3328.

Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit 971af214bc)
2021-10-18 13:27:31 +08:00
AmadeusGhost
01cb99bef5 kmod-drm-rockchip: add missing kconfig
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
(cherry picked from commit cd89cce53d)
2021-10-18 13:26:32 +08:00
Tianling Shen
77fca48d26 rockchip: update patch date
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 13:02:53 +08:00
Tianling Shen
4c139c0588 rockchip: apply overclocking to all devices
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-18 12:52:48 +08:00
Tianling Shen
cf49626f45 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-12 14:39:40 +08:00
Adrian Schmutzler
91eed5d9fb rockchip: rename "Rock Pi 4" to "Rock Pi 4A"
Kernel has added the different variants of the Rock Pi 4 in commit
b5edb0467370 ("arm64: dts: rockchip: Mark rock-pi-4 as rock-pi-4a
dts"). The former Rock Pi 4 is now Rock Pi 4A.

For compatibility with kernel 5.4, this rename has been held back
so far. Having switched to kernel 5.10 now, we can finally apply
it in our tree as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-10-10 00:57:56 +02:00
Adrian Schmutzler
0c2aa7c003 rockchip: switch to kernel 5.10
This target has testing support for more than half a year now.
Time to switch.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-10-10 00:51:39 +02:00
Tianling Shen
9d8fe8614b Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-04 09:33:43 +08:00
Hauke Mehrtens
57b323ce38 kernel: Deactivate some ARM64 errata workarounds
This deactivates the following workarounds for erratas in ARM64 CPUS:
CONFIG_ARM64_ERRATUM_1165522: Cortex-A76 cores (r0p0, r1p0, r2p0)
CONFIG_ARM64_ERRATUM_1286807: Cortex-A76 cores (r0p0 to r3p0)
CONFIG_ARM64_ERRATUM_1418040: Cortex-A76/Neoverse-N1 cores (r0p0 to r3p1)
CONFIG_CAVIUM_TX2_ERRATUM_219: Cavium ThunderX2
CONFIG_FUJITSU_ERRATUM_010001: Fujitsu-A64FX

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-10-03 01:13:18 +02:00
Tianling Shen
be47fc826a Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-26 11:48:22 +08:00
David Bauer
b56f7407d9 rockchip: fix broken squashfs sysupgrade
The rockchip platform supports squashfs SD card images. However, the
resulting image is not padded to completely fill the rootfs partition.

Because of that, the f2fs overlay might not be erased, resulting in
uci-defaults not bing executed or the configuration not being erased,
even though drop config was selected.

Modify the image generation process so the image is padded to cover the
entire root filesystem partition.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-09-24 12:28:48 +02:00
Tianling Shen
8b51e8c308 target: drop some default packages
Let users to decide build them or not.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-11 05:08:08 +08:00
Tianling Shen
d3b22f0cda Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-11 04:11:12 +08:00
Hauke Mehrtens
b9cc16a5e8 kernel: Set CONFIG_RCU_CPU_STALL_TIMEOUT=21
The default value for CONFIG_RCU_CPU_STALL_TIMEOUT was changed from 60
seconds to 21 seconds in 2012 in the upstream kernel. Some targets
already use 21 seconds.

This patch changes the default value in the generic configuration to 21
seconds and removes the target specific configuration options.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-09-09 20:24:12 +02:00
Tianling Shen
3f1589c8d9 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-30 16:47:55 +08:00
Rui Salvaterra
505b7a2d08 kernel: move two symbols to the generic kconfigs
CONFIG_RCU_{NEED_SEGCBLIST,STALL_COMMON} are set basically everywhere. Move them
to the generic kconfigs. And resort the generic kconfigs while at it.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-08-29 17:07:19 +02:00
Rui Salvaterra
7e135add24 kernel: disable CONFIG_RCU_EXPERT and friends
Based on the existing documentation [1][2], I dare anyone to demonstrate that
we need to fine-tune these RCU parameters. The (performance) breakage potential
for doing so is immense, so let's just please put down this loaded footgun.

Disable CONFIG_RCU_EXPERT and its dependent symbols. Additionally, remove the
CONFIG_RCU_EXPERT symbol from the target kconfigs which contain it.

[1] https://www.kernel.org/doc/Documentation/RCU/Design/Data-Structures/Data-Structures.html
[2] https://lwn.net/Articles/777214/

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
2021-08-29 17:03:38 +02:00
Tianling Shen
717a8a12dc Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-23 20:42:01 +08:00
Hauke Mehrtens
c18f91d118 kernel: Do not deactivate staging drivers
Do not deactivate the kernel configuration symbol CONFIG_STAGING in the
target configurations any more. This prevented the build of the exfat.ko
for example.

Fixes: FS#3979
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-08-21 01:10:17 +02:00
Ronny Kotzschmar
fd65ce6f32 rockchip: reliably distribute net interrupts
On the NanoPI R4S it takes an average of 3..5 seconds for the network devices
to appear in '/proc/interrupts'.
Wait up to 10 seconds to ensure that the distribution of the interrupts
really happens.

Signed-off-by: Ronny Kotzschmar <ro.ok@me.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-08-19 15:59:11 +08:00