Commit Graph

384 Commits

Author SHA1 Message Date
Tianling Shen
2cb3d63d11 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-25 14:47:13 +08:00
Tianling Shen
6ac5d62e78 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-24 14:01:53 +08:00
Tony Ambardar
c2d194a34e kernel: enable (ARM|ARM64)_MODULE_PLTS in generic config
This allows loading modules with large memory requirements, recently needed
while testing on armvirt/32. Past forum discussions [1] and bug reports [2]
also raised this and the ipq806x target already set it in response [3].
Given this increases kernel image size by only ~1KB, is generally useful on
multi-platform kernels, and enabled by default on upstream arm32 Linux, add
it to the generic config.

The setting has similar utility on arm64, is a requirement for KASLR, and
already enabled on most OpenWrt aarch64 targets, so pull this into the
top-level generic config.

[1]: https://forum.openwrt.org/t/vmap-allocation-for-size-442368-failed-use-vmalloc-size-to-increase-size/34545/7
[2]: https://github.com/openwrt/openwrt/issues/8282
[3]: f81e148eb6 ("ipq806x: update 4.19 kernel config").

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-05-23 05:49:46 -07:00
Tianling Shen
84f102eab3 rockchip: 6.1: sort patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 14:32:57 +08:00
Tianling Shen
269d0d9d98 rockchip: enable testing kernel version with 6.1 version
Enable testing kernel version with 6.1 kernel version.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 13:53:35 +08:00
Tianling Shen
1bd7864942 rockchip: 6.1: refresh config and add missing symbols
Refresh config for kernel 6.1 and add missing symbols

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 13:53:22 +08:00
Tianling Shen
58da242f09 rockchip: 6.1: refresh kernel patches
Refresh kernel patches for version 6.1.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 13:11:35 +08:00
Tianling Shen
496436c0e0 rockchip: 6.1: copy patches, config from 5.15
Copy patches and config from 5.15 kernel version.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 12:48:31 +08:00
AmadeusGhost
452eb0f5ce rockchip: fix DRM dependencies for kernel 6.1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-23 12:44:05 +08:00
Tianling Shen
88cac18bd6 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-21 20:13:18 +08:00
Tianling Shen
2ca84c2453 Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-19 11:51:16 +08:00
Tianling Shen
8f578c15b3 rockchip: add NanoPi R2C support
The NanoPi R2C is a minor variant of NanoPi R2S with the on-board NIC
chip changed from rtl8211e to yt8521s, and otherwise identical to R2S.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
64afcbad3d kernel: backport Motorcomm YT8521/YT8531 support
It will be used on NanoPi R2C and OrangePi R1 Plus LTS board.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
afff2feb28 rockchip: move UBOOT_DEVICE_NAME to default
Simplify variable usage.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
e35c7ab51f rockchip: merge bootscript
The bootscript for nanopi r2s/r4s only changes the serial address, so
make it auto detected in mmc bootscript rather than creating more
(redudant) files.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-18 17:42:53 +02:00
Tianling Shen
6f17513f18
rockchip: replace local files with upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-14 11:41:26 +08:00
Tianling Shen
b032812ea1
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-13 18:00:41 +08:00
Tianling Shen
027348c3b2
rockchip: refresh kernel config
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-13 13:47:58 +08:00
Nick Hainke
1d3e71bd97
treewide: remove files for building 5.10 kernel
All targets are bumped to 5.15. Remove the old 5.10 patches, configs
and files using:

  find target/linux -iname '*-5.10' -exec rm -r {} \;

Further, remove the 5.10 include.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-05-12 13:02:43 +02:00
Tianling Shen
76ae895eb4
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-12 11:15:51 +08:00
Tianling Shen
650f5eacd4
default-settings: add luci to dependency
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 23:33:42 +08:00
Tianling Shen
46e4e2aadb
rockchip: setup network config for nanopi r2c plus
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 21:13:03 +08:00
Tianling Shen
dfdf755703
rockchip: simplify redudant commands
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 20:58:14 +08:00
Tianling Shen
a93967ec0b
rockchip: add NanoPi R2C Plus
The FriendlyARM NanoPi R2C Plus is a minor variant of R2C with a
on-board 8G eMMC flash.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-10 20:29:51 +08:00
Tianling Shen
b0e869501a rockchip: disable UHS speed for ROC-RK3328-CC
The previously stated speed of sdr-104 in is too high for the hardware
to reliably communicate with some fast SD cards.
Rockchip boards have a common bug when operating uhs speed, which will
hang the system during a soft reboot.

To be on the safe side, lower the speed to workaround.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-09 13:30:22 +08:00
Tianling Shen
395de5103a rockchip: enable rk805 pinctrl driver
This is required for ROC-RK3328-CC to light up the LED-s which are
connected to rk805's gpio.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-09 13:30:22 +08:00
Tianling Shen
a7d6cf0bb3 rockchip: add Firefly ROC-RK3328-CC support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
4GB DDR4 RAM
1x 1000 Base-T
2 LEDs (POWER / USER)
HDMI 2.0
3.5mm TRRS AV jack
Micro-SD slot
eMMC slot
1x USB 3.0 Port
2x 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>
2023-05-09 13:30:22 +08:00
Tianling Shen
700b72c21a
uboot-rockchip: remove dtc hack patch
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-08 18:51:26 +08:00
Tianling Shen
c03f9317ef
rockchip: backport upstreamed fastrhino patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-07 19:33:09 +08:00
Tianling Shen
963553fef9
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-05 19:43:20 +08:00
Tianling Shen
db6b56b795
r8125: read devname configuration from OF
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-04 20:33:09 +08:00
Tony Ambardar
3d66f55161 kernel: improve handling of CONFIG_IO_URING
Kernel setting CONFIG_IO_URING supports high-performance I/O for file
access and servers, generally for more performant platforms, and adds
~45 KB to kernel sizes. The need for this on less "beefy" devices is
questionable, as is the size cost considering many platforms have kernel
size limits which require tricky repartitioning if outgrown. The size
cost is also large relative to the ~180 KB bump expected between major
OpenWRT kernel releases.

