Commit Graph

47 Commits

Author SHA1 Message Date
David Bauer
bb6caeda30
rockchip: refresh NanoPi R2S patches with upstream feedback 2020-09-13 16:43:32 +08:00
AmadeusGhost
1be70136a5 rockchip: move the dependency of config to config 2020-08-29 12:38:21 +08:00
wevsty
170f467e07
rockchip: support hardware random number generator for RK3328 and RK3399
Signed-off-by: wevsty <ty@wevs.org>
2020-08-28 02:52:59 +08:00
CN_SZTL
20c62b1558
kernel: bump 5.4 to 5.4.61
Resolve conflicted:
 - 011-kbuild-export-SUBARCH.patch
 - 701-net-0262-net-dsa-ocelot-add-tagger-for-Ocelot-Felix-switches.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-27 05:42:59 +08:00
CN_SZTL
d9f8d5195c
rockchip: add cpu idle state for rk3328
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-25 13:14:48 +08:00
CN_SZTL
59ae1d77c8
rockchip: add missing description in patch 2020-08-24 03:18:32 +08:00
CN_SZTL
c01a8ce70f
rockchip: format patches 2020-08-24 03:11:04 +08:00
CN_SZTL
84eb37bcb3
kernel: bump 5.4 to 5.4.59
Resolve conflicted:
- 950-0163-staging-vchiq_arm-Fix-platform-device-unregistration.patch
- 950-0338-staging-vchiq_arm-Unify-the-unload-handling-of-platf.patch
- 801-audio-0005-Revert-ASoC-fsl_sai-Add-support-for-SAI-new-version.patch
- 805-display-0043-gpu-Move-ipu-v3-to-imx-folder.patch

Remove upstreamed:
- 950-0428-staging-vchiq_arm-Add-a-matching-unregister-call.patch
- 0800-spi-lantiq-ssc-Fix-warning-by-using-WQ_MEM_RECLAI.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-20 04:30:19 +08:00
AmadeusGhost
ee6b2fee3a Revert 'treewide: adjust sysupgrade script' 2020-08-19 12:10:43 +08:00
Adrian Schmutzler
d4923e38c5 rockchip: remove useless echo in 40-net-smp-affinity
The command in the $() brackets will already provide the same output.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-18 11:45:57 +08:00
David Bauer
9bdc246315
rockchip: refresh NanoPi R2S patch with upstream feedback
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-17 00:30:41 +08:00
CN_SZTL
32b62283d7
rockchip: format nanopi r2s i2c0 patch
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-15 01:52:38 +08:00
CN_SZTL
faf76aaf01
rockchip: fix patch with upstream changes
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-14 22:08:47 +08:00
David Bauer
a4e214deca
rockchip: refresh NanoPi R2S patch with upstream feedback
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-14 22:03:42 +08:00
AmadeusGhost
715404f8e1 treewide: adjust sysupgrade script 2020-08-14 18:36:30 +08:00
AmadeusGhost
787d71db74 treewide: fix undeclared function about backup in upgrade 2020-08-14 12:28:09 +08:00
Hauke Mehrtens
8d141be934
kernel: Move CONFIG_IONIC to generic kernel config
It is deactivated everywhere, just set this in the generic config.

Acked-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-08-11 18:15:38 +08:00
David Bauer
fe62156c1a
rockchip: use LZMA compressed FIT image for NanoPi R2S
This uses a LZMA compressed U-Boot FIT image for the NanoPi R2S. This
way, the resulting sysupgrade image uses ~1M les space compared to using
an uncompressed kernel.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-05 21:06:26 +08:00
David Bauer
be49374ad9
rockchip: make sysupgrade image generation reusable
This refactors the sysupgrade image generation code to make it reusable
for all devices generating an SD card image.

While at it, move the bootscripts to their own subdirectory.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-08-05 21:06:11 +08:00
CN_SZTL
0113142456
kernel: bump 5.4 to 5.4.55
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-08-01 02:15:38 +08:00
CN_SZTL
1cf3fa37d5
rockchip: distribute net interrupts
This adds a hotplug script for distributing interrupts of eth0 and eth1
across different cores. Otherwise the forwarding performance between
eth0 and eth1 is severely affected.

The existing SMP distribution mechanic in OpenWrt can't be used here, as
the actual device IRQ has to be moved to dedicated cores. In case of
eth1, this is in fact the USB3 controller.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 15:13:02 +08:00
David Bauer
3cf47cb176
arm64: dts: rockchip: Add txpbl node for RK3399/RK3328
Some rockchip SoCs like the RK3399 and RK3328 exhibit an issue
where tx checksumming does not work with packets larger than 1498.

The default Programmable Buffer Length for TX in these GMAC's is
not suitable for MTUs higher than 1498. The workaround is to disable
TX offloading with 'ethtool -K eth0 tx off rx off' causing performance
impacts as it disables hardware checksumming.

This patch sets snps,txpbl to 0x4 which is a safe number tested ok for
the most popular MTU value of 1500.

