mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
qschulz_ has quit [Remote host closed the connection]
qschulz has joined #linux-rockchip
hanetzer has quit [Ping timeout: 260 seconds]
hanetzer has joined #linux-rockchip
vagrantc has quit [Quit: leaving]
stikonas has quit [Remote host closed the connection]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
hexdump0815 has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
hanetzer has quit [Ping timeout: 252 seconds]
hanetzer has joined #linux-rockchip
Stat_headcrabbed has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
cbeznea has joined #linux-rockchip
warpme has joined #linux-rockchip
<warpme> detlevc : with latest code from https://gitlab.collabora.com/detlev/linux/-/commits/add-vdpu381-and-383-to-rkvdec we are almost good on 3576. iommu errors gone. decoding plays but with some artefacts like this: http://minimyth2.mooo.com/rk3576-h264.mov I tested on mythtv and kodi, with egl-dmabuf and direct-to-plane. artefacts are the same in all cases. interesting that on one try i got perfect picture but it was only once. i tried 20 times or so
<warpme> but can't get it again
stikonas has joined #linux-rockchip
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Stat_headcrabbed has quit [Remote host closed the connection]
naoki has joined #linux-rockchip
naoki has quit [Client Quit]
socrates1298 has joined #linux-rockchip
socrates1298 has quit [Client Quit]
_whitelogger has joined #linux-rockchip
warpme has joined #linux-rockchip
hanetzer has quit [Ping timeout: 276 seconds]
hanetzer has joined #linux-rockchip
psydroid2 has joined #linux-rockchip
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #linux-rockchip
diederik has quit [Quit: Going to see what happens IRL, see ya!]
diederik has joined #linux-rockchip
raster has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
hanetzer has quit [Ping timeout: 260 seconds]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cbeznea has quit [Ping timeout: 260 seconds]
catcream has joined #linux-rockchip
<catcream> hey, trying to compile u-boot for my radxa 4se (rk3399). I first compile atf with PLAT=rk3399 and then compile u-boot with BL31=$atf/build/fvp/release/bl31/bl31.elf. I flashed idbloader-spi.img to sector 64 and u-boot.itb to 0xe000. When booting it complains about fit:atf-3 being empty and it stops. I did check with mkimage -l on u-boot.itb and in fact it is empty. Any clue what to do?
<CounterPillow> What's "fvp"? Usually I'd expect it to be in build/rk3399/release/bl31/bl31.elf
<CounterPillow> also, modern mainline versions of u-boot should give you a unified u-boot-rockchip.bin, no separate idbloader
<catcream> no clue actually, it just puts bl31 in fvp directory when doing make PLAT=rk3399 bl31
<catcream> oh okay
<CounterPillow> I assume you're using some vendor u-boot from 2017 or so instead?
<catcream> so I can flash u-boot-rockchip-spi.bin directly?
<CounterPillow> sure, if you're flashing onto an SPI chip
<catcream> I use upstream u-boot 2025.07-rc4 on radxa 4c+
<CounterPillow> goes at offset 0 in that case. If you're flashing eMMC/SD, you'll want u-boot-rockchip.bin at sector 64
<catcream> okay nice
<CounterPillow> You don't need to use the mkimage in rkbins at all
<catcream> alright thanks!
<catcream> flashing now
<catcream> CounterPillow: tried it now, same thing sadly :/
<catcream> seems like something's messed up with atf-3 fit volume
<CounterPillow> what does `file build/rk3328/release/bl31/bl31.elf` say
<CounterPillow> also can you show me your full u-boot build log?
<CounterPillow> err
<CounterPillow> sub rk3328 with fvp there
<catcream> bl31.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped
<CounterPillow> okay, so at least it's built for the right architecture
<catcream> yup, ill recompile u-boot and send log
<catcream> https://paste.gentoo.zip/ofvcvKWi - u-boot build log with V=1
<CounterPillow> apparently it's picking tf-a from "/home/cat/proj/sbc/4se/src/bl31.elf", is this correct?
<catcream> yea I copied it there
<catcream> make PLAT=rk3399 bl31
<catcream> here's my "source" file that I put envvars in https://paste.gentoo.zip/qXSYTac9
warpme has joined #linux-rockchip
<CounterPillow> should be fine, yeah, though my atf when I `make PLAT=rk3399 bl31` does put it in the rk3399 subdirectory.
<CounterPillow> also since you're a gentoo user: make sure you don't have some insane cflag overrides set that are interfering
<catcream> seems fine with "env"
<catcream> btw should I use arm-trusted-firmware or trustedfirmware-a?
warpme has quit [Client Quit]
<CounterPillow> they're both the same, ARM just keeps changing the name
<CounterPillow> they call it trusted-firmware-a these days I think
<catcream> hmm tried cloning trusted-firmware-a lts-2.12.3 tag and now I get bl31.elf in trusted-firmware-a/build/rk3399/release/bl31/bl31.elf
<catcream> ill try it
<catcream> nice atf-3 seems to be 4096 bytes now
<catcream> takes like 2 mins to flash though
warpme has joined #linux-rockchip
<catcream> CounterPillow: yay it starts u-boot now
<catcream> thanks!
<CounterPillow> Nice
<catcream> btw it says
<catcream> load_simple_fit: Skip load 'atf-5': image size is 0!
<catcream> NOTICE: BL31: v2.12.3(release):lts-v2.12.3
<catcream> NOTICE: BL31: Built : 21:34:21, Jun 15 2025
<catcream> U-Boot 2025.07-rc4 (Jun 15 2025 - 21:37:18 +0200)
<catcream> then it starts u-boot as normal, I guess I don't need to worry about atf-5?
<CounterPillow> imma be real I have no idea
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<catcream> okay lol
<catcream> seems to work fine so whaterver
<CounterPillow> might be where it stores the optional MCU code, but that's a wild guess
<catcream> CounterPillow: yes I read somewhere that for some platforms you could compile some atf thing for cortex-m0 mcu
psydroid2 has quit [Ping timeout: 252 seconds]
psydroid has quit [Ping timeout: 265 seconds]
psydroid has joined #linux-rockchip
psydroid2 has joined #linux-rockchip
psydroid2 has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]