No OpenWrt packages have hard dependencies on this; samba4 and mariadb
can take advantage if available (+KERNEL_IO_URING:liburing) but
otherwise build and work fine.

Since CONFIG_IO_URING is already managed via the KERNEL_IO_URING setting
in Config-kernel.in (default Y), remove it from those target configs
which unconditionally enable it, and update the defaults to enable it
conditionally only on more powerful 64-bit x86 and arm devices. It may
still be manually enabled as needed for high-performance custom builds.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2023-05-03 10:26:17 -07:00
Tianling Shen
d3d356d809
rockchip: enable led disk trigger for m68s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-05-01 15:07:39 +08:00
Tianling Shen
fb5f368275
uboot-rockchip: drop duplicate properties
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-30 15:05:50 +08:00
Tianling Shen
1ef239173c
rockchip: add NanoPi R4SE
The FriendlyARM NanoPi R4SE is a minor variant of R4S with a on-board eMMC.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-30 14:55:59 +08:00
Tianling Shen
509f51b342
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-30 09:39:22 +08:00
Hauke Mehrtens
7815c55f7d kernel: Deactivate CONFIG_COMPAT
This deactivates the CONFIG_COMPAT kernel option.
With CONFIG_COMPAT the kernel will provide syscall interfaces for arm32
binaries in addition to the interfaces needed for arm64 binaries.

In OpenWrt the complete userspace is compiled for this specific
architecture and support for 32 bit ARM applications is not needed.
This reduces the size and the attack surface for the systems.

On all other targets CONFIG_COMPAT is already deactivated.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-04-29 21:56:53 +02:00
Hauke Mehrtens
0fc3a4aa10 kernel: Deactivate CONFIG_LEGACY_PTYS
The legacy (BSD) PTY support could open security problems in a system,
We do not need them in OpenWrt, deactivate this option in all targets.

Debian also deactivates this option.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-04-29 21:56:53 +02:00
Hauke Mehrtens
ca5555d27e kernel: Activate CONFIG_ARM64_SW_TTBR0_PAN
This activates the CONFIG_ARM64_SW_TTBR0_PAN option for all arm64
kernels by default.

The CONFIG_ARM64_SW_TTBR0_PAN option prevents the kernel form accessing
user space memory directly. This makes it harder to exploit the kernel.

This is activated by default and was already activate on all other arm64
targets before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-04-29 21:56:53 +02:00
Hauke Mehrtens
626b37d70a kernel: Activate CONFIG_HARDENED_USERCOPY for all targets
This activates CONFIG_HARDENED_USERCOPY for the remaining targets. This
adds additional checks in the copy_from_user() and copy_to_user()
functions.

This was not activated for ARCHS38 before because of a bug in the Linux
kernel 5.4 till 5.14, which as fixed and is described here:
https://github.com/foss-for-synopsys-dwc-arc-processors/linux/issues/15

I do not know why this was deactivated for mt7629 and rockchip.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-04-29 21:56:53 +02:00
fujr
6466b13f1e
rockchip: add Mrkaio M68S support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
4GB LPDDR4 RAM
2x 1000 Base-T
2 LEDs (SATA / POWER)
32GB eMMC on-board
Micro-SD Slot
SATA slot
2x USB 3.0 Port
HDMI 2.0, MIPI DSI/CSI
USB Type C PD

[updated commit title/description, fixed dts syntax, set irq for it]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-28 12:55:44 +08:00
Tianling Shen
13ad229155
uboot-rockchip: update fastrhino dts
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-28 12:37:07 +08:00
Tianling Shen
54fbc6a564
rockchip: fastrhino: update dts according to latest schema
Prepare for submitting to upstream kernel.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-28 08:18:13 +08:00
Tianling Shen
aa89ed3e2a
rockchip: backport upstream fix for vop2 driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-20 09:23:27 +08:00
Tianling Shen
6bed850e06
bcm27xx: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-15 19:02:12 +08:00
Tianling Shen
dd215c9f04
ipq40xx/806x: build with automount by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-06 03:46:46 +08:00
Tianling Shen
bed2c6c773
rockchip: fix supported device for firefly roc-rk3328-cc
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-04 20:05:08 +08:00
Tianling Shen
f05de85637
rockchip: add Firefly ROC-RK3328-CC support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
4GB DDR4 RAM
1x 1000 Base-T
2 LEDs (POWER / USER)
HDMI 2.0
3.5mm TRRS AV jack
Micro-SD slot
eMMC slot
1x USB 3.0 Port
2x USB 2.0 Port

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-04 01:51:27 +08:00
Tianling Shen
a9eece5285
rockchip: replace local dts with upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-31 20:08:23 +08:00
Tianling Shen
12d1a08c3d
rockchip: replace local files with upstreamed patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-23 22:39:07 +08:00