[OpenWrt-Devel] [PATCH] mediatek: Add support for the UniElec U7623-02

2018-06-19 Thread Kristian Evensen
This commit adds support for the MT7623A-based UniElec U7623-02 router,
with eMMC storage and 512MB RAM. The router can be delivered with NAND
Flash and more memory, but I only have access to the one configuration.
The DTS is structured in such a way that adding support for
more/different storage/memory should be straight forward.

The device has the following specifications:

* MT7623A (quad-core, 1.3 GHz)
* 512MB RAM (DDR3)
* 8GB storage (eMMC 4.5)
* 2x normal miniPCIe slots
* 1x miniPCIe slot that is connected via an internal USB OTG port
* 5x 1Gbps Ethernet (MT7530 switch)
* 1x UART header
* 1x USB 3.0 port
* 1x SATA 3.0
* 1x 40P*0.5mm FPC for MIPI LCD
* 1x SIM slot
* 12x LEDs (2 GPIO controlled)
* 1x reset button
* 1x DC jack for main power (12V)

The following has been tested and is working:
* Ethernet switch
* miniPCIe slots (tested with Wi-Fi cards)
* USB 3.0 port
* sysupgrade
* reset button

Not working:
* The miniPCIe connected via USB OTG. For the port to work, some MUSB
glue must be added. I am currently in the process of porting the glue
from the vendor SDK.

Not tested:
* SATA 3.0
* MIPI LCD

Installation:

The board ships with u-boot, and the first installation needs to be done
via the bootloader using tftp. Step number one is to update the MBR of
the eMMC, as the one that ships with the device is broken. Since the
device can ship with different storage sizes, I will not provide the
exact steps for creating a valid MBR. However, I have made some
assumptions about the disk layout - there must be one 8MB recovery
partition (FAT32) and a partition for the rootfs (Linux).

The board loads the kernel from block 0xA00 (2560) and I have reserved
32MB for the kernel (65536 blocks). I have aligned the partitions on the
erase block size (4096 byte), so the recovery partition must start on
block 69632 and end on 86016 (16385 sectors). The rootfs is assumed to
start on sector 90112.

In order to install the mbr, you run the following commands from the
u-boot command line:

* tftpboot ${loadaddr} 
* mmc device 0
* mmc write ${loadaddr} 0x00 1

Run the following commands to install + boot OpenWRT:

* tftpboot ${loadaddr} 
openwrt-mediatek-mt7623-7623a-unielec-u7623-02-emmc-512m-squashfs-sysupgrade-emmc.bin.gz
* run boot_wr_img
* run boot_rd_img
* bootm

Recovery:

In order to recover the router, you need to follow the installation
steps above (no need to replace MBR).

Notes:

* F2FS is used as the overlay filesystem.

* The device does not ship with any valid MAC address, so a random
address has to be generated. As a work-around, I write the initial
random MAC to a file on the recovery partition. The MAC of the WAN
interface is set to the MAC-address contained in this file on each boot,
and the address of the LAN-interfaces are WAN + 1. The MAC file is kept
across sysupgrade/firstboot.

My approach is slightly different than what the stock image does. The
first fives bytes of the MAC addresses in the stock image are static,
and then the last byte is random. I believe it is better to create fully
random MAC addresses.

* In order to support the miniPCIe-slots, I needed to add missing
pcie-nodes to mt7623.dtsi. The nodes are just c from the upstream
dtsi.

* One of the USB3.0 phys (u3phy2) on the board can be used as either USB
or PCI, and one of the wifi-cards is connected to this phy. In order to
support switching the phy from USB to PCI, I needed to patch the
phy-driver. The patch is based on a rejected (at least last time I
checked) PCI-driver submitted to the linux-mediatek mailing list.

* The eMMC is configured to boot from the user area, and according to
the data sheet of the eMMC this value can't be changed.

* I tried to structure the MBR more nicely and use for example a
FAT32-parition for the kernel, so that we don't need to write/read from
some offset. The bootloader does not support reading from
FAT32-paritions. While the command (fatload) is there, it just throws an
error when I try to use it.

* I will submit and hope to get the DTS for the device accepted
upstream. If and when that happens, I will update the patches
accordingly.

