<vigneshr>
ecdhe: CONFIG_SERIAL_EARLYCON=y and CONFIG_SERIAL_8250_OMAP=y. Also DT should have stdout-path correctly
<vigneshr>
ecdhe: note that earlycon won't work if a) boot loader has not configured UART instance, b) kernel fails even before DT setting up early DT
NiksDev has joined #linux-ti
florian__ is now known as florian
LokeshV_ has quit [Remote host closed the connection]
rob_w has quit [Remote host closed the connection]
Peng_Fan has quit [Quit: Connection closed for inactivity]
NiksDev has quit [Remote host closed the connection]
<ecdhe>
vigneshr: U-Boot is talking out the uart in question so I believe a) is not an issue
<ecdhe>
Does it matter that I am using linux-ti-staging on an am3517?
<ecdhe>
I confirmed those config items in my kernel config, and my dts is the TI-generated one (from meta-ti through yocto) with stdout-path = "/ocp@68000000/serial@49020000";
<ecdhe>
When I boot from U-Boot my bootargs include earlycon=uart8250,49020000
<vigneshr>
ecdhe: I have no experience with am3517, maybe tmlind can help. But adding plain "earlycon" to cmdline args is enough as long as stdout path is set in DT. Also, try if this format helps: earlycon=uart8250,mmio32,49020000,115200n8
<ecdhe>
vigneshr: earlycon by itself worked to get earlycon output!!! thanks for that breakthrough!
<ecdhe>
I've got a ton of error messages, it looks like kernel-ti-staging_5.10 doesn't like the device tree it built for itself, the ti_clk_get_reg_addr() can't find a 'clk-provider' function
rob_w has joined #linux-ti
<ecdhe>
I'm going to guess that the .dts for the am3517-evm is actually not being maintained properly compared to the kernel, and that kernel 5.10 now requires properties which were introduced more recently than the last time the am3517-evm machine in meta-ti was updated
<tmlind>
ecdhe: good to hear you got earlycon working :) yeah please add chosen with stdout-path to your board specific dts file, my guess is nobody has touched am3517 stuff for few years now
<ecdhe>
tmlind, bootargs=earlycon works because the device tree has the correct path so TI already has this working
<ecdhe>
tmlind: if I patch the am3517-evm files, can I upstream them?
<ecdhe>
or /how/ can I upstream them?
<tmlind>
ecdhe: great, yes please do send patches against current mainline linux to linux-omap@vger.kernel.org list
<ecdhe>
tmlind: thanks! So the am3517-evm is a 32-bit omap3 platform. Do you know if there are any omap3s that ARE still updated? beagle something? Just looking for a reference so that my fixes are consistent with common practice
<tmlind>
ecdhe: yeah folks are still using other omap3 variants, probably the n900 and logicpd folks are the most active for omap3 boards
<tmlind>
ecdhe: oh and gta04 folks are also actively maintaining omap3 boards
<tmlind>
ecdhe: is the ethernet still working fine on am3517-evm?
<ecdhe>
tmlind: I'm actually using a old logicpd som that has always been built with the am3517-evm defconfig etc
<ecdhe>
I haven't got this new kernel booted yet so I don't know about ethernet
<tmlind>
ecdhe: ok
<ecdhe>
logicpd's devboard appears to be the reference am3517-evm, or at least a additions-only modification
<ecdhe>
but they shipped kernel 2.6.37 for it (simply linking to an Ubuntu 10.04 .ova VM that TI published once with an SDK installed on it)
<ecdhe>
tmlind, I'll spare you the pastebin but I have about 50 messages like: ti_clk_get_reg_addr: clk-provider not found for mcbsp5_gate_fck!
<ecdhe>
I thought at first that this meant the device tree was lacking a 'clk-provider' property but looking at the n900 dts files for reference, I don't actually see any 'clk-provider' properties there either
<ecdhe>
This is just an iteration looking to ensure that the device tree node's parent is equal to a known clock in the array clocks_node_ptr
<ecdhe>
Since the clocks it's stumbling on are defined in a file that's common to many omap3 processors (see https://elixir.bootlin.com/linux/v5.10.44/source/arch/arm/boot/dts/omap3xxx-clocks.dtsi#L89 ) I would say either my clocks_node_ptr[] array is being built incorrectly, or all omap3 processores are broken in the 5.10 kernel release and the n900 users are pinned to an older version
<tmlind>
ecdhe: omap3 should be working, can you please test with v5.13-rc6? if that works then you can request upstream patches backported to 5.10.y stable series
<ecdhe>
tmlind: I'll see what I can build!
lucaceresoli_ has joined #linux-ti
lucaceresoli has quit [Ping timeout: 268 seconds]
LokeshVutla has quit [Remote host closed the connection]
LokeshVutla has joined #linux-ti
florian has quit [Quit: Ex-Chat]
florian has joined #linux-ti
florian has quit [Client Quit]
florian has joined #linux-ti
<ecdhe>
I reproduced the issue on 5.4, 5.10, 5.12. I'm working on 5.13-rc6, just struggling to get a yocto recipe
<NishanthMenon>
ecdhe: if you add ARAGo_BRAND=mainline, it should give you 5.12 kernel
<NishanthMenon>
ecdhe, i made a typo ARAGO_BRAND=mainline -> if you are using meta-arago distro
<ecdhe>
NishanthMenon: can you get me 5.13-rc6 with a single parameter?
<NishanthMenon>
change the SRCREV
<NishanthMenon>
SRCREV = "9f4ad9e425a1d3b6a34617b8ea226d56a119a717" to the upstream commit ID.. I think we should start a mainline-bleeding option that tracks upstream tags directly..
<ecdhe>
I cloned linux-ti-staging_5.10.bb into linux-ti-staging_5.13-rc6.bb, then set the SRC_URI to git://git.ti.com/ti-linux-kern