Jump to content

Kernel 5.4.18 to 5.5 GPIO Input Pull up doesnt work


shaddow501

Recommended Posts

  

15 minutes ago, martinayotte said:

To try figuring about this crash, you will need to change "verbosity=1" to "verbosity=7" in /boot/armbianEnv.txt ...

 

 

I did as you suggested but still getting the same output with no new information.

 

 

In a working environment I have:

 

lrwxrwxrwx 1 root root       22 Jul  5  2019 Image -> vmlinuz-5.1.15-sunxi64
-rw-r--r-- 1 root root  3082032 Jul  5  2019 System.map-5.1.15-sunxi64
-rw-rw-r-- 1 root root      676 Feb 20 23:52 armbianEnv.txt
-rw-rw-r-- 1 root root     1536 Jul  5  2019 armbian_first_run.txt.template
-rw-rw-r-- 1 root root     4882 Jul  5  2019 boot-desktop.png
-rw-rw-r-- 1 root root   230454 Jul  5  2019 boot.bmp
-rw-rw-r-- 1 root root     2970 Jul  5  2019 boot.cmd
-rw-rw-r-- 1 root root     3042 Jul  5  2019 boot.scr
-rw-r--r-- 1 root root   154666 Jul  5  2019 config-5.1.15-sunxi64
lrwxrwxrwx 1 root root       18 Jul  5  2019 dtb -> dtb-5.1.15-sunxi64
drwxr-xr-x 3 root root     4096 Jul  5  2019 dtb-5.1.15-sunxi64
-rw-r--r-- 1 root root  8885902 Jan 28 16:04 initrd.img-5.1.15-sunxi64
lrwxrwxrwx 1 root root       22 Jan 28 16:04 uInitrd -> uInitrd-5.1.15-sunxi64
-rw-r--r-- 1 root root  8885966 Jan 28 16:04 uInitrd-5.1.15-sunxi64
-rwxr-xr-x 1 root root 14563336 Jul  5  2019 vmlinuz-5.1.15-sunxi64

 

on non-working environment I have:

 

-rw-rw-r-- 1 root root     120 Feb 22 01:44 armbianEnv.txt
-rw-rw-r-- 1 root root    1536 Feb 21 23:57 armbian_first_run.txt.template
-rw-rw-r-- 1 root root  230454 Feb 21 23:57 boot.bmp
-rw-r--r-- 1 root root    2961 Feb 21 23:55 boot.cmd
-rw-rw-r-- 1 root root    4882 Feb 21 23:57 boot-desktop.png
-rw-rw-r-- 1 root root    3033 Feb 21 23:58 boot.scr
-rw-r--r-- 1 root root  156513 Feb 21 23:38 config-5.1.21-sunxi64
-rw-r--r-- 1 root root 9444476 Feb 21 23:59 initrd.img-5.1.21-sunxi64
-rw-r--r-- 1 root root 3193660 Feb 21 23:38 System.map-5.1.21-sunxi64
lrwxrwxrwx 1 root root      22 Feb 21 23:59 uInitrd -> uInitrd-5.1.21-sunxi64
-rw-r--r-- 1 root root 9444540 Feb 21 23:59 uInitrd-5.1.21-sunxi64
-rwxr-xr-x 1 root root 7082009 Feb 21 23:38 vmlinuz-5.1.21-sunxi64

 

Why isnt there a link to Image?

And dtb are not even installed...

 

Link to comment
Share on other sites

13 hours ago, shaddow501 said:

Why isnt there a link to Image?

And dtb are not even installed...

I don't no ... Did you check the build log into output/debug/compilation.log ?

Is the DTB package succeeded to be build ? Resulting packages are located in output/debs/ ...

Link to comment
Share on other sites

I guess that I have had issues with the armbian build environment I guess that I have deleted some files that I shouldnt, anyway I have removed the old environment and build armbian again.

 

First I have tried to compile version 5.5.4 to see that all goes well and no errors, after confirm that it succeed to finish without any failures I went back to try compiling the 5.1 version.

 

With each failure of compilation I have modified the relevant MakeFiles and removed things that are not specially for relevant for the BPI-M64  board anyway  and that caused the compilation to stop.

