Commit Graph

70 Commits

Author SHA1 Message Date
jjm2473
246494deac target/rockchip: linux 4.19 tips for xhci trb 2023-03-14 12:37:52 +08:00
jjm2473
220afb83f6 target/rockchip: linux 5.4 update xhci trb-ent-quirk 2023-03-14 12:11:33 +08:00
jjm2473
fd44da01a1 target/rockchip: linux 4.19 update xhci trb-ent-quirk 2023-03-14 12:00:27 +08:00
jjm2473
869a843321 target/rockchip: add dwc3 xhci usb quirk for rk3328 and rk3399 2023-03-13 14:21:43 +08:00
jjm2473
0a5e262137 target/rockchip: degrade sdcard speed for reboot
Only affacts these sd card booting devices:
r4s
r66s
2023-03-09 17:06:39 +08:00
jjm2473
fd6e719cbf target/rk3568: set smp_affinity for gmac 2023-03-03 22:31:49 +08:00
练亮斌
d24579e2b4
target/rockchip: fix r2s gmac auto delay 2023-02-14 19:39:40 +08:00
jjm2473
7a358d4f9b target/rockchip: r2s gmac auto delay based on phy id 2023-02-09 14:10:15 +08:00
jjm2473
37bb4095a2 target/rockchip: r2s firmware supports r2c 2023-02-03 15:38:45 +08:00
jjm2473
762870e331 target/rockchip: mmc: set initial signal voltage on power off
This may fix reboot on some new microSD card
2023-01-29 19:17:32 +08:00
jjm2473
9a525eacc2 target/rockchip: add YT85xx driver for r2c
https://github.com/immortalwrt/immortalwrt/tree/openwrt-21.02/target/linux/rockchip
2022-12-16 14:01:32 +08:00
jjm2473
85a4b8fcbc target/rockchip: r4s use r8168 instead of r8169 2022-12-15 23:38:25 +08:00
jjm2473
6c0a7f4ee2 target: remove core feed on unsupported target 2022-12-14 14:19:20 +08:00
jjm2473
3a7d588b10 target/rk3568: remove unsupported core repo 2022-11-28 16:06:56 +08:00
jjm2473
bb2cbb12b2 target/rk3568: station-p2 supports ota 2022-11-28 13:40:14 +08:00
jjm2473
918a5b062e target/rk3568: swap network interfaces 2022-11-24 20:39:38 +08:00
jjm2473
3d410cc5ef target/rk3568: fix lan mac address 2022-11-24 17:11:52 +08:00
jjm2473
263dd25c7f base: fix duplicated mac address on bridge members 2022-11-24 16:26:47 +08:00
jjm2473
d58f61c35d target/rk3568: fixup network interface name 2022-11-24 14:49:58 +08:00
jjm2473
14be089e18 istoreos: config ota 2022-11-11 18:32:56 +08:00
jjm2473
2a6e9dd22c target/rk3568: disable unused drivers 2022-11-10 17:41:44 +08:00
jjm2473
3d5b26f58a target/rk3568: define kernel configs 2022-11-10 17:14:49 +08:00
jjm2473
069c0058bf target/rockchip: fix image build for rk33xx 2022-11-09 19:42:37 +08:00
练亮斌
296b0389a1
target: add rockchip/rk3568 (#443)
Reference:
https://gitlab.com/firefly-linux
https://github.com/coolsnowwolf/lede
https://github.com/Lienol/openwrt
2022-11-09 17:26:04 +08:00
jjm2473
b94258c954 istoreos: fix rk boot partition mount, remove x86 invalid copy config on upgrade 2022-11-07 12:08:55 +08:00
jjm2473
c66802a167 istoreos: refactor scripts 2022-11-05 14:10:52 +08:00
DHDAXCW
f9b9b199fd Rockchip:Add FriendlyElec NanoPi R4SE 2022-11-01 14:41:54 +00:00
ziguayungui
9e201b0206 update rockchip support upstream atf 2022-07-19 13:58:41 +08:00
jjm2473
bd044d66d8 target/rockchip: add opkg compat arch for arm64 subtarget 2022-07-19 13:58:40 +08:00
ziguayungui
863915f88c rockchip add NanoPi R4S support and patch 2022-07-19 13:58:40 +08:00
ziguayungui
4a0432bfce rockchip add NanoPi R4S support 2022-07-19 13:58:40 +08:00
ziguayungui
37bbf9740f target/rockchip: rm PADDING, rm istore_img_flag file 2022-07-19 13:58:40 +08:00
ziguayungui
856fcdaf9e target/rockchip:set default lan, sync platform.sh 2022-07-19 13:58:40 +08:00
David Bauer
5c904bcb37 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>
(cherry picked from commit b56f7407d9)
2021-09-24 12:29:22 +02:00
David Bauer
378769b555 kernel: bump 5.4 to 5.4.142
Compile-tested: ath79-generic ipq40xx-generic
Run-tested: ipq40xx-generic

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-08-24 19:41:47 +02:00
Hauke Mehrtens
3da861ccca kernel: bump 5.4 to 5.4.111
Refreshed all patches.

The following patches were manually changed:
* 610-netfilter_match_bypass_default_checks.patch
* 611-netfilter_match_bypass_default_table.patch
* 802-can-0002-can-rx-offload-fix-long-lines.patch
* 802-can-0003-can-rx-offload-can_rx_offload_compare-fix-typo.patch
* 802-can-0004-can-rx-offload-can_rx_offload_irq_offload_timestamp-.patch
* 802-can-0005-can-rx-offload-can_rx_offload_reset-remove-no-op-fun.patch
* 802-can-0006-can-rx-offload-Prepare-for-CAN-FD-support.patch
* 802-can-0018-can-flexcan-use-struct-canfd_frame-for-CAN-classic-f.patch

The can-dev.ko model was moved in the upstream kernel.

Compile-tested on: x86/64, armvirt/64, ath79/generic
Runtime-tested on: x86/64, armvirt/64, ath79/generic

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-04-11 17:35:12 +02:00
Aleksander Jan Bajkowski
1663dc7e82 kernel: move some disabled symbols to generic
Move some disabled symbols found in armvirt target to generic.

Signed-off-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
(cherry picked from commit 12e942b1fd)
2021-04-11 16:54:22 +02:00
Hauke Mehrtens
112d1052ac kernel: Deactivate CONFIG_VFIO in generic kernel config
Instead of deactivating this in every target config, deactivate it once
in the generic kernel config. I was asked for this config option in a
x86 64 build in OpenWrt 21.02.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 7d6553c72e)
2021-03-27 16:26:56 +01:00
Adrian Schmutzler
598b29585e target: use SPDX license identifiers on Makefiles
Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-10 15:47:18 +01:00
Marty Jones
9c29165a4c rockchip: fix SUPPORTED_DEVICES for Radxa ROCK Pi 4
This sets SUPPORTED_DEVICES to match the compatible in the DTS.

