**** BEGIN LOGGING AT Wed Mar 09 02:59:56 2022 Mar 09 13:55:08 hi, what is the correct way to specify dt overlay files in the latest uboot? do i add the `dtb_overlay=xxx` in `/boot/uEnv.txt` or is it something else? Mar 09 13:58:00 kekto: that's one of the variables that can be used to specify a custom overlay yes, there's been no change in how u-boot overlays works since its introduction Mar 09 13:59:00 thanks. i couldn't see the commented line already present in uEnv.txt so was concerned Mar 09 14:02:19 what image? Mar 09 14:02:41 because relevant lines should definitely already be in /boot/uEnv.txt comments Mar 09 14:03:03 official bb ai image https://debian.beagleboard.org/images/am57xx-debian-10.3-iot-tidl-armhf-2020-04-06-6gb.img.xz Mar 09 14:03:17 also it didn't seem to have worked:/  is there some tool for checking which overlays were loaded? Mar 09 14:03:48 i'm using this script for finding my pinmux and it doesn't seem to have configured what i wanted https://github.com/RobertCNelson/boot-scripts/blob/master/device/bone/show-pins.pl Mar 09 14:03:59 there was no overlay support for bbx15/bbai yet when that image was released Mar 09 14:04:14 I think Mar 09 14:04:15 oh is there an image which does have support for overlay? Mar 09 14:05:12 i just need to enable eqep on p8.12 and p8.11 , as far as i understand config-pin is also deprecated? Mar 09 14:05:36 not deprecated, just not supported on that image (though it has been ported to bbai later) Mar 09 14:06:44 kekto: do you also want TIDL ? Mar 09 14:06:51 not really Mar 09 14:07:06 rcn-ee: are there recommended images for bbai with overlays and config-pin working out of the box? Mar 09 14:07:10 maybe later but righ tnow just want to get it to work Mar 09 14:09:27 kekto: I guess if you don't need TIDL you could try the monthly bullseye snapshot => https://forum.beagleboard.org/t/debian-11-x-bullseye-monthly-snapshots/31280 Mar 09 14:10:04 thanks, btw whats the difference b/w minimal and iot images? Mar 09 14:10:17 minimal is... minimal? Mar 09 14:10:27 umm ok xD Mar 09 14:10:47 formerly known as console (which was a bit of a misnomer since the iot images also lack gui) Mar 09 14:11:22 i will try the iot snapshot Mar 09 14:11:24 the iot images come work all sorts of stuff preinstalled to create an out of the box experience doesn't consist of "step 1. install everything you need to be able to actually _do anything_" Mar 09 14:12:17 ah i see so the cloud9 ide etc. is ther ein iot but not in minimal Mar 09 14:14:31 yeah, cloud9 or its replacement vscode on bullseye Mar 09 14:14:59 a lot has changed in bullseye, dunno how well everything works on there, but I also don't know if there's a better choice of image Mar 09 14:17:02 ok, i'll try debian 10 monthly snapshot if this doesn't work. it should also have overlay working right? Mar 09 14:17:15 presumably Mar 09 14:30:24 zmatt thanks the `uEnv.txt` file has `dtb_overlay` commands commented in the debian 11 monthly. however `config-pin` is still having issues and the perl script `show-pins.pl` is missing. is there any other utility for finding out pinmuxing configuration? Mar 09 14:31:45 this is the primary version of show-pins: https://github.com/mvduin/bbb-pin-utils/tree/bbai-experimental#show-pins (note: different git branches for different boards) Mar 09 14:32:09 if config-pin isn't working, try debian 10 Mar 09 14:32:21 it's very possible debian 11 is just still too much work-in-progress Mar 09 14:32:59 htanks i'll try deb 10 first Mar 09 14:43:49 zmatt: for bbai and overlays, the best image is the v4.19.x-ti of Debian 10.x Mar 09 14:44:08 it's not 100% for all overlays be teh GSOC student got a lot working. Mar 09 14:44:11 rcn-ee thanks i'm trying that one now Mar 09 14:44:52 Otherwise, Debian 11.x v5.10.x-ti has overlays enabled for BBAI, just not well testd.. @kekto36 do you have a specific one you are looking at? Mar 09 14:46:27 i'm trying `/lib/firmware/bone_eqep2-00A0.dtbo` right now Mar 09 14:46:41 psa... the Debian 10.x (v4.19.x) based will be monthy updated (rebuit) but it will remain v4.19x. till Bookworm releases (in a bout a year..) ... essentialy it's just the old stuff that worked, and anything that needs fixes.. Mar 09 14:47:50 kekto36: that uses an out of tree driver.. on "mainline" there is now a counter driver, for that... The GSOC student didn't test that.. Mar 09 14:48:15 that driver should be in 4.19-ti though? Mar 09 14:48:40 okay he did do an overlay... https://elinux.org/Beagleboard:BeagleBone_cape_interface_spec#eCAP Mar 09 14:49:45 they are here ... https://github.com/beagleboard/BeagleBoard-DeviceTrees/blob/v4.19.x-ti-overlays/src/arm/overlays/BONE-eQEP0.dts Mar 09 14:50:07 is this stuff preinstalled on the buster monthly? Mar 09 14:50:12 nuke "/lib/firmware/" ... and use "BONE-eQEP0.dtbo" (or 1, 2, 2a) Mar 09 14:50:23 yeap, it's in "buster"... Mar 09 14:50:40 is an overlay even needed, instead of just config-pin ? Mar 09 14:50:54 rcn-ee should i be compiling these dts files or can i use the one in `/lib/firmware` directly? i tried using the one thats there but doesn't seem to have worked Mar 09 14:50:55 use the overlay... (bbai).. Mar 09 14:51:05 @kekto36 they are "built-into" the kernel.. Mar 09 14:51:44 maybe I should make some example on using uio for eqep on bbai :) that at least gives access to the full functionality of eqep Mar 09 14:51:45 The GSOC student was working on overlays that work both on teh BBB and BBAI, with a single overlay... Mar 09 14:51:52 i added `dtb_overlay=/lib/firmware/bone_eqep2-00A0.dtbo` in the `/boot/uEnv.txt` file and rebooted. is there something else that needs tob e done? Mar 09 14:52:09 @kekto36 no... remove /lib/firmware/ and use "BONE-eQEP0.dtbo".. Mar 09 14:52:30 so `dtb_overlay=BONE-eQEP0.dtbo` ? Mar 09 14:52:33 "bone_eqep2-00A0.dtbo" is an older AM335x overlay.. Mar 09 14:52:40 correct, and reboot.. Mar 09 14:52:43 trying Mar 09 14:53:20 Beagle Bone AI can connect with Bluetooth Low Energy (BLE)? Mar 09 14:53:28 BONE-eQEP0 bbai -> P8_05 and P8_06 Mar 09 14:53:58 @Renata the brcmfmac driver kinda sucks... we got WiFI working, but i think Bluetooth is still broken.. Mar 09 14:54:55 The theory was... Well this "WiFi/Bluetooth" chipset works on the pi, it must have good support.... boy where we ever wrong... never again, using a brcmfmac chipset.. Mar 09 14:55:06 lol Mar 09 14:55:27 broadcom and support? ha! Mar 09 14:57:21 we learn these lesson hard... WiFi works correctly with a 100+ patchset from cypress, now infineon... no Mainline plan, closed private group, no support even when buying 10k's... Mar 09 14:57:30 I saw some information on the website and in the datasheet, talking that the supports EDR (classic Bluetooth). But if it is just this one, I won't be able to connect devices with BLE Mar 09 14:57:54 @Renata it supports it... i think it's broken in v4.19.x-ti, does bluetooth come up in v5.10.x-ti? Mar 09 14:59:03 rcn-ee: you sure? I don't see BLE in the feature list of the datasheet Mar 09 15:02:38 no, you're right Mar 09 15:03:22 I was looking at an older datasheet Mar 09 15:03:58 it's apparently now even bluetooth 5.0 Mar 09 15:05:12 rcn-ee after adding the overlay file, the `show-pins.pl` script is still giving the pin setting of P8.05 as `P8.05 227 AC9 e fast rx down gpio7_1 ocp@44000000/P8_05_pinmux (pinmux_P8_05_default_pin)` is this normal? Mar 09 15:05:25 "Bluetooth 2.1 + EDR, Bluetooth 3.0, Bluetooth 4.2 (Bluetooth Low Energy), Bluetooth 5.0 compliant" Mar 09 15:05:52 @kekto36 can you pastebin your full serial bootup? i want to see if the overlay was properly loaded.. Mar 09 15:06:36 rcn-ee: too bad the software support is so shit, it looks like a pretty nice chip otherwise Mar 09 15:07:05 they are cheap... work in Android... Just don't try fancy things like SoftAp. ;) Mar 09 15:07:23 rcn-ee ouptut of `/opt/scripts/tools/version.sh` : https://pastebin.com/T2URZCLf im not sure how to get full serial bootup is there some other command? Mar 09 15:10:14 grabs my bbai, and starts flashing that image.... Mar 09 15:10:38 @zmatt this is good news. I knew that BLE was introduced in version 4.0, but I wasn't sure that any device with a version superior to this one could have both Mar 09 15:10:38 where did you find this information? can you share with me? Mar 09 15:11:23 Renata: the CYW43455 datasheet... so this is really just what the chip theoretically _should_ support, not whether it actually works in practice on linux Mar 09 15:16:56 @zmatt oh I understand the issue now. Thank you for your help. Mar 09 15:27:29 any luck rcn-ee i'm tempted to just connect my encoder and test but i fear the incorrect pinmux setting might fry the board Mar 09 15:27:45 kekto: it won't fry the board, it will simply not work Mar 09 15:27:48 sorry... got distracted by a work email... Mar 09 15:27:53 oh ok Mar 09 15:28:04 no worries Mar 09 15:28:26 ugh... well overlays work... but i thought this microSD was crap... https://paste.debian.net/1233587/ guess it is... tries another.. ;) Mar 09 15:33:06 another slow flashing card... this will probally fail to... i need to throw some of these out.. Mar 09 15:34:53 hmm i don't seem to have the ` /proc/device-tree/chosen/overlays` directory (`/proc/device-tree/chosen/` exists) Mar 09 15:38:50 @kekto it loaded... https://paste.debian.net/1233588/ Mar 09 15:39:31 @zmatt is what's teh switch for am57xx show pins? Mar 09 15:40:00 https://paste.debian.net/1233589/ Mar 09 15:40:32 @kekto looks like it loaded... https://paste.debian.net/1233590/ Mar 09 15:41:31 bluetooth not working on v4.19.x-ti (bbai) trying v5.10.x-ti right now.. Mar 09 15:41:42 huh i also get similar output? https://pastebin.com/5KCsPbUR rcn-ee Mar 09 15:42:10 [ 1.222960] eqep 4843e180.eqep: unable to select pin group Mar 09 15:42:26 idk.. in theory it should work.. Mar 09 15:42:34 probally not actually tested... Mar 09 15:43:05 yet the `show-pins.pl` shows something esle? https://pastebin.com/zuyBCihT Mar 09 15:43:16 so i should give it a try? Mar 09 15:44:09 ok let me just try and get back Mar 09 15:44:58 i think so.. connect it up and see if it's active.. Mar 09 16:06:30 rcn-ee: this is my show-pins version for bbai: https://github.com/mvduin/bbb-pin-utils/blob/bbai-experimental/show-pins Mar 09 16:06:59 (as opposed to show-pins.pl which is jkridner's version based on an ancient version of my code) Mar 09 16:07:21 thanks. i seem to have messed up and its booting from emmc every time now. any way to force sd card boot? rcn-ee Mar 09 16:07:39 rcn-ee: and if the pins don't get selected, eqep is not going to work Mar 09 16:08:01 "unable to select pin group" suggests a pinmux conflict Mar 09 16:08:53 or some other problem with pinmux I guess Mar 09 16:09:13 @zm Mar 09 16:09:14 now that I think of it, if it were a conflict I'd expect a more explicit message saying so Mar 09 16:09:30 zmatt so it's not going to work as long as it says 'unable to select pin group'? Mar 09 16:09:57 i've tried all 3 with my encoder and posoition is always 0... Mar 09 16:10:04 kekto: it's not going to work if the pins aren't muxed, Mar 09 16:10:18 i understand. Mar 09 16:10:30 any pointers where i can look for the root cause? Mar 09 16:11:02 ocp@44000000/P8_05_pinmux implies the pin is being controlled by cape-universal, i.e. configurable using config-pin ... which probably means the overlay fails to disable cape-universal for the pins is uses? Mar 09 16:15:40 oh gross, looks like the overlay isn't attaching any pinmux to eqep (hence the error) and just tries to set the default for cape-universal for various pins (including the index/strobe pins which I'm not sure the driver even supports) ... except that it's clearly somehow failing to do so Mar 09 16:16:26 zmatt can you share the pastebin ur looking at Mar 09 16:16:55 to determine it's not muxing the pins? the one you shared, https://pastebin.com/zuyBCihT Mar 09 16:17:06 oh ok Mar 09 16:17:51 i guess i should be diving deeper into `'unable to select pin group'` where does this code lie? Mar 09 16:18:29 have you tried configuring the pins using config-pins? as workaround for the broken overlay Mar 09 16:19:38 no, trying now Mar 09 16:25:09 ok looks like pins are configured https://pastebin.com/HQzsevLy does this show that eqep 0 is working? zmatt Mar 09 16:25:39 it shows that the pins are configured Mar 09 16:25:44 you probably don't need index/strobe Mar 09 16:26:33 also, P9.25 and P9.41a have no qep-related functionality Mar 09 16:27:43 no, i have quadratue encoder. so i should attach to P9.42 and P9.27 right? Mar 09 16:28:04 yeah, those are the only two pins you need to mux to use eqep 2 Mar 09 16:28:17 trying now Mar 09 16:28:53 looks like cape-universal's declarations are a bit wonky Mar 09 16:29:00 on the bbai **** ENDING LOGGING AT Wed Mar 09 16:29:45 2022 **** BEGIN LOGGING AT Wed Mar 09 16:32:16 2022 Mar 09 16:33:32 since P9.41b does have eqep functionality (eqep 1 B) Mar 09 16:33:51 well looks like its atleast starting to work, getting non-zero values on rotation. https://pastebin.com/DN5hTeLy but i seem to be missing some setting Mar 09 16:34:23 i've wired it up to an oscilloscope so i'm pretyt sure the encoder is working correctly Mar 09 16:34:51 looks like the overlay doesn't configure eqep into quadrature mode Mar 09 16:39:01 yeah its in mode 1. i need mode 0 Mar 09 16:39:31 there does seem to be some mention of user space op mode here let me check https://github.com/beagleboard/BeagleBoard-DeviceTrees/blob/v4.19.x-ti-overlays/src/arm/overlays/BONE-eQEP2.dts Mar 09 16:40:36 kekto: no it's saying count_mode is _not_ userspace op_mode Mar 09 16:40:50 count_mode can't be configured from userspace... for some reason Mar 09 16:40:55 this driver is kind of a mess Mar 09 16:41:22 hmm weird. i'll see if i can just `sed` the 0 to 1 in the dtbo and try Mar 09 16:41:30 1 to 0 * Mar 09 16:42:09 in the dts you mean Mar 09 16:42:46 @kekto that project source should be under /opt/source/... then just edit and make ; sudo make install... Mar 09 16:43:13 well i was thinking of editing the binary but yeah i'll try this instead Mar 09 16:43:26 (hence why the source is there.. :) 0 Mar 09 16:44:43 "/opt/source/dtb-4.19-ti/" Mar 09 16:50:12 working flawlessly thanks a lot rcn-ee zmatt Mar 09 16:50:26 @kekto awesome!! ;) Mar 09 17:59:50 Hi, anyway to locate or download "screen" utility program source code? Help needed Mar 09 18:00:27 https://savannah.gnu.org/projects/screen Mar 09 18:00:41 thank you Mar 09 18:14:04 :q **** ENDING LOGGING AT Thu Mar 10 02:59:57 2022