I end up with this:

 

iff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index f670458ae..9e5672ff7 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -1,29 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-amarula-relic.dtb
+
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h3-cc.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2-v1.1.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-core2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-k1-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-m1-plus2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
+
diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile
index 11f80feba..cdb79e00d 100644
--- a/drivers/net/wireless/Makefile
+++ b/drivers/net/wireless/Makefile
@@ -4,7 +4,6 @@
 #
 
 obj-$(CONFIG_WLAN_VENDOR_ADMTEK) += admtek/
-obj-$(CONFIG_RTL8189ES) += rtl8189es/
 obj-$(CONFIG_WLAN_VENDOR_ATH) += ath/
 obj-$(CONFIG_WLAN_VENDOR_ATMEL) += atmel/
 obj-$(CONFIG_WLAN_VENDOR_BROADCOM) += broadcom/
@@ -14,7 +13,6 @@ obj-$(CONFIG_WLAN_VENDOR_INTERSIL) += intersil/
 obj-$(CONFIG_WLAN_VENDOR_MARVELL) += marvell/
 obj-$(CONFIG_WLAN_VENDOR_MEDIATEK) += mediatek/
 obj-$(CONFIG_WLAN_VENDOR_RALINK) += ralink/
-obj-$(CONFIG_WLAN_VENDOR_REALTEK) += realtek/
 obj-$(CONFIG_WLAN_VENDOR_RSI) += rsi/
 obj-$(CONFIG_WLAN_VENDOR_ST) += st/
 obj-$(CONFIG_WLAN_VENDOR_TI) += ti/
@@ -30,8 +28,5 @@ obj-$(CONFIG_USB_NET_RNDIS_WLAN)	+= rndis_wlan.o
 obj-$(CONFIG_MAC80211_HWSIM)	+= mac80211_hwsim.o
 
 obj-$(CONFIG_VIRT_WIFI)	+= virt_wifi.o
-obj-$(CONFIG_RTL8812AU) += rtl8812au/
 obj-$(CONFIG_WLAN_VENDOR_XRADIO) += xradio/
-obj-$(CONFIG_RTL8821CU) += rtl8811cu/
-obj-$(CONFIG_RTL8188EU) += rtl8188eu/
-obj-$(CONFIG_RTL8822BU) += rtl88x2bu/
+
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index d1b17ddcd..5eee1d0b5 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -5,12 +5,6 @@ obj-y				+= media/
 obj-$(CONFIG_PRISM2_USB)	+= wlan-ng/
 obj-$(CONFIG_COMEDI)		+= comedi/
 obj-$(CONFIG_FB_OLPC_DCON)	+= olpc_dcon/
-obj-$(CONFIG_RTL8192U)		+= rtl8192u/
-obj-$(CONFIG_RTL8192E)		+= rtl8192e/
-obj-$(CONFIG_RTL8723BS)		+= rtl8723bs/
-obj-$(CONFIG_R8712U)		+= rtl8712/
-obj-$(CONFIG_R8188EU)		+= rtl8188eu/
-obj-$(CONFIG_R8822BE)		+= rtlwifi/
 obj-$(CONFIG_RTS5208)		+= rts5208/
 obj-$(CONFIG_NETLOGIC_XLR_NET)	+= netlogic/
 obj-$(CONFIG_OCTEON_ETHERNET)	+= octeon/

 

And now I am facing another issue that I cannot find the fix for it:

 

CC [M]  drivers/usb/serial/usb_wwan.o
  CC [M]  drivers/usb/serial/ssu100.o
  CC [M]  drivers/usb/serial/symbolserial.o
  CC [M]  drivers/usb/serial/ti_usb_3410_5052.o
  CC [M]  drivers/usb/serial/upd78f0730.o
  CC [M]  drivers/usb/serial/visor.o
  CC [M]  drivers/usb/serial/wishbone-serial.o
  CC [M]  drivers/usb/serial/whiteheat.o
  LD [M]  drivers/usb/usbip/usbip-vudc.o
  CC [M]  drivers/usb/serial/xsens_mt.o
  LD [M]  drivers/usb/serial/usbserial.o
  AR      drivers/usb/built-in.a
  AR      drivers/built-in.a
