ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
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> fyi, this is what i got after two days of fiddling: https://dpaste.org/6ELV
<apritzel> aggi: this is the macro that would be the magic: armv8_switch_to_el1_m
<aggi> i digged into the sources, however i do not feel competent to hack this
<aggi> noticed already execution state must be explicitely switched
<apritzel> aggi: you might try a FIT image and set CONFIG_ARMV8_SWITCH_TO_EL1
<apritzel> you can only switch bitness when dropping an exception level, and since U-Boot starts in EL2, you cannot enter the ARM kernel in HYP/EL2
cnxsoft has joined #linux-sunxi
<aggi> apritzel: ok, i'll try with FIT and where and how CONFIG_ARMV8_SWITCH_TO_EL1 has to be passed.
tuxd3v has quit [Ping timeout: 480 seconds]
<apritzel> aggi: U-Boot's config, for instance "make menuconfig", then search for that string
<aggi> ok, i'll tie CONFIG_ARMV8_SWITCH_TO_EL1 to CONFIG_ARM64_SUPPORT_AARCH32=y
<aggi> add some printf into bootm.c to see what happens; i'll notify what i found in a few hours. need to eat first. thanks for now.
cnxsoft has quit []
pcBob has joined #linux-sunxi
<pcBob> Hello, someone where who is familiar with the F1C100S? I am having trouble getting USB working with a buildroot image I created with: https://github.com/unframework/licheepi-nano-buildroot
<pcBob> This is the startup log: https://pastebin.com/sWqY0DmK
<pcBob> "starting USB...No working controllers found" doesn't sound good :/
<pcBob> it's a Lichee Pi Nano
<pcBob> I plugged in a generic USB 2.0 mass storage device and it didn't show any sign of life and lsusb is empty
pcBob has quit [Remote host closed the connection]
pcBob has joined #linux-sunxi
<apritzel> pcBob: the "starting USB ..." message is from U-Boot, that's independent from the kernel
<apritzel> pcBob: I don't see any attempt from the kernel to probe USB devices, do you have the proper nodes in the DT?
<pcBob> apritzel: How can I check that?
<apritzel> well, in the DT you are using/loading. Looking at the kernel tree DT, I don't see USB supported for that SoC at all
<apritzel> but I don't know if nobody bothered to try or there is some serious issue with the USB controllers or the PHY
<pcBob> apritzel: Someone else in #buildroot just told me that it seems to be work in progress according to this: https://linux-sunxi.org/Linux_mainlining_effort#Major_drivers
<pcBob> So I guess I can't use it for now
ZenWalker has joined #linux-sunxi
vagrantc has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<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]