libera/#devuan-arm/ Sunday, 2024-11-17

* rrq had made some progress; first unzstd of vmlinuz-6.11.5-armmp, then wrap it into a FIT and then use bootm ... no it's as far as saying "Starting kernel ..." and hanging.00:24
rrqno=now00:24
rrqby fiddling with "Load Address and Entry Point" for the FIT I can make it either crash or hang; not sure which is the better although neither is good.00:28
gnarfacerrq: oh! i have an idea. make the kernel smaller00:39
gnarfacesuddenly looks like a familiar problem...00:40
gnarfacestock kernel configuration is something like 24MB right? just turning off support for unused hardware i bet you can get that down to 16MB easy00:41
gnarface(may be something you can change in the boot config to adjust for this instead, but i am vague on the specifics)00:42
rrqmmm I had hoped to be able to use the stock kernel though00:55
rrqthere's 2G RAM so should be possible00:56
rrqhmm bootm_size=0xa000000 (160 MiB) should be enough (?)01:13
rrqnot sure where some env settings are made.. like01:16
rrqkernel_comp_addr_r=0x4400000001:16
rrqkernel_comp_size=0xb00000001:16
onefang160 Mega smileys.  I gotta teach this new client how to not interpret some characters as smileys.  lol01:17
rrqwhen I make Load and Entry same as "Data Start" from bootm, then it says "XIP Kernel Image" but still hangs01:24
* rrq biab01:25
gnarfacehmm, i would think that should be enough, but not sure02:53
gnarfaceis 0x44000000 == 160 MiB?02:54
gnarfacei seem to recall was that what you specifically need, is at least enough space for the kernel image in between the memory address you load the .dtb and the memory address you load the kernel at, otherwise it chops up the kernel image and your boot hangs02:57
rrqit looks like there's a bug in the 64->32 transition in my uboot code (version) ...04:05
rrqspecifically in arch/arm/cpu/armv8/transition.S04:07
gnarfacehmm, indeed04:55
gnarfaceso just bad luck and if you try a different version it'll work?04:55
rrqmmm the file seems unchanged also in latest "master" (apart from adding x7 to the armv8_switch_to_el1_m macro use05:01
rrqI'm trying to polish up my arm/arm64 know-how but will first gather some extra debug data .. the assembly code isn't very easy to debug05:03
rrqhmm looks like my u-boot runs at EL2 (?) ... and would need to drop to EL1 for aarch32 (?)14:28
rrqfair enough. u-boot runs in EL2 and thus needs shifting to EL1 to run aarch32 kernel ... which ends up hanging silently23:30
rrqkernel is 6.1.0-27-armmp23:34

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!