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] <human_urostor> https://paste.armbian.eu/akefobokar
<DC-IRC> [Discord] <human_urostor> Building rtl8852bs with the vendor kernel seems to be failing, is this known?
<Werner> I only see amdgpu failing to build
<DC-IRC> [Discord] <igorpec> yeah, nothing related to this driver fails
<DC-IRC> [Discord] <human_urostor> Uhh, amdgpu again then. Got confused by the last message a bit
_whitelogger has joined #armbian-rockchip
<DC-IRC> [Discord] <human_urostor> I want to get an "Agent" to fix this (unlikely but hey, worth a try), but I'm not sure where the actual vendor kernel code that Armbian uses is. Armbian hides it in some dirs with root-only permissions, right?
<DC-IRC> [Discord] <Werner> https://github.com/armbian/linux-rockchip
<DC-IRC> [Discord] <human_urostor> OK, I can clone this etc, but then I'd have to cross-compile somehow? If not working on the SBC directly
<DC-IRC> [Discord] <Werner> If you want to modify the source and have these modifications built into, then use `kernel-patch`
<DC-IRC> [Discord] <Werner> `./compile.sh BOARD=asdf BRANCH=vendor kernel-patch`
<DC-IRC> [Discord] <human_urostor> Yup, I'm just wondering how to test the compilation
<DC-IRC> [Discord] <human_urostor> On x86
<DC-IRC> [Discord] <Werner> once `kernel-patch`is done you can move the created patch file into the equivalent _userpatches_ directory and do a normal compilation. The custom patch should be included in the output. Check log if in doubt.
<DC-IRC> [Discord] <human_urostor> I appreciate your help, but my question is different - how to modify the kernel source and test-compile on x86. I can either clone this repository (https://github.com/armbian/linux-rockchip) and cross-compile (not sure how) or clone armbian/build and modify the source there (but the source has root access permissions so any GUI would shout at me about not being able to modify anything)
<DC-IRC> [Discord] <human_urostor> I appreciate your help, but my question is different - how to modify the kernel source and test-compile on x86. I can either clone this repository (https://github.com/armbian/linux-rockchip) and cross-compile (not sure how) or clone armbian/build and modify the source there (but the source has root access permissions so vscode would shout at me about not being able to modify anything)
<DC-IRC> [Discord] <human_urostor> Or maybe I'll chown recursively as my user, then back before running armbian build
<DC-IRC> [Discord] <Werner> I don't know how to cross compile without framework and modifying the locally cached source in _cache_ directory doesn't work because sources are always cleaned up before attempting a build with the framework. This is why I suggested the `kernel-patch` route.
<DC-IRC> [Discord] <human_urostor> Yes, I want to use `kernel-patch` but I'd have to know the patch first...
<DC-IRC> [Discord] <human_urostor> Yes, I want to use `kernel-patch` but I'd have to know the patch (generate the edits) first...
<DC-IRC> [Discord] <Werner> You can try to experiment with `CLEAN_LEVEL` to prevent modifications in cached sources from being purged before building. Maybe this helps.
<DC-IRC> [Discord] <human_urostor> I can, still this is not what I was asking about 😂 will try, have a good day man
<DC-IRC> [Discord] <human_urostor> https://paste.armbian.eu/ojuwukadet.rust I temporarily changed the permissions to my account inside the driver dir, this is the fix the agent came up with. Now I should revert the permissions and do kernel-patch, right?
<DC-IRC> [Discord] <human_urostor> "no changes detected" 🧐
<DC-IRC> [Discord] <human_urostor> oh right, I need to make the changes *after* invoking kernel-patch
<DC-IRC> [Discord] <human_urostor> oh right, I need to make the changes *after* invoking kernel-patch while it is running
<DC-IRC> [Discord] <Werner> Yes. It will then compare before and after and generate a patch file from diff
<DC-IRC> [Discord] <human_urostor> now how do I revert this. Maybe i will get the raw file from the github
<DC-IRC> [Discord] <Werner> Just start another build (without the generated patch present in userpatches), sources will be cleaned up before attempting to compile
<DC-IRC> [Discord] <human_urostor> I changed the file while `kernel-patch` and again it detected no changes. What is going on...
<DC-IRC> [Discord] <human_urostor> I changed the file while `kernel-patch` was running and again it detected no changes. What is going on...
<DC-IRC> [Discord] <human_urostor> Yeah, because there `were` no changes indeed.
<DC-IRC> [Discord] <human_urostor> OK it worked, now rebuilding
<DC-IRC> [Discord] <human_urostor> Yeah, because there *were* no changes indeed.
<DC-IRC> [Discord] <human_urostor> wow, it built finally! yay. What now?
<DC-IRC> [Discord] <human_urostor> Any testers? I have 2 cards I can test.
<DC-IRC> [Discord] <human_urostor> I can `modprobe amdgpu`!!! Now let's test with a card!
<DC-IRC> [Discord] <human_urostor> @mecoblock you might be interested
<DC-IRC> [Discord] <mecoblock> 👀
<DC-IRC> [Discord] <mecoblock> tell me more
<DC-IRC> [Discord] <human_urostor> Well I'll test it with a display/card soon, so far stuff seems to be loading. `amdgpu` kernel module was failing to build with vendor kernel, now it builds/loads
<DC-IRC> [Discord] <human_urostor> The question is, where to send the patch if it works
<DC-IRC> [Discord] <human_urostor> For the rk kernel on github and do a pull request?
<DC-IRC> [Discord] <Werner> Since we have our own fork of the rockchip vendor kernel you can send a pr directly there. For all other kernel patches go to build repository.
<DC-IRC> [Discord] <human_urostor> Yeah, I meant your fork of course
<DC-IRC> [Discord] <human_urostor> So the card is attached to `amdgpu` but it doesn't appear under `/dev/dri`. Will try with another one, in the meantime it seems like progress anyway?
<DC-IRC> [Discord] <Werner> The patch might have fixed compiling but broke functionality. Pure guess.
<DC-IRC> [Discord] <Werner> No clue how that stuff actually works
<DC-IRC> [Discord] <human_urostor> The patch itself is pretty minimal, the issues were only with old amdgpu scheduler being used instead of a new one. I'll try to make the PR tonight
<DC-IRC> [Discord] <human_urostor> Memory mapping seems broken too (not surprising)
<DC-IRC> [Discord] <human_urostor> https://github.com/armbian/linux-rockchip/pull/387 good luck
<DC-IRC> [Discord] <human_urostor> https://github.com/armbian/linux-rockchip/pull/387 here is the PR. Is there anyone who does? Good luck anyway...
juri_ has quit [Ping timeout: 248 seconds]
juri_ has joined #armbian-rockchip