<Armbian-Discord> <m​arcone> https://github.com/armbian/build/pull/4494 fixes the shellcheck issues in the file I wanted to update.
<Armbian-Discord> <c​0rnelius> did you catch the fix for ur issue? removing dr_mode.
<Armbian-Discord> <m​arcone> I saw you mentioned it, but haven't tried it yet
<Armbian-Discord> <m​arcone> I tried modifying the dtb after install, and that doesn't fix the issue.
<Armbian-Discord> <m​arcone> There are three nodes in the dtb that have dr_mode, a parent (usb@ffe09000) and two children (usb@ff400000 and usb@ff500000)
<Armbian-Discord> <m​arcone> I tried removing dr_mode just from the parent (no effect, as expected because the children each specify it). I tried setting both children to otg, in case the ports were swapped or something, but that also had no effect. Removing dr_mode from all of them also has no apparent effect (other than removing some entries from /sys)
<Armbian-Discord> <c​0rnelius> don't mess with this: dr_mode, a parent (usb@ffe09000) and two children (usb@ff400000 and usb@ff500000
<Armbian-Discord> <c​0rnelius> ```
<Armbian-Discord> <c​0rnelius> &usb {
<Armbian-Discord> <c​0rnelius> status = "okay";
<Armbian-Discord> <c​0rnelius> - dr_mode = "host";
<Armbian-Discord> <c​0rnelius> };
<Armbian-Discord> <c​0rnelius> ```
<Armbian-Discord> <m​arcone> that node doesn't exist in the dtb. Are you saying I should add it?
<Armbian-Discord> <c​0rnelius> In the armbian dts its not there?
<Armbian-Discord> <c​0rnelius> what kernel version?
<Armbian-Discord> <m​arcone> 5.19.17-meson64
<Armbian-Discord> <c​0rnelius> should be there, its in mainline.
<Armbian-Discord> <m​arcone> right, it exists in the source dts. It's not listed as such in /boot/dtb/amlogic/meson-g12a-radxa-zero.dtb on the device.
<Armbian-Discord> <c​0rnelius> gotcha
<Armbian-Discord> <c​0rnelius> we need to submit a patch
<Armbian-Discord> <c​0rnelius> or maybe @rpardini can just add it to his list of things that need to be adjusted.
<Armbian-Discord> <m​arcone> shouldn't I be able to modify the dtb on the device though? (using dtc to decompile, edit, recompile the dtb file)
<Armbian-Discord> <c​0rnelius> yes and no... the dtb is compilation of a lot of files all made in to one gloriously confusing binary. Sure you should be able to edit it.
<Armbian-Discord> <m​arcone> right, the source is a bunch of .dts and .dtsi files, but in the end they all get compiled into a single .dtb file. Which I can decompile into a single .dts on the device. And when I do that, there are only three dr_mode fields in the entire file, and they seem correct.
<Armbian-Discord> <m​arcone> Success!
<Armbian-Discord> <m​arcone> Apparently the parent node needs to be set to otg, even though both children explicitly set their own dr_mode
<Armbian-Discord> <m​arcone> That's actually what's done in the base meson-g12-common.dtsi, so there must be an incorrect override somewhere.
<Armbian-Discord> <m​arcone> oh, I see, that incorrect override is that &usb section
<Armbian-Discord> <c​0rnelius> good
<Armbian-Discord> <m​arcone> hmm, why does systemd have 1.0.0.1 as the primary/first DNS server, instead of the one my dhcp server tells it to use?
<Armbian-Discord> <c​0rnelius> not sure... 10.0.0.1 is a gateway where I'm currently at.
<Armbian-Discord> <m​arcone> one.0.0.1, not ten.0.0.1 🙂
<Armbian-Discord> <c​0rnelius> yeah don't know
<Armbian-Discord> <m​arcone> looks like that's the default in some systemd config file, and it just uses that first
<Armbian-Discord> <s​repac> 1.1.1.1 and 1.0.0.1 are cloudflare dns servers
Armbian-Discord has quit [Remote host closed the connection]
Armbian-Discord has joined #armbian-amlogic
<Armbian-Discord> <m​arcone> turns out Github runs a different version of shellcheck than what I have locally, so it still complained about a few things 😦