00:32
qschulz_ has quit [Remote host closed the connection]
00:34
qschulz has joined #linux-rockchip
00:37
hanetzer has quit [Ping timeout: 260 seconds]
00:39
hanetzer has joined #linux-rockchip
00:49
vagrantc has quit [Quit: leaving]
01:17
stikonas has quit [Remote host closed the connection]
01:43
System_Error has quit [Remote host closed the connection]
01:49
System_Error has joined #linux-rockchip
02:32
hexdump0815 has joined #linux-rockchip
04:00
_whitelogger has joined #linux-rockchip
04:11
hanetzer has quit [Ping timeout: 252 seconds]
04:13
hanetzer has joined #linux-rockchip
04:15
Stat_headcrabbed has joined #linux-rockchip
05:00
System_Error has quit [Remote host closed the connection]
05:07
System_Error has joined #linux-rockchip
06:54
cbeznea has joined #linux-rockchip
08:06
warpme has joined #linux-rockchip
08:36
<
warpme >
but can't get it again
09:50
stikonas has joined #linux-rockchip
10:15
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:18
Stat_headcrabbed has quit [Remote host closed the connection]
10:24
naoki has joined #linux-rockchip
10:25
naoki has quit [Client Quit]
11:54
socrates1298 has joined #linux-rockchip
11:56
socrates1298 has quit [Client Quit]
12:10
_whitelogger has joined #linux-rockchip
14:43
warpme has joined #linux-rockchip
14:47
hanetzer has quit [Ping timeout: 276 seconds]
14:49
hanetzer has joined #linux-rockchip
15:00
psydroid2 has joined #linux-rockchip
15:27
dsimic has quit [Ping timeout: 252 seconds]
15:29
dsimic has joined #linux-rockchip
15:37
diederik has quit [Quit: Going to see what happens IRL, see ya!]
15:38
diederik has joined #linux-rockchip
15:49
raster has joined #linux-rockchip
16:39
raster has quit [Quit: Gettin' stinky!]
16:52
hanetzer has quit [Ping timeout: 260 seconds]
17:13
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:47
cbeznea has quit [Ping timeout: 260 seconds]
18:59
catcream has joined #linux-rockchip
19:04
<
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?
19:09
<
CounterPillow >
What's "fvp"? Usually I'd expect it to be in build/rk3399/release/bl31/bl31.elf
19:09
<
CounterPillow >
also, modern mainline versions of u-boot should give you a unified u-boot-rockchip.bin, no separate idbloader
19:10
<
catcream >
no clue actually, it just puts bl31 in fvp directory when doing make PLAT=rk3399 bl31
19:11
<
CounterPillow >
I assume you're using some vendor u-boot from 2017 or so instead?
19:11
<
catcream >
so I can flash u-boot-rockchip-spi.bin directly?
19:11
<
CounterPillow >
sure, if you're flashing onto an SPI chip
19:11
<
catcream >
I use upstream u-boot 2025.07-rc4 on radxa 4c+
19:11
<
CounterPillow >
goes at offset 0 in that case. If you're flashing eMMC/SD, you'll want u-boot-rockchip.bin at sector 64
19:11
<
catcream >
okay nice
19:11
<
CounterPillow >
You don't need to use the mkimage in rkbins at all
19:13
<
catcream >
alright thanks!
19:13
<
catcream >
flashing now
19:16
<
catcream >
CounterPillow: tried it now, same thing sadly :/
19:16
<
catcream >
seems like something's messed up with atf-3 fit volume
19:16
<
CounterPillow >
what does `file build/rk3328/release/bl31/bl31.elf` say
19:16
<
CounterPillow >
also can you show me your full u-boot build log?
19:16
<
CounterPillow >
err
19:16
<
CounterPillow >
sub rk3328 with fvp there
19:17
<
catcream >
bl31.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped
19:17
<
CounterPillow >
okay, so at least it's built for the right architecture
19:18
<
catcream >
yup, ill recompile u-boot and send log
19:22
<
CounterPillow >
apparently it's picking tf-a from "/home/cat/proj/sbc/4se/src/bl31.elf", is this correct?
19:22
<
catcream >
yea I copied it there
19:23
<
catcream >
make PLAT=rk3399 bl31
19:25
warpme has joined #linux-rockchip
19:26
<
CounterPillow >
should be fine, yeah, though my atf when I `make PLAT=rk3399 bl31` does put it in the rk3399 subdirectory.
19:27
<
CounterPillow >
also since you're a gentoo user: make sure you don't have some insane cflag overrides set that are interfering
19:28
<
catcream >
seems fine with "env"
19:28
<
catcream >
btw should I use arm-trusted-firmware or trustedfirmware-a?
19:28
warpme has quit [Client Quit]
19:30
<
CounterPillow >
they're both the same, ARM just keeps changing the name
19:31
<
CounterPillow >
they call it trusted-firmware-a these days I think
19:35
<
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
19:35
<
catcream >
ill try it
19:38
<
catcream >
nice atf-3 seems to be 4096 bytes now
19:39
<
catcream >
takes like 2 mins to flash though
19:44
warpme has joined #linux-rockchip
19:47
<
catcream >
CounterPillow: yay it starts u-boot now
19:47
<
CounterPillow >
Nice
19:48
<
catcream >
btw it says
19:48
<
catcream >
load_simple_fit: Skip load 'atf-5': image size is 0!
19:48
<
catcream >
NOTICE: BL31: v2.12.3(release):lts-v2.12.3
19:48
<
catcream >
NOTICE: BL31: Built : 21:34:21, Jun 15 2025
19:48
<
catcream >
U-Boot 2025.07-rc4 (Jun 15 2025 - 21:37:18 +0200)
19:48
<
catcream >
then it starts u-boot as normal, I guess I don't need to worry about atf-5?
19:49
<
CounterPillow >
imma be real I have no idea
19:50
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:50
<
catcream >
okay lol
19:50
<
catcream >
seems to work fine so whaterver
19:50
<
CounterPillow >
might be where it stores the optional MCU code, but that's a wild guess
19:57
<
catcream >
CounterPillow: yes I read somewhere that for some platforms you could compile some atf thing for cortex-m0 mcu
20:13
psydroid2 has quit [Ping timeout: 252 seconds]
20:24
psydroid has quit [Ping timeout: 265 seconds]
20:39
psydroid has joined #linux-rockchip
20:39
psydroid2 has joined #linux-rockchip