System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
<a3f>
qschulz, If /soc/aliases were to be like /aliases, it wouldn't help, yes. But the idea is that /soc/aliases would have the same numbering as used in the SoC reference manual instead. Board-level aliases would go into /aliases then
System_Error has joined #linux-rockchip
<a3f>
barebox uses /chosen/barebox,bootsource-mmcX and so on properties for that. I would try to upstream this as /chosen/aliases/ when your /chosen/bootsource goes in
stikonas has joined #linux-rockchip
raster has joined #linux-rockchip
kevery1 has joined #linux-rockchip
kevery has quit [Ping timeout: 252 seconds]
kevery1 is now known as kevery
stikonas has quit [Quit: Konversation terminated!]
franoosh has joined #linux-rockchip
ldevulder has joined #linux-rockchip
<CounterPillow>
<user21> did you succeed in getting this tested on 5b ? <-- yes
<CounterPillow>
user21: you should be seeing a device node in /dev/accel/
<CounterPillow>
You do not need to manually load the driver
<CounterPillow>
what you do need to do however is build with it, so make sure CONFIG_DRM_ACCEL=y and CONFIG_DRM_ACCEL_ROCKET=y are set
<CounterPillow>
(or =m for the latter)
<qschulz>
a3f: I assume s;/chosen/aliases;/soc/aliases; is what you meant?
<qschulz>
but thanks, makes sense. We should be using that for the gpio controller for example, which slightly depends on boot order if no alias is provided
<qschulz>
and one can imagine the GPIO numbering scheme is different on pin headers used by a board compared to the one in the SoC datasheet
naoki has quit [Quit: naoki]
valpackett has joined #linux-rockchip
<user21>
@CounterPillow: what was the kernel version the patches were applied to ?
<CounterPillow>
our rockchip-devel branch, but any recent kernel version will work.
<user21>
ok
<Ermine>
Does mainline kernel have any limitations on number of partitions on MMC storage on RK3588s ?
<user21>
I got a conflict on last two commits on 6.14.5 nothing major, fixable
<CounterPillow>
Ermine: I doubt the mmc controller is even aware of partitions aside from the two hardware boot partitions. If you're having issues, it's probably because you formatted your flash storage as MBR, and not GPT.
<CounterPillow>
Unless you're trying to keep compatibility with MS-DOS, MBR should probably not be used.
<Ermine>
Well, we see only 6 partitions here, though u-boot lists all 7
erg_ has joined #linux-rockchip
erg_ has quit [Remote host closed the connection]
franoosh has quit [Remote host closed the connection]
valpackett has quit [Ping timeout: 248 seconds]
franoosh has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
franoosh has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
dsimic has quit [Ping timeout: 265 seconds]
dsimic has joined #linux-rockchip
ldevulder has quit [Quit: Leaving]
<user21>
@CounterPillow I've applied the patches, created a new image, booted but I don't see the /dev/accel
<CounterPillow>
user21: yes but did you enable both the driver and the DRM_ACCEL framework in your kernel config
<user21>
ok so now that I have activated the right kernel config with the "CONFIG_DRM_ACCEL=y and CONFIG_DRM_ACCEL_ROCKET=y" turns out the kernel patches are not working for 6.14.5 because "drm_sched_init_args" is defined in "/drm/gpu_scheduler.h" from 6.15 and up
<CounterPillow>
6.14 looks to still be using the old API then
<user21>
oh I see, good catch thank you
<user21>
trying
<user21>
dropped that patch, recompiled everything, booted the image but I still don't see the /dev/accel
<user21>
the kernel .config was having the CONFIG_DRM_ACCEL=y and CONFIG_DRM_ACCEL_ROCKET=y and CONFIG_DRM=y
<CounterPillow>
anything in /sys/kernel/debug/devices_deferred?
<user21>
the file is there but it is empty
<CounterPillow>
okay, so no deferred devices, that's good
<CounterPillow>
sudo dmesg | grep -i rocket
<user21>
empty
<CounterPillow>
You do not need to manually load any kernel module
<CounterPillow>
so
<CounterPillow>
if it's not loading, it means you're not using the right DT
<user21>
crap
<user21>
need to review
<CounterPillow>
you can try installing device-tree-compiler and then running `dtc -I fs /sys/firmware/devicetree/base` to see the currently loaded device tree, look for any nodes with rknn in the compatible. If they're missing, that means you're not using the right DT
valpackett has joined #linux-rockchip
<user21>
thank you! trying now
franoosh has quit [Ping timeout: 268 seconds]
<user21>
there are some lines but not alot, worried this is just armbuild stuff
<user21>
and the actual chages to dts seems are applied but get overlayed by something else from armbian build
<CounterPillow>
Okay, so the changes of the base DT are in there but the device specific ones that enable those aren't.
<user21>
rknn_mmu_2 = "/iommu@fdad9000";
<user21>
ok so suspicion is that my patches are getting overriden by some build step
<CounterPillow>
The problem likely is that you're not using the rock-5b device tree. The changes should translate to the 5b plus one quite similarly as that 5b enablement commit already does though
<CounterPillow>
(though if it is a 5bp device tree then whatever random patch for it armbian ships is likely completely detached from mainline since sre only recently submitted one to mainline that he wrote himself)
<user21>
and the build command is like this "./compile.sh BOARD=orangepi5-plus BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=bookworm KERNELBRANCH='branch:v6.14.5'"
<user21>
all the patches go into "userpatches/kernel/archive/rockchip64-6.14"
<CounterPillow>
that doesn't tell me much since I don't use armbian and have no interest in ever touching it ;)
<user21>
ah, ok, no problem, what do you use ? I don't care to be honest, armbian was a way to abstract out a build framework and generate an .img file that get flushed to a SSD
<user21>
if there is a better system I'm in
<user21>
I need kernel 16.4.5+ with patches and the right device tree, then boot it
<CounterPillow>
at work we generate our images using debos
<CounterPillow>
debos just handles the image generation, to make a kernel package with the right patches applied you can just fork debian's kernel package (or make your own) and add the patches there. Or you can forego all of that and just `make bindeb-pkg` in the kernel tree and throw the resulting debs (confusingly in ..) into it, if it has to be a quick and dirty job
<user21>
is there a guide that I can try this quickly
<jmabsd>
I still feel Radxa's installation docs page, and this forum thread, are a bit unclear.
<jmabsd>
Actually did Yuntian write a post to get some other guy Peter Wang and some "Nasca" to have a look?
<jmabsd>
I think the answer is: "SPI is an u-boot image, and it also contains SPL which is RockChip's early boot code.
<jmabsd>
The SPI file is flashed to the SPI flash chip on the Rock5B PCB, which is used as boot medium by the Rock5B.
<jmabsd>
Meanwhile, the SPL file is only used in advanced debugging, to make the Rock5B actually boot when in MaskROM mode and connected to a host computer via USB. Here, the host computer will send the SPL file via USB to the Rock5B, to cause it to enter a normal boot procedure."
<jmabsd>
Well maybe it's clear enough now.
jmabsd has left #linux-rockchip [#linux-rockchip]
<user21>
nice
<user21>
quick update on my effort: indeed I got the wrong device tree, retrying a new compile and tracing it down