1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 19:31:52 +00:00

Update OpenWrt, fix and add mvebu 5.14 support

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-03-27 10:19:22 +01:00
parent be9efea2b3
commit d1ecaaeaf8
5 changed files with 8264 additions and 383 deletions

View file

@ -29,7 +29,7 @@ OMR_UEFI=${OMR_UEFI:-yes}
OMR_ALL_PACKAGES=${OMR_ALL_PACKAGES:-no}
OMR_TARGET=${OMR_TARGET:-x86_64}
OMR_TARGET_CONFIG="config-$OMR_TARGET"
OMR_KERNEL=${OMR_KERNEL:-4.19}
OMR_KERNEL=${OMR_KERNEL:-5.4}
OMR_FEED_URL="${OMR_FEED_URL:-https://github.com/ysurac/openmptcprouter-feeds}"
OMR_FEED_SRC="${OMR_FEED_SRC:-develop}"
@ -58,9 +58,9 @@ else
fi
#_get_repo source https://github.com/ysurac/openmptcprouter-source "master"
_get_repo "$OMR_TARGET/source" https://github.com/openwrt/openwrt "04a21c26a005ac314b79e6905f51b4789d6d79bd"
_get_repo feeds/packages https://github.com/openwrt/packages "e48af750e169e201feb9618828ed9f77b647d234"
_get_repo feeds/luci https://github.com/openwrt/luci "3fb8e3d6236c2ea418c5a5fd90564d9eb44732f3"
_get_repo "$OMR_TARGET/source" https://github.com/openwrt/openwrt "dd166960f48580bf6d4a8dde071b96832bfd9e1f"
_get_repo feeds/packages https://github.com/openwrt/packages "ce15a63a9ef2877df1d61429dd6db5432a204d63"
_get_repo feeds/luci https://github.com/openwrt/luci "6efaea2ffb46f9909038b85cf12e7acf4467ae2e"
if [ -z "$OMR_FEED" ]; then
OMR_FEED=feeds/openmptcprouter
@ -172,6 +172,24 @@ if ! patch -Rf -N -p1 -s --dry-run < ../../patches/nanqinlang.patch; then
fi
echo "Done"
echo "Checking if smsc75xx patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/smsc75xx.patch; then
patch -N -p1 -s < ../../patches/smsc75xx.patch
fi
echo "Done"
echo "Checking if ipt-nat patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/ipt-nat6.patch; then
patch -N -p1 -s < ../../patches/ipt-nat6.patch
fi
echo "Done"
echo "Checking if ipt-nat patch is set or not"
if [ ! -d target/linux/mvebu/patches-5.4 ]; then
patch -N -p1 -s < ../../patches/mvebu-5.14.patch
fi
echo "Done"
#echo "Patch protobuf wrong hash"
#patch -N -R -p1 -s < ../../patches/protobuf_hash.patch
@ -190,9 +208,9 @@ if [ "$OMR_KERNEL" = "5.4" ]; then
echo "Set to kernel 5.4 for x86 arch"
find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=5.4%g' {} \;
echo "Done"
# echo "Set to kernel 5.4 for mvebu arch (WRT)"
# find target/linux/mvebu -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=5.4%g' {} \;
# echo "Done"
echo "Set to kernel 5.4 for mvebu arch (WRT)"
find target/linux/mvebu -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=5.4%g' {} \;
echo "Done"
echo "Set to kernel 5.4 for mediatek arch (BPI-R2)"
find target/linux/mediatek -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=5.4%g' {} \;
echo "Done"

13
patches/ipt-nat6.patch Normal file
View file

@ -0,0 +1,13 @@
--- a/package/kernel/linux/modules/netfilter.mk 2020-03-20 15:41:58.620893747 +0100
+++ b/package/kernel/linux/modules/netfilter.mk 2020-03-20 15:45:34.389015301 +0100
@@ -483,7 +483,9 @@
define KernelPackage/ipt-nat6
TITLE:=IPv6 NAT targets
KCONFIG:=$(KCONFIG_IPT_NAT6)
- FILES:=$(foreach mod,$(IPT_NAT6-m),$(LINUX_DIR)/net/$(mod).ko)
+ FILES:= \
+ $(LINUX_DIR)/net/ipv6/netfilter/ip6t_NPT.ko \
+ $(LINUX_DIR)/net/ipv6/netfilter/ip6table_nat.ko
AUTOLOAD:=$(call AutoLoad,43,$(notdir $(IPT_NAT6-m)))
$(call AddDepends/ipt,+kmod-nf-nat6)
$(call AddDepends/ipt,+kmod-ipt-conntrack)

7720
patches/mvebu-5.14.patch Normal file

File diff suppressed because it is too large Load diff

26
patches/smsc75xx.patch Normal file
View file

@ -0,0 +1,26 @@
Index: package/kernel/linux/modules/usb.mk
===================================================================
--- a/package/kernel/linux/modules/usb.mk (revisione 42462)
+++ b/package/kernel/linux/modules/usb.mk (copia locale)
@@ -1091,8 +1091,21 @@
endef
$(eval $(call KernelPackage,usb-net-smsc95xx))
+
+define KernelPackage/usb-net-smsc75xx
+ TITLE:=SMSC LAN75XX based USB 2.0 Gigabit ethernet devices
+ KCONFIG:=CONFIG_USB_NET_SMSC75XX
+ FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/smsc75xx.ko
+ AUTOLOAD:=$(call AutoProbe,smsc75xx)
+ $(call AddDepends/usb-net, +kmod-lib-crc16)
+endef
+define KernelPackage/usb-net-smsc75xx/description
+ Kernel module for SMSC LAN75XX based devices
+endef
+$(eval $(call KernelPackage,usb-net-smsc75xx))
+
define KernelPackage/usb-net-dm9601-ether
TITLE:=Support for DM9601 ethernet connections
KCONFIG:=CONFIG_USB_NET_DM9601

File diff suppressed because it is too large Load diff