**** BEGIN LOGGING AT Sat Jun 27 02:59:57 2020 Jun 27 03:09:51 going to live in #math for a while Jun 27 03:10:02 lol Jun 27 05:59:57 zmatt: I see you did another push Jun 27 06:00:04 and I read the logs Jun 27 06:01:00 about the silent loss of the received byte Jun 27 06:01:55 yeah I suddenly realized what was going on Jun 27 06:02:21 you a genius Jun 27 06:02:49 and you threw in some read functions Jun 27 06:02:53 yay!!!! Jun 27 06:03:02 is that behavior unique to python Jun 27 06:03:10 unique to python's ctypes module Jun 27 06:03:24 well, dunno if it's "unique", but memoryview doesn't have the problem Jun 27 06:06:52 cool I am gonna try and talk to EM100 tomorrow I am going to look up some of these python things like @property and stuff Jun 27 06:07:35 big leap for me is understanding these bit operations Jun 27 06:07:51 i will take that as a win for the day Jun 27 06:08:52 which bit operations? Jun 27 06:10:37 just you setting parameters like 1 << 6 or something like that Jun 27 06:10:52 never had to use binary operations Jun 27 06:11:04 or bit manipulation Jun 27 06:13:25 if I can understand what each line is doing that will go a long way to understand the PRUs Jun 27 06:13:42 better than any manual i have seen Jun 27 06:13:52 but python is known for readability Jun 27 15:32:42 I want to set default mux for free gpio lines in upstream PocketBeagle dts. Jun 27 15:32:42 Any opinions on if input or output mode a "safer" default? Jun 27 17:56:14 pdp7: there's no such thing, the macros are just badly named Jun 27 17:56:28 PIN_INPUT = input enabled, PIN_OUTPU = input disabled Jun 27 17:56:38 it has no effect on the output driver Jun 27 17:56:54 and therefore has no effect on safety Jun 27 18:06:33 zmatt: doesn't output driver depend on the pin control register value? Jun 27 18:06:53 output driver solely depends on the mux mode, and what the selected peripheral is doing Jun 27 18:07:08 0xf being mode 7 and no bias Jun 27 18:07:33 So that does not effect the electrical output? Jun 27 18:07:41 for mode 7 (gpio) the output is enabled if the output is enabled in the gpio controller Jun 27 18:07:54 It is gated by the gpio controller value? Jun 27 18:08:35 the selected peripheral (in this case the gpio controller) decides whether output is enabled, and if so what the output value is Jun 27 18:09:06 Ah ok, so it depends on the value at reset in the gpio controller Jun 27 18:09:12 all gpios are output-disabled after reset Jun 27 18:09:31 the only way for a gpio to be output-enabled is if software enabled it Jun 27 18:09:48 Ah ok, thanks Jun 27 18:11:34 so honestly, the reset defaults are probably fine Jun 27 18:11:54 the .dts should just leave unused pins unused Jun 27 18:12:19 so that a dts file for a more specific hardware setup can #include the pocketbeagle dts and add their own devices and pinmux blocks to it without conflits Jun 27 18:13:30 especially since upstream has no gpio-of-helper so what would you even do with the pins? what device owns them? Jun 27 18:29:48 am33xx_pinmux node can own the default state Jun 27 18:30:54 that's terrible practice though and generally a last resort to fix fuckups in the hardware defaults or whatever is left by u-boot Jun 27 18:31:42 I wanted something out of the box for upstream users so that they can do something with libgpiod without changing the dts Jun 27 18:31:58 the reset defaults should be fine for that Jun 27 18:32:09 But it won't be mode 7 Jun 27 18:32:15 the reset defaults are mode 7 Jun 27 18:32:19 on the am335x Jun 27 18:32:33 Oh Jun 27 18:32:38 Good to know Jun 27 18:32:54 and the fact that libgpiod is inherently incompatible with pinmux declaration is yet another great example of the awfulness of gpiod Jun 27 18:34:26 because you're basically letting userspace claim arbitrary pins as gpios at runtime, instead of declaring them in DT (with associated pinmux blocks) Jun 27 18:34:54 I don't understand why anyone thinks this is a good idea Jun 27 18:35:02 the whole thing is just terrible Jun 27 18:35:03 Right so that is what I was going to do for the pinmux node default state Jun 27 18:35:43 To make explicit that those will be mode 7 Jun 27 18:35:47 but, well, you already know my opinion about gpiod, we've talked a fair bit Jun 27 18:35:58 Because they are being reserved for userspace Jun 27 18:36:06 except they're not being "reserved" Jun 27 18:36:11 there's no device making that reservation Jun 27 18:36:32 gpiod will see that they a not claimed Jun 27 18:36:55 which is not the same as "reserved for userspace" Jun 27 18:37:18 https://github.com/mvduin/overlay-utils/blob/master/gpio-demo.dtsi <-- that's what I call "reserved for userspace" Jun 27 18:37:22 I know that no other driver is using them as nothing claimed them Jun 27 18:37:42 that's still not the same as reserved for userspace Jun 27 18:37:57 Ah yes gpio-of-helper Jun 27 18:38:08 I am trying to figure how to do this without it Jun 27 18:38:23 you're trying to make something that sucks not suck Jun 27 18:38:26 I think it is better but it is not upstream Jun 27 18:39:17 anyway, no use in repeating my arguments from last time ;) ( https://liktaanjeneus.nl/gpio-discussion.html ) Jun 27 18:39:32 gpiod is strictly inferior to sysfs-gpio in every way afaict Jun 27 18:39:51 and I personally don't consider it usable Jun 27 18:40:17 but if you do want to use it, the AM335x reset defaults are fine, you don't need to do anything Jun 27 18:40:49 (and on the AM572x you're expected to let u-boot do the setup) Jun 27 18:41:02 That is interesting about the am3358 Jun 27 18:41:43 this also means that on the BBB, gpiod lets userspace make short-circuits \o/ Jun 27 18:42:06 which is obviously a great feature to have, for hardware safety Jun 27 18:42:39 (since some processor pins are tied together in pairs, and userspace could drive them in opposite directions) Jun 27 18:51:39 Well we already let people do that config-pin. But bone-pinmux-helper will never be accepted Jun 27 18:52:05 ? what does this have to do with pinmux-helper? Jun 27 18:52:09 I'm purely talking about gpio here Jun 27 18:52:46 I understand upstream doesn't like pinmux-helper, it _is_ kinda gross Jun 27 18:53:34 and I don't use it myself Jun 27 18:55:34 (in case it wasn't clear, "obviously a great feature to have" was sarcasm. I was shitting on gpiod again as usual) Jun 27 22:25:10 Hello!!! Jun 27 22:42:53 Can anyone help me Jun 27 22:43:06 I am not able to connect to the BBB Jun 27 22:43:27 nor through SSH neither with puTTy Jun 27 23:10:43 hellooo Jun 27 23:26:36 hellloooooooooo Jun 27 23:28:40 do you have a question? Jun 27 23:28:47 Yes Jun 27 23:29:02 I am not able to connect wifi to BBB Jun 27 23:29:16 I cant find wlan0 either Jun 28 00:55:47 Hello Guys! Jun 28 00:55:52 anyone here? Jun 28 01:19:59 i ma now Jun 28 01:20:19 oh god nevermind i'm not Jun 28 01:24:18 Hey Ayjay Jun 28 01:24:32 i am looking for some help Jun 28 01:24:45 to get my BBB wifi conected **** ENDING LOGGING AT Sun Jun 28 02:59:57 2020