[ error ] ERROR in function compile_kernel [ compilation.sh:378 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated 

Also happens with the 5.2 version. 

 

Link to comment
Share on other sites

1 hour ago, martinayotte said:

Look into output/debug/compilation.log for details and search for "error:"  ...

Dear 

 

Why dont you give it a try?

 

add: KERNELBRANCH='branch:orange-pi-5.1'  into the lib.config file in the userpatches folder.

 

 

and try it.

board: bananpim64

 

You will face the same issues that I report here.

but  you will have all the information.

 

Link to comment
Share on other sites

2 minutes ago, shaddow501 said:

Why dont you give it a try?

Why ? I've better things to do, such as preparing the switch of Armbian DEV to 5.6.y ...

If it doesn't compile and you wish it to compile, it is up to yourself to look into output/debug/compilation.log for details and search for "error:" !

Don't ask other to do your own tasks for you !

Link to comment
Share on other sites

2 minutes ago, martinayotte said:

Why ? I've better things to do, such as preparing the switch of Armbian DEV to 5.6.y ...

If it doesn't compile and you wish it to compile, it is up to yourself to look into output/debug/compilation.log for details and search for "error:" !

Don't ask other to do your own tasks for you !

You have answered you wanted to help. I think that less work from you since you can see the source and issues you ask for.

 

If you dont want to help, dont.

thanks for the support so far.

 

Hard to understand why a feature that should work in the examples to build an older kernel revision doesnt work!

 

Link to comment
Share on other sites

9 hours ago, shaddow501 said:

You have answered you wanted to help. I think that less work from you since you can see the source and issues you ask for.

 

If you dont want to help, dont.

thanks for the support so far.

I'm happy to help, and I will do, but if you're too lazy to look at output/debug/compilation.log for details and search for "error:" , I won't do it for you !!!

 

Would you help me to figure out why have troubles of switching Armbian Dev from 5.5.y to 5.6.y ? I've working on that task since more than a week !!!

 

Link to comment
Share on other sites

21 hours ago, martinayotte said:

I'm happy to help, and I will do, but if you're too lazy to look at output/debug/compilation.log for details and search for "error:" , I won't do it for you !!!

 

Would you help me to figure out why have troubles of switching Armbian Dev from 5.5.y to 5.6.y ? I've working on that task since more than a week !!!

 

 

Sure

 

Just let me know if I am correct.

 

in order to install version 5.6 do I need to set lib.config to the orange-pi-5.6 ?

 

 

Link to comment
Share on other sites

Moving from kernel 5.5.0 to Kernel 5.5.4 or 5.5.5 have this issues:

Wireless is very slow (also with the 5.5.0) the solution is:

 

nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

and change:

 

[connection]

wifi.powersave = 0

 

Rotate screen that was working with the 5.5.0 version does not work with the next versions (current 5.4 ,dev 5.5.0)

I get black screen when rotating.

 

I have idea why  moving fast to newer kernels without fixing the issues with the older kernels...

 

Link to comment
Share on other sites

14 hours ago, shaddow501 said:

in order to install version 5.6 do I need to set lib.config to the orange-pi-5.6 ?

Ahahah ! :lol:

It is not as simple as that ...

4 hours ago, shaddow501 said:

I have idea why  moving fast to newer kernels without fixing the issues with the older kernels...

Why are you come to this conclusion ? Armbian folks are not responsible for all the issues, most comes from upstream ...

Link to comment
Share on other sites

On 2/24/2020 at 4:03 PM, martinayotte said:

Ahahah ! :lol:

It is not as simple as that ...

Why are you come to this conclusion ? Armbian folks are not responsible for all the issues, most comes from upstream ...

 

I have set in the lib.config file the version 5.1 (same thing happen with version 5.6)

 

After fixing all the compiling issues I was able to compule:

 

dpkg-deb: building package 'linux-headers-5.1.21-sunxi64' in '../linux-headers-5.1.21-sunxi64_20.05.0-trunk_arm64.deb'.
dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_20.05.0-trunk_arm64.deb'.
dpkg-deb: building package 'linux-image-5.1.21-sunxi64' in '../linux-image-5.1.21-sunxi64_20.05.0-trunk_arm64.deb'.
dpkg-buildpackage: info: binary-only upload (no source included)
dpkg-deb: building package 'linux-source-5.1.21-dev-sunxi64' in '/home/ilan/armbian/build/.tmp/linux-source-dev-sunxi64_20.05.0-trunk_all.deb'.
dpkg-deb: error: failed to read archive '/home/ilan/armbian/build/output/debs/linux-image-dev-sunxi64_20.05.0-trunk_arm64.deb': No such file or directory
[ o.k. ] Starting rootfs and image building process for [ bananapim64 bionic ]
[ o.k. ] Checking for local cache [ bionic-cli-arm64.881...e08.tar.lz4 ]
[ o.k. ] Extracting bionic-cli-arm64.881...e08.tar.lz4 [ 2 days old ]
[ .... ] bionic-cli-arm64.881...e08.tar.lz4:  364MiB [64.3MiB/s] [==========================================================================================================>] 100%
[ o.k. ] Adding Armbian repository and authentication key [ /etc/apt/sources.list.d/armbian.list ]
[ o.k. ] Applying distribution specific tweaks for [ bionic ]
[ o.k. ] Applying common tweaks 
cp: cannot stat '/home/ilan/armbian/build/output/debs/linux-image-dev-sunxi64_20.05.0-trunk_arm64.deb': No such file or directory
[ .... ] Installing [ linux-image-dev-sunxi64_20.05.0-trunk_arm64.deb ]
[ .... ] Installing [ linux-u-boot-dev-bananapim64_20.05.0-trunk_arm64.deb ]
cp: cannot stat '/home/ilan/armbian/build/output/debs/linux-headers-dev-sunxi64_20.05.0-trunk_arm64.deb': No such file or directory
[ .... ] Installing [ linux-headers-dev-sunxi64_20.05.0-trunk_arm64.deb ]
[ .... ] Installing [ armbian-config_20.05.0-trunk_all.deb ]
[ .... ] Installing [ armbian-firmware_20.05.0-trunk_all.deb ]
[ o.k. ] Enabling serial console [ ttyS0 ]

 

As you can see it  creates the headers and kernel version 5.1.21 but when it going to the stage to implement it in the image it looks for other deb files that are not created...

also doesnt create the DTB deb file.

eventually the image that is created doest work.

 

So changing the linux-headers-5.1.21... and the linux-image-5.1.21 to  linux-headers-dev... and the linux-image-dev.... then running the compilation again and switch the file names a second before it implement them I manage to overcome this error.

 

but no DTB file and the implentation in the linux image doesnt work. there is not even a link from Image-> to the vmlinuz-5.1.21-sunxi64 at the boot folder.

 

 

I havent found anywhere why it doesnt create the DTB file and why it doesnt link the image correctly.

 

Here is the patch I have created for the compilation to complete.

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index f670458ae..b81175502 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -1,29 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-amarula-relic.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-bananapi-m64.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-nanopi-a64.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-olinuxino.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h3-cc.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2-v1.1.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-core2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-k1-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-m1-plus2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
-dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
+
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
index 7793ebb5d..38f54fef4 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
@@ -43,6 +43,7 @@
 /dts-v1/;
 
 #include "sun50i-a64.dtsi"
+#include "sun50i-a64-cpu-opp.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 
@@ -108,6 +109,22 @@
 	status = "okay";
 };
 