Signed-off-by: Kristian Evensen 
---
 .../mediatek/base-files/etc/board.d/02_network |  19 +-
 .../base-files/lib/preinit/07_set_iface_mac|  47 +++
 .../mediatek/base-files/lib/preinit/79_move_config |  19 +
 .../mediatek/base-files/lib/upgrade/platform.sh|  47 ++-
 target/linux/mediatek/image/Makefile   |  10 +
 target/linux/mediatek/image/gen_mt7623_emmc_img.sh |  18 +
 target/linux/mediatek/image/mt7623.mk  |  11 +
 target/linux/mediatek/mt7623/config-4.14   |  12 +-
 ...225-arm-dts-Add-missing-mt7623-pcie-nodes.patch | 128 ++
 .../0226-phy-phy-mtk-tphy-Add-hifsys-support.patch |  71 
 .../0227-arm-dts-Add-Unielec-U7623-DTS.patch   | 431 +
 11 files changed, 805 insertions(+), 8 deletions(-)
 create mode 100644 
target/linux/mediatek/base-files/lib/preinit/07_set_iface_mac
 create 

Re: [OpenWrt-Devel] [PATCH 3/4] ath79: add Netgear WNR612 v2

2018-06-19 Thread Rafał Miłecki

On 13.06.2018 10:51, Zoltan HERPAI wrote:

Netgear WNR612 v2:
  - cpu Atheros AR7240 (Python) @400MHz
  - flash 4MB
  - ram 32MB
  - ethernet 10/100: 1xwan + 2xlan (only two)
  - radio AR9285

As there is a rebranded WNR612v2 called ON Networks N150R, add
a dtsi which includes all device support, and add a separate dts
for the board only (allowing for a separate one for the subsequent
N150R).

Signed-off-by: Zoltan HERPAI 


See inline blow, please.



diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi 
b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
new file mode 100644
index 000..b86147e
--- /dev/null
+++ b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
@@ -0,0 +1,147 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include 
+#include 
+
+#include "ar7240.dtsi"
+
+/ {
+   compatible = "netgear,wnr612-v2", "qca,ar7240";
+   model = "Netgear WNR612 V2";
+
+   aliases {
+   led-status = _power;
+   };
+
+   memory@0 {
+   device_type = "memory";
+   reg = <0x0 0x200>;
+   };
+
+   gpio-keys-polled {
+   compatible = "gpio-keys-polled";
+   #address-cells = <1>;
+   #size-cells = <0>;
+   poll-interval = <20>;
+
+   reset {
+   label = "reset";
+   linux,code = ;
+   gpios = < 7 GPIO_ACTIVE_LOW>;
+   debounce-interval = <60>;
+   };
+   };
+
+   gpio-leds {
+   compatible = "gpio-leds";
+   led_power: power {
+   label = "netgear:green:power";
+   gpios = < 11 GPIO_ACTIVE_LOW>;
+   };
+
+   lan1 {
+   label = "netgear:green:lan1";
+   gpios = < 13 GPIO_ACTIVE_LOW>;
+   };
+
+   lan2 {
+   label = "netgear:green:lan2";
+   gpios = < 14 GPIO_ACTIVE_LOW>;
+   };
+
+   wan {
+   label = "netgear:green:wan";
+   gpios = < 17 GPIO_ACTIVE_LOW>;
+   };
+
+   wlan {
+   label = "netgear:green:wlan";
+   gpios = < 1 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   linux,default-trigger = "phy0tpt";
+   };
+   };
+};
+
+ {
+   status = "okay";
+   num-cs = <1>;
+
+   flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <2500>;
+
+   partitions {
+   compatible = "fixed-partitions";
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   uboot: partition@0 {
+   reg = <0x0 0x4>;
+   label = "u-boot";
+   read-only;
+   };
+
+   partition@1 {
+   reg = <0x4 0x1>;
+   label = "u-boot-env";
+   };


That @1 isn't correct, you should use partition offset. See:
Documentation/devicetree/bindings/mtd/partition.txt

Same below.



+   partition@2 {
+   reg = <0x5 0x3a>;
+   label = "firmware";
+   };
+
+   partition@3 {
+   reg = <0x3f 0x1>;
+   label = "art";
+   read-only;
+   };
+   };
+   };
+};


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] iptables: increment PKG_RELEASE to force update

