1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 11:21:55 +00:00

Removed patches and changed kernel parameters

This commit is contained in:
Olli 2021-03-05 12:53:26 +01:00
parent 8839576057
commit 3781228ee0
2 changed files with 43 additions and 50 deletions

View file

@ -202,21 +202,48 @@ if [ "$OMR_PACKAGES" = "mini" ]; then
echo "CONFIG_PACKAGE_${OMR_DIST}-mini=y" >> "$OMR_TARGET/source/.config" echo "CONFIG_PACKAGE_${OMR_DIST}-mini=y" >> "$OMR_TARGET/source/.config"
fi fi
#if [ "$OMR_TARGET" = "bpi-r1" ]; then if [ "$OMR_TARGET" = "bpi-r1" -a "$OMR_OPENWRT" = "master" ]; then
# # We disable mc for now, because it leads to unknown compile errors on bpi-r1 target # We disable mc in master, because it leads to unknown compilation errors on bpi-r1 target
# sed -i "s/CONFIG_PACKAGE_mc=y/# CONFIG_PACKAGE_mc is not set/" "$OMR_TARGET/source/.config" # No time to check this, now, cause i am focused on make this target work
# sed -i "s/CONFIG_MC_EDITOR=y/# CONFIG_MC_EDITOR is not set/" "$OMR_TARGET/source/.config" # Maybe someone can do this later
# sed -i "s/CONFIG_MC_SUBSHELL=y/# CONFIG_MC_SUBSHELL is not set/" "$OMR_TARGET/source/.config" echo -n "Disabling error causing midnight commander (mc) package..."
# sed -i "s/CONFIG_MC_CHARSET=y/# CONFIG_MC_CHARSET is not set/" "$OMR_TARGET/source/.config" sed -i "s/CONFIG_PACKAGE_mc=y/# CONFIG_PACKAGE_mc is not set/" "$OMR_TARGET/source/.config"
# sed -i "s/CONFIG_MC_VFS=y/# CONFIG_MC_VFS is not set/" "$OMR_TARGET/source/.config" sed -i "s/CONFIG_MC_EDITOR=y/# CONFIG_MC_EDITOR is not set/" "$OMR_TARGET/source/.config"
# sed -i "s/CONFIG_MC_SUBSHELL=y/# CONFIG_MC_SUBSHELL is not set/" "$OMR_TARGET/source/.config"
# # Switch to wpad-wolfssl sed -i "s/CONFIG_MC_CHARSET=y/# CONFIG_MC_CHARSET is not set/" "$OMR_TARGET/source/.config"
# sed -i "s/CONFIG_PACKAGE_wpad-basic=y/# CONFIG_PACKAGE_wpad-basic is not set/" "$OMR_TARGET/source/.config" sed -i "s/CONFIG_MC_VFS=y/# CONFIG_MC_VFS is not set/" "$OMR_TARGET/source/.config"
# sed -i "s/CONFIG_PACKAGE_wpad-basic-wolfssl=m/CONFIG_PACKAGE_wpad-basic-wolfssl=y/" "$OMR_TARGET/source/.config" echo "done"
#
# # Enable sound soc sunxi kernel module # 2021-03-05 Oliver Welter <oliver@welter.rocks>
# sed -i "s/CONFIG_PACKAGE_kmod-sound-soc-sunxi=m/CONFIG_PACKAGE_kmod-sound-soc-sunxi=y/" "$OMR_TARGET/source/.config" fi
#fi
if [ "$OMR_TARGET" = "bpi-r1" ]; then
# Remove the 310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th patch
echo -n "Removing unwanted patches from kernel 5.4..."
rm -f "$OMR_TARGET/source/target/linux/sunxi/patches-5.4/310-Revert-ARM-dts-sun7i-Add-BCM53125-switch-nodes-to-th.patch" >/dev/null 2>&1
echo "done"
# Add support for distributed switch architecture
echo -n "Adding DSA support to kernel 5.4..."
for i in NET_DSA NET_DSA_TAG_8021Q NET_DSA_TAG_BRCM NET_DSA_TAG_PREPEND; do
echo "CONFIG_${i}=y" >> "$OMR_TARGET/source/target/linux/sunxi/cortexa7/config-5.4"
done
echo "done"
# Add support for MDIO bus multiplexer
echo -n "Adding support for MDIO bus multiplexer to kernel 5.4..."
echo "CONFIG_MDIO_BUS_MUX_MULTIPLEXER=y" >> "$OMR_TARGET/source/target/linux/sunxi/cortexa7/config-5.4"
echo "done"
# Add led support
echo -n "Adding LED support to kernel 5.4..."
for i in SWCONFIG_LEDS LED_TRIGGER_PHY LEDS_GPIO LEDTRIG_ACTIVITY LEDTRIG_GPIO LEDTRIG_ONESHOT LEDTRIG_TRANSIENT IPT_LED USB_LEDTRIG_USBSUPPORT; do
echo "CONFIG_${i}=y" >> "$OMR_TARGET/source/target/linux/sunxi/cortexa7/config-5.4"
done
echo "done"
# 2021-03-05 Oliver Welter <oliver@welter.rocks>
fi
cd "$OMR_TARGET/source" cd "$OMR_TARGET/source"

