ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
<youmukonpaku1337> ok yea i should be able to
apritzel has quit [Ping timeout: 480 seconds]
stipa is now known as Guest1823
stipa has joined #linux-sunxi
Guest1823 has quit [Ping timeout: 480 seconds]
ungeskriptet0 has joined #linux-sunxi
ungeskriptet has quit [Ping timeout: 480 seconds]
stipa is now known as Guest1828
Guest1828 has quit [Read error: Connection reset by peer]
stipa has joined #linux-sunxi
youmukon1 has joined #linux-sunxi
youmukonpaku1337 is now known as Guest1834
youmukon1 is now known as youmukonpaku1337
Guest1834 has quit [Ping timeout: 480 seconds]
stipa is now known as Guest1838
stipa has joined #linux-sunxi
Guest1838 has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
junari has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
anarsoul has quit [Ping timeout: 480 seconds]
rubberduck has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall. ]
rubberduck has joined #linux-sunxi
stipa has quit [Ping timeout: 480 seconds]
stipa has joined #linux-sunxi
anarsoul has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
youmukonpaku1337 has quit [Quit: WeeChat 4.0.4]
youmukonpaku1337 has joined #linux-sunxi
apritzel has joined #linux-sunxi
jelly-hme has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
youmukon1 has joined #linux-sunxi
youmukonpaku1337 has quit [Read error: Connection reset by peer]
jelly has joined #linux-sunxi
warpme has quit []
jelly has quit [Ping timeout: 480 seconds]
wasutton- has joined #linux-sunxi
youmukonpaku1337 has joined #linux-sunxi
wasutton3 has quit [Ping timeout: 480 seconds]
youmukon1 has quit [Read error: Connection reset by peer]
warpme has joined #linux-sunxi
youmukon1 has joined #linux-sunxi
Guest1708 has quit [Read error: Connection reset by peer]
DarkNeutrino has joined #linux-sunxi
mripard has joined #linux-sunxi
mripard has quit []
youmukonpaku1337 has quit [Ping timeout: 480 seconds]
mripard has joined #linux-sunxi
DarkNeutrino has quit [Ping timeout: 480 seconds]
DarkNeutrino has joined #linux-sunxi
apritzel has joined #linux-sunxi
warpme has quit []
youmukon1 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
warpme has joined #linux-sunxi
DarkNeutrino is now known as Guest1865
DarkNeutrino has joined #linux-sunxi
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
jelly has joined #linux-sunxi
warpme has quit [Read error: Connection reset by peer]
warpme has joined #linux-sunxi
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
jelly has quit [Read error: Connection reset by peer]
freemangordon has quit []
freemangordon has joined #linux-sunxi
warpme has quit []
kuba2k2 has joined #linux-sunxi
jelly has joined #linux-sunxi
harve-vite has joined #linux-sunxi
harve-vite has quit []
bauen1 has quit [Ping timeout: 480 seconds]
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
warpme has joined #linux-sunxi
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
youmukon1 has joined #linux-sunxi
youmukonpaku1337 has quit [Ping timeout: 480 seconds]
youmukon1 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
warpme has quit []
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
gsz has joined #linux-sunxi
indy_ is now known as indy
bauen1 has joined #linux-sunxi
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
kuba2k2 has quit [Ping timeout: 480 seconds]
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
kuba2k2 has joined #linux-sunxi
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.0.4]
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
JohnDoe_71Rus has quit []
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
Danct12 has quit [Read error: Connection reset by peer]
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
mripard has quit [Quit: mripard]
mripard has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
mripard has quit [Quit: mripard]
kuba2k2 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
Danct12 has joined #linux-sunxi
ftg has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
anarsoul has quit [Read error: No route to host]
daschaos has quit [Remote host closed the connection]
daschaos has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit [Remote host closed the connection]
warpme has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
ungeskriptet0 has quit []
ungeskriptet0 has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
gsz has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
JohnDoe_71Rus has quit []
warpme has quit []
warpme has joined #linux-sunxi
youmukonpaku1337 has quit [Remote host closed the connection]
youmukonpaku1337 has joined #linux-sunxi
bauen1 has joined #linux-sunxi
Guest1865 has quit [Read error: Connection reset by peer]
hexdump01 has quit []
hexdump0815 has joined #linux-sunxi
<hexdump0815> apritzel: jernej: iirc there was some some problem once tocompile some low level early boot code with a newer gcc - in case it is still the case then maybe this is worth a look? - https://libera.irclog.whitequark.org/linux-amlogic/2023-09-05#34875463
<apritzel> hexdump0815: mmh, interesting, thanks for the heads up, at least it's some extra data point to consider
warpme has quit []
youmukon1 has joined #linux-sunxi
youmukonpaku1337 has quit [Ping timeout: 480 seconds]
kuba2k2 has joined #linux-sunxi
<jernej> apritzel: do you have any issue with motorcomm PHY power sequence?
kuba2k2 has quit []
<apritzel> on the OrangePi Zero3? Or in general?
<jernej> on Zero3
<jernej> Because I had on OrangePi 3 LTS and then LE user found this workaround: https://forum.libreelec.tv/thread/26522-orangepi-3-lts-ethernet-connection-timed-out/?postID=183403#post183403
<jernej> However, I'm sure there is SW workaround/fix too
<apritzel> Does the OPi 3 LTS also use an YT8531?
<apritzel> the Motorcom datasheet says: "The YT8531(D) device requires only one external power supply: 3.3 V."
<apritzel> so I don't think there is any particular sequence needed
<apritzel> however the datasheet also says that one should keep RST low for at least 10ms after enabling power
stipa has quit [Ping timeout: 480 seconds]
<apritzel> I don't know from the top of my head if we take care of that, or if Linux would be, but U-Boot is spoiling this
<apritzel> I tried without U-Boot Ethernet support, though, and there was no difference, IIRC
youmukon1 has quit [Read error: Connection reset by peer]
youmukonpaku1337 has joined #linux-sunxi
Halamix2_ has quit []
Halamix2 has joined #linux-sunxi
<youmukonpaku1337> apritzel: so uh i am a complete idiot and the wifi interface was 12mbit
<youmukonpaku1337> so shit was running horribly
<youmukonpaku1337> i now need to use the main usb port as host
<youmukonpaku1337> problem is
<youmukonpaku1337> it does NOT work
<youmukonpaku1337> i have dr_mode set to host in DT
<jernej> apritzel: it has YT8531C
jason123onirc has joined #linux-sunxi
<jernej> apritzel: I added reset delays longer than that, but I get occasional user report that it doesn't work from time to time, so not sure what I can do more
jason123santaonirc has quit [Ping timeout: 480 seconds]
<youmukonpaku1337> megi: if possible, can you test forcing dr_mode=host on your device with a powered otg adapter? and see if it works
<youmukonpaku1337> or is there a way to force usb2 on the wifi interface lol
<apritzel> youmukonpaku1337: I don't know any details, but the MUSB host mode is reported to have problems
<youmukonpaku1337> oh
<apritzel> that's why Allwinner added a mux and a separate EHCI/OCHI host controller pair to later SoCs
<youmukonpaku1337> i assume im screwed and stuck with ohci then?
<youmukonpaku1337> :(
<apritzel> so with "Wifi interface" you mean the pins on the board that connect to the USB1 controller?
<youmukonpaku1337> well the pins intended for the rtl8188eus
<youmukonpaku1337> which seem to be connected to the ohci controller, yes
<apritzel> that should work fine with Hi-Speed, since it's the usual EHCI/OHCI pair
<youmukonpaku1337> oh
<youmukonpaku1337> can i switch it to ehci then...?
<youmukonpaku1337> if so how
<youmukonpaku1337> cause atm the interface in linux is a 1.1 root hub lol
<apritzel> which probably means something's gone wrong with the EHCI setup
<apritzel> the bootlog would be your friend again
<youmukonpaku1337> and let me guess: this means digging through dmesg
<youmukonpaku1337> yep
<youmukonpaku1337> knew it
<youmukonpaku1337> ugh
<apritzel> there are two separate devices, one OHCI, and EHCI
<youmukonpaku1337> OH
<youmukonpaku1337> yeah
<youmukonpaku1337> that explains it
<youmukonpaku1337> one ehci for the musb
<youmukonpaku1337> one ehci for the wifi and the ohci for the wifi also
<youmukonpaku1337> and i suppose theyre switched somehow
<apritzel> no, MUSB is not EHCI
<youmukonpaku1337> oh
<youmukonpaku1337> i mean it is hi speed, no?
<apritzel> MUSB is MUSB, it has a different software interface, but should support host mode
<youmukonpaku1337> oh i see
<apritzel> need to look up if it's Hi-Speed, but I think so
<youmukonpaku1337> yes it is
<youmukonpaku1337> lsusb -t lists it as such at leasy
<apritzel> yeah, the manual explicitly lists Hi-Speed in host mode
<apritzel> by anyway, we have examples for only either EHCI or OHCI enabled, and that working
<youmukonpaku1337> i see
<apritzel> for instance for keyboards fixed to the port you only need OHCI
<youmukonpaku1337> https://pastebin.com/N2rQxgKV heres the bootlog btw
<youmukonpaku1337> digging time
<apritzel> on the other hand a USB hub only talks EHCI to the host, so you just need EHCI
<youmukonpaku1337> i see
<youmukonpaku1337> okay so
<youmukonpaku1337> usb bus 3 is ehci
<youmukonpaku1337> and it is registered fine
<youmukonpaku1337> aaaand... thats the only block lol
<youmukonpaku1337> bus 1 is ohci
<apritzel> yeah, that part looks fine
<youmukonpaku1337> so question is what is going wrong
<youmukonpaku1337> the controller should be the same right
<apritzel> maybe your device is only negotiating up to Full speed (12Mbit), because of a shady cable, for instance?
<youmukonpaku1337> uhhh
<youmukonpaku1337> i mean
<apritzel> check dmesg when you connect the device, it might say so
<youmukonpaku1337> quite sketchy i guess
<youmukonpaku1337> what the hell
<youmukonpaku1337> stuff is connected to usb bus 2
<apritzel> that image file seems sketchy as well: "the image ... cannot be displayed because it contains errors"
<youmukonpaku1337> oh yea oops
<apritzel> but I remember that twisting D-/D+, even for short distances, is helpful
<youmukonpaku1337> and its still 0kb
<youmukonpaku1337> ugh
<youmukonpaku1337> one sec
<youmukonpaku1337> very sketchy
<youmukonpaku1337> what
<youmukonpaku1337> meg
<youmukonpaku1337> meh
<youmukonpaku1337> ig something is up with monarchupload atm
<youmukonpaku1337> here
<youmukonpaku1337> zoom into the wifi pins lol
<youmukonpaku1337> pretty sketch i guess apritzel
<youmukonpaku1337> but again for some reason stuff gets connected on bus 2 which is musb???
<youmukonpaku1337> in dmesg
<apritzel> yeah, I wouldn't offer beyond 12Mbit as well, if I'd be the PHY ;-)
<youmukonpaku1337> wait whats PHY
<apritzel> the USB PHY, that piece of (integrated) circuitry that manages the electrical part of the connection
<youmukonpaku1337> oh
<youmukonpaku1337> okay so is it just my bad wiring or is it wired only to ohci
<youmukonpaku1337> or what did i fuck up lol
<apritzel> try to twist the data cables tightly, from end to end
<youmukonpaku1337> should i use better cables instead lol
<youmukonpaku1337> i have some nice thick cables
<apritzel> both EHCI and OHCI controllers connect to the PHY, which provides the two D-/D+ pins
<youmukonpaku1337> oh okay
<youmukonpaku1337> so its just cable quality?
<apritzel> so if you have a connection via one controller, the connection part is fine, and it should work with the other controller as well
<apritzel> but the signal quality needs to be much better for Hi-Speed
<youmukonpaku1337> i see
<youmukonpaku1337> the thick cable i mentioned is for hifi systems so uh
<apritzel> the cable "quality" is not so critical, at least not for the data pins, and not over such short distances
<youmukonpaku1337> should be mostly okay?
<youmukonpaku1337> oh
<apritzel> no, think won't help, it's not a current issue
<apritzel> *thick
<youmukonpaku1337> so what could help here then
<apritzel> as I said: twist the cables around each other, like in a twisted pair Ethernet cable
<youmukonpaku1337> oh
<youmukonpaku1337> are you sure that would help? lol
<youmukonpaku1337> but alright
<apritzel> I didn't believe that either, but I solved a USB issue with that
<youmukonpaku1337> holy fuck
<youmukonpaku1337> lmao
<youmukonpaku1337> okay
<apritzel> and IIRC it was the very same symptom: 12Mbit was working, but it wasn't negotiating Hi-Speed
<youmukonpaku1337> hmm
<youmukonpaku1337> okay
<youmukonpaku1337> i will test in like 10 min
<apritzel> actually if you use thinner cables, that helps the twisting and thus signal integrity
<youmukonpaku1337> ooh
<youmukonpaku1337> i see
<youmukonpaku1337> are those thin enough? lol
<youmukonpaku1337> theyre standard arduino 15cm jumper cables
<youmukonpaku1337> well
<youmukonpaku1337> not arduino
<youmukonpaku1337> just dupont
<apritzel> well, they might work, but I wonder if you need to lose the connectors, because they are not twisted
<youmukonpaku1337> hmm
<youmukonpaku1337> thats possible
<youmukonpaku1337> but what about the uh
ftg has quit [Read error: Connection reset by peer]
<apritzel> I just read that for low speed the data lines might not be twisted, so the plot thickens
<youmukonpaku1337> hmm
<youmukonpaku1337> alright so ill test twisting them
<youmukonpaku1337> btw they should hold the twist fine or do i need to do something else
<youmukonpaku1337> btw what about the female end of the jumper, how am i gonna twist that lol
<apritzel> well, give it a try, but remember that the data lines work in the VHF frequency range in Hi-Speed mode
<apritzel> the easiest way is typically to sacrifice some old USB cable: that has the right wires and is twisted correctly already
<youmukonpaku1337> an option
<youmukonpaku1337> i suppose
<youmukonpaku1337> but lemme just try twisting these first
<apritzel> any extlinux (on U-Boot) users here? jernej? Who is generating (or just providing) extlinux.conf? Is that the "distro"?
<apritzel> I see that in Debian the extlinux package only exists for x86, so no scripted generation there, I guess?
<apritzel> (with "there" I mean for Debian based distros on armhf/arm64)
<gnarface> apritzel: i just made my extlinux.conf by hand but there's supposedly a tool that comes with u-boot that can generate them
DarkNeutrino has quit [Ping timeout: 480 seconds]
DarkNeutrino has joined #linux-sunxi
<youmukonpaku1337> apritzel: im gonna have to use another wire anyway or cut off the connectors cause uhh
<youmukonpaku1337> i have the wrong cable type
<youmukonpaku1337> ill just use a usb cable
<youmukonpaku1337> okay did some sketchy soldering
<youmukonpaku1337> gonna test if it works in a bit