While at it, synchronize the capitalization in DEVICE_MODEL and
DTS model.

Signed-off-by: Marty Jones <mj8263788@gmail.com>
[commit title/message facelift, move variable in armv8.mk]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-27 21:31:20 +01:00
Adrian Schmutzler
f52081bcf9 treewide: provide global default for SUPPORTED_DEVICES
The majority of our targets provide a default value for the variable
SUPPORTED_DEVICES, which is used in images to check against the
compatible on a running device:

  SUPPORTED_DEVICES := $(subst _,$(comma),$(1))

At the moment, this is implemented in the Device/Default block of
the individual targets or even subtargets. However, since we
standardized device names and compatible in the recent past, almost
all targets are following the same scheme now:

  device/image name:  vendor_model
  compatible:         vendor,model

The equal redundant definitions are a symptom of this process.

Consequently, this patch moves the definition to image.mk making it
a global default. For the few targets not using the scheme above,
SUPPORTED_DEVICES will be defined to a different value in
Device/Default anyway, overwriting the default. In other words:
This change is supposed to be cosmetic.

This can be used as a global measure to get the current compatible
with: $(firstword $(SUPPORTED_DEVICES))
(Though this is not precisely an achievement of this commit.)

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-23 12:45:21 +01:00
David Bauer
a8a17fd223 rockchip: use stable MAC-address for NanoPi R2S
The NanoPi R2S does not have a board specific MAC address written inside
e.g. an EEPROM, hence why it is randomly generated on first boot.

