**** BEGIN LOGGING AT Tue Oct 30 02:59:59 2018 Oct 30 03:00:24 no. I'm not sure how to do that. Is there an example anywhere that has the cpu as master? Oct 30 03:01:08 i'm not sure if you just point the frame-master at mcasp_0 Oct 30 03:01:23 you point it at the cpu{} node of the dai-link Oct 30 03:01:30 instead of the codec{} node Oct 30 03:01:41 and you move the clocks property over too Oct 30 03:01:47 see e.g. https://pastebin.com/raw/FVYLdQHG Oct 30 03:02:25 or https://github.com/RobertCNelson/bb.org-overlays/blob/master/src/arm/BB-HDMI-TDA998x-00A0.dts#L117-L127 Oct 30 03:04:07 mmm. I'll give it a go. Not sure how it'll work given the sample rate requested won't be provided by the 24mhz clock without the PLL doing something unless i'm misunderstanding Oct 30 03:05:44 it would provide bitclock by dividing the 24.576 MHz audio oscillator clock that's on its hclkx input Oct 30 03:06:35 that's why it needs the clocks-property pointing at the audio osc clock Oct 30 03:07:34 ahh I was just confused by the hclk = internal 24000000 on the asp output Oct 30 03:09:26 that's because it was in slave mode and had no use for an external hclk Oct 30 03:10:47 yep Oct 30 03:11:02 okay now configued for cpu master mode Oct 30 03:11:03 arecord: set_params:1363: Unable to install hw params: Oct 30 03:11:21 arecord fails but the card exists Oct 30 03:11:51 can you pastebin what your soundcard looks like in dt right now? Oct 30 03:12:48 https://paste.debian.net/1049659/ Oct 30 03:15:37 what format did you specify for arecord? Oct 30 03:15:55 (although explicit specification shouldn't be required) Oct 30 03:17:09 S32_LE and 16 Oct 30 03:17:27 arecord -vvv -c4 -f S32_LE -r 48000 -D hw:0,0 /dev/null Oct 30 03:19:55 hmm it looks like adau1977 might actually require tdm specification for > 2 channels Oct 30 03:20:58 oh in the i2c codec section or in the simple audio section? Oct 30 03:21:09 simple audio Oct 30 03:21:21 the dai-tdm- stuff Oct 30 03:21:48 but I'm not completely sure, it's all not terribly clear Oct 30 03:22:05 yeah, they also mention requiring a rx mask Oct 30 03:22:24 but i'm not sure if that is required in the cpu and codec section or if one should be tx Oct 30 03:22:41 rx_mask and tx_mask are required to be zero Oct 30 03:22:49 no wait Oct 30 03:22:56 sorry, rx_mask must be non-zero Oct 30 03:22:59 tx_mask must be zero Oct 30 03:23:12 codec section Oct 30 03:23:44 they suggest an rx mask like 0x0F but the DT masks I've seen look like <1 1 1 1> Oct 30 03:24:02 it's all really weird to me too, especially since the slot width and number of slots obviously affect everyone on the dai Oct 30 03:24:41 yeah. Yeah but weird that mcasp doesn't specify a slot width Oct 30 03:24:50 so somewhere needs to... Oct 30 03:25:14 well under normal circumstances that should be negotiated with the codec Oct 30 03:25:21 but ugh it's all a mess in asoc Oct 30 03:25:47 <1 1 1 1> the right mask though ? Oct 30 03:25:48 and I can confirm the mask is an array of boolean, i.e. <1 1 1 1> Oct 30 03:25:55 ahh cool Oct 30 03:28:56 if you're feeling adventurous, you can also try cherry-picking this commit and rebuilding the kernel: https://github.com/dutchanddutch/bb-kernel/commit/6d02c63ab0017e1c6588e745fb16c8632aa61b01 Oct 30 03:29:19 i'm feeling like making this work and that might correlate ;) Oct 30 03:29:26 so interesting thing... Oct 30 03:29:50 I've added the TDM masks etc and now it does create the driver Oct 30 03:29:54 but still doesn't work Oct 30 03:30:20 that commit includes a change which I think will fix the issue of mcasp not configuring any slots when the codec was master Oct 30 03:30:59 meh Oct 30 03:31:57 at this point I'd be getting more and more tempted to force mcasp into fixed configuration and setup the codec from userspace ;-) Oct 30 03:33:27 what's the advantage of that? Oct 30 03:33:34 and I'm really not sure how to do that :) Oct 30 03:33:58 though given my general experience with autodiscovery i do like forced to fixed config :) Oct 30 03:34:55 the advantage is not having to guess what you need to put in DT to convince all parties to do the right thing, or dig through kernel code to figure out what the codec wants. and you could try different settings just by perfoming i2c writes, no reboots Oct 30 03:35:46 ahh neat Oct 30 03:36:19 this patch does look worth a go. Oct 30 03:36:32 though it blows my mind a little that it's a patch against patch files... Oct 30 03:36:47 that makes me a bit uncomfortable... Oct 30 03:37:27 well that's because the bb-kernel repo contains a directory with patches and scripts that patch and build the kernel Oct 30 03:37:52 it can be more convenient to manage patch collections on top of the ever-moving linux kernel that way Oct 30 03:38:23 more importantly, it's simply rcn's kernel build repo in which I added my own stuff Oct 30 03:39:31 you should be able to clone rcn's bb-kernel repo, cherry-pick that commit from my repo on top of it and build the kernel package using the scripts Oct 30 03:40:37 if you haven't used rcn's build repos yet, here are some notes: https://pastebin.com/raw/eLhrp1Hg Oct 30 03:42:19 I've built from that repo Oct 30 03:42:23 ok Oct 30 03:43:12 I'm a bit confused that it'll have to revert that patch, patch the patch and the apply. Oct 30 03:43:29 ?? Oct 30 03:43:32 what do you mean? Oct 30 03:43:44 well I've already applied all those patches Oct 30 03:44:00 to the kernel that's there. Oct 30 03:44:01 oh is this one already in rcn's tree? my bad Oct 30 03:44:07 oh no Oct 30 03:44:22 it might be, but i mean I've already built a kernel Oct 30 03:44:29 so the kernel source is already patched Oct 30 03:45:03 right, so you can either use ./build_deb.sh and just let the script recreate the patched tree completely Oct 30 03:45:33 actually the other thing I was gonna suggest is a bad idea Oct 30 03:45:51 i think I've been doing the bad idea way :) Oct 30 03:46:11 try to manually apply the patches inside the KERNEL tree? :P Oct 30 03:46:35 because yeah, if I only added patches then you could just git-am those Oct 30 03:46:38 I applied changes to the source to get the ADAU1977 codec working, and added a touch screen driver Oct 30 03:46:57 ah, and you haven't extracted those into a patch yet Oct 30 03:47:08 and I just changed those files directly Oct 30 03:47:09 yeah Oct 30 03:47:38 so, git commit, git format-patch into patches/local, and add "dir 'local'" to patch.sh Oct 30 03:47:41 :) Oct 30 03:47:49 because I thought, I'm fine with this kernel, happy to lock down things here instead of weird git patch thing I don't understand :) Oct 30 03:48:03 which sounds massively scary in the overwriting work I've done kind of way. Oct 30 03:48:17 ahh okay. Oct 30 03:48:21 makes sense Oct 30 03:48:44 yeah you'll need to get your patches in a safe place before doing ./build_deb.sh again Oct 30 03:49:48 of course, even if something bad happens, you can always recover your stuff using git reflog, as long as you've committed it Oct 30 03:51:12 I haven't dug deeply into how rcn's scripts work or anything, but in practice they seem to work fine Oct 30 03:51:53 I'm a bit confused on one bit of that workflow... so you git commit the changes into the actual kernel files and then does git format-patch remove those changes from the files? Oct 30 03:51:53 and I generally require little effort to rebase my stuff onto the latest upstream commit Oct 30 03:52:26 well committing there isn't a requirement, but it's an easy way to make a nice patch Oct 30 03:52:37 and to keep your work in progress safe Oct 30 03:52:56 okay, I'm just confused that it'd then included everything the rest of the patch changed Oct 30 03:53:23 well I do try to keep unrelated changes in separate commits Oct 30 03:53:42 i mean changes that the patch script did from other people Oct 30 03:53:44 and if necessary use git rebase -i and such to tweak those commits into being nice patches Oct 30 03:54:01 I'm confused, what do you mean Oct 30 03:54:09 the patch script imports patches as git commits Oct 30 03:54:18 ahh okay Oct 30 03:54:30 so it doesn't just pipe patches to patch Oct 30 03:54:46 so git knows about them Oct 30 03:54:47 of course not Oct 30 03:54:50 ew Oct 30 03:55:08 if you check with git status, the only changes you'll see are the ones you made yourself Oct 30 03:55:17 yeah, i thought that sounded bonkers but I'm not familar with non-simple git usecases Oct 30 03:55:18 all the patches are in the commit history Oct 30 04:21:46 suprothunderbolt: since I badly needed to make proper patches myself, I've made notes on what I did, to illustrate the workflow Oct 30 04:23:32 nice. I think i might stick to dodgy and lazy for the moment but proper workflow does sound nice :) Oct 30 04:24:53 https://pastebin.com/raw/Fin0z0bx Oct 30 04:25:12 just in case it's useful as illustration Oct 30 04:25:57 cheers, thanks Oct 30 04:29:30 and build complete, and pushed to github, woop Oct 30 04:36:40 and tagged... I often forget tagging Oct 30 06:21:11 i hope you're asleep by now but the codec is now working well! **** BEGIN LOGGING AT Tue Oct 30 06:23:09 2018 Oct 30 06:23:47 cool! Oct 30 06:23:52 what did the trick? Oct 30 06:26:31 that patch Oct 30 06:26:52 oh though I also specified the tdm slot masks etc too Oct 30 06:27:07 all 4 channels work and sound correct! Oct 30 06:27:20 zmatt: thanks for all your hep Oct 30 06:27:23 help :) Oct 30 06:27:34 \o/ Oct 30 06:27:53 all my hardware issues are now solved. :) Now onto running things on it! Oct 30 06:28:12 maybe I should try to clean up and upstream my fixes at some point :P Oct 30 06:28:36 I think I should push my touch screen stuff to github Oct 30 06:29:00 and post about the -j gcc flag issue on win 10. Oct 30 06:29:37 screen still looks a little dodgy so I'm going to poke around with the timings a little to see if that helps and generate some test images Oct 30 06:32:04 had you tried make -j with the sources in your homedir instead of in /mnt/c ? Oct 30 06:33:07 I haven't checked that yet, focused on getting the codec working! Oct 30 06:33:33 I think you're right it'll fix it though, it really sounds like a filesystem issue with concurrent access Oct 30 06:34:18 drvfs is somewhat magic Oct 30 06:34:24 I'm generating a few test images to see if I can improve the screen look Oct 30 06:34:37 yeah I'm amazed all that magic works at all Oct 30 06:42:50 ahh.. i think this test pattern suggests that some of my lines might be connected wrong... Oct 30 06:42:56 for the lcd **** BEGIN LOGGING AT Tue Oct 30 06:50:27 2018 Oct 30 07:35:50 I want C++20 already damnit... https://pastebin.com/nHrKe45C Oct 30 07:45:03 zmatt: hrhr Oct 30 07:46:26 it's kinda insane it's taken so long to be able to have the compiler 1. implement memberwise comparison of structs for you 2. generate the whole assortment of comparison operators from a single three-way (strcmp-like) comparison Oct 30 07:48:29 zmatt: actually i don't see the spaceship operator to be super useful in my daily life. but once metaclasses touch ground, i will celebrate. Oct 30 08:03:08 metaclasses? you mean concepts? Oct 30 08:04:41 zmatt: no, i mean metaclasses. concepts are of course nice too. metaclasses are nowhere near c++20, more like c++26 or such Oct 30 08:05:20 zmatt: herb sutter started it off with https://www.youtube.com/watch?v=6nsyX37nsRs **** BEGIN LOGGING AT Tue Oct 30 08:34:28 2018 Oct 30 09:15:15 veremitz: https://www.molex.com/molex/products/family?key=minispox Oct 30 09:29:30 hlp Oct 30 09:29:33 help Oct 30 10:15:56 :D ... just cross-compiled an Ada hello program, rsynced it to BB blue and it runs fine Oct 30 10:16:06 debian@beaglebone:~$ ./hello Oct 30 10:16:07 Hello Beagle ! Oct 30 10:17:31 charlie5: \o/ Oct 30 10:17:59 obligatory hint: i take it that you already documented on elinux.org? ;-) Oct 30 10:18:31 LetoThe2nd: i did a little happy dance Oct 30 10:18:46 ... but have not documented on elinux.org Oct 30 10:18:58 * charlie5 will try Oct 30 10:20:12 charlie5: our eternal gratitude will be following your every step :-D Oct 30 10:21:01 :) Oct 30 10:23:29 next is to recode rc_blink in Ada using my (draft/daft) ada binding to librobotcontrol Oct 30 13:36:48 zmatt: oh it *is* a molex .. tyvm Oct 30 14:30:14 Yo. I want one but they are kinda hard to get.. Oct 30 14:35:11 ? Oct 30 14:35:23 one what? Oct 30 14:35:54 beagleboard x15 Oct 30 14:37:04 jkridner[m]: the homepage seems to be broken? Oct 30 14:37:43 Stove: digikey has a ton of them in stock Oct 30 14:37:55 so does arrow Oct 30 14:38:14 mouser has them in stock too Oct 30 14:39:17 Yeah but I'm in europe and mouser sucks Oct 30 14:39:30 mouser literally won't let you select text on their website Oct 30 14:39:43 uhh, seems to work for me Oct 30 14:39:45 arrow is a distrituber too? Oct 30 14:40:10 check this out Oct 30 14:40:12 https://eu.mouser.com/ProductDetail/Beagleboard-by-PTI/BeagleBoard-X15?qs=uj7TeyS2Sj8estI5sHZOxA== Oct 30 14:40:17 https://www.arrow.com/en/products/beagleboardx15/beagleboardorg Oct 30 14:40:19 damn Oct 30 14:40:21 not it works Oct 30 14:40:35 had it comfirm by someone yesterday even Oct 30 14:41:00 is it really worth the price? Oct 30 14:41:06 I actually wanted a helios 4 thing Oct 30 14:41:14 that's a rather subjective question Oct 30 14:41:19 just to make a nas and run plex and rtorrent Oct 30 14:41:49 Not THAT subjective, you can compare it to competitors and stuff. Oct 30 14:42:07 yes but it all depends on what criteria are important to you Oct 30 14:42:20 price Oct 30 14:42:25 price is important to me Oct 30 14:42:41 I'm sure there are plenty of cheaper chinese boards Oct 30 14:42:53 not with good IO Oct 30 14:43:11 are there chinese boards with AM5728 Oct 30 14:43:12 ? Oct 30 14:43:28 define "good IO" ? Oct 30 14:44:33 >100Mbps transfer rate for 3 drives in raid Oct 30 14:45:01 I have it on a rpi now and since it only has one usb port basically, it's slow Oct 30 14:45:08 also plex barely works on it Oct 30 14:45:14 but it does Oct 30 14:45:23 so, things where the beagleboards and beaglebones shine are: TI is very open (thousands of pages of SoC documentation), hardware design is open, nice capabilities for real-time I/O via PRUSS Oct 30 14:46:46 PRU = DSP? Oct 30 14:46:55 but they're usually not the cheapest nor performance monsters, relatively Oct 30 14:46:57 no Oct 30 14:47:41 and there's variants Oct 30 14:47:45 like black and green, what's that about? Oct 30 14:47:47 PRU cores are simple risc processors with deterministic timing and ultra low latency I/O (basically pins wired nearly straight to registers) Oct 30 14:48:37 AM335x (the SoC used on the beaglebones) has one PRUSS instance, consisting of two PRU cores + local ram and peripherals, while the AM572x has two PRUSS instances Oct 30 14:49:07 So what do you use it for? Oct 30 14:49:11 yeah there are a bunch of variants and derivative... the green (by Seeed) is a one without hdmi Oct 30 14:50:03 I'm not a huge fan of the green and definitely not one of the green-wireless... Seeed should have put more thought into the modifications they did :) Oct 30 14:50:12 we embed them in our products Oct 30 14:50:37 (a beaglebone black) Oct 30 14:50:49 Do you want to say which company or not? Oct 30 14:51:00 https://dutchdutch.com/ Oct 30 14:51:25 Alright, thanks for the help zmatt. Oct 30 14:52:16 btw, you said 3 drives in raid... connected how? Oct 30 14:52:40 I was thinking usb3, ye I know it's not ideal Oct 30 14:53:01 but there are literally no boards with sata besides helios4 which is never available Oct 30 14:53:34 note that the usb3 ports on the x15 are all downstream on a single integrated hub Oct 30 14:53:43 so they'll share bandwidth Oct 30 14:53:46 usb3 hub at least right? Oct 30 14:53:58 yes Oct 30 14:54:06 mm Oct 30 14:54:08 (TUSB8041) Oct 30 14:54:15 am572x has sata Oct 30 14:54:17 I expected them to be independent Oct 30 14:56:15 should have just gotten a qnap arm thing Oct 30 14:56:31 yeah I suspect the am572x might not be an optimal fit for your application Oct 30 14:57:33 it might still work fine of course, but if you're basically just looking for a nas/server then I suspect there are boards with better price/performance ratio out there Oct 30 14:58:36 Yeah you're right. Oct 30 14:59:00 and a lot of the cool functionality of the x15 will end up unused Oct 30 15:13:27 m Oct 30 20:26:27 thinkfat: this sounds familiar... https://e2e.ti.com/support/processors/f/791/t/740138 ;-) Oct 30 20:29:22 zmatt: indeed, somewhat familiar... Oct 30 20:54:07 pff, e2e is awful to browse since they've merged the forums for all their processors into one extremely high volume forum Oct 30 21:02:35 whoa, since when are there AM65xx SoCs Oct 30 21:38:06 Hello, is this a room or a person? Oct 30 21:38:17 it's an irc channel Oct 30 21:38:50 so yeah, a chat room Oct 30 21:39:09 Looked like it. I'm trying to find a DIN mount metal enclosure for the BBB Rev c that allows room for a cape. Oct 30 21:39:42 The only one I've ever found is no longer being sold by the mfg: https://www.logicsupply.com/bb100-orange/ Oct 30 21:40:02 And it's more of a frame than an enclosure. Oct 30 21:41:18 I've also contacted EmbeddedGlow to see if they offer a tall version: https://embeddedglow.com/items/BC3/BC3.php Oct 30 21:42:51 no idea, sorry Oct 30 21:43:28 Its probably going to be a custom job. Just taking one more look before I give up. Oct 30 22:26:54 interesting that the new AM65xx uses the Cortex-A53, which is substantially slower (per MHz) than the cortex-a15 Oct 31 02:14:02 neat, rseq (restartable sequences) introduced in kernel 4.18 enable a variety of per-cpu datastructure updates to be implemented lock-free Oct 31 02:14:34 which, on a uniprocessor like the cortex-a8 simply means "enable a variety of datastructure updates to be implemented lock-free" **** ENDING LOGGING AT Wed Oct 31 02:59:58 2018