libera/#devuan-arm/ Wednesday, 2021-12-01

steevbleh01:52
steevaudio doesn't work with 5.15 either.  probably needs alsa config01:52
steevc0rnelius: yeah, no audio - i tried snagging the axg-sound-card.conf from libreelec but no luck there, might need some of their patches.  and while reboot works, shutdown does not02:35
c0rneliusLike the mixer doesn't come up or just no sound.02:42
c0rneliusI suspected it would have either a reboot or shutdown issue. typical.02:43
steevthere's no sound, bunch of errors about no device found iirc02:48
steevby iirc, i mean it's -22 which means no device02:48
c0rneliusWell its in in DTS and even has the #include <dt-bindings/sound/meson-g12a-tohdmitx.h>02:54
c0rneliusDoesn't mean much though.02:54
c0rneliusObviously  something is a miss02:54
steevyeah03:02
steevunfortunately, i fucking hate dealing with audio03:02
steevso i usually just don't bother03:02
c0rneliusIts sometimes stupid stuff. Something not added in defconfig. Other times its more complicated.03:05
c0rneliusIt could be something as stupid as its missing an include or using the wrong one. Have to look into it when I get it.03:07
c0rneliusAnd yes, sounds is usually the last of my looks sees as I can't imagine I would be using this board beyond headless use.03:08
c0rneliusUnless I was running CoreELEC on it or something.03:08
c0rneliusI mean its also audio through HDMI? Which I usually don't mess with unless in a multimedia situation anyway.03:11
c0rneliusI have my doubts that its even really clocked and running at 180000. It is a S905* correct? Amlogic always lies about that lineup. Oh yeah it can do this! You mean it says it can, right?03:14
c0rneliusFor example the S905X3 clocks at 210000 and in all honesty is great in the media arena but is still dog slower than ur casual pi4.03:17
c0rneliusand lets get real. The pi4 ain't winning any races.03:18
c0rneliusTo be honest my whole interest in the board is mostly out of boredom. I've run out of things to work on :)03:22
c0rneliussteev: What PSU are you using for it?03:23
c0rneliustypical one? nothing fancy.03:23
steevone sec03:23
steevhttps://smile.amazon.com/dp/B01N336XEU03:23
c0rneliusAmazon says I have two of those already. So perfect. :) Thanx03:24
steev:D03:24
steevi might have bought it based on a link from you03:25
steevwas definitely a link from someone else03:25
steevi specifically wanted a 5v 3a03:25
c0rneliusI like NorthPada03:25
steevbecause of overclocking my p403:25
c0rneliusyeah03:25
c0rneliusInteresting. I don't even see Radxa Zero in the CoreELEC lineup yet.03:31
c0rneliusand they obviously dropped cash, look under support: https://coreelec.org/03:33
steevprobalby isn't03:42
steevi was just looking through chewitt's stuff03:42
c0rneliusHe has the fips and other stuff but no imgs as of yet I can find03:45
steevyeah03:57
steevi think the audio stuff is holding it back still, he did say it's wip iirc03:57
steevin #linux-amlogic someone was trying to get audio working on a different box03:57
c0rneliusthis looks interesting -> https://lore.kernel.org/linux-amlogic/20211117052147.GC215087@roeck-us.net/T/#t04:05
c0rneliusAlthough I don't use watchdog, but maybe the fact thats its looking for it is creating the hiccup.04:05
c0rneliusI know that and nomap is what was creating N2/+'s to kernel panic and do random reboots.04:08
c0rneliusnomap not allowing the CMA pool to be populated and watchdog just rebooting the system.04:09
steevc0rnelius: btw, it looks like you could probably hardcode the aliases for mmc in the dts04:19
steevsomething like https://patchwork.kernel.org/project/linux-arm-msm/patch/20211201020559.1611890-1-dmitry.baryshkov@linaro.org/04:19
c0rneliusI've seen they have been working on this. I can't be 100% but it really seems like a uboot issue.04:21
steevif the aliases are there, i believe the kernel numbering would take prescedence when the kernel takes over04:22
c0rneliusFor example I haven't been having the mmc changes on allwinner and rockchip. But I notice it a lot on amlogic.04:22
steev(alternatively... put them in the u-boot dts :D )04:22
c0rneliusCould be right... I hope they make the change where it needs to be done because its a real pain in the ass.04:23
steevagreed06:14
artchadeyyyy, that was easier than expected.16:52
artchadGood evening.16:52
steevc0rnelius: https://github.com/radxa/kernel/commit/b44f9b961315d98785198e193cba184b51d63cc4 this could probably be added to mainline too18:03
c0rneliussteev: already one step ahead of you :)18:03
c0rneliusbuilding a new img now for you to test18:03
steevoh nice18:04
steevcan do18:04
c0rneliusand it looks like it can be overclocked18:09
c0rneliusI just need to figure out microvolt18:09
c0rneliusto play it safe I could probs stick in turbo mode18:11
c0rneliushttps://www.cnx-software.com/2018/10/21/comparison-s905x-s905x2-s905x2-processors/#:~:text=Amlogic%20S905X2%20%2F%20S905Y2%20%E2%80%93%2018%2C400%20DMIPS,2.3%20DMIPS%2FMHz%20%3D%202000%20MHz18:13
steevyeah18:50
steevi don't think these get too terribly hot, i've never seen mine go above 65 with not even a heatsink, while running 4 compile jobs18:50
c0rneliussteev: https://github.com/pyavitz/binary/releases/download/060420/g12a-radxa-zero-debian-bullseye-5.15.6-2021-12-01.img.xz19:24
c0rneliussame as before -> steev:board19:24
c0rneliusinternet options on first boot -> https://github.com/pyavitz/debian-image-builder#bootrename_to_credentialstxt19:25
c0rneliusAs for the overclock I just don't wanna burn someones board without testing it myself, but I already looked at it and should be doable.19:26
c0rneliusI could either leave the microvolt where it currently is and add the extra opp or up the microvolt by 3 to 6 steps which seems to be whats going on in that file. I could just skip 1900 MHz and jump it to 2000 MHz with turbo mode option.19:30
steevfair enough20:00
steevbooted up, no stoppage at first boot like before, and creds ran fine as well20:09
c0rneliusAwesome thats good news20:10
c0rneliusno hdmi audio still?20:10
steevwell, hard to say since no desktop, let me get to that part lol20:11
c0rneliusI was looking through some patches over at armbian that may or may not relate to that.20:11
steevah20:12
steevfirst boot ran, but it didn't resize20:12
c0rneliusIt wasn't Radxa specific though.20:12
steevbut i think you know that20:12
c0rneliuslsblk20:12
steevwell i jsut resized it :(20:13
c0rneliusIf ur on mmcblk2 eMMC with the vendor img, it should have resized? I would think.20:13
steevhttps://bpa.st/LGBA20:13
steevoh, i've been doing this on sdcard, i didn't realize you wanted me to test emmc20:14
c0rneliusNo I didn't want you too20:14
c0rneliussd is fine20:14
c0rneliusbut the script just checks all locations and attempts to resize20:15
c0rneliusThats why its odd20:15
steevit looks like this time, emmc is mmcblk120:15
c0rneliusGuess I'll figure it out when I get the board.20:16
steevstill, it's quite workable20:23
steevgreat job20:23
c0rneliusThanx.20:45
c0rneliussteev: Question. Does the board reboot and poweroff correctly now? Also is that HDD connected by a USB powered hub?20:46
steevreboot yes20:46
steevno the usb hd isn't via usb poweredd hub20:46
steevthat's why i said i should probably use a proper power supply and not just use the mac's usb port :D20:47
c0rneliusstill doesn't power down though.20:47
steevi will test shudown shortly20:47
c0rneliusWell yeah because you could be feeding power back into the board from the mac20:48
c0rneliusAlthough the S905X also has a power down problem. It powers off and just turns back on.20:49
c0rneliusDid that LED bit I added to the DTS do anything?20:50
steevradxa-zero:green20:57
steevyep20:57
c0rneliusThanx. I'll update the hub.21:00
steevmmc2 trigger works well (the wifi)21:03
c0rneliusand the bluetooth is now working out of the box?21:04
c0rneliusI noticed some differences in how chewitt created the audio section of the dts vs the radxa guys. Not sure if that could be the reason why audio isn't working though.21:05
c0rneliuschewitt added dai-link-0 -> https://github.com/pyavitz/debian-image-builder/blob/feature/patches/amlogic/radxazero/001-arm64-dts-amlogic-add-support-for-radxa-zero.patch#L18721:07
c0rneliusThats not in the dts over at the radxa hub21:07
steevif you look at the commit prior to the one i linked earlier... they removed it downstream hoping to fix the broken audio issue, but it does not21:15
c0rneliusoh ok21:17
steevand yes, bluetooth and wifi work out of the box21:29
c0rneliussweet21:36
c0rneliusmaking a new kernel now with some added audio goodness, lets see if it corrects the problem.21:37
c0rneliussteev: When you get a chance see if this make any diff on sound. `sudo dpkg -i *.deb`22:33
c0rneliushttps://github.com/pyavitz/binary/releases/download/060420/meson64-linux-headers_5.15.6-2_arm64.deb22:34
c0rneliushttps://github.com/pyavitz/binary/releases/download/060420/meson64-linux-image_5.15.6-2_arm64.deb22:34
steevc0rnelius: no audio23:12
steevbut it does at least try now23:12
steevdmesg is spammed with23:13
c0rneliusok... well one step closer then.23:13
steev[   33.759591]  fe.dai-link-2: ASoC: no backend DAIs enabled for fe.dai-link-223:13
steev[   33.759596]  fe.dai-link-2: ASoC: dpcm_fe_dai_prepare() failed (-22)23:13
steev(and -1 and -0 )23:13
steevprobably needs a proper config, or maybe even needs a ucm2 config23:13
c0rneliusI looked through the config all the audio seemed right to me.23:14
steevoh sorry23:14
steevi mean proper alsa config, not kernel config23:14
c0rneliusoh gotcha23:15
c0rneliusaplay -l give you anything?23:15
steevit does!23:15
steevhttps://bpa.st/IMNA23:15
c0rneliusStrange. Its all the same card with just diff device numbers.23:16
c0rneliusCould try setting up a /etc/asound.conf?23:18
c0rneliushttps://www.alsa-project.org/wiki/Asoundrc23:18
c0rneliusIt looks like its getting picked up but there is some kind of conflict going on. Could even be missing some firmware or something?23:19
c0rneliusthat error seems to pop a lot when searched. Odroid, Manjaro and https://www.spinics.net/lists/linux-tegra/msg61332.html23:25
c0rneliusSuggests a revert there.23:25
c0rneliusI'll check through my Odroid patch set and see if anything stands out.23:26
steevi *hate* dealing with audio on linux nowadays, because of so many moving parts23:39
c0rneliusYeah its real pain.23:42
c0rneliusIts usually the last thing I really pay attention too.23:43
c0rneliusnothing is standing out to me except in the sound/soc/meson/axg-frddr.c file. tobetter changes the channels from 1 to 2.23:51
c0rneliusOther than that nothing audio wise is really looking at me.23:52
c0rneliusNothing I haven't tried yet anyway23:53
c0rneliusIf aplay is showing us its there we at least know that much.23:54
c0rneliusthis looks an awful lot like the zero dts too -> https://github.com/armbian/build/blob/master/patch/kernel/archive/meson64-5.15/0033-WIP-arm64-dts-meson-add-audio-playback-to-u200.patch23:55
c0rneliusexcept I'm assuming that has a analog audio port23:55
c0rneliusor some kind of audio hat ability or something? Not sure.23:57

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!