The issue with that however is the lack of a driver for the PRNG.
It often results to the same MAC address used on multiple boards by
default, as urngd is not active at this early stage resulting in low
available entropy.

There is however a semi-unique identifier available to us, which is the
CID of the used SD card. It is unique to each SD card, hence we can use
it to generate the MAC address used for LAN and WAN.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-01-18 17:32:52 +01:00
Sungbo Eo
22061b2880 kernel: enable CONFIG_LEDS_TRIGGER_HEARTBEAT
The heartbeat trigger is used by luci-mod-system, which is installed
as a part of the standard luci package set. It seems the LED trigger
will be required quite often, so let's enable it by default.

This increases uncompressed kernel size by about 100 bytes on ath79/generic.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2021-01-15 18:20:55 +01:00
David Bauer
b1150de9e4 rockchip: add missing Kconfig symbols
When compiling with CONFIG_ALL_KMODS enabled, compilation might stall
due to unset rockchip-specific config symbols. Disable these to avoid
stalling this step.

Signed-off-by: David Bauer <mail@david-bauer.net>
2021-01-11 06:00:49 +01:00
Sungbo Eo
ccf65613da kernel: add disabled PROC_STRIPPED
Otherwise the missing symbol is added to target config for every kernel
config refresh.

While at it, remove the disabled symbol from target configs.

Fixes: 4943bc5cff ("kernel: only strip proc for small flash devices")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-12-27 19:07:42 +01:00
Marty Jones
dafa201b3e rockchip: use USB host by default on rk3399-rock-pi-4
This backport  fix connections errors on the
upper USB3 port of the Radxa ROCK Pi 4 .

Signed-off-by: Marty Jones <mj8263788@gmail.com>
2020-12-25 10:38:13 +01:00
John Audia
a282a04538 kernel: bump 5.4 to 5.4.85
All modifications made by update_kernel.sh run in a fresh clone
without any existing toolchains.

Build system: x86_64
Build-tested: ipq806x/R7800, ath79/generic, bcm27xx/bcm2711
Run-tested: ipq806x/R7800

No dmesg regressions, everything functional

Signed-off-by: John Audia <graysky@archlinux.us>
2020-12-22 19:11:50 +01:00
David Bauer
6f1b8c652f rockchip: remove unused config symbols
Remove MDIO and I2C bitbangig support from the kernel.

These functionalities are currently not used by any board in the target.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-11-04 23:58:27 +01:00
David Bauer
3f05b5fda3 rockchip: fix NanoPi R2S GMAC clock name
This commit fixes the name for the GMAC clock to gmac_clkin, as this is
the name of the clock provided by the rk3328-clk driver.

Without this commit, the GMAC will not work in TX direction.

Suggested-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
2020-11-04 23:58:13 +01:00
Daniel Golle
5423d9d27e kernel: move F2FS_FS_XATTR and F2FS_STAT_FS symbols to generic
Similar to how it was already done for other filesystems' *_FS_XATTR
kernel config symbols, also move CONFIG_F2FS_FS_XATTR=y and
CONFIG_F2FS_STAT_FS=y to target/linux/generic.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-09 23:20:19 +01:00