**** BEGIN LOGGING AT Wed Mar 30 02:59:57 2022 Mar 30 12:56:22 Is there any way to run TI opencl examples ( /usr/share/ti/examples/opencl ) on BeagleBone AI with kernel 4.19+ ? Mar 30 14:48:11 Hello Mar 30 14:48:24 Good day! Mar 30 14:49:34 Are we still connected? Mar 30 15:04:17 connected to what? Mar 30 15:05:51 Is there any replacement for BBONE-BLACK-4G Mar 30 15:06:22 in what sense? the beaglebone black is still available Mar 30 15:06:58 But I have seen it is no longer available Mar 30 15:06:59 https://canada.newark.com/element14/bbone-black-4g/beaglebone-black-rev-c-cortex/dp/52X5548 Mar 30 15:07:22 What about: BBB STARTER KIT Mar 30 15:07:41 https://www.newark.com/element14/bbb-starter-kit/dev-board-beaglebone-black-sbc/dp/87X1522 Mar 30 15:08:01 there was a change of manufacturer and annoyingly this resulted in distributors showing the part produced by the old manufacturer as "no longer available" Mar 30 15:09:06 even though they also have the replacement (the same board from different manufacturer) in inventory: https://canada.newark.com/beagleboard/102110420/development-board-arm-cortex-a8/dp/88AH7402 Mar 30 15:09:36 no idea what this "starter kit" is, never heard of it Mar 30 15:09:37 Thank you Mar 30 15:09:43 ok Mar 30 15:10:40 Much appreciated for your help Mar 30 15:10:45 You are great! Mar 30 15:10:50 Have a nice day! Mar 30 15:10:53 Bye :) Mar 30 15:54:28 ... what Mar 30 15:54:41 ah nm Mar 30 15:58:19 Hm, since the above does not seem doable: How do I configure pinmuxing on kernel 4.14? I know how to do it on 4.19+ with config-pin, but on 4.14 that doesn't work, because the /sys interfaces are missing. Mar 30 15:59:26 there's no theoretical objection for cape-universal to work on 4.14 on bbai, but it's possible the necessary changes simply haven't been made Mar 30 15:59:59 the alternative is a customized DT, which is a bit more annoying Mar 30 16:00:13 Specifically, I need to configure (on BeagleBone AI) P8.07 to mode pruout. On kernel 4.19+ this can be done via /sys/devices/platform/*ocp/*ocp:P8_07_pinmux, but on 4.14 that file (and all the others for the other pins) are missing. Mar 30 16:00:33 see e.g. https://pastebin.com/iXbGGtzz Mar 30 16:00:58 So I have to write my own uboot overlay? Mar 30 16:01:05 (that's an example that sets up an spi port, but it shows the general idea of making a customized DT) Mar 30 16:01:26 overlays didn't really work properly on pre-cape-universal device trees either Mar 30 16:01:39 mainly because of the obnoxious &cape_pins_default node Mar 30 16:02:41 I'm fairly new to dto and uboot overlay and was just using the config-pin so far. Mar 30 16:03:22 yeah, cape-universal (the mechanism configured by config-pin) is definitely more user-friendly Mar 30 16:03:38 Ah, thank you for the information! Mar 30 16:03:54 And is cape-universal a uboot overlay? Mar 30 16:03:58 Or is that a custom DT? Mar 30 16:04:38 Ah, I see: https://github.com/cdsteinkuehler/beaglebone-universal-io/blob/master/cape-universal-00A0.dts Mar 30 16:18:32 it used to be an overlay on the bbb, on the bbai I think it's part of the base dt but I haven't checked Mar 30 16:19:14 but it's just referring to the general idea of enabling everything and the kitchen sink and creating a bone-pinmux-helper device per pin to allow runtime configuration of pinmux Mar 30 16:19:53 (instead of the way DT is spposed to work, enabling the peripherals you use and attaching pinmux nodes to those devices to configure the pins for that specific device) Mar 30 16:28:49 Ok, would writing a custom dt overlay work, as well? Mar 30 16:29:03 I'm kinda hesitant to just copy paste and start editing the whole dt. Mar 30 16:37:05 you don't "copy paste" it, you #include it, like my example showed Mar 30 16:37:23 the rest of the file is essentially the same as writing an overlay Mar 30 16:38:52 you could probably also do it using an overlay, though the main benefit of using overlays, which is their modularity, is basically broken by &cape_pins_default ... so there's no much reason to use an overlay rather than a custom DT, but either option should work I think as long as your u-boot is new enough for overlays Mar 30 16:50:48 I see. And assuming I just wanted to try out the DT example you pastes as-is. How would I do that? I can only find information  on compiling dto's not custom dt's. Mar 30 16:51:08 And if you're including the main dt, I assume I have to download some dependencies? Mar 30 16:51:21 grab the appropriate branch of https://github.com/beagleboard/BeagleBoard-DeviceTrees Mar 30 16:51:28 (appropriate for your kernel version) Mar 30 16:52:05 save the dts (and any custom dependencies listed at the top) in src/arm/ Mar 30 16:52:26 build it with "make src/arm/name-of-your-file.dtbo" Mar 30 16:52:35 eh Mar 30 16:52:36 build it with "make src/arm/name-of-your-file.dtb" Mar 30 16:53:05 put the dtb file in /boot/dtbs/ or /boot/dtbs/KERNEL-VERSION/ Mar 30 16:53:22 and configure it using the dtb= option in /boot/uEnv.txt Mar 30 16:54:12 but like I said, you could also use an overlay instead I guess Mar 30 16:55:53 the source would be mostly unchanged, except you don't #include the main dts and instead have /dts-v1/; /plugin/; (and any / {..} fragment should use &{/} {..} instead, though my example doesn't have any) Mar 30 16:56:30 and you probably need additional #includes for macros that are defined in headers that would otherwise already be indirectly included by the main dts Mar 30 16:56:46 Alright, ty. I'm rebooting the bbai with your example custom dt rn to see if it works. Mar 30 16:56:57 (as in that I have correctly understood how to do it) Mar 30 16:59:15 Hm, too bad. It simply doesn't boot. Mar 30 16:59:42 oof Mar 30 16:59:45 (I used the 4.14 ti branch of the repo, same as my kernel) Mar 30 16:59:53 that should be right Mar 30 16:59:54 weird Mar 30 17:00:08 Is there a way to get a serial console via usb? Mar 30 17:00:22 (other boards often present something like /dev/ttyUSB, but the bbai doesn't) Mar 30 17:01:12 that console is created by linux, it's not a true serial console Mar 30 17:02:01 the original beaglebone white had an integrated usb-serial converter, but none of the later boards do Mar 30 17:02:28 they do still have a serial console, but you need to bring your own usb-serial converter (3.3v ttl, not rs232) Mar 30 17:03:51 Something like this? https://www.amazon.de/-/en/FT232RL-Serial-Galileo-Gen2-Board-Console/dp/B077GYPN5N Mar 30 17:05:34 yeah, although annoyingly the bbai doesn't use the standard 6-pin header but a weird 3-pin one Mar 30 17:06:17 so I'm not sure where to get an appropriate cable, I don't have one myself Mar 30 17:12:35 It seems to be a jst zh 3 pin. Mar 30 20:45:31 you need to hold the S2 button down on every power cycle if you want to boot from the SD card, right? Mar 30 20:48:37 emulating with qemu, is there a profile thats best for the bblack Mar 30 20:49:03 hays: qemu doesn't have a BBB profile, just use cortex-a8.. Mar 30 20:50:23 realview-pb-a8 Mar 30 20:50:55 hays: what is your actual end goal, or what are you actually trying to do? Mar 30 20:51:31 honestly just playing around. but it might be nice to be able to test userspace stuff with an emulator. Mar 30 20:52:14 test what userspace stuff? For the BeagleBone Black, just get a board... ;) Mar 30 20:53:04 I'd be interested as our main product is on a beaglebone black, thus emulating our software stack with Jenkins and all might be neat Mar 30 20:53:39 but it's linux... Jenkins runs on java... Just run Jenkins on another sbc.. doesn't really matter if it's on arm.. Mar 30 20:54:17 the concept of "spinning up" a BBB would be useful for certain kinds of tests Mar 30 20:54:24 abstractly at least Mar 30 20:54:27 side note, java can be fun on Single Core non-smp, it's not really tested so the java developers have broken the AM335x a few times over the last year.. Mar 30 20:54:53 i think i ran into that a while back Mar 30 20:55:14 some java8 was not working. cant remember though. I just remembered things were finicky Mar 30 20:55:17 hays: not really anymore.. There was a few patches 10 years ago.. but the omap3/am335x peripherals never went mainline in qemu.. Mar 30 20:55:30 thus, you'd emulate "arm"... but not the AM335x... Mar 30 20:56:08 patches - random linaro qemu fork.. Mar 30 20:58:24 hays: java 11... https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960153 Mar 30 21:01:12 java drives me nuts Mar 30 21:01:30 there are so many ecosystems out there that are just insanity Mar 30 21:01:47 php for example.. im ranting sorry. I know this channel keeps on topic. I'll stop :) Mar 30 21:01:54 thanks for the link Mar 30 21:03:48 I am still here, hays. I rant too. **** ENDING LOGGING AT Thu Mar 31 02:59:56 2022