lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
PhotoJim_ has quit [Ping timeout: 265 seconds]
<DC-IRC>
[Discord] <tyro_noob> Anyone know if there is an image for pro with spi and i2. In armbian-config? Thanks
PhotoJim_ has joined #armbian-rockchip
<DC-IRC>
[Discord] <superkali> Hello,someone with orange pi 5 plus or similar with ES8388 audio card, on kernel 6.10/6.11 have issue on output audio?
<DC-IRC>
[Discord] <dams0869> Hi, for the voltage it's 20V 1.5A, it's almost certain that a 12V power supply should solve this problem but I don't have that available. It's still strange this mainline / vendor difference to manage the electrical power.
<DC-IRC>
[Discord] <dams0869> If it doesn't come from the u-boot I wonder where it comes from...
<DC-IRC>
[Discord] <dams0869> And why does it stay in "memory" if I don't completely turn off the card?
<DC-IRC>
[Discord] <beohoff3174> what issue are you having? I can test mine later today and let you know
<DC-IRC>
[Discord] <superkali> No audio and no hdmi audio
<DC-IRC>
[Discord] <superkali> No audio on jack and no hdmi audio
<DC-IRC>
[Discord] <superkali> only with 6.10/6.11
<DC-IRC>
[Discord] <beohoff3174> Hdmi audio in, or hdmi audio out?
<DC-IRC>
[Discord] <beohoff3174> Because I'm pretty sure that mainline doesn't have hdmi audio in
<DC-IRC>
[Discord] <beohoff3174> Hmm, well I think I have the same issue as you
<DC-IRC>
[Discord] <beohoff3174> It looks like alsa can see the es8328 device, but a simple speaker test wasn't getting any sound output for me
<DC-IRC>
[Discord] <beohoff3174> I have pipewire and have some custom logic setup to pipe the audio though
<DC-IRC>
[Discord] <beohoff3174> but it doesn't look like pipewire can see the alsa device? Let me dig through some of the logic that I have to route the audio in pipewire to see if I can understand how I was doing that and see if there was a regression.
<DC-IRC>
[Discord] <beohoff3174> I'll do it in a few hours after a few cups of coffee
<DC-IRC>
[Discord] <beohoff3174> Nevermind, it was easier than I was expecting.
<DC-IRC>
[Discord] <beohoff3174> But, with `pw-cli list-objects` I used to be filtering for `node.name = "alsa_output.platform-es8388-sound.stereo-fallback"` , and that is no longer working for me
<DC-IRC>
[Discord] <beohoff3174> I'm on a self compiled version `Armbian-unofficial 24.8.0-trunk Noble with bleeding edge Linux 6.10.0-edge-rockchip-rk3588`
<DC-IRC>
[Discord] <beohoff3174> I want to say that I did most of my audio development on 6.10 release candidate 4?
<DC-IRC>
[Discord] <beohoff3174> I'm neck deep in monitor management right now, but if I get stuck I'll try to look into this a bit as I'll need it for my project
<DC-IRC>
[Discord] <beohoff3174> I'm on a self compiled version `Armbian-unofficial 24.8.0-trunk Noble with bleeding edge Linux 6.10.0-edge-rockchip-rk3588`
<DC-IRC>
[Discord] <beohoff3174> I want to say that I did most of my audio development on 6.10 release candidate 4? Maybe something changed between rc4 and the .0 release which came later
<DC-IRC>
[Discord] <beohoff3174> I'm neck deep in monitor management right now, but if I get stuck I'll try to look into this a bit as I'll need it for my project
<DC-IRC>
[Discord] <beohoff3174> Nevermind, it was easier than I was expecting.
<DC-IRC>
[Discord] <beohoff3174> But, with `pw-cli list-objects` I used to be filtering for `node.name = "alsa_output.platform-es8388-sound.stereo-fallback"` , and that is no longer working for me, suggesting that for whatever reason, pipewire isn't picking this up as an audio node
<DC-IRC>
[Discord] <johnthecoolingfan> What if Bigtreetech only provides 4.19 kernel images because they couldn't get 6.6 to work?.. I've been assuming that the 6.6 device tree must be correct.
<DC-IRC>
[Discord] <johnthecoolingfan> What if Bigtreetech only provides 4.19 kernel images for CB2 because they couldn't get 6.6 to work?.. I've been assuming that the 6.6 device tree must be correct.
<DC-IRC>
[Discord] <superkali> i talking about the output
<DC-IRC>
[Discord] <superkali> so you're confirming that on kernel 6.10 on orange pi 5 plus you have no sound from es8388 and hdmi
<DC-IRC>
[Discord] <superkali> because I've been working on it for days and I can't figure out what the problem is
<DC-IRC>
[Discord] <superkali> so you're confirming that on kernel 6.10 on orange pi 5 plus or similar you have no sound from es8388 and hdmi
<DC-IRC>
[Discord] <beohoff3174> yeah not working for me on orange pi 5 plus
<DC-IRC>
[Discord] <superkali> this is not a collabora kernel? it is related with mainline kernel?
<DC-IRC>
[Discord] <superkali> oh, i lose a lot of my time for nothing... lol
<DC-IRC>
[Discord] <beohoff3174> I haven't checked hdmi
<DC-IRC>
[Discord] <beohoff3174> My guess is that if pipewire is reporting the node, that it's not being correctly setup as an alsa device
<DC-IRC>
[Discord] <beohoff3174> My guess is that if pipewire isn't reporting the node, that it's not being correctly setup as an alsa device
<DC-IRC>
[Discord] <efectn> HDMI output audio is not support
<DC-IRC>
[Discord] <efectn> HDMI output audio is not supported
<DC-IRC>
[Discord] <efectn> Yes it is
<DC-IRC>
[Discord] <efectn> sorry for the delay. are there any progress? i was busy
<DC-IRC>
[Discord] <efectn> sorry for the delay. are there any progress? i was busy with other stuff
<DC-IRC>
[Discord] <ddeath5421> No worries, I have no expectations 😄 I did not make any progress on it :/
<DC-IRC>
[Discord] <zeeto9> Forgive me if this is a dumb question, but I’m not sure on whether my idea is technically feasible and more specifically doable for myself.
<DC-IRC>
[Discord] <zeeto9> I have orange pi 5 plus. This has a USB Type C 3.0 port. I see armbian has options for “OTG”/“gadget” mode for usb. Is this applied per usb port, usb hub? Or how do I apply it the USB Type C?
<DC-IRC>
[Discord] <zeeto9> The reason I want to do this is to utilize my orange pi 5 plus as an external ssd over type c to the nvme but allow other processes to occur in the background.
<DC-IRC>
[Discord] <zeeto9> A very simple workflow would look like this. Connect camera to orange pi 5 plus over usb type c port (as I do with a Samsung T7 SSD currently). The camera records the video directly to the orange pi 5 plus nvme. For simplicity, we will say I record in “clips”. Once one clip is finished, it can be processed, while the next clip is recorded.
<DC-IRC>
[Discord] <zeeto9> Any thoughts on this? Is this even a feasible idea as far as how usb “OTG”/“gadget” mode should be able to work?
<DC-IRC>
[Discord] <zeeto9> Thank you for any help or suggestions. I don’t want to spend 50+ hours on something to find out it’s “not possible”
<DC-IRC>
[Discord] <runaway97> i dont know the specifics related to armbian but it's certainly possible to use the USB-C port in device mode
<DC-IRC>
[Discord] <beohoff3174> i can send you some code for h
<DC-IRC>
[Discord] <beohoff3174> *this
<DC-IRC>
[Discord] <runaway97> linux has drivers that can configure the port to act as various devices. mass-storage, ethernet, camera etc
<DC-IRC>
[Discord] <beohoff3174> i did it with the audio endpoints
<DC-IRC>
[Discord] <beohoff3174> i think i explored using the usb interface for mass storage, but as it wasnt crucial to my use case i stopped
<DC-IRC>
[Discord] <zeeto9> Yea, I’d be happy to look over any examples of something similar. I was confused with whether being in device/gadget mode would be mean I am limited in other system functionality. Being able to run background services or remote in over ssh would be needed.
<DC-IRC>
[Discord] <beohoff3174> Its a bit different
<DC-IRC>
[Discord] <beohoff3174> you end up creating directories that define the capability
<DC-IRC>
[Discord] <beohoff3174> mine is a bash script that creates the directories in the right spot
<DC-IRC>
[Discord] <beohoff3174> I run it on startup with a systemd script
<DC-IRC>
[Discord] <beohoff3174> ill get it to ya in the next hour, have my hands too full for copy and paste
<DC-IRC>
[Discord] <beohoff3174> chatgpt is like 6.5/10 at this task if you are impatient
<DC-IRC>
[Discord] <runaway97> if i got this clear, you want the opi board to share the same SSD between opi and your PC?
<DC-IRC>
[Discord] <zeeto9> I’m not impatient. It’s not critical for my application at the moment since I am working manually, but I know it will take time to get working, so starting to look at it now will help.
<DC-IRC>
[Discord] <zeeto9> This specific setup would be, Blackmagic camera pocket cinema 6k pro recording over usb type c to the orange pi 5 plus in gadget mode to the device nvme (OS runs on eMMC). From there as clips are saved, the orange pi can either do its own processing or send it along to another server. It’s about making a single external SSD accomplish the same write mode as when it’s connecte <clipped message>
<DC-IRC>
[Discord] <zeeto9> d to the camera while allowing for reading of individual clips from the same storage
<DC-IRC>
[Discord] <runaway97> i dont think plain mass-storage would work in this case, as its essentially a pass-through of the whole drive
<DC-IRC>
[Discord] <runaway97> it will be hidden from linux and only visible on your PC
<DC-IRC>
[Discord] <beohoff3174> did you get hdmi in working? I found out hot plug detection of an hdmi cable into the input doesnt work which is crucial for my use case
<DC-IRC>
[Discord] <beohoff3174> that is so badass!
<DC-IRC>
[Discord] <zeeto9> Those pictures are my current setup with raspberry pi 5. But I want to use the orange pi as the external ssd that my Blackmagic camera would normally record Braw video to. Which I think is just fat32
<DC-IRC>
[Discord] <zeeto9> Also orange pi 5 plus can process real time video. Bother sbc devices are great, but in their own ways
<DC-IRC>
[Discord] <zeeto9> Also orange pi 5 plus can process real time video. Both sbc devices are great, but in their own ways
<DC-IRC>
[Discord] <zeeto9> I still use hdmi in for computer vision and other quick setups, but as my projects are progressing further, the inconsistency with the hdmi in drivers and lack of options, I’m moving away from it for the real world usage projects
<DC-IRC>
[Discord] <beohoff3174> Ive got some v4l2 c++ code that i could clean up and send to you
<DC-IRC>
[Discord] <beohoff3174> It took me a long time to figure out how to interface with it
<DC-IRC>
[Discord] <beohoff3174> if you want it
<DC-IRC>
[Discord] <zeeto9> Yea, I’ll look over anything sent my way. Thanks for the help
<DC-IRC>
[Discord] <beohoff3174> you'll have to change the directory that you put the script in
<DC-IRC>
[Discord] <beohoff3174> for the systemd script
<DC-IRC>
[Discord] <beohoff3174> and ignore the "up" command in the ExecStart line as well
<DC-IRC>
[Discord] <beohoff3174> for your gadget script, likely lines 1-29 & 49-50 will also be in your script, as it'll be close to the same for every usb gadget
<DC-IRC>
[Discord] <beohoff3174> the cable physical interface is the usb-c one, but NOT the power usb one
<DC-IRC>
[Discord] <beohoff3174> it looks like you'll use a `mass_storage` function/directory to do what you need
<DC-IRC>
[Discord] <beohoff3174> This is how to call v4l2 for hdmi in. Sorry for the weird formatting, I sort of ripped this out of the project messily: https://pastebin.com/S1DKTcsy
<DC-IRC>
[Discord] <beohoff3174> For my use case, since I wanted to pump this back into the graphics, I exported it as a DMA buffer, where you would probably normally want to pass it to the cpu and map the memory using something like mmap.
<DC-IRC>
[Discord] <beohoff3174> so feel free to ignore the code that involves: ` struct v4l2_exportbuffer expbuf'`
<DC-IRC>
[Discord] <beohoff3174> my code is also Qt based, I tried to rip that out but I did it quickly so some Qt classes might have snuck in there
<DC-IRC>
[Discord] <beohoff3174> I usually put systemd scripts in `/etc/systemd/system`, the name of this on my system is `usbgadget.service` and scripts can be triggered to run on startup by running `systemctl enable usbgadget.service` , or whatever you name your file to be
<DC-IRC>
[Discord] <beohoff3174> I usually put systemd scripts in `/etc/systemd/system`, the name of this on my system is `usbgadget.service` and scripts can be triggered to run on startup by running `sudo systemctl enable usbgadget.service` , or whatever you name your file to be