Commit Graph

369 Commits

Author SHA1 Message Date
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
Tianling Shen
83d7742764
rockchip: nanopi r5s: fix gmac reset gpios
Move reset gpios to gmac node otherwise the dwmac driver will fail to
lookup ethernet phy:

> [   10.398514] rk_gmac-dwmac fe2a0000.ethernet eth0: no phy found
> [   10.399061] rk_gmac-dwmac fe2a0000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19)

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-04 16:17:00 +08:00
Tianling Shen
3556faa43c
rockchip: nanopi r5s: fix gmac phy address
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-03-04 09:59:46 +08:00
Tianling Shen
f5af73bcef
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-26 10:40:04 +08:00
Tianling Shen
705d40946d
rockchip: add wireless driver for NanoPi R5C
The NanoPi R5C has a (optional) wireless chip RTL8822CE connected to
the M.2 slot (PCIe2), add the driver for it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-22 10:17:54 +08:00
Tianling Shen
ca6c827879
rockchip: enable PTP support
The Kconfig `PTP_1588_CLOCK_OPTIONAL` does not work for unknown reason,
when kmod-ptp was built as a module, it would break the ethernet.

While at it, refreshed Kconfigs.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-22 09:57:05 +08:00
Tianling Shen
80007df604
rockchip: refresh Motorcomm patches
Fixed a typo error when updating dts files.

While at it, backported a trivial fix, also made the LED blinking again.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-22 09:55:53 +08:00
Tianling Shen
1b080245fb
Revert "rockchip: revert motorcomm driver"
Finally, let's land on this new mainline driver.

This reverts commit d93bb3feea.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-21 20:10:26 +08:00
Tianling Shen
b4be6aa46f
rockchip: fix image build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-20 12:20:10 +08:00
Tianling Shen
1df6a4e78c
rockchip: add NanoPi R5S support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
2GB or 4GB LPDDR4X RAM
1x 1000 Base-T
2x 2500 Base-T
4 LEDs (LAN1 / LAN2 / WAN / POWER)
8GB eMMC on-board
Micro-SD Slot
M.2 Slot
2x USB 3.0 Port

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-17 13:04:53 +08:00
Tianling Shen
d93bb3feea
rockchip: revert motorcomm driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-17 12:31:49 +08:00
Tianling Shen
68dd426a5d
rockchip: adjust irq affinity for fastrhino r68s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-17 10:58:58 +08:00
Tianling Shen
62b45ed79e
rockchip: backport a fix for snps pcie3 driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-16 17:47:46 +08:00
Tianling Shen
b282530d83
rockchip: nanopi r5c: use on-board emmc cid to calc mac addr
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-15 17:59:51 +08:00
Tianling Shen
34b89b34a7
rockchip: add NanoPi R5C support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
1GB or 4GB LPDDR4X RAM
2x 2500 Base-T
4 LEDs (LAN / WAN / WIFI / POWER)
1 Button (Reset)
8GB or 32GB eMMC on-board
Micro-SD Slot
M.2 Slot
2x USB 3.0 Port

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

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-15 17:14:37 +08:00
Tianling Shen
a10804f84d
rockchip: backport a fix for DRM register names
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-02-15 15:57:34 +08:00