<detlevc>
warpme: You need to explicitely build the target with downstream. I usually run "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j$(nproc) spl/u-boot-spl.bin u-boot.dtb u-boot.itb"
<warpme>
detlevc : for mainline uboot i'm using '$(BUILD_ARGS) $(MAKE) $(PARALLELMFLAGS) -C $(WORKSRC) $(PARALLELMFLAGS) ROCKCHIP_TPL=$(TPL) BL31=$(BL31) all' And all works well. Do you believe in radxa (wich is on 2024.10) 'all' not works?
<warpme>
detlevc: you are right. with explicitly declaring targets it builds :-) thx!
<warpme>
detlevc : btw: are you booting your's rock4d from ufs?
<detlevc>
warpme: Yes, I've been booting from ufs for quite some time
<detlevc>
I'm surprised that it needs the target still for 2024.10
<warpme>
detlevc : accordingly to your exp with ufs booting: will dd idbloader.img and u-boot.itb to ufs dev in the same way like to sdcard be enough to get ufs booting?
<detlevc>
ho sorry, I meant /boot and rootfs are on UFS, bootloaders are still on SPI for me
<detlevc>
but UFS uses 4096 bytes blocks, so they are not written at the same place. The UFS chip should expose multiple areas (some 16 MB, some 8 MB and then the rest), you need to write the bootloaders to one of the small area, but I don;t know which and I never had that working
rgolledge has quit [Ping timeout: 245 seconds]
rgolledge has joined #linux-rockchip
<warpme>
ah i see you already faced issues i'm facing now :-)
<detlevc>
Yes, but I use a pre-release version of the board, so it has never been clear if it was able to boot from UFS or not
<warpme>
interesting is that uboot reports ufs devices geo with 512 sector size but kernel with 4096. i need to look is it possible to ask kernel to report/use 512 sector size. with this install of os to ufs can be just dd of sdcard image to ufs device (then resize on booted os)
<detlevc>
Not really, the the sector size comes from the chip, so overwriting that would be hard. Also, you can't just copy the sd card to ufs, because the GPT header will not be at the right place (should be in second sector IIRC)
<detlevc>
u-boot seem to say 512 for me too, but will still use 4096 when looking at the GPT
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raster has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
urja has quit [Ping timeout: 276 seconds]
warpme has joined #linux-rockchip
urja has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsimic has quit [Ping timeout: 260 seconds]
dsimic has joined #linux-rockchip
franoosh has quit [Remote host closed the connection]
vagrantc has joined #linux-rockchip
cp- has joined #linux-rockchip
urja has quit [Read error: Connection reset by peer]
warpme has joined #linux-rockchip
urja has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mmind00>
robmur01: it only took 10 years ;-) , but I really really like a lot of all the recent work they provide ... especially in the graphics area
<mmind00>
robmur01: as I see your name a lot in the arm-smmu commits, do you have a hint what to poke when arm_smmu_device_shutdown() hangs ? ... of course related to the pcie iommus
<mmind00>
(on the rk3588)
<robmur01>
mmind00: almost certainly a clock/power domain which is getting turned off by the client device(s) shutting down first, since SMMUv3 doesn't have RPM support yet (and there's nothing in the DT anyway)
<mmind00>
robmur01: ah, so the problem like stems from that particular board not using pcie at all ... but the smmu being probed and "shutdown"'ed
<robmur01>
if it's built-in and probed before the unused stuff is turned off, certainly
<robmur01>
by that logic, maybe confirm if building it as a module and loading it later hangs in probe :)
<robmur01>
then clk_ignore_unused/pd_ignore_unused
<mmind00>
robmur01: and I could confirm that by accident right now too ... another board had PCIe defer probing (for whatever reason), but the smmu probed ... on reboot, the hang
<mmind00>
after a kernel rebuild and PCIe probing again ... reboot works without hangs
<mmind00>
ah ... nice ... the benefits of using mainline ... someone else most likely has had the same problems already
<mmind00>
thanks for that pointer
<robmur01>
although my hunch would be to try slapping "power-domains = <&power RK3588_PD_PCIE>;" on mmu600_pcie straight away - IIRC the platform bus code will then hold it open automatically even if the driver doesn't do RPM itself
<mmind00>
robmur01: tried that already ... somehow didn't help
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
<robmur01>
ah, might be more subtle then, like maybe one of the clocks that a pcie node claims but the domain itself doesn't
<mmind00>
also I think the pmdomain driver right now only does the enable when handling the domain, but does not keep the clock on afterwards, expecting the user to do its own clk_enable
<robmur01>
Ah, good point, seems it does only enable them for its own transitions in rockchip_pd_power()
SystemError has quit [Remote host closed the connection]