+&cpu0 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&cpu1 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&cpu2 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
+&cpu3 {
+	cpu-supply = <&reg_dcdc2>;
+};
+
 &dai {
 	status = "okay";
 };
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi
new file mode 100644
index 000000000..578c37490
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2020 Vasily khoruzhick <anarsoul@gmail.com>
+ */
+
+/ {
+	cpu0_opp_table: opp_table0 {
+		compatible = "operating-points-v2";
+		opp-shared;
+
+		opp-648000000 {
+			opp-hz = /bits/ 64 <648000000>;
+			opp-microvolt = <1040000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-816000000 {
+			opp-hz = /bits/ 64 <816000000>;
+			opp-microvolt = <1100000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-912000000 {
+			opp-hz = /bits/ 64 <912000000>;
+			opp-microvolt = <1120000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-960000000 {
+			opp-hz = /bits/ 64 <960000000>;
+			opp-microvolt = <1160000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-1008000000 {
+			opp-hz = /bits/ 64 <1008000000>;
+			opp-microvolt = <1200000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-1056000000 {
+			opp-hz = /bits/ 64 <1056000000>;
+			opp-microvolt = <1240000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-1104000000 {
+			opp-hz = /bits/ 64 <1104000000>;
+			opp-microvolt = <1260000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+
+		opp-1152000000 {
+			opp-hz = /bits/ 64 <1152000000>;
+			opp-microvolt = <1300000>;
+			clock-latency-ns = <244144>; /* 8 32k periods */
+		};
+	};
+};
+
+&cpu0 {
+	operating-points-v2 = <&cpu0_opp_table>;
+};
+
+&cpu1 {
+	operating-points-v2 = <&cpu0_opp_table>;
+};
+
+&cpu2 {
+	operating-points-v2 = <&cpu0_opp_table>;
+};
+
+&cpu3 {
+	operating-points-v2 = <&cpu0_opp_table>;
+};
diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile
index 11f80feba..9f5145cdf 100644
--- a/drivers/net/wireless/Makefile
+++ b/drivers/net/wireless/Makefile
@@ -4,7 +4,6 @@
 #
 
 obj-$(CONFIG_WLAN_VENDOR_ADMTEK) += admtek/
-obj-$(CONFIG_RTL8189ES) += rtl8189es/
 obj-$(CONFIG_WLAN_VENDOR_ATH) += ath/
 obj-$(CONFIG_WLAN_VENDOR_ATMEL) += atmel/
 obj-$(CONFIG_WLAN_VENDOR_BROADCOM) += broadcom/
@@ -14,7 +13,6 @@ obj-$(CONFIG_WLAN_VENDOR_INTERSIL) += intersil/
 obj-$(CONFIG_WLAN_VENDOR_MARVELL) += marvell/
 obj-$(CONFIG_WLAN_VENDOR_MEDIATEK) += mediatek/
 obj-$(CONFIG_WLAN_VENDOR_RALINK) += ralink/
-obj-$(CONFIG_WLAN_VENDOR_REALTEK) += realtek/
 obj-$(CONFIG_WLAN_VENDOR_RSI) += rsi/
 obj-$(CONFIG_WLAN_VENDOR_ST) += st/
 obj-$(CONFIG_WLAN_VENDOR_TI) += ti/
@@ -30,8 +28,6 @@ obj-$(CONFIG_USB_NET_RNDIS_WLAN)	+= rndis_wlan.o
 obj-$(CONFIG_MAC80211_HWSIM)	+= mac80211_hwsim.o
 
 obj-$(CONFIG_VIRT_WIFI)	+= virt_wifi.o
-obj-$(CONFIG_RTL8812AU) += rtl8812au/
+
 obj-$(CONFIG_WLAN_VENDOR_XRADIO) += xradio/
-obj-$(CONFIG_RTL8821CU) += rtl8811cu/
-obj-$(CONFIG_RTL8188EU) += rtl8188eu/
-obj-$(CONFIG_RTL8822BU) += rtl88x2bu/
+
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 8ee8af4e7..127247759 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -5886,7 +5886,7 @@ static s32 wl_init_priv(struct brcmf_cfg80211_info *cfg)
 	s32 err = 0;
 
 	cfg->scan_request = NULL;
-	cfg->pwr_save = true;
+	cfg->pwr_save = !cfg->pub->settings->powersave_default_off;
 	cfg->dongle_up = false;		/* dongle is not up yet */
 	err = brcmf_init_priv_mem(cfg);
 	if (err)
@@ -6653,8 +6653,10 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp)
 				    BIT(NL80211_BSS_SELECT_ATTR_BAND_PREF) |
 				    BIT(NL80211_BSS_SELECT_ATTR_RSSI_ADJUST);
 
-	wiphy->flags |= WIPHY_FLAG_NETNS_OK |
-			WIPHY_FLAG_PS_ON_BY_DEFAULT |
+        if( ! ifp->drvr->settings->powersave_default_off )
+		wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
+	wiphy->flags |= WIPHY_FLAG_OFFCHAN_TX |
+			WIPHY_FLAG_NETNS_OK |
 			WIPHY_FLAG_HAVE_AP_SME |
 			WIPHY_FLAG_OFFCHAN_TX |
 			WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
index 96b8d5b3a..2a6c79d4a 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
@@ -85,6 +85,10 @@ module_param_named(ignore_probe_fail, brcmf_ignore_probe_fail, int, 0);
 MODULE_PARM_DESC(ignore_probe_fail, "always succeed probe for debugging");
 #endif
 
+static int brcmf_powersave_default = -1;
+module_param_named(powersave_default, brcmf_powersave_default, int, 0);
+MODULE_PARM_DESC(powersave_default, "Set powersave default on/off on wiphy");
+
 static struct brcmfmac_platform_data *brcmfmac_pdata;
 struct brcmf_mp_global_t brcmf_mp_global;
 
@@ -458,6 +462,8 @@ struct brcmf_mp_device *brcmf_get_module_param(struct device *dev,
 		brcmf_dmi_probe(settings, chip, chiprev);
 		brcmf_of_probe(dev, bus_type, settings);
 	}
+	if( brcmf_powersave_default >= 0 )
+		settings->powersave_default_off = !brcmf_powersave_default;
 	return settings;
 }
 
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
index 4ce56be90..8d276ab4d 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
@@ -58,6 +58,8 @@ struct brcmf_mp_device {
 	bool		roamoff;
 	bool		iapp;
 	bool		ignore_probe_fail;
+	bool		powersave_default_off;
+
 	struct brcmfmac_pd_cc *country_codes;
 	const char	*board_type;
 	union {
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
index 84e337328..27fcc25ed 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c
@@ -47,6 +47,9 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
 
 	if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0)
 		sdio->drive_strength = val;
+	settings->powersave_default_off = of_property_read_bool(np,
+			"brcm,powersave-default-off");
+
 
 	/* make sure there are interrupts defined in the node */
 	if (!of_find_property(np, "interrupts", NULL))
diff --git a/sound/soc/sunxi/Makefile b/sound/soc/sunxi/Makefile
index 555aa08f5..e8ebd59f6 100644
--- a/sound/soc/sunxi/Makefile
+++ b/sound/soc/sunxi/Makefile
@@ -1,8 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-$(CONFIG_SND_SUN8I_CODEC_ANALOG) += sun8i-codec-analog.o
-obj-$(CONFIG_SND_SUN4I_CODEC) += sun4i-codec.o
-obj-$(CONFIG_SND_SUN4I_I2S) += sun4i-i2s.o
-obj-$(CONFIG_SND_SUN4I_SPDIF) += sun4i-spdif.o
 obj-$(CONFIG_SND_SUN50I_CODEC_ANALOG) += sun50i-codec-analog.o
 obj-$(CONFIG_SND_SUN8I_CODEC) += sun8i-codec.o
 obj-$(CONFIG_SND_SUN8I_ADDA_PR_REGMAP) += sun8i-adda-pr-regmap.o

 

The issue is as follows:

 

1. I cannot use legacy version (4.19) since the Wireless is not recognized + no hdmi disply.

2. I cannot use the current 5.4, dev 5.5.4, dev 5.5.5 version since there is an issue with the python GPIO + I cannot invert  the HDMI screen, when I select to inverted the screen goes black.

 

The only version that worked before was 5.1.15 but I do not able to create image with version of 5.1.21.

 

 

 

Is there anyone that know how to address this?

 

[0m[1;35m dpkg-genchanges --build=binary >../linux-5.1.21-sunxi64_20.05.0-trunk_arm64.changes
[0mdpkg-genchanges: warning: package linux-image-5.1.21-sunxi64-dbg in control file but not in files list
dpkg-genchanges: info: binary-only upload (no source code included)

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines