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
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC>
[Discord] <zeeto9> while its not yet included or available in the 6.10rc7 that I have, its definitely on its way. The one thing I am unsure of is if this still applies to an orange pi 5 plus, since its specifically tested for rock5b, they are both rk3588, but im unsure if thats enough for it to still apply or if orange pi would need additional modifications.
<DC-IRC>
[Discord] <zeeto9> the rk3588-collabora.config even looks to have a place for it: #
<DC-IRC>
[Discord] <zeeto9> # Sunxi media platform drivers
<DC-IRC>
[Discord] <zeeto9> #
<DC-IRC>
[Discord] <zeeto9> # CONFIG_VIDEO_SYNOPSYS_HDMIRX is not set
<DC-IRC>
[Discord] <zeeto9> the rk3588-collabora.config even looks to have a place for it: #
<DC-IRC>
[Discord] <zeeto9> # Sunxi media platform drivers
<DC-IRC>
[Discord] <zeeto9> #
<DC-IRC>
[Discord] <zeeto9> # CONFIG_VIDEO_SYNOPSYS_HDMIRX is not set
<DC-IRC>
[Discord] <zeeto9> After working from downloading armbian edge 6.10, then switching kernel to collabora 6.9, I loose all gui, but can still remote in, but now the interesting thing is this is the first time hdmrx shows up, but as far as I can tell, collabora 6.9 does not currently have overlay support, preventing me from even attempting a test. 😅 I’m going to switch it to nightly build update <clipped message>
<DC-IRC>
[Discord] <zeeto9> and roll the dice to see what happens. 🤷♂️
<DC-IRC>
[Discord] <zeeto9> Armbian 6.10rc7 which I also tested from my build appears to have some issues with hui hdmi out. I didn’t get a chance to do any digging since I couldn’t even ssh in.
<DC-IRC>
[Discord] <beohoff3174> How hard is it to apply patches to the edge kernel to pull in the collabora functionality that hasn't landed in mainline yet?
<DC-IRC>
[Discord] <beohoff3174> So if I'm understanding the directory correctly, if I wanted to add patches to the current edge kernel, it looks like I would need to drop them in this directory: `build/patch/kernel/archive/rockchip-rk3588-6.10`
<DC-IRC>
[Discord] <hewlettpackardlovecraft> dumb question - is it only the desktop images that include trunk MESA / VPU?
<DC-IRC>
[Discord] <zeeto9> Forgot to mention, moving to nightly build/unstable for 6.10rc7 brought back hdmi tx functionality. Even though tx isn’t included, this nightly seems to be in the best place (for me)
<DC-IRC>
[Discord] <zeeto9> Forgot to mention, moving to nightly build/unstable for 6.10rc7 brought back hdmi tx functionality. Even though rx isn’t included, this nightly seems to be in the best place (for me)
<DC-IRC>
[Discord] <beohoff3174> r.10.0 works with hdmi out, but you'd have to pull in the pr from paolosabatino
<DC-IRC>
[Discord] <zeeto9> Currently on nightly and just upgraded to (24.8.0-trunk.429) on 6.10rc7 and my hdmi out is working as well.
<DC-IRC>
[Discord] <zeeto9> When you say r6.10.0, do you mean the full release of 6.10 (think it was last week it went out)?
<DC-IRC>
[Discord] <zeeto9> Currently on nightly and just upgraded to (24.8.0-trunk.429) on 6.10rc7 and my hdmi out is working as well.
<DC-IRC>
[Discord] <zeeto9> When you say r6.10.0, do you mean the full release of 6.10 (think it was last week it went out)?
<DC-IRC>
[Discord] <beohoff3174> yep
<DC-IRC>
[Discord] <beohoff3174> Are you compililng nightly? or downloading it?
<DC-IRC>
[Discord] <beohoff3174> yep, or at least that is my understanding
<DC-IRC>
[Discord] <zeeto9> I took a roundabout process. Building 6.10rc7 had display issues with hdmi tx (I decided not to pull out uart and debug further). I wanted to verify if any worked properly, so I downloaded 6.10rc4, switched to nightly that brought me up to 6.10rc7.
<DC-IRC>
[Discord] <zeeto9> When I attempted switching to collabora kernel (from armbian config) the hdmi tx wasn’t working, but headless was fine. In this situation, hdmi rx still isn’t recognized, but it did include the in the works hdmirx device.
<DC-IRC>
[Discord] <zeeto9> My next steps are reading in depth on patching device driver for hdmirx and all the various locations that are affected. From there, I’m going to use collabora hdmirx info and update/modify if need be for orange pi 5 plus. Then, this is where I’m hoping to be back to building it with the patch(s) and likely will spend a lot of time with my tty/uart cable figuring out what I did wrong. 😅
<DC-IRC>
[Discord] <zeeto9> Also, for anyone following along, any suggestions are absolutely welcome. I’m stumbling my way around and hoping I’m going down the right path.
<DC-IRC>
[Discord] <beohoff3174> I'm basically doing the same thing, can't wait anymore for this to land in mainline
<DC-IRC>
[Discord] <beohoff3174> @zeeto9 , this is what I came up with for patches:
<DC-IRC>
[Discord] <zeeto9> wow, you are fast, im only now pulling the collabora kernel to look through the patches. 😅
<DC-IRC>
[Discord] <beohoff3174> haha, yeah "fast"..... I've been working on this since like 9 AM
<DC-IRC>
[Discord] <beohoff3174> would be interesting if you took a swing at it as well and see what you come up with
<DC-IRC>
[Discord] <beohoff3174> the latest patch from Collabora builds on a patch that didn't land in 6.10
<DC-IRC>
[Discord] <zeeto9> i looked through yours, but I am going to see what I come up myself. compare and contrast, see what I missed, and gain some knowledge. but hopefully ill have something in a couple hours
<DC-IRC>
[Discord] <beohoff3174> And clicked the "series" button in the top right. I'm sure there's a cleaner way to get a diff set from the mailing lists, but I didn't know one
<DC-IRC>
[Discord] <beohoff3174> Looks like I didn't get it all the way figured out:
<DC-IRC>
[Discord] <beohoff3174> Not seeing hdmi-in on v4l2
<DC-IRC>
[Discord] <zeeto9> i have been using https://lwn.net/ml/all/search searching on hdmi rx rk3588 and sorting by date. as far as I can tell, this is going to touch a few parts of the system when fully patched
<DC-IRC>
[Discord] <beohoff3174> I did not, and I'd have to dig a bit to understand what that means. I just realized that I hadn't added the config to build the module which I have edited in
<DC-IRC>
[Discord] <beohoff3174> `config/kernel/linux-rockchip-rk3588-6.10.config` to the following setting:
<DC-IRC>
[Discord] <zeeto9> their "Notes for Rockchip 3588" has good stuff in it. Reading through "Current kernel mainline support", it lists all the features and at which branch they first introduced. HDMI Input
<DC-IRC>
[Discord] <zeeto9> drivers/media/platform/synopsys/Makefile | 2 + ...... ETC.... but its useful because it points of several of the things that will need to be taken care
<DC-IRC>
[Discord] <zeeto9> such as, just enabling an hdmi rx dts isnt enough, things like gpio pins need to also be resolved so they are not left open as if available
<DC-IRC>
[Discord] <zeeto9> I believe this is THE patch to be starting from
<DC-IRC>
[Discord] <beohoff3174> yep, that's the one I pulled from
<DC-IRC>
[Discord] <beohoff3174> @efectn , if you add the following two "functions" to rk3588.dtsi:
<DC-IRC>
[Discord] <beohoff3174> I guess I'm wondering if the pins are going to be correctly defined, or if I need to go trace them from the OrangePi5 plus documentation
<DC-IRC>
[Discord] <beohoff3174> Thank you for the pointers!
<DC-IRC>
[Discord] <zeeto9> even though we have some ways to go, I am exciting at the steps we are taking.
<DC-IRC>
[Discord] <zeeto9> does this process sound like the approach to applying patches that are only in the email list back down to armbian? if I clone mainline linux 6.10, grab the .mbox mailing list file, I think I can then apply with git-am (git-am - Apply a series of patches from a mailbox) to my mainline branch (forked), commit, create a patch from those changes, and then bring into armbian?
<DC-IRC>
[Discord] <zeeto9> there are plenty of steps left out and I dont even know of yet, I mainly am hoping someone can give me advice if this is the normal process someone would use to apply patches from mailing list
<DC-IRC>
[Discord] <lanefu> @rpardini any tips? Ill have to dig into my notes but I believe we have some tooling to slurp an mbox file
<DC-IRC>
[Discord] <beohoff3174> I don't know why, but I'm still not seeing the device as an input
<DC-IRC>
[Discord] <beohoff3174> Yes, that sounds like the right process. There's a few changes from linux-next from linux 6.10 that you would need to either backport the changes or target the next version of linux. Specifically the signature of hdrmi_remove (int/void) and then the changes with ditsi file naming (https://lore.kernel.org/linux-rockchip/171891591943.88443.4575073298967084067.b4-ty@sntech.de/T/)
<DC-IRC>
[Discord] <beohoff3174> Well I say that... and it didn't work for me so....
<DC-IRC>
[Discord] <zeeto9> yea I bet there is a lot of stuff that helps streamline it, but its also good for me to know the various individual steps that an automated solution would do, so that I understand what actually is happening, otherwise it will be more "magic". plus understanding this, gets me more comfrotable with linux kernel all around. im learning so much the past few days
<DC-IRC>
[Discord] <zeeto9> this knowledge and ability to do all this will only become more useful (at least for me) as I get going. i have other boards and things I want to tackle in the future and inevitable boards will be shipped originally a little wacky, which is where this back porting will be invaluable. at least for me, on my long term goals.
<DC-IRC>
[Discord] <zeeto9> but first, patchv4 will be conquered. question. if one day in the future I actually contribute something and its accepted, do I print out that email thread and hang it on my wall? as if earning a first dollar for a business? because i totally would do that
<DC-IRC>
[Discord] <t1msu_87222> @beohoff3174 @zeeto9 So i got a bit further. I changed remove to remove_new and could successfully compile the kernel
<DC-IRC>
[Discord] <t1msu_87222> [ 5.934488] snps_hdmirx fdee0000.hdmi_receiver: error -EINVAL: failed to get hdmirx-5v irq
<DC-IRC>
[Discord] <t1msu_87222> [ 5.934529] snps_hdmirx fdee0000.hdmi_receiver: probe with driver snps_hdmirx failed with error -22
<DC-IRC>
[Discord] <t1msu_87222> ```
<DC-IRC>
[Discord] <beohoff3174> Do it for sure! Can't remember what my first open source contribution was that got accepted, but I do remember checking it everyday even though it was super minor
<DC-IRC>
[Discord] <beohoff3174> I'm super jealous that you were able to get something in dmesg!
<DC-IRC>
[Discord] <beohoff3174> What hardware are you on? I sort of assumed that the pins might need to be defined/set for each board, but I haven't dug into that yet
<DC-IRC>
[Discord] <beohoff3174> Do it for sure! Can't remember what my first open source contribution was that got accepted, but I do remember checking it everyday to see if it had gotten merged even though it was super minor
<DC-IRC>
[Discord] <t1msu_87222> So using this overlay I don't get the error message anymore:
<DC-IRC>
[Discord] <beohoff3174> That's probably what I'll be trying next
<DC-IRC>
[Discord] <efectn> I think you need hdmirx-5v-detection property in hdmirx node
<DC-IRC>
[Discord] <efectn> I think you need to define hdmirx-5v-detection property in hdmirx node
<DC-IRC>
[Discord] <t1msu_87222> Using `dtc -I fs /sys/firmware/devicetree/base` you can look at your current device tree. For some reason my hdmi-receiver-cma node is still disabled
<DC-IRC>
[Discord] <t1msu_87222> I did that correct in my paste, right?
<DC-IRC>
[Discord] <zeeto9> Wish I had started here. All in one place, organized, and out of mbox format
<DC-IRC>
[Discord] <zeeto9> Alright, I’m realizing much of the stuff I have posted, is the same thing, but provided through various mechanisms. Mail lists, patchwork, lore for more in depth. And it looks like patchv4 4/4 has commits today