<Armbian-Discord>
<marcone> the UDC driver is there and can be configured, but it doesn't actually seem to do anything: the attached host doesn't see a device.
<Armbian-Discord>
<marcone> It works with the Radxa image, so I know the hardware and cable are good.
<Armbian-Discord>
<narmstrong> @marcone usb mode switching must not be implemented on these boards since they use usb-code
<Armbian-Discord>
<narmstrong> with manual switch it will work
<Armbian-Discord>
<marcone> Well like I said it works with the radxa image, so the problem is with the software, not the hardware.
<Armbian-Discord>
<Tonymac32> Well, which kernel is Radxa using, vs the community Armbian one?
<Armbian-Discord>
<c0rnelius> some 5.10 kernel I believe.
<Armbian-Discord>
<narmstrong> @marcone you’re invited to submit patches to add support for this upstream or contact Radxa to ask them to upstream the support, thanks
<Armbian-Discord>
<c0rnelius> i think dr_mode = "host"; just needs to be removed from &usb. If I'm reading correctly what he is trying to do.
<Armbian-Discord>
<narmstrong> For his use case yes, proper DRD support should be implemented with the PD controller. Seems radxa did that
<Armbian-Discord>
<rpardini> I'm still a bit confused at Radxa's "bsp" repo vs the "debos" images they offer... not sure what ends up where...
gordea has joined #armbian-amlogic
gordea has quit [Client Quit]
<Armbian-Discord>
<marcone> I checked dr_mode on the booted device, and it was set to "peripheral" for the USB port in question, so on the surface it looked like it should work. And IIRC it worked on an Armbian image that @c0rnelius built for me to try out a few weeks ago when I first found that official Armbian image didn't work.
<Armbian-Discord>
<marcone> It's just not working with this community image (which I'm only trying because the official image doesn't work). I suppose it could be that upstream is broken (assuming that by "upstream" you mean kernel.org), but it seems more likely to me that the problem is in the way the community image was built. I guess I'll try building my own and see what I get.
gordea has joined #armbian-amlogic
<Armbian-Discord>
<marcone> But speaking of submitting patches: what is Armbian's policy on failed lint/shellcheck on PRs? I submitted a PR (unrelated to the OTG issue), but it failed shellcheck because of existing code, not because of my changes.
<Armbian-Discord>
<IgorPec> we enabled this not long ago and the rule is - if you touch the script, fix shellcheck too
<Armbian-Discord>
<IgorPec> this is how we did it at my full time job back then, but here we have community development
<Armbian-Discord>
<marcone> Or do you mean it was checking, but not enforcing at that time?
<Armbian-Discord>
<marcone> (ok, 11 days ago, not 9)
<Armbian-Discord>
<marcone> there was another change 9 days ago that also ignored shellcheck errors
<Armbian-Discord>
<IgorPec> we haven't started this rule, just technology was enabled like two weeks ago or smth
<Armbian-Discord>
<marcone> less than 9 days, apparently 🙂
<Armbian-Discord>
<marcone> well, 9 days for the "you fix it" rule 🙂
<Armbian-Discord>
<IgorPec> possible. i was in the bed whole week 😦 lost touch with time
<Armbian-Discord>
<IgorPec> in fact shellcheck was around for awhile and once someone tried with automation ... which was epic fail
<Armbian-Discord>
<IgorPec> then we put it on a side
<Armbian-Discord>
<IgorPec> also there is major rework of scripts going on where this is addressed OOB
<Armbian-Discord>
<marcone> it would be nice if there was a way to filter out shellcheck errors that aren't due to the PR being checked. That way new code could conform, while old code could be fixed when opportunity arises. Having a blanket "you touch it you fix everything" rule makes it kind of daunting to make even minimal changes, because it can mean fixing hundreds of existing problems first.
<Armbian-Discord>
<rpardini> Heh. Go fix the stuff. I've solved 95% of shellcheck warnings on lib/ already by myself.
<Armbian-Discord>
<IgorPec> shellcheck is done on files that are changing
<Armbian-Discord>
<IgorPec> yeah, i also think we can continue ignoring shellcheck
<Armbian-Discord>
<rpardini> The board-side scripts though, they break on the user's faces, and a strict shellcheck should be in place for those
<Armbian-Discord>
<rpardini> Also, shellcheck catches a lot of stuff, but not everything, so no silver bullet.
<Armbian-Discord>
<IgorPec> this is one of those
<Armbian-Discord>
<IgorPec> and those you probably didn't touch ?
<Armbian-Discord>
<marcone> Sure, but I mean within files. Kinda like the kernel's "checkpatch", which can ignore pre-existing problems and only check new/changed lines within a file. In this case the relatively small file I changed had 33 existing shellcheck errors.
<Armbian-Discord>
<marcone> And don't get me wrong, I like shellcheck, I use it in my own project too.
<Armbian-Discord>
<marcone> anyway, it's a moot point because shellcheck doesn't support that AFAIK
<Armbian-Discord>
<marcone> (though I suppose some post-check filtering could be done, but that's probably more work than just fixing everything)
<Armbian-Discord>
<rpardini> Yeah. Again, easier to just fix.
<Armbian-Discord>
<IgorPec> i know what you mean, but this is the way to deal with this. if we had like some praticants around, we would give them such work
<Armbian-Discord>
<IgorPec> but its us or its not done 🙂
<Armbian-Discord>
<marcone> so I assume that putting something like # shellcheck disable=SC1091is frowned upon?
<Armbian-Discord>
<IgorPec> disable if not other way, yes
<Armbian-Discord>
<marcone> (that particular one is for shellcheck not following files that it can't find, so should be fixed by changing the shellcheck invocation itself)
<Armbian-Discord>
<rpardini> SC1091 you can solve better by # shellcheck source=xxx
<Armbian-Discord>
<marcone> for example [[ -f /etc/os-release ]] && . /etc/os-release, where the file in question isn't even present in the project, so source=xxx won't help either.
<Armbian-Discord>
<rpardini> yeah in those cases it's the same, source=/dev/null or just ignore SC1091
<Armbian-Discord>
<marcone> ha, clever, pointing it at /dev/null
<Armbian-Discord>
<marcone> (that made me wonder if I could point it at itself and have it loop infinitely, but either it treats it the same as /dev/null, or it doesn't recurse)