For reference, see https://lkml.org/lkml/2019/4/1/1382.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
Link: https://lore.kernel.org/r/20200218221040.10955-1-me@carlosedp.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-28 03:46:45 +08:00
David Bauer
a8cc53b33b
fixup! rockchip: add NanoPi R2S support 2020-07-28 03:11:23 +08:00
CN_SZTL
f7411dbc7c
target/rockchip: refresh kernel configs 2020-07-27 21:39:57 +08:00
David Bauer
7573ee64c8
target/rockchip: sync with recently changes from upstream 2020-07-27 20:07:32 +08:00
CN_SZTL
34f761d9c5
target/rockchip: fix define of usb 3.0 2020-07-25 18:35:14 +08:00
CN_SZTL
c2bc3f5e91
target/rockchip: backport more patches
Reference: jayanta525/openwrt-nanopi-r2s.
2020-07-25 17:31:57 +08:00
CN_SZTL
4df558cc5a
target/rockchip: fix dependency 2020-07-24 03:51:17 +08:00
CN_SZTL
4aa6119e75
target/rockchip: add missing dependency 2020-07-24 03:24:00 +08:00
CN_SZTL
69e815a417
kernel: bump 5.4 to 5.4.53
Resolve conflicted:
- 395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
- 641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
- 022-v5.8-mtd-rawnand-brcmnand-correctly-verify-erased-pages.patch
- 024-v5.8-mtd-rawnand-brcmnand-fix-CS0-layout.patch
- 742-v5.5-net-sfp-add-support-for-module-quirks.patch
- 743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:59:36 +08:00
CN_SZTL
b1c13dfe62
target/rockchip: rework nanopi-r2s rtl8152 LEDs
Reference: jayanta525/openwrt-nanopi-r2s@d1679edd38.
2020-07-22 03:18:33 +08:00
CN_SZTL
ce5ee290c9
target/rockchip: drop iqrbanlance 2020-07-21 13:20:42 +08:00
CN_SZTL
e5998aedf2
target/rockchip: enable thermal module 2020-07-20 21:29:00 +08:00
CN_SZTL
3689a1b5ef
target/rockchip: add default packages 2020-07-19 21:04:55 +08:00
CN_SZTL
f6049b8d42
target/rockchip: allow higher frequency 2020-07-19 11:50:27 +08:00
CN_SZTL
80198f886f
target/rockchip: enable thermal module 2020-07-19 11:41:24 +08:00
CN_SZTL
e5d384584a
target/rockchip: improve r2s support 2020-07-18 14:08:23 +08:00
David Bauer
6cdea00cac
rockchip: add NanoPi R2S support
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.

MAC-address
-----------
The vendor code supports reading a MAC address from an EEPROM connected
via i2c0 of the SoC. The EEPROM (address 0x51) should contain the MAC
address in binary at offset 0xfa. However, my two units didn't come with
such an EEPROM soldered on. The EEPROM should be placed between the SoC
and the GPIO pins on the board. (U10)

Generating rendom MAC addresses works around this issue. Otherwise, all
boards running the same image have identical MAC addresses.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-18 13:25:53 +08:00
David Bauer
df6134528b
rockchip: allow for multiple boot-scripts
Add support for select a bootscript depending on the device built. This
is necessary, as the FriendlyARM NanoPi R2S needs a different bootcmd in
order to produce output on the debug UART.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-18 13:25:47 +08:00
CN_SZTL
735fed7a18
target/rockchip: drop garbage codes 2020-07-18 13:24:35 +08:00
David Bauer
c945b45947
rockchip: don't disable timer LED trigger
The timer LED trigger is enabled in all targets (except for lantiq
xway-legacy). It's necessary for the OpenWrt preinit LED pattern to
work.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-16 20:23:19 +08:00
David Bauer
59bb5e002f
rockchip: use downstream GPIO button implementation
Use the OpenWrt netlink GPIO button implementation to forward button
presses to procd. This is necessary to make failsafe-mode access
using a button possible.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-16 20:23:06 +08:00
AmadeusGhost
f7604f933a rockchip: refresh config 2020-06-29 18:09:44 +08:00
Jayantajit Gogoi
767914185d rockchip: add support for FriendlyARM NanoPi R2S
Instruction:
- LAN: rtl8153
- WAN: rtl8211E

Signed-off-by: Jayantajit Gogoi <jayanta.gogoi525@gmail.com>
2020-06-29 18:00:29 +08:00
Jayantajit Gogoi
1544c2246e rockchip: add support for rk3328 radxa rock pi e
Signed-off-by: Jayantajit Gogoi <jayanta.gogoi525@gmail.com>
2020-06-29 17:59:59 +08:00
Adrian Schmutzler
e23478870f treewide: simplify inclusion of subtarget image files
Many target use a repetitive if-include scheme for their subtarget
image files, though their names are consistent with the subtarget
names.

This patch removes these redundant conditions and just uses the
variable for the include where the target setup allows it.

For sunxi, this includes a trivial rename of the subtarget image
Makefiles.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-06-29 17:59:32 +08:00
Tobias Mädel
aac14fcc2e rockchip: add support for Pine64 RockPro64
This adds the new rockchip target and support for RockPro64 RK3399

Flash:    16 MiB SPI NOR
RAM:      2 GiB/4 GiB LPDDR4
SoC:      RK3399
USB:      2x USB 2.0, 1x USB 3.0, 1x USB-C
Ethernet: 1x GbE
PCIe:     PCIe 2.0, 4 lanes
Storage:  eMMC or SD card
Optional SDIO wifi/bt module

The Pine64 RockPro64 is a single-board-computer with a 4x PCIe connector,
6 ARM64 cores (4 little, 2 big), plenty of RAM and storage.

By default the single Gigabit-Ethernet port is configured as the
LAN port.

Installation of the firware is possible by dd'ing the image
to an SD card or the eMMC flash.

Serial: 3v3 1500000 8n1

U-boot is build from the mainline tree and
integrated into the images. Required ATF to build u-boot
is downloaded from a CI build bot.

Signed-off-by: Tobias Mädel <t.maedel@alfeld.de>
Tested-by: Tobias Schramm <t.schramm@manjaro.org>
2020-06-29 17:59:06 +08:00