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> [Discord] <human_urostor> I can't seem to build the amdgpu kernel module on the Rockchip kernel (6.1.115). Is this a known issue? Builds fine on mainline 6.14
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC> [Discord] <gospod13337> Im no kernel expert or compiling expert, but im wondering why do you think building **amdgpu** module on **rockchip** kernel **could** be a **known** issue?
<DC-IRC> [Discord] <gospod13337> Did you try building on stock debian 6.1 kernel?
<DC-IRC> [Discord] <gospod13337> Did you try building on stock debian 6.1 kernel and was it successful?
<DC-IRC> [Discord] <gospod13337> Im just trying to understand if im missing something
<DC-IRC> [Discord] <gospod13337> I know that LIO fileio module is not built into vendor 6.1 kernel here, while in stock debian 6.1 it is
<DC-IRC> [Discord] <Werner> If I had to guess I'd say rockchip broke amdgpu while heavily messing with the kernel to make their stuff work
<DC-IRC> [Discord] <gospod13337> Me also
<DC-IRC> [Discord] <gospod13337> I would also think that
<DC-IRC> [Discord] <gospod13337> Whats the use case for your amd gpu on rockchip board?
<DC-IRC> [Discord] <Werner> I'll do a quick test if I can reproduce
<DC-IRC> [Discord] <Werner> yep. somethings broken
<DC-IRC> [Discord] <gospod13337> That was fast, you also using amdgpu?
<DC-IRC> [Discord] <Werner> nope, just building a kernel with that enabled
<DC-IRC> [Discord] <Werner> Just for reference. Broken build log: https://paste.armbian.de/qalorilaqo
<DC-IRC> [Discord] <Werner> nope. didn't do it
<DC-IRC> [Discord] <gospod13337> Ah, didnt know its built into kernel
<DC-IRC> [Discord] <gospod13337> Got lucky myself that fileio was not broken then
<DC-IRC> [Discord] <Werner> amdgpu.cs.c seems fine. No modifications. So rk probably messed up the scheduler or the driver was never intended to run on arm. Dunno
<DC-IRC> [Discord] <human_urostor> Oh 😦
<DC-IRC> [Discord] <human_urostor> Thanks for testing, I wanted to upload the log but went to sleep
<DC-IRC> [Discord] <human_urostor> Because many people build Linux for many purposes, amdgpu is known to work on raspberry pi, so I thought people tried it on Rockchip too
<DC-IRC> [Discord] <human_urostor> Noob question. If I just copied contents of the amdgpu folder from 6.14 mainline to 6.1, would it break the building process in any way? I know very little about how make works. I had the same error as Werner.
<DC-IRC> [Discord] <human_urostor> Noob question. If I just copied contents of the amdgpu folder from 6.14 mainline to 6.1rk, would it break the building process in any way? I know very little about how make works. I had the same error as Werner.
<DC-IRC> [Discord] <human_urostor> Trying to make it work for fun
Herc has left #armbian-rockchip [Leaving]
Herc has joined #armbian-rockchip
<DC-IRC> [Discord] <mecoblock> check my rockchip pcie repo under issues I think someone also tried and gpu
<DC-IRC> [Discord] <mecoblock> check my rockchip pcie repo under issues I think someone also tried amd gpu
<DC-IRC> [Discord] <human_urostor> Found it. They used mainline, I'd prefer this of course but it is quite tricky on Rock 2.
<DC-IRC> [Discord] <Werner> rock2 is rk3528. Lots of patches are pending to be mainlined. https://patchwork.kernel.org/project/linux-rockchip
<DC-IRC> [Discord] <efectn> @jakesays did you enable the overlay
<DC-IRC> [Discord] <jakesays> @efectn which overlay?
<DC-IRC> [Discord] <jakesays> @efectn are you referring to my wifi issues?
<DC-IRC> [Discord] <efectn> Ahh i am mistaken. I meant opi5b devicetree
<DC-IRC> [Discord] <jakesays> yes i have that enabled
<DC-IRC> [Discord] <jakesays> it's the only way i can see the emmc
<DC-IRC> [Discord] <efectn> Yeah you have to
<DC-IRC> [Discord] <efectn> So you are able to boot from emmc using mainline uboot?
<DC-IRC> [Discord] <jakesays> i'm not sure. let me start with a clean sdcard and go from there
<DC-IRC> [Discord] <efectn> It would be good to see some uart boot logs
<DC-IRC> [Discord] <jakesays> i'll capture them.
<DC-IRC> [Discord] <jakesays> @efectn from a successful emmc boot?
<DC-IRC> [Discord] <efectn> Successful and unsuccessful
<DC-IRC> [Discord] <jakesays> i think i have boot logs for both. just a sec
<DC-IRC> [Discord] <jakesays> @efectn here is a successful one: https://paste.armbian.com/wesapanedu.yaml
<DC-IRC> [Discord] <jakesays> @efectn and an unsuccessful one: https://paste.armbian.com/hepewigoye.yaml
<DC-IRC> [Discord] <3rd3y3m3nti0n47> Are the community builds for PBP all Ubuntu and not Debian add the wiki started?
<DC-IRC> [Discord] <3rd3y3m3nti0n47> Are the community builds for PBP all Ubuntu and not Debian as the wiki startes?
<DC-IRC> [Discord] <3rd3y3m3nti0n47> Are the community builds for PBP all Ubuntu and not Debian as the wiki states?
<DC-IRC> [Discord] <efectn> Isn't this successful too
<DC-IRC> [Discord] <jakesays> @efectn it booted successfully, but to the sdcard, not the emmc
<DC-IRC> [Discord] <jakesays> you can tell by the "usage of /:" at the bottom
<DC-IRC> [Discord] <jakesays> i have a 64gb sdcard
<DC-IRC> [Discord] <jakesays> do you want a log of a boot that failed completely?
<DC-IRC> [Discord] <human_urostor> Yup, that's why I wanted the rk kernel
<DC-IRC> [Discord] <efectn> Yes sure
<DC-IRC> [Discord] <jakesays> @efectn this one failed: https://paste.armbian.com/upuwunemup.vbnet
<DC-IRC> [Discord] <efectn> If you unplug the sd card will it boot into mmc
<DC-IRC> [Discord] <jakesays> @efectn that last one was done w/o an sdcard installed
<DC-IRC> [Discord] <efectn> Can you boot from sd card and set devicetree to 5b from bootenv?
<DC-IRC> [Discord] <efectn> Then install legacy uboot to mmc using armbian install
<DC-IRC> [Discord] <voido76> Hey everyone, I sincerely apologize for asking newbie question here. I'm trying to install Armbian to NVME on Nanopi M6, but so far no luck. Armbian-config does not propose it in the desination list - only eMMC(which is also installed). I see this - https://github.com/armbian/build/pull/7652, does it mean that it's somewhat not implemented?
<DC-IRC> [Discord] <jakesays> @efectn yeah i'll do that now
<DC-IRC> [Discord] <voido76> Hey everyone, I sincerely apologize for asking newbie question here. I'm trying to install Armbian to NVME on Nanopi M6, but so far no luck. Armbian-config does not propose it in the desination list - only eMMC(which is also installed). I see this - https://github.com/armbian/build/pull/7652, does it mean that it's somewhat not implemented to publicly available builds?
<DC-IRC> [Discord] <jakesays> @efectn ok so i just inserted my sd card, booted, and it booted to the emmc.
<DC-IRC> [Discord] <jakesays> i do not understand
<DC-IRC> [Discord] <efectn> Yeah it seems like mainline uboot doesn't support emmc boot because mmc node is not enabled
<DC-IRC> [Discord] <efectn> It will work provides that it is enabled, but have to check if it breaks opi5 spi boot
<DC-IRC> [Discord] <efectn> Do you have spi plugged?
<DC-IRC> [Discord] <voido76> Ehhh... no. I need a separate module for this to work?..
<DC-IRC> [Discord] <jakesays> @efectn here is the boot log if you're interested: https://paste.armbian.com/ozutalufug.yaml
<DC-IRC> [Discord] <voido76> Ehhh... no. I need a separate module for this to work?.. Which one exactly I need to purchase?
<DC-IRC> [Discord] <efectn> You have emmc, right?
<DC-IRC> [Discord] <voido76> Yes.
<DC-IRC> [Discord] <voido76> Yes. Also NVME is also installed.
<DC-IRC> [Discord] <efectn> Aren't you able to install it using armbian-install? emmc+nvme was working the last time i tested
<DC-IRC> [Discord] <voido76> Doesn't work. Not proposing NVME at all. I can record the whole process from armbian-config.
<DC-IRC> [Discord] <efectn> Does OS detect nvme?
<DC-IRC> [Discord] <voido76> Yes. It's listed in lsblk.
<DC-IRC> [Discord] <voido76> I tried with 2 already. I can plug third though.
<DC-IRC> [Discord] <voido76> Yes. It's listed in lsblk and I wiped partitions on it with fdisk.
<DC-IRC> [Discord] <efectn> Can you send screenshot of options in armbian install
<DC-IRC> [Discord] <efectn> What if you choose the third one
<DC-IRC> [Discord] <voido76> I did that. Whole flow in the recording, unplugged SD card when it rebooted.
<DC-IRC> [Discord] <voido76> Booted me straight into eMMC with 256gigs
<DC-IRC> [Discord] <efectn> Do you have boot logs
<DC-IRC> [Discord] <menu> i'm curious if it would repeat the behaviour using SD instead of eMMC
<DC-IRC> [Discord] <voido76> Bootlog(If I collected correctly).
<DC-IRC> [Discord] <voido76> Yes, did that for science.
<DC-IRC> [Discord] <menu> same behaviour? installs full system to SD instead of NVMe?
<DC-IRC> [Discord] <voido76> No matter what I do, it boots me to eMMC 😦
<DC-IRC> [Discord] <jakesays> @efectn so i rebooted without changing anything, and it booted to sd card.
<DC-IRC> [Discord] <voido76> I can try unplugging the eMMC and try installing it, but I think it will boot me to SD cards.
<DC-IRC> [Discord] <voido76> I can try unplugging the eMMC and try installing it, but I think it will boot me to SD card.
<DC-IRC> [Discord] <efectn> I will just create new board config for 5b, we better split them as i am unable to test
<DC-IRC> [Discord] <menu> i would *hope* that option 1 - boot: SD sys: NVMe would at least behave correctly
<DC-IRC> [Discord] <jakesays> i dont understand why it would switch to sdcard
<DC-IRC> [Discord] <voido76> Let me try that. I will unplug eMMC.
<DC-IRC> [Discord] <efectn> I meant uart uboot logs if you have one
<DC-IRC> [Discord] <efectn> Does Armbian-install copy files to nvme?
<DC-IRC> [Discord] <voido76> No, it's like untouched.
<DC-IRC> [Discord] <voido76> I don't 😦
<DC-IRC> [Discord] <menu> if boot: SD sys: NVMe works to get the armbian system onto the NVMe, *potentially* reconnecting the eMMC post-install and option 6 boot: eMMC *may* create the correct system
<DC-IRC> [Discord] <voido76> Huh, it threw this.
<DC-IRC> [Discord] <efectn> Seems like armbian-install fault
<DC-IRC> [Discord] <voido76> lsblk shows 110 gigs
<DC-IRC> [Discord] <efectn> The code really needs to be refactored
<DC-IRC> [Discord] <menu> i have seen this before
<DC-IRC> [Discord] <menu> if you blow away the partition table on the NVMe, then create a new GPT table but don't create any partitions, does this change?
<DC-IRC> [Discord] <voido76> One moment.
<DC-IRC> [Discord] <menu> (iirc i ended up dd-ing the entire system to get around this)
<DC-IRC> [Discord] <voido76> nah, same error
<DC-IRC> [Discord] <Werner> I had a similar issue once but was entirely my fault. The target partition was still mounted somewhere 😂
<DC-IRC> [Discord] <efectn> Maybe you better copy system to nvme manually instead of armbian install
<DC-IRC> [Discord] <voido76> Yeah, okay. What about SPI flash? If I solder it, will I be able to boot with it + NVME? (theoretically). Which exactly module I need to buy?
<DC-IRC> [Discord] <voido76> I want to get rid of eMMC.
<DC-IRC> [Discord] <efectn> You can but you don't need
<DC-IRC> [Discord] <efectn> https://www.friendlyelec.com/index.php?route=product/product&product_id=307 this one but not necessary since you have emmc
<DC-IRC> [Discord] <voido76> Oh, I thought it has something to do with GPIO. Okay, thanks.
<DC-IRC> [Discord] <efectn> Yeah you better try to copy files using rsync and then customize boot in emmc
<DC-IRC> [Discord] <efectn> Also some fstsb adjustments
<DC-IRC> [Discord] <jakesays> so any idea where i can get the overlay for wifi?
<DC-IRC> [Discord] <jakesays> for this opi5b
<DC-IRC> [Discord] <voido76> I restarted armbian-install and it let me through this one. Huh.
<DC-IRC> [Discord] <efectn> I will create separate images for opi5b
<DC-IRC> [Discord] <efectn> Will let you know when they are built
<DC-IRC> [Discord] <voido76> It actually booted me into NVME now.
<DC-IRC> [Discord] <efectn> Lol
<DC-IRC> [Discord] <jakesays> @efectn ok thank you!
<DC-IRC> [Discord] <menu> that's great news! (and also terrible, because it makes little sense)
<DC-IRC> [Discord] <voido76> True. Still, that's not my destination point. I need eMMC + NVME, not SD. Will try again.
<DC-IRC> [Discord] <menu> if you've managed to get the system onto the NVMe, you *should* be able to use Option 6 to install the bootloader to eMMC
<DC-IRC> [Discord] <jakesays> @efectn hey thanks again for your help. i'm going to get some sleep. i'll check those image builds when i wake
<DC-IRC> [Discord] <voido76> What about option 5? Can I boot only from NVME?
<DC-IRC> [Discord] <voido76> Anything goes, let me try.
<DC-IRC> [Discord] <voido76> ofc that didn't worked out
<DC-IRC> [Discord] <efectn> Are files exists on nvme?
<DC-IRC> [Discord] <voido76> It just didn't boot after I uplugged emmc and sd card.
<DC-IRC> [Discord] <voido76> Plugged emmc back in - boots into it.
<DC-IRC> [Discord] <voido76> Ehhhh
<DC-IRC> [Discord] <efectn> Can you test wifi, bt, emmc boot, sd boot for these images
<DC-IRC> [Discord] <menu> option 5 *should* boot with no eMMC *or* NVMe i believe?
<DC-IRC> [Discord] <menu> to use eMMC for just the bootloader you'll probably need to erase the system that's installed on it, then install just the bootloader
<DC-IRC> [Discord] <voido76> Getting the size error again. I guess something is cursed in my m6.
<DC-IRC> [Discord] <n4cnr> ?
<DC-IRC> [Discord] <n4cnr> I run the os on my emmc and user dir and build system on nvme
<DC-IRC> [Discord] <n4cnr> that way things stay clean