**** BEGIN LOGGING AT Fri Mar 11 02:59:56 2022 Mar 11 09:21:00 * set_ says "yes," that wire does go in that connector! The motor works! BBB! Mar 11 09:24:23 It is basically this 120v sychronous motor, three RPM per minute, that is iffy. So, bypass! Mar 11 14:08:06 120v? try not to get yourself killed Mar 11 14:14:35 rcn-ee: Thank you for that, it does seem that it may be a difference in how the u-boot is configured. The yocto sources do not do anything with rtc in u-boot. Would it be possible to somehow enable the rtc in internal mode from the device tree on mainline 5.9? Mar 11 14:15:12 that actually makes sense, it should probably be done by u-boot Mar 11 14:16:15 though it's a bit weird, it looks like am33xx.dtsi only declares the internal clock? Mar 11 14:20:30 oh I'm looking at old versions Mar 11 14:21:41 konsgn: 5.9 ? you realize that that's an unmaintained kernel series? Mar 11 14:21:54 (EOL december 2020) Mar 11 14:22:20 5.10 is LTS until december 2026 Mar 11 14:23:30 Perhaps we should switch to that if it is available on the Dunfell branch of yocto Mar 11 14:24:02 LTS releases are 5.4, 5.10, and 5.15 Mar 11 14:24:35 got it. What makes the decision for LTS or not? Mar 11 14:25:16 a declaration from the higher powers Mar 11 14:25:33 hhaha alright, thank you. Mar 11 14:27:53 https://kernel.org/category/releases.html#what-is-the-next-longterm-release-going-to-be Mar 11 14:29:32 ahhh I see, 5.9 is the latest available from the meta-bbb layer Mar 11 14:30:17 wouldn't you want to use a ti kernel when using yocto anyway? Mar 11 14:31:49 But the beaglebone project made such a nice configured kernel. Mar 11 14:32:17 they did? I didn't know they did anything with yocto at all Mar 11 14:32:21 ... you mean meta-ti? Mar 11 14:32:59 nagh, but the meta-bbb tries to get close to the beagle provided setup in my understanding Mar 11 14:33:14 I have no idea, I don't actually know what I'm talking about... I just know that TI's official SDKs are based on yocto, and they'll undoubtedly use TI kernels Mar 11 14:35:12 (and TI kernels are all based on LTS mainline kernels) Mar 11 15:05:01 hmm, If i was looking to debug the rtc registers of the am33xx is there something I could look at in the /sys folder to check them? Mar 11 15:07:26 dunno, maybe the clock tree? Mar 11 15:08:07 sys/kernel/debug/clk? Mar 11 15:08:49 /sys/kernel/debug/clk/clk_summary ... but that's only if the relevant register is actually declared as clock mux to linux, which it might not be Mar 11 15:12:32 it looks like the kernel driver, in kernel 5.10, never touches bit 3 of the RTC_OSC register Mar 11 15:12:41 it doesn't even have a #define for that bit Mar 11 15:13:11 so it should definitely be configured in u-boot Mar 11 15:13:56 wait I'm blind Mar 11 15:13:57 sorry Mar 11 15:14:15 they just didn't put the #defines in the correct order Mar 11 15:15:45 okay it's set depending on whether the rtc has a clock named "ext-clk" **** BEGIN LOGGING AT Fri Mar 11 15:26:38 2022 Mar 11 15:30:01 ... interesting.. the only reference I see to rtc is in the am33xx-l4.dtsi where the node is created, elsewhere I see the system-power-controller flag, but i don't see external parent clocks Mar 11 15:30:21 I am looking at 5.9 though... Mar 11 20:40:10 konsgn: when i last looked at this (v4.4/v4.9) era, the register was u-boot only bit.. once in kernel, it was locked offf. Mar 11 20:48:30 Yea, current focus is update the uboot to get it set. I can see it verify that the external source is set, now to just get is adjusted to internal. Mar 11 20:48:52 rcn-ee: dunno about 4.9 or older, but in 4.14 and later the kernel will use 32 kHz osc if the device has a clock named "ext-clk" Mar 11 20:49:07 although if it doesn't then it doesn't seem to touch the bit Mar 11 20:54:36 here's the relevant snippets from the driver: https://pastebin.com/nX5LRHsn Mar 11 20:57:37 (this is from 4.14 but nothing of importance has changed in the driver since then) Mar 11 20:58:05 (nothing of importance to clock source selection) Mar 11 21:35:17 I got it to work by adding in rtc32k_enable() to https://github.com/beagleboard/u-boot/blob/v2020.01/board/ti/am335x/board.c\ Mar 11 21:35:39 Thank you!! Mar 11 23:16:41 @zmatt: I know. Luckily, the motor in question just rotates at 3 RPM. Ha. It is a super slow motor for a doorway to control fans. Mar 11 23:18:17 Fridge crud. The control board is closed source/proprietary and I the chips on it are even clean, i.e. no insignia. Mar 11 23:18:50 So, I might switch some items out. Who knows? Mar 11 23:19:05 I still have the older model GE greenbean thing. Mar 11 23:22:57 I was thinking of putting the BBB to use but I think it gets too cold in the compartment where the electronics are located. Mar 12 02:06:35 GenTooMan lives! Mar 12 02:07:06 hmm maybe? Mar 12 02:07:19 I thought you jumped shipyards. Ha. Mar 12 02:07:38 Hey GenTooMan, what have you been up to lately? Mar 12 02:40:21 set_, hmm working on a piezo driver? Mar 12 02:55:12 Oh. Mar 12 02:55:17 Nice! Mar 12 02:55:20 Do it! Mar 12 02:56:22 I am trying to get back to the BBB in time. My house is falling apart. Send rations! Mar 12 02:56:51 The fridge, the overhang, and the kitchen sink all are leaking. Mar 12 02:56:53 Boo! Mar 12 02:57:10 So, BBB cannot help w/ water issues. So, I am on leave. Mar 12 02:57:18 or... Mar 12 02:57:55 I can set up a cannon of water to shoot into the yard from all three sources to water my plants. Montook Daisys! Mar 12 02:58:16 BBGreen Thumb! Mar 12 02:58:33 All jokes aside, thank you for replying. Good on ya'. **** ENDING LOGGING AT Sat Mar 12 02:59:56 2022