2018-06-19 Thread Mirko Parthey
On Wed, Jun 13, 2018 at 04:29:50PM +0200, Mirko Parthey wrote:
> While support for the FLOWOFFLOAD target is available in the firmware
> images, it is still missing in some of the binary packages on
> downloads.openwrt.org, e.g. for the mipsel_mips32 architecture.
> 
> Increment PKG_RELEASE to force an update of these packages.

Apparently this change did not solve the issue mentioned above.
I am sorry for this, and now reported it in Flyspray as FS#1597.

As to the change itself, I believe it is still worthwhile for 18.06 
since it is a followup to:

commit d073f650cdef24dce957099e55b660124fe2e0a4
Author: Felix Fietkau 
Date:   Fri Mar 23 12:53:44 2018 +0100

kernel: add support for enabling hardware flow offload via iptables

Thanks,
Mirko

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-19 Thread Rosen Penev
On Tue, Jun 19, 2018 at 9:56 AM, Paul Oranje  wrote:
> Can opkg remove not restore the original softlink to dropbear ? (bottom-line 
> reinstall dropbear)
Possible.
> And even when that isn't an option, why also move the dropbear binary to sbin 
> and not just the softlink ?
Simpler patch
>
> Paul
>
>> Op 17 jun. 2018, om 05:06 heeft Rosen Penev  het volgende 
>> geschreven:
>>
>> If you run opkg install openssh-client and then remove it, the ssh client
>> symlink that was initially there goes away. This avoids that problem.
>>
>> Signed-off-by: Rosen Penev 
>> ---
>> package/network/services/dropbear/Makefile | 18 +-
>> .../services/dropbear/files/dropbear.init  |  2 +-
>> 2 files changed, 10 insertions(+), 10 deletions(-)
>>
>> diff --git a/package/network/services/dropbear/Makefile 
>> b/package/network/services/dropbear/Makefile
>> index 21ac09f724..41f51b284b 100644
>> --- a/package/network/services/dropbear/Makefile
>> +++ b/package/network/services/dropbear/Makefile
>> @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
>>
>> PKG_NAME:=dropbear
>> PKG_VERSION:=2017.75
>> -PKG_RELEASE:=5
>> +PKG_RELEASE:=6
>>
>> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
>> PKG_SOURCE_URL:= \
>> @@ -57,7 +57,7 @@ endef
>>
>> define Package/dropbear/conffiles
>> /etc/dropbear/dropbear_rsa_host_key
>> -/etc/config/dropbear
>> +/etc/config/dropbear
>> endef
>>
>> define Package/dropbearconvert
>> @@ -128,13 +128,13 @@ define Build/Compile
>> endef
>>
>> define Package/dropbear/install
>> - $(INSTALL_DIR) $(1)/usr/sbin
>> - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
>> - $(INSTALL_DIR) $(1)/usr/bin
>> - $(LN) ../sbin/dropbear $(1)/usr/bin/scp
>> - $(LN) ../sbin/dropbear $(1)/usr/bin/ssh
>> - $(LN) ../sbin/dropbear $(1)/usr/bin/dbclient
>> - $(LN) ../sbin/dropbear $(1)/usr/bin/dropbearkey
>> + $(INSTALL_DIR) $(1)/sbin
>> + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/sbin/dropbear
>> + $(INSTALL_DIR) $(1)/bin
>> + $(LN) ../sbin/dropbear $(1)/bin/scp
>> + $(LN) ../sbin/dropbear $(1)/bin/ssh
>> + $(LN) ../sbin/dropbear $(1)/bin/dbclient
>> + $(LN) ../sbin/dropbear $(1)/bin/dropbearkey
>>   $(INSTALL_DIR) $(1)/etc/config
>>   $(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
>>   $(INSTALL_DIR) $(1)/etc/init.d
>> diff --git a/package/network/services/dropbear/files/dropbear.init 
>> b/package/network/services/dropbear/files/dropbear.init
>> index 2225113498..d9a6bd4959 100755
>> --- a/package/network/services/dropbear/files/dropbear.init
>> +++ b/package/network/services/dropbear/files/dropbear.init
>> @@ -6,7 +6,7 @@ START=50
>> STOP=50
>>
>> USE_PROCD=1
>> -PROG=/usr/sbin/dropbear
>> +PROG=/sbin/dropbear
>> NAME=dropbear
>> PIDCOUNT=0
>> EXTRA_COMMANDS="killclients"
>> --
>> 2.17.1
>>
>>
>> ___
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/listinfo/openwrt-devel
>

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-19 Thread Paul Oranje
Can opkg remove not restore the original softlink to dropbear ? (bottom-line 
reinstall dropbear)
And even when that isn't an option, why also move the dropbear binary to sbin 
and not just the softlink ?

Paul

> Op 17 jun. 2018, om 05:06 heeft Rosen Penev  het volgende 
> geschreven:
> 
> If you run opkg install openssh-client and then remove it, the ssh client
> symlink that was initially there goes away. This avoids that problem.
> 
> Signed-off-by: Rosen Penev 
> ---
> package/network/services/dropbear/Makefile | 18 +-
> .../services/dropbear/files/dropbear.init  |  2 +-
> 2 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/package/network/services/dropbear/Makefile 
> b/package/network/services/dropbear/Makefile
> index 21ac09f724..41f51b284b 100644
> --- a/package/network/services/dropbear/Makefile
> +++ b/package/network/services/dropbear/Makefile
> @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
> 
> PKG_NAME:=dropbear
> PKG_VERSION:=2017.75
> -PKG_RELEASE:=5
> +PKG_RELEASE:=6
> 
> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
> PKG_SOURCE_URL:= \
> @@ -57,7 +57,7 @@ endef
> 
> define Package/dropbear/conffiles
> /etc/dropbear/dropbear_rsa_host_key
> -/etc/config/dropbear 
> +/etc/config/dropbear
> endef
> 
> define Package/dropbearconvert
> @@ -128,13 +128,13 @@ define Build/Compile
> endef
> 
> define Package/dropbear/install
> - $(INSTALL_DIR) $(1)/usr/sbin
> - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/usr/sbin/dropbear
> - $(INSTALL_DIR) $(1)/usr/bin
> - $(LN) ../sbin/dropbear $(1)/usr/bin/scp
> - $(LN) ../sbin/dropbear $(1)/usr/bin/ssh
> - $(LN) ../sbin/dropbear $(1)/usr/bin/dbclient
> - $(LN) ../sbin/dropbear $(1)/usr/bin/dropbearkey
> + $(INSTALL_DIR) $(1)/sbin
> + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti $(1)/sbin/dropbear
> + $(INSTALL_DIR) $(1)/bin
> + $(LN) ../sbin/dropbear $(1)/bin/scp
> + $(LN) ../sbin/dropbear $(1)/bin/ssh
> + $(LN) ../sbin/dropbear $(1)/bin/dbclient
> + $(LN) ../sbin/dropbear $(1)/bin/dropbearkey
>   $(INSTALL_DIR) $(1)/etc/config
>   $(INSTALL_DATA) ./files/dropbear.config $(1)/etc/config/dropbear
>   $(INSTALL_DIR) $(1)/etc/init.d
> diff --git a/package/network/services/dropbear/files/dropbear.init 
> b/package/network/services/dropbear/files/dropbear.init
> index 2225113498..d9a6bd4959 100755
> --- a/package/network/services/dropbear/files/dropbear.init
> +++ b/package/network/services/dropbear/files/dropbear.init
> @@ -6,7 +6,7 @@ START=50
> STOP=50
> 
> USE_PROCD=1
> -PROG=/usr/sbin/dropbear
> +PROG=/sbin/dropbear
> NAME=dropbear
> PIDCOUNT=0
> EXTRA_COMMANDS="killclients"
> -- 
> 2.17.1
> 
> 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] brcm2708: Add support for CYW43455

