ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
diederik has quit [Quit: Going to see what happens IRL, see ya!]
arj has quit [Ping timeout: 252 seconds]
apritzel has quit [Ping timeout: 252 seconds]
sally_ has quit [Changing host]
sally_ has joined #armlinux
sally_ is now known as sally
arj has joined #armlinux
System_Error has quit [Remote host closed the connection]
System_Error has joined #armlinux
arj has quit [Ping timeout: 276 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #armlinux
System_Error has quit [Remote host closed the connection]
System_Error has joined #armlinux
weirdtreething has quit [Remote host closed the connection]
diederik has joined #armlinux
weirdtreething has joined #armlinux
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #armlinux
weirdtreething has quit [Remote host closed the connection]
weirdtreething has joined #armlinux
weirdtreething has quit [Remote host closed the connection]
weirdtreething has joined #armlinux
sally has quit [Read error: Connection reset by peer]
sally has joined #armlinux
diederik has quit [Quit: Going to see what happens IRL, see ya!]
diederik has joined #armlinux
diederik has quit [Quit: Going to see what happens IRL, see ya!]
diederik has joined #armlinux
diederik has quit [Client Quit]
diederik has joined #armlinux
diederik has quit [Quit: Going to see what happens IRL, see ya!]
diederik has joined #armlinux
System_Error has quit [Ping timeout: 240 seconds]
System_Error has joined #armlinux
weirdtreething has quit [Remote host closed the connection]
weirdtreething has joined #armlinux
haritz has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
rrq has joined #armlinux
<rrq> need some advice re booting debian armhf kernel on my orangepi-3-lts;... ; it runs armv7, doing SPL, my own bl31, then u-boot then using sysboot for entering the kernel binary, but therafter all quiet; ... works fine to enter my own "pretend kernel" (checks FDT and whatnot), but real kernel is all quiet.
<rrq> does armhf kernel use FDT to determine serial/uart?
<arnd> rrq: the usual method for debugging this would be CONFIG_DEBUG_LL, which lets you hardcode uart settings for early console output
nsaenz has joined #armlinux
<arnd> The configured console from DT should get picked up a little later when you pass the 'earlycon' argument on the command line, but there are more things that can go wrong. Without 'earlycon' the normal 'console=ttyS0' or similar lets you pick a fully functional uart, but that happens much later than debug_ll or earlycon
<rrq> ok.. I have CONFIG_DEBUG_LL=y ... mmm but CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" might be wrong as it's an 16550 (in u-boot)
<arnd> For CONFIG_DEBUG_LL, you need to pass 'earlyprintk' on the command line to actually activate it
<arnd> 8250 and 16550 is the same one (for the purpose of the early output
<arnd> just make sure you get the correct one
apritzel has joined #armlinux
<rrq> I have: APPEND earlyprintk verbose loglevel=8 ro root=LABEL=armhf rootfstype=ext4 console=ttyS0,115200
<arnd> right, so ttyS0 is also what is configuered in /chosen/stdout-path for earlycon
<rrq> stdout-path says "serial0:115200" and the alias serial0=/soc/uart0 (I need to check)
nsaenz has quit [Ping timeout: 265 seconds]
<arnd> for earlyprintk you need to config CONFIG_DEBUG_UART_{VIRT,PHYS} correctly, presumably using the defaults for CONFIG_DEBUG_SUNXI_UART0
<arnd> rrq: I see that orangepi-3-lts uses a H6 chip, which is a armv8, not armv7, so I would not expect an armhf kernel to run at all
<rrq> PHYS=0x05000000 is right, I didn;t change VIRT=0xf1c28000
<rrq> hmm it does run armv7 my code and the armv7 compilaed u-boot
<rrq> it boots in aarch32 mode
<arnd> yes, it can do that in theory, but Linux doesn't really support 32-bit kernels on 64-bit CPUs
<rrq> the "standard" TF-A reboots it into aarch64 mode, but I don;t use that one
<arnd> VIRT=0xf1c28000 sounds wrong for PHYS=0x05000000, I'm fairly sure the low 20 address bits all need to match for the initial section map
<arnd> it may be easier to just turn off DEBUG_LL and see if earlycon gets the console up as it would on a 64-bit kernel
<rrq> it doesn't start the stock armhf
<arnd> do you mean the normal 64-bit kernel fails to boot with armhf userland? That case should normally be well supported, and independent of the SoC
<rrq> no.. a 64 bit boot (SPL+TF-A+u-boot) boots debian arm64 fine
<rrq> the 64 bit boot can run armhf code; but esp "meson" refuses to compile some armhf code because it requires the kernel to say it is an armhf kernel
apritzel has quit [Ping timeout: 265 seconds]
<arnd> are you using 'setarch' to change the uname output?
<rrq> no... where/how would that be (sounds easier :)
<arnd> you can run individual commands or a shell like 'linux32 /bin/bash' to be in an environment that looks close to a native 32-bit system. I think systemd has a setting to do the same by default, but I don't remember how that is configured
<rrq> thanks! ... I'll explore that ... (leave armhf on hold)
<arnd> I think what most people do for building 32-bit packages is to boot a normal 64-bit userland but have a 32-bit chroot environment. E.g. using schroot you set up the linux32 personality in /etc/schroot
<rrq> yes that's what we tried. but something failed ... I need to go back to the problem cause and investigate using setarch
<rrq> (afair it was at compiling util-linux)
<rrq> thanks again. you opened a new door for me :)
<arnd> There are some packages that rely on the kernel to emulate a couple of instructions that are no longer part of armv8, so you may also need to enable /proc/sys/abi/{swp,cp15_barrier,setend}
<arnd> those are mostly workarounds for application bugs, as normal userland should use those intructions even on armv7, but it's always possible that something still uses htem
<rrq> great; thanks; I'll shift back to the arm64 setup and try this ..
<rrq> hmmm this might even make an opening for emulated armhf build on an amd64
headless has joined #armlinux
HerbY_NL has joined #armlinux
headless_ has joined #armlinux
headless has quit [Ping timeout: 248 seconds]
headless_ is now known as headless
headless has quit [Quit: Konversation terminated!]
cbeznea has joined #armlinux
apritzel has joined #armlinux
apritzel has quit [Ping timeout: 276 seconds]
HerbY_NL has quit [Ping timeout: 240 seconds]
psydroid2 has joined #armlinux
nsaenz has joined #armlinux
<rrq> arnd: re H6 chip (on orangepi-3-lts); is that a show stopper in the kernel? I know it runs armv7 code.. down to and including my "fake kernel" binary but does it mean that the actual kernel has some logic making it refuse?
<rrq> btw. after correcting VIRT I now get 2.5 initial lines .. the last .5 is: CPU: ARMv7 Processor [410fd034] r.c0[ [ 00[
<rrq> I think 410fd034 is the h/w machine id while r1 is given as 0
<rrq> (I'll patch u-boot to offer r1=0x410fd034)
<rrq> (nope.. not that easy)
apritzel has joined #armlinux
apritzel has quit [Quit: Leaving]
apritzel has joined #armlinux
HerbY_NL has joined #armlinux
<rrq> I guess the cpu type need its proc.info.init entry (and more?)
HerbY_NL has quit [Remote host closed the connection]
HerbY_NL has joined #armlinux
HerbY_NL has quit [Remote host closed the connection]
nsaenz has quit [Ping timeout: 265 seconds]
nsaenz has joined #armlinux
apritzel has quit [Ping timeout: 240 seconds]
nsaenz has quit [Ping timeout: 265 seconds]
<arnd> rrq: there is no reason it can'tt work, but I really don't want to merge more 64-bit platforms in arch/arm/, as even the ones we do support in theory (mainly raspberry pi 3 and 4) tend to cause more problems than it's worth:
<arnd> - 32-bit with more than 1GB RAM is really tight, and highmem is an ugly hack that we want to remove
<arnd> - errata workarounds for 64-bit CPUs are incomplete, even for cortex-a53
<arnd> - many security features are not implemented, or impossible, in 32-bit mode
<arnd> - even debian doesn't ship a 32-bit kernel any more, the only way to install armhf Debian Trixie is to use the 64-bit kernel package or a custom 32-bit build
xvmt has quit [Remote host closed the connection]
xvmt has joined #armlinux
xvmt has quit [Read error: Connection reset by peer]
xvmt has joined #armlinux
apritzel has joined #armlinux
nsaenz has joined #armlinux
nsaenz has quit [Ping timeout: 252 seconds]
System_Error has quit [Ping timeout: 240 seconds]
apritzel has quit [Ping timeout: 260 seconds]
System_Error has joined #armlinux
cbeznea_ has joined #armlinux
cbeznea has quit [Ping timeout: 260 seconds]
Haldur0 has quit [Quit: The Lounge - https://thelounge.chat]
headless has joined #armlinux
nsaenz has joined #armlinux
Haldur0 has joined #armlinux
nsaenz has quit [Ping timeout: 265 seconds]
apritzel has joined #armlinux
apritzel has quit [Ping timeout: 272 seconds]
Poltawer has joined #armlinux
haritz has joined #armlinux
haritz has joined #armlinux
haritz has quit [Changing host]
cbeznea_ has quit [Ping timeout: 252 seconds]
nsaenz has joined #armlinux
nsaenz has quit [Ping timeout: 252 seconds]
apritzel has joined #armlinux
headless has quit [Quit: Konversation terminated!]
psydroid2 has quit [Quit: KVIrc 5.2.6 Quasar http://www.kvirc.net/]
arj has joined #armlinux
arj has quit [Ping timeout: 272 seconds]