Mangy_Dog has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
cnxsoft has quit [Ping timeout: 480 seconds]
ftg has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
apritzel has joined #linux-sunxi
cnxsoft has quit []
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
aggi has joined #linux-sunxi
<aggi>
greetings. short question: is it possible to launch an aarch32 linux kernel with an aarch64 u-boot loader?
<apritzel>
aggi: theoretically yes, but not easily in practice
<aggi>
thanks apritzel; confirms my findings with the test setup
<apritzel>
aggi: U-Boot would need to support it. It would be relatively easy to allow entering the kernel in EL1, but PSCI (SMP support) might become a bit nasty
<aggi>
packed an approprieate aarch32 kernel into a legacy uImage (which explicitely tags the architecture); then bootm, crash
<aggi>
didn't at least reach the point when kernel could complain about PSCI
<aggi>
CONFIG_ARM64_SUPPORT_AARCH32=y; doesn't seem to suffice for u-boot to switch execution state to aarch32
<apritzel>
yeah, just checked that as well, that's just used to figure out if a FIT image wrapped kernel would be compatible
<aggi>
anyway, CONFIG_ARMV8_SWITCH_TO_EL1=y locks up the system as soon as an aarch32 kernel is launched from aarch64 u-boot with bootm command
<aggi>
added some printf into arch/arm/lib/bootm.c, and armv8_switch_to_el1 with ES_TO_AARCH32 paramter is reached as it should be
<aggi>
nonetheless, the aarch32 kernel doesn't launch, nothing on serial console anymore (correctly configured)
<aggi>
in any case, u-boot and aarch64 are not maintained to launch aarch32 linux kernel
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
<aggi>
further testing, removed ATF bl31.elf from u-boot, because ATF supposedly causes u-boot being locked down from EL3 to EL2 which prevents switching from aarch64 to aarch32 to bootm an aarch32 kernel
<aggi>
no luck
wart_ has quit [Quit: WeeChat 3.3]
bauen1 has joined #linux-sunxi
JohnDoe_71Rus has quit []
juri_ has quit [Ping timeout: 480 seconds]
pcBob has quit [Remote host closed the connection]