2018-06-19 Thread Christo Nedev
I will send new patches soon!
Thanks!

> On 19 Jun 2018, at 05:53, Rafał Miłecki  wrote:
> 
>> On Mon, 18 Jun 2018 at 18:28, Christo Nedev  wrote:
>> I know!
>> 
>> linux-firmware: add firmware for BCM43455 SDIO wlan...
>> brcm2708: add RPi3+ wifi calibration data
>> brcm2708: add brcmfmac-firmware-43455-sdio to DEFAULT_PACKAGES
>> brcm2708: move wifi calibration EEPROMs out of base...
>> 
>> Cus those 4 patches
> 
> If there is anything else needed, please send a new patch.
> 
>> Sent from iPhone!
> 
> Please teach your iPhone to not top-post.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel


[OpenWrt-Devel] [RESEND] arc770: bump kernel to 4.14

2018-06-19 Thread Evgeniy Didin
From: Evgeniy Didin 

Currently arc770 is no more "source-only".
Lets update Linux kernel version from 4.9 to 4.14 for arc770.
config-4.14 was simply regenerated with "make kernel_menuconfig".

Signed-off-by: Evgeniy Didin 
Cc: Alexey Brodkin 
Cc: John Crispin 
---
This patch was sent to Lede-dev some time ago and was 
accepted by John Crispin, see:
https://patchwork.ozlabs.org/patch/894310/

 target/linux/arc770/Makefile   |  2 +-
 target/linux/arc770/{config-4.9 => config-4.14}| 47 --
 ...stmmac-Disable-frame-filtering-completely.patch |  0
 3 files changed, 26 insertions(+), 23 deletions(-)
 rename target/linux/arc770/{config-4.9 => config-4.14} (86%)
 rename target/linux/arc770/{patches-4.9 => 
patches-4.14}/700-stmmac-Disable-frame-filtering-completely.patch (100%)

