0
wildcat_paris

Solved [A20 / Lamobo-R1 / kernel 4.6.1] USB issue

Recommended Posts

Hello,

 

for a piece of advice, I have compiled kernel 4.6.1 for Lamobo-R1, USB is KO, I am switching back to 4.5.5 in the meantime.

 

 

 

[gr:~] $ dmesg | grep usb
[    3.346361] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_vbus_pin@0, deferring probe
[    3.346404] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[    3.346445] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[    3.349520] usbcore: registered new interface driver usbfs
[    3.349626] usbcore: registered new interface driver hub
[    3.349786] usbcore: registered new device driver usb
[    3.628767] sun4i-usb-phy 1c13400.phy: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_id_detect_pin@0, deferring probe
[    3.822756] usbcore: registered new interface driver usb-storage
[    3.871262] usbcore: registered new interface driver usbhid
[    3.871276] usbhid: USB HID core driver
[    4.081634] usb0-vbus: disabling
[    4.081644] usb1-vbus: disabling
[    4.081659] usb2-vbus: disabling
[    8.568391] usbcore: registered new interface driver uas
[    8.682596] usbcore: registered new interface driver chaoskey

[gr:~] $ sudo lsusb

unable to initialize libusb: -99

 

 

 

Share this post


Link to post
Share on other sites

wait, yes, both 4.6.1 kernel have -rt3

 

I have applied 4.6.1-RT3 patch, then tested again without 4.6.1-RT3 patch

 

but it seems the patch isn't removed from source => I will remove v4.6.1 folder and upload the kernel again

Share this post


Link to post
Share on other sites

also my patch from 4.3.3 doesnt work any longer

it can explain the mess... I have left the CPU 1008 MHz  tweak in the patch

 

 

 

root@server1404:~/armbian/userpatches/kernel/sunxi-next# cat X101-golfromeo.cpu.gmac.patch
--- v4.3.3/arch/arm/boot/dts/sun7i-a20.dtsi     2015-12-24 19:45:36.704310828 +0100
+++ v4.3.3/arch/arm/boot/dts/sun7i-a20.dtsi     2015-12-25 22:59:41.876408694 +0100
@@ -98,9 +98,11 @@
                        device_type = "cpu";
                        reg = <0>;
                        clocks = <&cpu>;
+                       #clock-frequency = <960000000>;
                        clock-latency = <244144>; /* 8 32k periods */
                        operating-points = <
                                /* kHz    uV */
+                               1008000 1450000
                                960000  1400000
                                912000  1400000
                                864000  1300000
@@ -117,6 +119,8 @@
                cpu@1 {
                        compatible = "arm,cortex-a7";
                        device_type = "cpu";
+                       #clock-frequency = <960000000>;
+                       clocks = <&cpu>;
                        reg = <1>;
                };
        };
--- v4.3.3/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts    2015-12-26 02:47:14.894391945 +0100
+++ v4.3.3/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts    2015-12-26 02:58:20.600864573 +0100
@@ -187,6 +187,13 @@
                        phy-supply = <&reg_gmac_3v3>;
                        status = "okay";

+                       snps,pbl = <1>;
+                       tx-fifo-depth = <16384>;
+                       rx-fifo-depth = <8192>;
+                       snps,tx_coe = <1>;
+                       snps,rx_coe = <2>;
+                       snps,bugged_jumbo = <1>;
+
                        phy1: ethernet-phy@1 {
                                reg = <1>;
                        };
@@ -236,3 +243,31 @@
                status = "okay";
        };
 };
+
+&gmac {
+        pinctrl-names = "default";
+        pinctrl-0 = <&gmac_pins_rgmii_a>;
+        phy = <&phy1>;
+        phy-mode = "rgmii";
+        phy-supply = <&reg_gmac_3v3>;
+        status = "okay";
+
+        snps,pbl = <1>;
+        tx-fifo-depth = <16384>;
+        rx-fifo-depth = <8192>;
+        snps,tx_coe = <1>;
+        snps,rx_coe = <2>;
+        snps,bugged_jumbo = <1>;
+
+        phy1: ethernet-phy@1 {
+                reg = <1>;
+        };
+};
+
+&usb_otg {
+        usb1_vbus-supply = <&reg_usb1_vbus>;
+        usb2_vbus-supply = <&reg_usb2_vbus>;
+        dr_mode = "otg";
+        #dr_mode = "host";
+        status = "okay";
+};

 

 

Share this post


Link to post
Share on other sites

So, I have retried kernel 4.6.1

- with SS PRNG patch

- with 1008 MHz patch

 

I have removed all kernel sources, removed the kernel 4.6.1-rt3 (realtime) patch

 

and yet I have the same errors with USB

 

so reloading again my deb packages with good working kernel 4.5.5

Share this post


Link to post
Share on other sites

I can confirm some trouble with the combination of lamabo-r1, 4.6.1 and USB.

With standard linux-sunxi-next.config my USB keyboards work.

But after disabling some I2C drivers in the kernel configuration the board doesn't get any input from the keyboards.

On one keyboard the NumLock LED lits after hitting the key, on the other it does not.

 

$ sudo lsusb
unable to initialize libusb
: -99

Share this post


Link to post
Share on other sites

it seems (reading kernel 4.6 news released today in French) they added USB 3.1 support.

 

maybe something has changed in the DTB or kernel config... let's see later.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0