libera/#devuan-arm/ Monday, 2025-03-31

gnarfacehey agneli know anything about steam links?14:59
gnarfacei backburnered the optimus tablet thing for high difficulty level combined with low practical usefulness (i never go anywhere)15:00
gnarfaceso now i'm trying to send audio to a steam link without pulseaudio instead15:00
gnarfacei just barely managed to debootstrap devuan ascii to a usb key and load it up, but i'm running into a wall with lack of alsa or oss in their stock kernel, wondering if there's an easier way out of that than using kexec to sideload my own kernel15:01
gnarfacenot really a devuan question sorry, just thought you might know something about their stock software15:02
gnarface(like maybe a command-line binary they've got hidden in there i can use in place of "aplay")15:02
agnelii usually just compile my own kernel17:57
agnelidebootstrap the os17:58
agnelicompile the kernel17:58
agnelii am not sure I understand17:59
agneliyou have some device - I assume it is this optimus tablet18:00
agnelihttps://en.wikipedia.org/wiki/LG_Optimus_Pad18:00
agnelithis one?18:00
agneliand u managed to install linux on it from some binary distribution18:00
agneliis that correct?18:00
agnelibut apparently distribution does not have the modules you need?18:01
agnelithere should be a config* file in /boot no?18:01
agnelior is this distro using some android bootloader?18:02
gnarfaceagneli: no you're confusing my statement. forget the tablet. i'm trying to do something with a Valve Steam Link now18:02
agnelithen it is possible to extract the config18:02
agnelihttps://store.steampowered.com/app/353380/Steam_Link/18:02
gnarfaceyea, that thing18:02
agnelithis one?18:02
agneliand that app is where?18:03
gnarfaceit is hardware18:03
agneliach this is some device OK18:03
gnarfacebut it's running some stripped down linux18:03
agneliOK18:03
gnarfaceno alsa or oss in kernel18:03
gnarfacebasically i was wondering if you happened to know some low-level way to play audio without alsa or oss in the kernel18:03
agneliand you want this device to do what exactly please?18:04
gnarfacebasically i just want it to accept a raw pcm audio stream instead of needing the host system to have pulseaudio18:04
gnarfaceactually i can get it to accept the stream over the network, i just can't get figure out how to make it play the stream18:05
agneliwhat do you mean by it exactly?18:05
agneliwhat process on your device accepts this stream you send?18:05
gnarfacenc -l -p 8000 -u |...18:06
agneliok18:06
gnarfacei would do: nc -l -p 8000 -u |aplay --buffer-time=5000018:06
agnelihttps://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture#/media/File:Linux_API.svg18:06
gnarfacebut it has no alsa18:06
gnarfaceno ALSA or OSS in kernel, yet somehow it plays audio18:07
gnarfaceand i can't figure out what it's using18:07
agneliwhat makes you think there is no ALSA gnarface, please?18:07
gnarfacei checked /proc/config.gz18:07
gnarfacealso lsmod18:07
agnelicould you paste it somewhere?18:07
gnarfacealso, i debootstrapped devuan, and tried "nc -l -p 8000 -u |aplay --buffer-time=50000" which confirmed no alsa18:08
gnarfacestand by i'll boot it up...18:08
agneliyou debootstraped devuan - OK, but you still used the old kernel?18:08
gnarfaceyea, kept its old kernel, and debootstrapped ascii because i figured everything else would be too new for the libc version18:14
agnelido you have /dev/snd ?18:15
agneliI want config*, lsmod, and listing of /dev/snd18:16
agnelii am curious18:16
agneli:)18:16
gnarfacehere's the contents of /proc/config.gz: https://paste.debian.net/1366709/18:16
gnarfacehere is the output of lsmod: https://paste.debian.net/1366710/18:17
gnarfacethe only thing in /dev/snd is this: crw-------    1 root     root      116,  33 Dec 31  1969 timer18:17
agneliman18:18
agneliu sure u do not have ALSA?18:18
agnelihttps://www.kernelconfig.io/config_snd18:18
gnarfacei admit the timer is suspicious... but aplay -l and arecord -l show now devices18:18
agneliur paste, line 1377 says: CONFIG_SND=y18:18
gnarfaceyea but what sound? is it something entirely proprietary or just something i never heard of?18:19
gnarfacei can't pipe raw audio to /dev/snd/timer can it?18:19
agneliyou do not have any pcm* in the /dev/snd?18:19
gnarfacenothing, just that timer node18:20
gnarfacehere's the output of pstree: https://paste.debian.net/1366711/18:20
gnarface(it's running busybox so the ps binary doesn't support "--forest")18:20
agnelidrivers you have probably =y18:20
gnarfaceanyway, in theory i can use their sdk to build a kernel with alsa then kexec over to it after boot, i've read that works, but i'm just wondering if that's really the easiest solution18:21
agnelithat is definitely not the easiest solution :)18:21
gnarfaceif one of these /dev/ nodes was something i could pipe raw audio to that would solve the problem, then i could just pipe audio over netcat like i'm currently doing with the raspberry pi18:21
agneliwhat audio chip that device uses?18:22
agneliis there dtbs for that device somewhere?18:22
gnarfaceif there is, i can't find it18:22
gnarfacecould be in the sdk somewhere though, i haven't dug much into that yet18:23
agnelido you have SYstem.map file /boot18:23
gnarfacei don't even have /boot18:24
gnarfacetrying to figure out what the sound card is18:24
agneliwhat is your partition layout?18:24
agneliandrioid?18:25
gnarfaceno, it's clearly some stripped down linux install18:25
gnarfacea mess of read-only mtd devices overlayed with tiny unionfs ramdisks18:25
agneliwell android is linux18:25
gnarfacehere, the output of df -h: https://paste.debian.net/1366712/18:25
gnarfacethey do distribute an app version of this device now, but i think it's only for rpi418:26
agneliit looks like some of that kind...18:26
agnelii think it would be nice to understand what sound chip is there18:28
gnarfacei can't find any specs that mention the audio device, but wikipedia says it's a Marvell DE3005-A1 SoC18:28
agneliis that SoC supported by linux kernel?18:28
gnarfaceARMv7 with hard-float and Neon18:29
agneliI mean mainline kernel18:29
gnarfaceyears ago when they were fairly new i think someone told me they managed to kexec a mainline kernel18:29
gnarfacethat was what i was gonna try next (well, devuan kernel built from debian source package anyway)18:30
gnarfaceValve's instructions warn you that if you try to actually replace the kernel with one not signed by Valve though, it'll brick the device18:30
gnarfacetheir SDK supposedly should let me rebuild their kernel source too though18:30
agnelihttps://forum.openwrt.org/t/steam-link-as-a-nas/8147/1118:31
gnarfaceit's a huge pain in the ass because the thing runs too old of a version of ext4 to even trade disks with my desktop, it has only 256MB of ram and 0 swap so i'll have to set up a bunch of NFS stuff first18:31
agnelilocked bootloader18:32
gnarfaceyea, so kexec would be the only option18:32
agnelithrow it to the trash where it truly belongs and get some old apple device :)18:33
gnarfacehahah18:33
agnelimainline gets more and more support for these18:33
agneliipad or something18:33
agnelino18:33
agneliipod18:33
agnelithat is the name18:33
gnarfacei got it on sale for $518:34
gnarfacetough to beat the price18:34
agnelithen use that arch script18:34
agneli:)18:34
gnarfacehah18:34
gnarfaceit might come to that18:34
gnarfacei was just thinking there's gotta be some way to just pipe raw audio into it somewhere without changing kernels, if i could just figure out how...18:34
agneliseems very easy18:34
agneliit seems they have some custom driver fro sound18:35
gnarface# cat /proc/asound/cards18:35
gnarface--- no soundcards ---18:35
gnarfacebut...18:35
gnarface# cat /proc/asound/version18:35
gnarfaceAdvanced Linux Sound Architecture Driver Version k3.8.13-mrvl.18:35
agnelidevice file can be anywhere18:35
gnarfacehmmm...18:36
agneliI told you it has alsa18:36
gnarfaceso just some proprietary closed fork of alsa missing half the interface?18:36
agnelimaybe they created some other interface or something18:37
gnarfaceany of these look like a soundcard to you? https://paste.debian.net/1366716/18:37
agnelior put hte device file somewhere else18:37
gnarfacehmm18:37
agnelidoes lpci or lsusb say something?18:38
gnarfacelspci says: lspci: /sys/bus/pci/devices: No such file or directory18:38
gnarfacelsusb just says:18:39
agneliok no pci on that chip18:39
gnarfaceBus 001 Device 002: ID 0424:251418:39
gnarfaceBus 001 Device 001: ID 1d6b:000218:39
gnarfaceBus 001 Device 003: ID 28de:114218:39
gnarfacejust those 318:39
agnelikernel 3.8.x18:39
agneliprobably no dtb there18:39
agnelieven if you could retrime android boot image18:39
agneliand unpack it18:39
agnelibut source code could tell something18:40
agnelii do not remember where the configs were at that time18:40
agnelibut they were in the kernel18:40
agneliI was fixing them for ac100 a bit18:40
agneliand what are those IDs?18:40
gnarfacedunno, assumed the mtd devices18:41
gnarfacei guess i could look that up...18:41
agnelithere are also other busses idk how to check18:41
agneliit can use SoC sound if there is any18:41
gnarfaceoh!18:42
gnarfacei think i have info18:42
agnelior it can have additional chip18:42
agneliexternal one18:42
gnarfaceseems like there's more modules statically compiled than shown18:42
gnarfacei just realized i can look in /sys18:42
gnarfaceone of these could be it, right? https://paste.debian.net/1366720/18:42
gnarfacei guess those could just be there to support plugged in devices though...18:43
gnarfaceit has like usb mic support and such18:43
agneliwell u hv pcm18:44
agneliand this is where my skills end gnarface18:45
agneliyou need somebody wiser18:45
gnarfaceit's ok18:46
gnarfacethanks for trying, you still gave me a couple other ideas18:46
gnarfacelooks like those 3 usb devices are 2 usb hubs and a hidden steam controller... which is weird18:47
gnarfacebut no sound card18:47
agneliok when it plays music18:48
agneliwith its native app18:48
agnelican you see what files it has open?18:48
agnelimaybe some sockets or something18:48
gnarfacehmm, if i could figure out which app that was maybe...18:48
agneliit has to be sending data to the device somehow18:48
agneliyou ereased the original sysop already?18:48
agnelino backup whatsoever?18:49
gnarfaceerased what now? no, i haven't erased anything... this is entirely stock except that i enabled ssh access18:49
gnarfaceand it's fully updated, according to its own interface18:49
gnarfaceit accepts audio fine if the host machine has pulseaudio running18:49
gnarfacei'm just trying to figure out how to ditch pulseaudio18:50
agneliw818:50
gnarfacei tried faking it with apulse, but apulse doesn't seem to support network streaming as far as i can tell18:50
agneliwhat you say you can send data to theis device from a host that runs pcaudio?18:51
agneliover WiFi I assume?18:51
gnarfaceit has wifi and regular ethernet, i'm using regular ethernet18:51
agneliwow18:52
agneli:)18:52
agnelicant you just run netstat and see what software receives data from your device?18:52
agnelinetstat -a -p --inet18:52
agneliI am not sure if busybox has all these switches18:52
gnarfacehmm, i would have to run that with a host that has pulseaudio?18:52
gnarfaceer, i would run that while a host that has pulseaudio is connected, right?18:53
agneliyou start playing the longest of your preffered songs18:53
gnarfacethe busybox versions of everything are fantastically useless, but i might be able to use the devaun version from a chroot18:53
agneliand while sound is playing you can see with netstat how the data is traveling over the LAN18:53
agneli-p whousl tell you which program uses which port18:53
gnarfacehmm... not a bad idea...18:54
agnelithen you coudl investigate further18:54
gnarfacealright, i'll try that18:56
gnarfacethanks18:56
agnelilet's see how it goes18:58
gnarfaceit'll take some time for me to get to it, the machine with pulseaudio is being used by someone else for work right now and i don't want to install it here18:59

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