diff --git a/target/linux/arc770/Makefile b/target/linux/arc770/Makefile
index 8b164f4ccf..b5e2d54065 100644
--- a/target/linux/arc770/Makefile
+++ b/target/linux/arc770/Makefile
@@ -12,7 +12,7 @@ BOARDNAME:=Synopsys DesignWare ARC 770D
 MAINTAINER:=Alexey Brodkin 
 SUBTARGETS:=generic
 
-KERNEL_PATCHVER:=4.9
+KERNEL_PATCHVER:=4.14
 
 DEVICE_TYPE:=developerboard
 
diff --git a/target/linux/arc770/config-4.9 b/target/linux/arc770/config-4.14
similarity index 86%
rename from target/linux/arc770/config-4.9
rename to target/linux/arc770/config-4.14
index fb5cd439e1..525075f1b8 100644
--- a/target/linux/arc770/config-4.9
+++ b/target/linux/arc770/config-4.14
@@ -2,8 +2,13 @@
 CONFIG_ARC=y
 # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
 # CONFIG_ARCH_HAS_GCOV_PROFILE_ALL is not set
-# CONFIG_ARCH_HAS_SG_CHAIN is not set
+CONFIG_ARCH_HAS_SG_CHAIN=y
+# CONFIG_ARCH_HAS_STRICT_KERNEL_RWX is not set
+# CONFIG_ARCH_HAS_STRICT_MODULE_RWX is not set
+# CONFIG_ARCH_OPTIONAL_KERNEL_RWX is not set
+# CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT is not set
 CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+# CONFIG_ARCH_WANTS_THP_SWAP is not set
 CONFIG_ARC_BUILTIN_DTB_NAME=""
 CONFIG_ARC_CACHE=y
 CONFIG_ARC_CACHE_LINE_SHIFT=5
@@ -35,13 +40,12 @@ CONFIG_ARC_MMU_V3=y
 CONFIG_ARC_PAGE_SIZE_8K=y
 CONFIG_ARC_PLAT_AXS10X=y
 # CONFIG_ARC_PLAT_EZNPS is not set
-CONFIG_ARC_PLAT_SIM=y
 # CONFIG_ARC_PLAT_TB10X is not set
+# CONFIG_ARC_SOC_HSDK is not set
+CONFIG_ARC_TIMERS=y
 CONFIG_ARC_UBOOT_SUPPORT=y
 CONFIG_AXS101=y
 CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
 CONFIG_CLONE_BACKWARDS=y
 CONFIG_COMMON_CLK=y
 # CONFIG_CPU_BIG_ENDIAN is not set
@@ -52,13 +56,20 @@ CONFIG_CRYPTO_HASH=y
 CONFIG_CRYPTO_HASH2=y
 CONFIG_CRYPTO_RNG2=y
 CONFIG_CRYPTO_WORKQUEUE=y
+# CONFIG_DMA_NOOP_OPS is not set
+# CONFIG_DMA_VIRT_OPS is not set
+# CONFIG_DRM_LIB_RANDOM is not set
 CONFIG_DTC=y
