wildcat_paris Posted June 5, 2016 Posted June 5, 2016 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
Igor Posted June 5, 2016 Posted June 5, 2016 On a first quick look this looks like a bad power issues, but I guess you are only changing kernel?
wildcat_paris Posted June 5, 2016 Author Posted June 5, 2016 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
wildcat_paris Posted June 5, 2016 Author Posted June 5, 2016 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 = <®_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 = <®_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 = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + dr_mode = "otg"; + #dr_mode = "host"; + status = "okay"; +};
wildcat_paris Posted June 5, 2016 Author Posted June 5, 2016 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
Schwemmlandebene Posted June 6, 2016 Posted June 6, 2016 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 lsusbunable to initialize libusb: -99 1
wildcat_paris Posted June 6, 2016 Author Posted June 6, 2016 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.
zador.blood.stained Posted June 7, 2016 Posted June 7, 2016 R1 DTB was "officially" added in kernel 4.6 - so most probably new DT or some our patches cause this issue. 1
wildcat_paris Posted June 7, 2016 Author Posted June 7, 2016 FYI I haven't found interesting changes related to USB, I will be looking at DTB ok I see the file http://lxr.free-electrons.com/source/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
wildcat_paris Posted June 12, 2016 Author Posted June 12, 2016 USB is back with kernel 4.6.2 Thank you 1
Recommended Posts