Hi everyone!
To cut long story short I have to make a microUSB port work as USB Host. I found out that there is a patch that will bring the port up.
Last year I managed to build a full custom image for my board using armbian documentation. I've already successfully upgraded software upto
Armbian 23.8.1 Bullseye with Linux 6.1.53-current-sunxi
So I'm going to build custom kernel with the patch applied to arch/arm/boot/dts/sun8i-r40.dtsi
https://github.com/Vutlan/linux-sunxi/commit/e0b16f86b91b5b03c4acd041aa2d45eb688378b2#diff-fb8cf9a1a0b868557516caf54f4e966b
ehci0: usb@1c14000 {
compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
reg = <0x01c14000 0x100>;
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_EHCI0>;
resets = <&ccu RST_BUS_EHCI0>;
phys = <&usbphy 0>;
phy-names = "usb";
status = "disabled";
};
ohci0: usb@1c14400 {
compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
reg = <0x01c14400 0x100>;
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_OHCI0>,
<&ccu CLK_USB_OHCI0>;
phys = <&usbphy 0>;
phy-names = "usb";
status = "disabled";
};
The main question : Am I going to move in a right direction ?
What I've already done:
- "git pull" in armbian/build directory.
Now I'm trying to build a kernel from the edge branch (because 6.1.y kernel is in the edge branch) for BananaPi M2 Ultra. During the compilation the script is trying to add RTL8811CU and ask for someone's github credentials. When I've feed it with my credentials it is answered that "remote: Support for password authentication was removed on August 13, 2021." So it's been failed.
Mayby I should remove old clonned local repository and re-clone it from github again ?
Although u-boot has been built successfully. But it's an earlier branch than installed - 23.02.0-trunk.
What should I build at all to make microUSB port work as USB Host ? Or maybe it's possible to make necessary changes in my current configuration, isn't it ?
Any suggestions are welcome
P.S. I've already removed an old armbian/build folder and clonned again. Script compile.sh works well, there's no question about github credentials.