+CONFIG_DWMAC_ANARION=y
+# CONFIG_DWMAC_DWC_QOS_ETH is not set
 CONFIG_DWMAC_GENERIC=y
 CONFIG_DW_APB_ICTL=y
+CONFIG_EXPORTFS=y
 CONFIG_EXT4_FS=y
 # CONFIG_EZNPS_GIC is not set
 CONFIG_FIXED_PHY=y
 CONFIG_FS_MBCACHE=y
+CONFIG_FUTEX_PI=y
 CONFIG_GENERIC_ATOMIC64=y
 CONFIG_GENERIC_CLOCKEVENTS=y
 CONFIG_GENERIC_CSUM=y
@@ -71,6 +82,7 @@ CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_DWAPB=y
 CONFIG_GPIO_GENERIC=y
+# CONFIG_GRO_CELLS is not set
 CONFIG_HANDLE_DOMAIN_IRQ=y
 CONFIG_HAS_DMA=y
 CONFIG_HAS_IOMEM=y
@@ -100,13 +112,11 @@ CONFIG_ISA_ARCOMPACT=y
 CONFIG_JBD2=y
 CONFIG_KALLSYMS=y
 CONFIG_KERNEL_GZIP=y
-# CONFIG_LEDS_TRIGGER_MTD is not set
 CONFIG_LIBFDT=y
 CONFIG_LINUX_LINK_BASE=0x8000
-CONFIG_LZO_COMPRESS=y
-CONFIG_LZO_DECOMPRESS=y
-CONFIG_MDIO_BOARDINFO=y
-# CONFIG_MDIO_HISI_FEMAC is not set
+CONFIG_LINUX_RAM_BASE=0x8000
+CONFIG_MDIO_BUS=y
+CONFIG_MDIO_DEVICE=y
 CONFIG_MFD_SYSCON=y
 CONFIG_MIGHT_HAVE_PCI=y
 CONFIG_MMC=y
@@ -118,7 +128,6 @@ CONFIG_MMC_DW_PLTFM=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MODULES_USE_ELF_RELA=y
-# CONFIG_MTD_PHYSMAP_OF_VERSATILE is not set
 CONFIG_NATIONAL_PHY=y
 CONFIG_NEED_PER_CPU_KM=y
 # CONFIG_NET_CADENCE is not set
@@ -146,7 +155,6 @@ CONFIG_OF_IRQ=y
 CONFIG_OF_MDIO=y
 CONFIG_OF_NET=y
 CONFIG_OF_RESERVED_MEM=y
-# CONFIG_PCI is not set
 # CONFIG_PCI_SYSCALL is not set
 CONFIG_PERF_USE_VMALLOC=y
 CONFIG_PGTABLE_LEVELS=2
@@ -157,23 +165,13 @@ CONFIG_PREEMPT_COUNT=y
 # CONFIG_PREEMPT_NONE is not set
 CONFIG_PREEMPT_RCU=y
 CONFIG_PTP_1588_CLOCK=y
-CONFIG_PWRSEQ_EMMC=y
-CONFIG_PWRSEQ_SIMPLE=y
 CONFIG_RATIONAL=y
 # CONFIG_RCU_BOOST is not set
+CONFIG_RCU_NEED_SEGCBLIST=y
 CONFIG_RCU_STALL_COMMON=y
 CONFIG_REGMAP=y
 CONFIG_REGMAP_MMIO=y
-# CONFIG_RESET_ATH79 is not set
-# CONFIG_RESET_BERLIN is not set
 CONFIG_RESET_CONTROLLER=y
-# CONFIG_RESET_LPC18XX is not set
-# CONFIG_RESET_MESON is not set
-# CONFIG_RESET_PISTACHIO is not set
-# CONFIG_RESET_SOCFPGA is not set
-# CONFIG_RESET_STM32 is not set
-# CONFIG_RESET_SUNXI is not set
-# CONFIG_RESET_ZYNQ is not set
 # CONFIG_SCHED_INFO is not set
 # CONFIG_SCSI_DMA is not set
 CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
@@ -192,6 +190,11 @@ CONFIG_STMMAC_PLATFORM=y
 CONFIG_SWPHY=y
 CONFIG_SYSCTL_ARCH_UNALIGN_ALLOW=y