01:58
rpardini has quit [Quit: gone]
02:24
chewitt has quit [Ping timeout: 248 seconds]
02:30
Ballerburg9005 has quit [Ping timeout: 248 seconds]
02:30
chewitt has joined #linux-amlogic
03:15
jelly has quit [*.net *.split]
03:27
jelly has joined #linux-amlogic
04:02
naoki has quit [Quit: naoki]
04:04
naoki has joined #linux-amlogic
04:23
vagrantc has joined #linux-amlogic
04:44
hexdump0815 has quit [Ping timeout: 248 seconds]
04:46
hexdump0815 has joined #linux-amlogic
05:49
ldevulder_ has joined #linux-amlogic
05:53
ldevulder has quit [Ping timeout: 248 seconds]
06:10
GNUtoo has quit [Ping timeout: 255 seconds]
06:16
GNUtoo has joined #linux-amlogic
06:35
vagrantc has quit [Quit: leaving]
08:32
ldevulder_ has quit [Remote host closed the connection]
08:33
ldevulder has joined #linux-amlogic
10:03
f__ has joined #linux-amlogic
10:06
f__ is now known as f_
10:34
naoki has quit [Quit: naoki]
10:36
rtp_ is now known as rtp
11:12
rpardini has joined #linux-amlogic
11:16
chewitt has quit [Quit: Zzz..]
11:18
chewitt has joined #linux-amlogic
11:24
Terry137322934 has joined #linux-amlogic
11:25
rpardini has quit [Quit: ZZZzzz…]
11:28
chewitt has quit [Quit: Zzz..]
11:36
psydroid has quit [Quit: Bridge terminating on SIGTERM]
11:37
maku has quit [Quit: Bridge terminating on SIGTERM]
11:37
BlueMatt[m] has quit [Quit: Bridge terminating on SIGTERM]
11:37
ungeskriptet has quit [Quit: Bridge terminating on SIGTERM]
11:39
rpardini has joined #linux-amlogic
11:40
ungeskriptet has joined #linux-amlogic
11:47
BlueMatt[m] has joined #linux-amlogic
11:47
maku has joined #linux-amlogic
11:47
psydroid has joined #linux-amlogic
11:53
naoki has joined #linux-amlogic
12:13
naoki has quit [Quit: naoki]
12:14
ungeskriptet has quit [Ping timeout: 264 seconds]
12:14
maku has quit [Ping timeout: 248 seconds]
12:14
psydroid has quit [Ping timeout: 252 seconds]
12:14
BlueMatt[m] has quit [Ping timeout: 252 seconds]
12:25
ungeskriptet has joined #linux-amlogic
12:40
Lila-Kuh has joined #linux-amlogic
12:46
maku has joined #linux-amlogic
13:11
rpardini has quit [Quit: gone]
13:20
BlueMatt[m] has joined #linux-amlogic
13:20
psydroid has joined #linux-amlogic
13:22
<
narmstrong >
f_: hi ! did you manage to get audio working ?
13:44
chewitt has joined #linux-amlogic
14:21
Ballerburg9005 has joined #linux-amlogic
14:32
<
f_ >
narmstrong: Not yet. I was kind of doing a short break but I'll get there!
14:32
<
f_ >
Meanwhile I posted my notes on my website.
14:33
<
f_ >
(And, of course, I did say thanks to everyone who contributed in making this possible! :D)
14:33
<
f_ >
(In my website)
14:49
<
f_ >
Ok. Let's get sound to work!
14:49
<
f_ >
... Which will possibly be a hassle to do because all I have is a VGA monitor with no sound capabilities whatsoever XD
14:50
<
f_ >
(and another monitor which is arguabely better but still doesn't have sound capabilities)
14:51
<
f_ >
Luckily I do have ssh access!
15:11
naoki has joined #linux-amlogic
15:13
<
f_ >
videostrong-kii-pro:~$ dmesg|grep sound
15:13
<
f_ >
[ 0.294434] No soundcards found.
15:13
<
f_ >
videostrong-kii-pro:~$
15:14
<
f_ >
videostrong-kii-pro:~$ aplay -l
15:14
<
f_ >
aplay: device_list:274: no soundcards found...
15:14
<
f_ >
So it doesn't find any sound card whatsoever...
15:15
<
f_ >
Yes. No sound card...
15:19
<
chewitt >
dmesg | grep alsa ??
15:19
<
f_ >
~ # dmesg|grep alsa
15:20
<
f_ >
Maybe I'm just missing modules?
15:20
<
chewitt >
CONFIG_SND_MESON_AIU=y ?
15:20
<
chewitt >
CONFIG_SND_MESON_CARD_UTILS=y
15:20
* f_
checks if he missed to load some modules...
15:20
<
chewitt >
CONFIG_SND_MESON_CODEC_GLUE=y
15:20
<
chewitt >
CONFIG_SND_MESON_GX_SOUND_CARD=y
15:21
<
chewitt >
CONFIG_SND_SOC=y
15:22
<
f_ >
> CONFIG_SND_MESON_AIU=m
15:23
<
f_ >
Well I definitely missed to load some modules!
15:23
<
f_ >
CONFIG_SND_MESON_GX_SOUND_CARD=m
15:23
<
f_ >
CONFIG_SND_SOC=y
15:24
<
chewitt >
SND_PCM_IEC958=y
15:24
<
f_ >
I should be able to load them using `modprobe`.
15:24
<
chewitt >
SND_SOC_MESON_T9015=y
15:24
<
chewitt >
SND_SOC_HDMI_CODEC=y
15:24
<
chewitt >
DRM_MESON_DW_HDMI=y
15:24
<
f_ >
CONFIG_SND_PCM_IEC958=y
15:24
<
f_ >
CONFIG_SND_SOC_HDMI_CODEC=m
15:25
<
f_ >
CONFIG_DRM_MESON_DW_HDMI=m
15:25
<
f_ >
Let's load them and see if that changes anything.
15:27
<
f_ >
~ # modprobe -l|grep meson|grep sound
15:27
<
f_ >
So... snd-soc-meson-gx-sound-card
15:28
<
f_ >
snd-soc-meson-aiu
15:28
<
f_ >
snd-soc-meson-codec-glue
15:28
<
f_ >
snd-soc-meson-card-utils
15:29
<
f_ >
~ # modprobe -l|grep hdmi
15:29
<
f_ >
kernel/sound/pci/hda/snd-hda-codec-hdmi.ko.gz
15:29
<
f_ >
kernel/sound/soc/codecs/snd-soc-hdmi-codec.ko.gz
15:29
<
f_ >
kernel/drivers/gpu/drm/meson/meson_dw_hdmi.ko.gz
15:29
<
f_ >
Let's load them all!
15:30
<
chewitt >
I build all of these into the kernel with =y
15:31
<
f_ >
Sure, but postmarketOS recommends building them as modules to keep the kernel image relatively small.
15:31
<
f_ >
And instead, put the modules to load in the `deviceinfo`.
15:32
<
chewitt >
but if that doesn't work .. experiment with some liberal use of =y
15:32
buzzmarshall has joined #linux-amlogic
15:32
<
f_ >
Sure. But there shouldn't be any reason for it to not work right?
15:36
<
f_ >
~ # modprobe -a $(modprobe -l|grep sound|grep -e meson -e hdmi|awk -F'/' '{ print $5 }'|awk -F'.' '{ print $1 }')
15:36
<
f_ >
aplay: device_list:274: no soundcards found...
15:37
<
mkorpershoek >
=y and =m implies that drivers are not probed in the same order. so that's a reason for things to "not work", for example
15:37
Ballerburg9005 has quit [Ping timeout: 246 seconds]
15:37
<
f_ >
mkorpershoek: Sure.
15:37
<
mkorpershoek >
if it works with =y, it's good info and can help debugging =m
15:37
* f_
changes config
15:38
<
mkorpershoek >
in a perfect world it should work with =m but that's not always the case
15:39
<
f_ >
chewitt: Are the options you listed the only ones that need to be enabled?
15:39
<
f_ >
Or are there others that need to be enabled too?
15:39
Ballerburg9005 has joined #linux-amlogic
15:39
<
chewitt >
that's all afaik
15:47
Ballerburg9005 has quit [Ping timeout: 248 seconds]
15:54
Lila-Kuh has quit [Quit: geht mal an die frische Luft...]
15:54
Ballerburg9005 has joined #linux-amlogic
15:55
<
f_ >
chewitt: DRM_MESON_DW_HDMI is enabled with =y?
15:55
<
chewitt >
in my config, yes
15:56
<
f_ >
At least for kernel 6.x, `make menuconfig` doesn't let me enable that. I can only build it as a module...
15:56
<
f_ >
Or disable it entirely.
15:56
<
f_ >
But I can't build it in the kernel.
15:56
<
f_ >
Oh that's kernel 6.1.3
15:57
<
chewitt >
I'm using that with 6.1.10
15:57
<
chewitt >
(haven't updated the conf to that yet, but it runs fine)
15:57
<
f_ >
"This feature depends on another which has been configured as a module. As a result, this feature will be built as a module."
15:58
<
f_ >
Huh. That explains a lot!
16:03
Ballerburg9005 has quit [Ping timeout: 265 seconds]
16:05
<
f_ >
I managed to enable that.
16:07
<
f_ >
I'll probably compile the kernel tomorrow (this takes a whole 2 hours to compile on my ~11 years old laptop). I may compile it today if I have time. For now, I need to fix some other issues (related to compiling U-Boot).
16:07
<
f_ >
(ld returns warnings and returns 1)
16:07
<
f_ >
(when compiling with pmbootstrap, for some reason.... it compiles fine on my computer)
16:14
<
f_ >
/usr/bin/ld.bfd: warning: u-boot has a LOAD segment with RWX permissions
16:14
<
f_ >
/usr/bin/ld.bfd: read-only segment has dynamic relocations
16:14
<
f_ >
I have to fix that...
16:14
<
f_ >
Shouldn't be too hard.
16:17
<
chewitt >
does postmarketOS not support cross-compile?
16:17
<
f_ >
It definitely does.
16:17
<
f_ >
gcc-aarch64 is used here it seems.
16:17
<
chewitt >
I'm building LE distro images in ~28 mins
16:17
<
f_ >
How old is your computer? :S
16:18
<
chewitt >
2018 .. but age isn't the right question
16:18
<
f_ >
Also, do you think those errors have to do with cross-compiling?
16:18
<
f_ >
I know for sure the first one is, sort of, normal.
16:18
<
chewitt >
cross-compile is normally reliable as long as you have the right/intended environment for building in
16:19
<
f_ >
(I already had this error when cross-compiling something. Downgrading gcc fixed that)
16:19
<
chewitt >
hint: dockerize it so everyone builds from the same environment
16:19
<
f_ >
Well. pmbootstrap does everything in alpine chroots.
16:22
<
f_ >
One of those chroots is the one it uses to compile U-Boot. It's called buildroot_aarch64 and, when `chroot`ing to it, it does have a cross compiler.
16:23
<
f_ >
But I guess all that is offtopic here :)
17:04
naoki has quit [Ping timeout: 260 seconds]
17:10
chewitt has quit [Quit: Zzz..]
17:20
Ballerburg9005 has joined #linux-amlogic
17:22
naoki has joined #linux-amlogic
17:30
chewitt has joined #linux-amlogic
17:44
naoki has quit [Quit: naoki]
18:05
<
f_ >
chewitt: I'm currently compiling the kernel. It almost finished.
18:12
<
f_ >
It actually took ~1h, which is nice.
18:15
<
f_ >
Let's see if it works.
18:17
<
f_ >
chewitt: Doesn't seem to work...
18:17
<
chewitt >
anything in dmesg now?
18:18
<
chewitt >
the card conf needs to be present for alsa to load properly.. but you'll see something in dmesg at least
18:19
<
chewitt >
dmesg | grep ALSA
18:19
<
f_ >
I don't see anything.
18:19
<
chewitt >
(note uppercase)
18:19
<
f_ >
Oh wait a second...
18:19
<
f_ >
[ 0.888025] ALSA device list:
18:19
<
f_ >
videostrong-kii-pro:~$ dmesg | grep -e alsa -e ALSA
18:20
<
f_ >
Let's see the device list then.
18:20
<
chewitt >
drop the conf in /usr/share/alsa/cards/gx-sound-card.conf
18:21
<
f_ >
videostrong-kii-pro:~$ dmesg | grep -e alsa -e ALSA -A 5
18:21
<
f_ >
[ 0.888025] ALSA device list:
18:21
<
f_ >
[ 0.888037] No soundcards found.
18:21
<
f_ >
[ 0.888088] Warning: unable to open an initial console.
18:21
<
f_ >
[ 0.902465] Freeing unused kernel memory: 2880K
18:21
<
f_ >
[ 0.913324] Run /init as init process
18:21
<
f_ >
[ 0.913333] with arguments:
18:21
<
f_ >
videostrong-kii-pro:~$
18:21
<
f_ >
chewitt: I did drop the config in /usr/share/alsa/cards/gx-sound-card.conf
18:21
<
f_ >
videostrong-kii-pro:~$ ls /usr/share/alsa/cards/gx-sound-card.conf
18:21
<
f_ >
/usr/share/alsa/cards/gx-sound-card.conf
18:22
<
chewitt >
aplay -L ??
18:22
<
f_ >
videostrong-kii-pro:~$ aplay -l
18:22
<
f_ >
aplay: device_list:274: no soundcards found...
18:22
<
chewitt >
might be the wrong location for your distro
18:23
<
chewitt >
also, what version of alsa?
18:25
<
chewitt >
check there are other cards in that folder
18:25
<
chewitt >
s/cards/confs
18:25
<
f_ >
videostrong-kii-pro:~$ ls /usr/share/alsa/cards/
18:25
<
f_ >
AACI.conf AU8820.conf Aureon71.conf CMI8738-MC8.conf ENS1370.conf FWSpeakers.conf ICE1712.conf Loopback.conf PMacToonie.conf SI7018.conf VIA8233A.conf YMF744.conf vc4-hdmi.conf
18:25
<
f_ >
Checking the kernel config, I see:
18:25
<
f_ >
videostrong-kii-pro:~$ zcat /proc/config.gz | grep -e CONFIG_SND_MESON_AIU= -e CONFIG_SND_MESON_CARD_UTILS= -e CONFIG_SND_MESON_CODEC_GLUE= -e CONFIG_SND_MESON_GX_SOUND_CARD= -e CONFIG_SND_SOC= -e CONFIG_SND_PCM_IEC958= -e CONFIG_SND_SOC_MESON_T9015= -e CONFIG_SND_SOC_HDMI_CODEC=
18:25
<
f_ >
-e CONFIG_DRM_MESON_DW_HDMI=
18:25
<
f_ >
CONFIG_DRM_MESON_DW_HDMI=y
18:25
<
f_ >
CONFIG_SND_PCM_IEC958=y
18:26
<
f_ >
CONFIG_SND_SOC=y
18:26
<
f_ >
CONFIG_SND_MESON_AIU=y
18:26
<
f_ >
CONFIG_SND_MESON_CARD_UTILS=y
18:26
<
f_ >
CONFIG_SND_MESON_CODEC_GLUE=y
18:26
<
f_ >
CONFIG_SND_MESON_GX_SOUND_CARD=y
18:26
<
f_ >
CONFIG_SND_SOC_MESON_T9015=y
18:26
<
f_ >
CONFIG_SND_SOC_HDMI_CODEC=y
18:26
<
f_ >
They're all enabled.
18:26
<
chewitt >
lsmod? .. no need to paste all here (will annoy people)
18:27
<
f_ >
I generally paste only stuff that's only a few lines long.
18:27
<
f_ >
In other cases, I use my pastebin service.
18:27
<
chewitt >
ahh.. they're all built-in so won't show anyway
18:28
* f_
has an alias called /shrug
18:28
<
chewitt >
I switched laptop recently.. looks like I didn't put that one back yet
18:29
<
f_ >
>dw_hdmi_i2s_audio 16384 0
18:29
<
f_ >
chewitt: Sure.
18:30
<
chewitt >
remind me again.. what board are you using?
18:31
<
f_ >
A GXBB KII Pro.
18:31
<
f_ >
You told me it uses the GX sound card, right?
18:32
<
chewitt >
and I found the issue I think .. sec
18:34
naoki has joined #linux-amlogic
18:38
<
chewitt >
the err obvious schoolboy error is .. no sound node in the dts
18:38
<
chewitt >
hence the card is never probed
18:38
Ballerburg9005 has quit [Ping timeout: 260 seconds]
18:41
<
chewitt >
I'm off to bed, but, I'll check for messages in the morning
18:41
<
chewitt >
I've assumed the box has S/PDIF outputs?
18:42
<
chewitt >
If yes, then as long as that patch works, I'll send some changes upstream to cleanup the current dts then add the missing node
18:42
<
chewitt >
I suspect BT won't work currently as it's missing the reset GPIO details
18:42
<
f_ >
You're right. It doesn't.
18:44
<
chewitt >
copy/paste that in (updating the current) and test
18:44
<
chewitt >
leave feedback
18:45
Ballerburg9005 has joined #linux-amlogic
18:51
<
f_ >
chewitt: Sure.
18:53
<
f_ >
I'll first try getting sound to work, then I can work on BT.
18:53
<
f_ >
Strangely enough, it did seem to work on Manjaro and Armbian...
19:37
naoki has quit [Quit: naoki]
19:40
f_ has quit [Ping timeout: 252 seconds]
20:00
vagrantc has joined #linux-amlogic
20:31
Lyude has quit [Read error: Connection reset by peer]
20:31
Lyude has joined #linux-amlogic
21:09
Ballerburg9005 has quit [Ping timeout: 260 seconds]
21:22
JohnnyonFlame has joined #linux-amlogic
21:48
Ballerburg9005 has joined #linux-amlogic
22:16
Lyude has quit [Quit: Bouncer restarting]
22:37
vagrantc has quit [Quit: leaving]
22:38
naoki has joined #linux-amlogic
23:26
Lyude has joined #linux-amlogic