MyNetAz has quit [Remote host closed the connection]
MyNetAz has joined #linux-rockchip
stikonas has quit [Quit: Konversation terminated!]
naoki has quit [Quit: naoki]
naoki has joined #linux-rockchip
naoki has quit [Client Quit]
naoki1 has joined #linux-rockchip
naoki1 is now known as naoki
naoki1 has joined #linux-rockchip
naoki has quit [Ping timeout: 268 seconds]
naoki1 is now known as naoki
naoki has quit [Quit: naoki]
naoki1 has joined #linux-rockchip
chewitt has quit [Quit: Zzz..]
naoki1 is now known as naoki
naoki1 has joined #linux-rockchip
naoki has quit [Ping timeout: 248 seconds]
naoki1 is now known as naoki
naoki has quit [Quit: naoki]
naoki has joined #linux-rockchip
naoki has quit [Quit: naoki]
naoki1 has joined #linux-rockchip
naoki1 has quit [Client Quit]
naoki has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 252 seconds]
hexdump0815 has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 248 seconds]
hexdump0815 has joined #linux-rockchip
naoki has quit [Quit: naoki]
naoki has joined #linux-rockchip
naoki has quit [Quit: naoki]
naoki has joined #linux-rockchip
paulk-bis has joined #linux-rockchip
paulk has quit [Ping timeout: 248 seconds]
naoki has quit [Client Quit]
naoki has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
kevery1 has joined #linux-rockchip
franoosh has joined #linux-rockchip
kevery has quit [Ping timeout: 260 seconds]
kevery1 is now known as kevery
eballetbo has joined #linux-rockchip
mripard has joined #linux-rockchip
franoosh has quit [Remote host closed the connection]
franoosh has joined #linux-rockchip
raster has joined #linux-rockchip
chewitt has joined #linux-rockchip
chewitt has quit [Quit: Zzz..]
franoosh has quit [Ping timeout: 252 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<mriesch>
naoki: hi there. do you happen to have access to the Radxa Camera 4K schematics?
<mriesch>
or anyone else? ;-)
franoosh has joined #linux-rockchip
<qschulz>
linkmauve: TF-A for RK3399 runs in both Cortex-A and Cortex-M cores
<qschulz>
hence why you need both Aarch32 and Aarch64 toolchains
<qschulz>
note that the Aarch64 part is buildable (in master, not released yet) with either clang or gcc, but the Aarch32 only with gcc
<qschulz>
linkmauve: most of the 9MiB of u-boot-rockchip.bin is zeroes
<linkmauve>
qschulz, this is master I built, but with gcc so far. And on ArchLinux instead of ArchLinuxARM as I usually do, since the latter has either AArch32 gcc or AArch64 gcc, not both.
<qschulz>
linkmauve: idbloader.img at offset 32KiB and 8192KiB for u-boot.itb if you want to flash only what you need
<qschulz>
linkmauve: the offset for u-boot.itb depends on CONFIG_SPL_PAD_TO, but by default on Rockchip platforms, it's that
<qschulz>
linkmauve: then compile with clang for aarch64 and gcc for aarch32 :D
<linkmauve>
qschulz, hmm, with make PLAT=rk3399 CC=clang CROSS_COMPILER=, it still tries to use arm-none-eabi-gcc even though the native gcc is AArch32.
franoosh has quit [Ping timeout: 252 seconds]
<qschulz>
linkmauve: aaaaaaah, I see what you mean now
<qschulz>
not sure this was accounted for
<qschulz>
linkmauve: I'm wondering if setting M0_CROSS_COMPILE = " " (yes, a space) would work?
<qschulz>
linkmauve: otherwise you'd need to modify make_helpers/toolchains/rk3399-m0.mk and plat/rockchip/rk3399/drivers/m0/Makefile to build natively
<linkmauve>
Nope i doesn’t.
raster has quit [Remote host closed the connection]
raster has joined #linux-rockchip
<linkmauve>
/usr/bin/ld: /home/linkmauve/dev/trusted-firmware-a/build/rk3399/release/m0/rk3399m0.elf: error: PHDR segment not covered by LOAD segment
<linkmauve>
/usr/bin/ld: /home/linkmauve/dev/trusted-firmware-a/build/rk3399/release/m0/rk3399m0pmu.elf: error: PHDR segment not covered by LOAD segment
<linkmauve>
When I removed the $(or …) stuff.
franoosh has joined #linux-rockchip
naoki has quit [Quit: naoki]
<qschulz>
linkmauve: maybe send a message on the TF-A ML about that?
<qschulz>
I'm not entirely sure native compilation is something they thought of/are targetting
erg_ has joined #linux-rockchip
franoosh has quit [Ping timeout: 252 seconds]
ungeskriptet_ has joined #linux-rockchip
ungeskriptet has quit [Ping timeout: 252 seconds]
ungeskriptet_ is now known as ungeskriptet
ungeskriptet_ has joined #linux-rockchip
ungeskriptet has quit [Ping timeout: 252 seconds]
ungeskriptet_ is now known as ungeskriptet
<robmur01>
linkmauve: I've certainly built TF-A natively on RK3399 (although apparently not since April 2020...)
<robmur01>
looks like I used an AUR package for an arm-none-eabi- cross-toolchain
<robmur01>
I guess in principle you could probably do it the other way too, cross-compile the aarch64 parts from armhf, and use the full native triplet (e.g. arm-linux-gnueabihf-) for M0_CROSS_COMPILE...
<linkmauve>
robmur01, I think the issue I had with using the normal gcc is that it is an arm-linux-gnueabihf-gcc, whereas for the m0 we need the arm-none-eabi-gcc which doesn’t do any of the Linux stuff, and generate code for bare metal.
<qschulz>
dsimic: I have an English question for you :)
<robmur01>
linkmauve: hmm, probably they're assuming some linker options which happen to have different defaults for the different targets
<robmur01>
linkmauve: heh, yeah, just add "-static" to LDFLAGS in the M0 makefile and it works fine :D
erg_ has quit [Remote host closed the connection]
<dsimic>
robmur01: linkmauve: FWIW, I also built TF-A natively on an RK3399-based board
<dsimic>
linkmauve: indeed, the M0 part builds bare-metal code
<dsimic>
qschulz: huh, the A-B-C-D-E-... list? that's a tough question... :) I'm not aware of some special name, it's just some sort of a table of contents, which in this case can be shortened that way
<dsimic>
it would just be space-inefficient to list each letter of the alphabet in a separate line, so it was all put in a single line
<dsimic>
though, let me check the page source...
<robmur01>
question is, can I be bothered to submit a TF-A patch?...
<robmur01>
bah, already missed the 10th anniversary of my last (and first) one!