**** BEGIN LOGGING AT Fri Apr 15 02:59:57 2022 Apr 15 03:25:42 or...a BBB dollar bill hider for future Bunnies in EasterLand. Apr 15 03:26:37 Speakin' of...I saw a system making a easter egg nut. Man, if I only had the link. It is a beaut. Apr 15 03:27:07 Sitting here thinking of it is making me want to build something ordinary and nice. Apr 15 03:27:47 Did I? Did I ever tell you guys/gals about how much this project is doing for my learning skills? If not... Apr 15 03:28:13 I am learning more than usual b/c of you guys/gals. Thank you. Happy Easter! Apr 15 03:29:38 Do not front. I am being serious. You guys? I would have never learned about projectiles in Python3 w/ formating in f-strings. Apr 15 03:30:29 Also. I would not even know what formating looks like in print statements in C/C++, Python, and etc. Apr 15 03:31:39 I had a talk w/ a person today. I reached out to let him know about my ramblings in the chat room and the forum(s). Thank you for having me. Anyway, that is all. I will go back to solitude now! Apr 15 12:10:24 HI! Can someone share a bash script for debloat PocketBeagle so that boot process took 20-30 seconds instead 2 minutes on new installed image? Apr 15 13:23:05 dumb electronics question but if I set up a voltage divider can I just drive one side to ground? Apr 15 15:13:17 Siegurd: grab the "minimal" https://forum.beagleboard.org/t/debian-11-x-bullseye-monthly-snapshots/31280 it has the least amount of stuff installed and enabled on startup.. Apr 15 15:18:52 wow, thanks! Finlay small image for embedded proposes! Installing Apr 15 15:21:29 years ago when I put some effort into optimizing boot time, this is what I ended up achieving: https://liktaanjeneus.nl/boot.svg Apr 15 15:22:14 but, well, now our startup time is dominated by a big fat nodejs application :P Apr 15 15:29:19 5.146s - that's incredible! Was it boot from SD card of eMMC? Apr 15 15:29:34 eMMC Apr 15 15:31:02 but it was a long time ago so it may have been slower eMMC than current BBBs Apr 15 15:32:26 Startup finished in 14.526s (kernel) + 25.320s (userspace) = 39.846s Apr 15 15:32:28 graphical.target reached after 24.977s in userspace Apr 15 15:32:32 NICE!!! Apr 15 15:32:54 does that image still use initramfs ? Apr 15 15:33:11 if so, getting rid of that should make things faster still Apr 15 15:33:36 first boot still does ssh key generation... Apr 15 15:33:44 so 2nd boot will always be faster.. Apr 15 15:33:55 if you remove the initramfs you'll gain a little bit more.. Apr 15 15:39:13 rcn-ee: why is initramfs installed by default anyway, are there still configurations that need it? Apr 15 15:41:02 it was for 2nd boot time Apr 15 16:20:00 login prompts at 32 seconds after power apply! Apr 15 16:23:58 look on the bright side, I recently power-cycled our ethernet switch and discovered it has a boot time of more than 2 minutes Apr 15 16:31:17 i mean that 32 seconds is 4 times faster then usual booting time of PocketBeagle with large image. Apr 15 17:14:22 Wow. I'm the guest who tried 3 different pocketbeagles and three different cables and two computers and still couldn't connect to any of them, even though they were booting. Well, yes. I tried a FOURTH cable, and everything works.... Heavy sigh.... Apr 15 17:14:48 Guest93: time to ritually burn three usb cables? Apr 15 17:15:09 awesome, cut them up! Apr 15 17:15:26 I'm thinking they may be OTG cables that got mixed up with the Pocketbeagle cables. Apr 15 17:16:13 Guest93: an OTG cable would have the wrong plug on the other end and can't plug into your laptop Apr 15 17:16:18 also, OTG uses micro-usb, not mini-USB Apr 15 17:16:40 (and technically should be a micro-A connector rather than micro-B although that's unfortunately often violated) Apr 15 17:17:30 Hmm. Yes. Apr 15 17:17:56 Guest93: sometimes you can encounter "charge only" cables lacking data lines, although you should dispose of those as well since proper charger detection uses the data lines Apr 15 17:18:07 Although I have female USB to USB-C OTG cables. Apr 15 17:18:36 that's not OTG Apr 15 17:19:09 They are sold as that. Apr 15 17:19:36 https://www.amazon.com/Adapter-Samsung-Adapter-Thunderbolt-Compatible/dp/B07TKMYW33/ref=asc_df_B07TKMYW33/?tag=hyprod-20&linkCode=df0&hvadid=385286500280&hvpos=&hvnetw=g&hvrand=4140900648287644191&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9019559&hvtargid=pla-833314958350&psc=1&tag=&ref=&adgrpid=77282054583&hvpone=&hvptwo=&hvadid= Apr 15 17:19:37 385286500280&hvpos=&hvnetw=g&hvrand=4140900648287644191&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9019559&hvtargid=pla-833314958350 Apr 15 17:20:12 yeah that's just misinformed Apr 15 17:20:37 USB-C is inherently dual-role, the term "OTG" does not apply to it Apr 15 17:21:22 Didn't know that about it being inherently dual-role. Apr 15 17:21:46 well USB-C has no separate plugs for the two sides (host vs device) Apr 15 17:22:16 so roles are instead determined by a simple negotiation protocol using the CC lines Apr 15 17:23:48 this is different from OTG, where the plug tells the device whether it should assume host role (if the plug grounds the ID pin) or device role (if the plug leaves the ID pin floating) Apr 15 17:23:54 Can a pocketbeagle or beaglebone black micro-usb or mini-usb connect to a USB-C port? Apr 15 17:24:29 any usb device can connect to a USB-C host port with a suitable passive adapter (such as the one you linked) Apr 15 17:24:47 ("USB-C host port" here meaning a USB-C port that supports host role) Apr 15 17:25:50 I know it's several years old, but I'm still learning about USB-C. Apr 15 17:26:10 usb-c is a complicated hot mess Apr 15 17:26:55 For instance, my first phone had a USB-C to headphone adapter cord. But that cord doesn't work with my new phone, which requires the iPhone version of that cord. Apr 15 17:27:15 But I really like the form-factor. Apr 15 17:28:22 the usb-c spec defines a standardized passive adapter to run analog audio over usb-c... but I guess one of them didn't follow the spec Apr 15 17:29:07 Moto Droid vs. iPhone&Samsung Apr 15 17:30:21 Are there any plans for pocketbeagle protocape like the one for beaglebone black? Apr 15 18:02:00 I'm getting my pocketbeagle to properly serve 192.168.7.2 webpage on Windows 10, but not getting 192.168.6.2 on my linux laptop. When I run "ip a" I can see new interfaces enx6064054c2952 and enx6064054c2954 when the pocketbeagle is connected. They don't get resolved to usb0 it looks like. Apr 15 18:02:27 interface naming depends on distro Apr 15 18:02:33 and is mostly irrelevant Apr 15 18:02:37 sudo dhclient enx6064054c2952 Apr 15 18:02:58 I wouldn't just do that, configuring an ip address on the interface is the job of your network manager Apr 15 18:03:21 going behind its back seems ill-advised Apr 15 18:03:56 I've tried restarting networking service Apr 15 18:04:44 Those interfaces show as down. Apr 15 18:05:09 ifupdown (i.e. networking.service) requires manual configuration per interface, it's not really for typical end users Apr 15 18:06:03 (manual as in, you need to add something specific to its config file, not in the sense of having to configure a static ip of course) Apr 15 18:06:11 Yeah, I'm running ifupdown2 Apr 15 18:06:46 I suppose I could go through the ip link set dev..... Apr 15 18:07:02 no you shouldn't Apr 15 18:07:10 Just wondering why the udev rule doesn't work. Apr 15 18:07:19 udev has nothing to do with this Apr 15 18:08:37 if you chose to use ifupdown2, then configure it appropriately to bring one or both of these interfaces up using dhcp Apr 15 18:08:53 (via /etc/network/interfaces ) Apr 15 18:10:01 or use a user-friendly network manager that automatically brings up interfaces it detects Apr 15 18:10:06 hmm, well running ip link set dev enx6064054c2952 up and then dhclient enx6064054c2952 gives me 192.168.7.2 on that interface. Apr 15 18:10:22 yes but now you're manually doing the job of your network manager, behind its back Apr 15 18:10:31 But this is a pain. Apr 15 18:10:36 Yeah. Apr 15 18:10:54 why are you using such a weird linux system, if I may ask? Apr 15 18:11:51 You mean not using systemd networking? Apr 15 18:12:50 like, a non-systemd distro with some obscure reimplementation of debian's mediocre network manager sounds like a very... opinionated choice, yet you don't seem to be familiar enough with how the stuff on your system works to justify being highly opinionated about it Apr 15 18:17:29 and no I wouldn't suggest systemd-networkd on a desktop/laptop linux system either unless you already happen to be comfortable with systemd-networkd Apr 15 18:18:45 Hmm. Well as professional system engineer designing and managing Ceph/Openstack/Proxmox production systems I guess I should learn my job better. =D Apr 15 18:19:21 that certainly sounds like you ought to be familiar with the network manager on your system yes Apr 15 18:19:31 But I'm not really all that opinionated tbh. Apr 15 18:20:03 I personally switched from ifupdown to systemd-networkd on my laptop a long time ago and never looked back Apr 15 18:20:16 I'm sorry, I don't really work with embedded systems that much. Apr 15 18:20:53 or more precisely, I use systemd-networkd on every type of linux system - laptop, server, embedded Apr 15 18:21:31 I appreciate the advice and didn't come for a flame war. Apr 15 18:22:55 yeah I don't care what you use, but as long as you're using a network manager that doesn't auto-configures network interfaces for you, I would certainly recommend getting familiar with how to actually configure it Apr 15 18:23:30 typical desktop linux systems use gnome network manager (even if not otherwise using gnome) Apr 15 18:24:37 Thank you for your advice. Apr 15 18:26:20 for reference, systemd-networkd can be configured to automatically configure all ethernet interfaces that show up like follows: https://pastebin.com/UrhffcCq Apr 15 18:29:06 Got it. Apr 15 19:35:36 how can I change a pin value from the PRU Apr 15 19:37:12 systemd isn't an embedded thing.... that's a desktop abomination Apr 15 19:37:44 write to the register...either r30 or r31 (one's in and the other is out, check the manual for which is which) Apr 15 19:40:15 what is systemd is that comment for me as well? Apr 15 19:48:49 no that's just ds2 doing a greybeard rant ;-) Apr 15 19:51:16 mattb0ne: for pru direct I/O, if a pin is muxed to "pruout" mode using config-pin it will output a specific bit of r30 of one of the two cores, hence that pin can then be updated simply by writing to r30... see https://pastebin.com/zK85mXex for a summary of pins supporting pru direct i/o Apr 15 19:51:43 when writing in C, I think there's some intrinsics to read/write r30 Apr 15 19:52:32 (similarly, muxing a pin to pruin mode allows it to be read directly via r31, which is used by the quadrature decoder program you're using) Apr 15 19:55:17 thanks Apr 15 19:55:25 let me find your magic sheet Apr 15 19:55:48 actually can you link that to me again Apr 15 19:56:04 my pins spreadsheet? Apr 15 19:56:08 yeah Apr 15 19:56:14 I did just link to a pastebin specifically for the pru pins, but sure Apr 15 19:56:25 https://goo.gl/Jkcg0w is the full spreadsheet Apr 15 19:59:21 wanted to rebookmark it Apr 15 20:07:49 would there be an issue if I reference a pin that was set by an overlay. I am using P9_13 which is set to gpio by an overlay Apr 15 20:07:59 can I still use R30 to interact with it Apr 15 20:08:44 no, you'd either need to change the overlay or control the gpio by using the gpio controller's registers rather than r30 Apr 15 20:10:59 I think I already once sent you this header: https://pastebin.com/anqLbyav that defines convenient wrapper functions for doing the latter Apr 15 20:13:55 how do you find these snippets so fast! Apr 15 20:15:08 I go to pastebin, click "my pastes", and enter a suitable keyword into the search field? Apr 15 20:25:18 oh you have an account Apr 15 20:25:45 makes sense Apr 15 20:25:49 creating an account is free Apr 15 20:31:52 that would help tremendously Apr 15 20:31:55 I am going to do so **** ENDING LOGGING AT Sat Apr 16 02:59:57 2022