View file

@ -12,49 +12,15 @@ CONFIG_PACKAGE_attr=y
CONFIG_PACKAGE_f2fs-tools=y CONFIG_PACKAGE_f2fs-tools=y
CONFIG_PACKAGE_f2fsck=y CONFIG_PACKAGE_f2fsck=y
CONFIG_PACKAGE_mkf2fs=y CONFIG_PACKAGE_mkf2fs=y
CONFIG_PACKAGE_rtl8188eu-firmware=y CONFIG_PACKAGE_swconfig=y
CONFIG_PACKAGE_ath9k-htc-firmware=y CONFIG_PACKAGE_ath9k-htc-firmware=y
CONFIG_PACKAGE_mt7601u-firmware=y
CONFIG_PACKAGE_rt2800-usb-firmware=y
CONFIG_PACKAGE_rtl8192cu-firmware=y
CONFIG_PACKAGE_rtl8192su-firmware=y
CONFIG_PACKAGE_kmod-switch-bcm53xx=y CONFIG_PACKAGE_kmod-switch-bcm53xx=y
CONFIG_PACKAGE_kmod-switch-bcm53xx-mdio=y CONFIG_PACKAGE_kmod-switch-bcm53xx-mdio=y
CONFIG_PACKAGE_swconfig=y
CONFIG_PACKAGE_kmod-b53=y
CONFIG_PACKAGE_kmod-b53-mdio-driver=y
CONFIG_PACKAGE_kmod-net-dsa=y
CONFIG_PACKAGE_kmod-net-dsa-tag-8021q=y
CONFIG_PACKAGE_kmod-net-dsa-tag-brcm=y
CONFIG_PACKAGE_kmod-net-dsa-tag-prepend=y
CONFIG_PACKAGE_kmod-mdio-bus-mux-multiplexer=y
CONFIG_PACKAGE_kmod-led-trigger-phy=y
CONFIG_PACKAGE_kmod-swconfig=y
CONFIG_PACKAGE_kmod-swconfig-leds=y
CONFIG_PACKAGE_kmod-swconfig-b53=y
CONFIG_PACKAGE_kmod-swconfig-b53-phy-driver=y
CONFIG_PACKAGE_kmod-swconfig-b53-phy-fixup=y
CONFIG_PACKAGE_kmod-ste10xp=y
CONFIG_PACKAGE_kmod-ata-sunxi=y CONFIG_PACKAGE_kmod-ata-sunxi=y
CONFIG_PACKAGE_kmod-rtl8192cu=y
CONFIG_PACKAGE_kmod-ath9k-common=y CONFIG_PACKAGE_kmod-ath9k-common=y
CONFIG_PACKAGE_kmod-ath9k-htc=y CONFIG_PACKAGE_kmod-ath9k-htc=y
CONFIG_PACKAGE_kmod-net-rtl8192su=y
CONFIG_PACKAGE_kmod-rtl8192c-common=y
CONFIG_PACKAGE_kmod-rtl8192cu=y
CONFIG_PACKAGE_kmod-rtl8xxxu=y
CONFIG_PACKAGE_kmod-sunxi-ir=y CONFIG_PACKAGE_kmod-sunxi-ir=y
CONFIG_PACKAGE_kmod-sound-soc-sunxi=y CONFIG_PACKAGE_kmod-sound-soc-sunxi=y
CONFIG_PACKAGE_kmod-rtlwifi-usb=y
CONFIG_PACKAGE_kmod-rtlwifi=y
CONFIG_PACKAGE_kmod-scsi-core=y CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-slhc=y CONFIG_PACKAGE_kmod-slhc=y
CONFIG_PACKAGE_kmod-usb-core=y
CONFIG_PACKAGE_kmod-leds-gpio=y
CONFIG_PACKAGE_kmod-ledtrig-activity=y
CONFIG_PACKAGE_kmod-ledtrig-gpio=y
CONFIG_PACKAGE_kmod-ledtrig-oneshot=y
CONFIG_PACKAGE_kmod-ledtrig-transient=y
CONFIG_PACKAGE_kmod-ipt-led=y
CONFIG_PACKAGE_kmod-usb-ledtrig-usbport=y
CONFIG_KERNEL_ARM_MODULE_PLTS=y CONFIG_KERNEL_ARM_MODULE_PLTS=y