-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
109 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
CONFIG_TARGET_rockchip=y | ||
CONFIG_TARGET_rockchip_rk35xx=y | ||
CONFIG_TARGET_MULTI_PROFILE=y | ||
CONFIG_TARGET_ALL_PROFILES=y | ||
|
||
CONFIG_TARGET_KERNEL_PARTSIZE=32 | ||
|
||
CONFIG_PACKAGE_kmod-pcie_mhi=m | ||
|
||
CONFIG_PACKAGE_kmod-dma-buf=n | ||
|
||
CONFIG_PACKAGE_kmod-fs-virtiofs=n | ||
|
||
CONFIG_PACKAGE_luci-ssl=n # uhttpd服务 | ||
CONFIG_PACKAGE_luci-ssl-nginx=y # nginx | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Kernel等部分源码来源 https://github.com/coolsnowwolf/lede 感谢 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
shopt -s extglob | ||
SHELL_FOLDER=$(dirname $(readlink -f "$0")) | ||
|
||
rm -rf package/boot package/feeds/kiddin9/accel-ppp package/devel/perf package/devel/kselftests-bpf package/feeds/routing/batman-adv package/kernel/ksmbd | ||
|
||
rm -rf target/linux/generic/!(*-5.15) target/linux/rockchip package/kernel devices/common/patches/usb-audio.patch | ||
|
||
git_clone_path master https://github.com/coolsnowwolf/lede package/boot target/linux/rockchip package/kernel | ||
|
||
git_clone_path master https://github.com/coolsnowwolf/lede mv target/linux/generic | ||
|
||
wget -N https://github.com/coolsnowwolf/lede/raw/master/include/kernel-5.10 -P include/ | ||
wget -N https://github.com/coolsnowwolf/lede/raw/master/include/kernel-6.1 -P include/ | ||
wget -N https://github.com/coolsnowwolf/lede/raw/master/include/kernel-6.6 -P include/ | ||
|
||
sed -i "/KernelPackage,ptp/d" package/kernel/linux/modules/other.mk | ||
|
||
mv -f tmp/r8125 feeds/kiddin9/ | ||
|
||
sed -i -e 's,kmod-r8168,kmod-r8169,g' target/linux/rockchip/image/rk35xx.mk | ||
sed -i -e 's,wpad-openssl,wpad-basic-mbedtls,g' target/linux/rockchip/image/rk35xx.mk | ||
|
||
wget -N https://github.com/coolsnowwolf/lede/raw/master/include/netfilter.mk -P include/ | ||
|
||
|
||
sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk/' target/linux/rockchip/Makefile | ||
|
||
cp -Rf $SHELL_FOLDER/diy/* ./ | ||
|
||
echo ' | ||
CONFIG_SENSORS_PWM_FAN=y | ||
' >> ./target/linux/rockchip/rk35xx/config-5.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/include/target.mk | ||
+++ b/include/target.mk | ||
@@ -259,9 +259,18 @@ ifeq ($(DUMP),1) | ||
CPU_CFLAGS_arc700 = -mcpu=arc700 | ||
CPU_CFLAGS_archs = -mcpu=archs | ||
endif | ||
+ ifeq ($(BOARD),rockchip) | ||
+ CPU_CFLAGS = -O3 -pipe | ||
+ CPU_CFLAGS_cortex-a53 = -mcpu=cortex-a53 | ||
+ CPU_CFLAGS_cortex-a55 = -march=armv8-a+crypto+crc -mcpu=cortex-a55+crypto+crc -mtune=cortex-a55 | ||
+ CPU_CFLAGS_cortex-a73 = -march=armv8-a+crypto+crc -mcpu=cortex-a73.cortex-a53+crypto+crc -mtune=cortex-a73.cortex-a53 | ||
+ ifneq ($(SOC_CFLAGS),) | ||
+ CPU_CFLAGS_generic = $(SOC_CFLAGS) | ||
+ endif | ||
+ endif | ||
ifneq ($(CPU_TYPE),) | ||
ifndef CPU_CFLAGS_$(CPU_TYPE) | ||
- $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) | ||
+ $(warning CPU_TYPE "$(CPU_TYPE)" "doesn't correspond to a known type") | ||
endif | ||
endif | ||
DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/target/linux/rockchip/image/rk35xx.mk | ||
+++ b/target/linux/rockchip/image/rk35xx.mk | ||
@@ -78,6 +78,16 @@ $(call Device/rk3528) | ||
endef | ||
TARGET_DEVICES += radxa_e20c | ||
|
||
+define Device/hlink_h28k | ||
+$(call Device/rk3528) | ||
+ DEVICE_VENDOR := Hlink | ||
+ DEVICE_MODEL := H28K | ||
+ SUPPORTED_DEVICES += hlink,h28k | ||
+ DEVICE_DTS := rk3528-h28k | ||
+ DEVICE_PACKAGES := kmod-r8169 kmod-r8125 kmod-thermal | ||
+endef | ||
+TARGET_DEVICES += hlink_h28k | ||
+ | ||
define Device/radxa_rock-5c | ||
$(call Device/rk3588) | ||
DEVICE_VENDOR := Radxa |