narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
jacobk has joined #linux-amlogic
montjoie has quit [Ping timeout: 250 seconds]
montjoie has joined #linux-amlogic
jacobk has quit [Ping timeout: 246 seconds]
rpardini has quit [Quit: ZZZzzz…]
jacobk has joined #linux-amlogic
camus has quit [Ping timeout: 246 seconds]
camus1 has joined #linux-amlogic
camus1 is now known as camus
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
hexdump0815 has quit [Ping timeout: 245 seconds]
hexdump0815 has joined #linux-amlogic
naoki has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
luka177 has quit [Ping timeout: 244 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
gis has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
gis has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 248 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
rpardini has joined #linux-amlogic
f_ has joined #linux-amlogic
luka177 has joined #linux-amlogic
f_ has quit [Ping timeout: 245 seconds]
luka177 has quit [Ping timeout: 256 seconds]
rpardini has quit [Quit: ZZZzzz…]
luka177 has joined #linux-amlogic
rockosov has joined #linux-amlogic
<rockosov> narmstrong: Hello! Could you please take a look to this series: https://lore.kernel.org/all/20230706112020.24528-1-avromanov@sberdevices.ru/ We don't understand what's right way for sm driver implementation, Simon disagrees with cour version, but all suggested variants are looking strange...
f_ has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
rpardini has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 248 seconds]
luka177 has joined #linux-amlogic
gabes2 has quit [Quit: The Lounge - https://thelounge.chat]
luka177 has quit [Ping timeout: 246 seconds]
gabes2 has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
naoki has quit [Quit: naoki]
luka177 has quit [Ping timeout: 248 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
<f_> Now that I think about it...for g12 we could just adapt the iMX ddr code?
<f_> they use mostly the same ddr firmware, so probably.
<f_> and for others like gxl or gxbb we could make use of the same DDR init code....if they're similar enough.
luka177 has joined #linux-amlogic
<f_> I'm rewriting DDR init in U-Boot SPL, this time using the old sources. It's not like much changed anywayy.
<f_> Overall just looks simpler to reuse what was already written in U-Boot and just initialise the dram
<f_> No idea how I'll handle the SCP firmware.
luka177 has quit [Ping timeout: 246 seconds]
<f_> One advantage of U-Boot SPL is the fact that it's copyleft >:)
<f_> Amlogic won't be able to rebase on my work and make it proprietary again!
<f_> (honestly I don't really care much, if they do then reverse-engineering is actually made *easier*)
<narmstrong> would be aswesome :-p but you would need to implement loading the SCP firmware before BL31, but nothing dramatically complex
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 248 seconds]
<f_> Just use it as BL2.
luka177 has joined #linux-amlogic
<f_> As long as it's <48K it should be ok.
<f_> but I guess people here prefer U-Boot SPL over TF-A BL2, right?
<narmstrong> Yeah for sure, people would prefer an open source implementation
rpardini has quit [Read error: Connection reset by peer]
<narmstrong> and U-Boot implements trusted boot in SPL with FIT image to load the other TF-A elements ^^
rpardini has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
<f_> And with that, no need to use FIPs anymore.
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
f_ has quit [Ping timeout: 244 seconds]
f__ has joined #linux-amlogic
f__ is now known as funderscore
funderscore is now known as f_
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
CounterPillow has quit [Quit: Bye.]
luka177 has quit [Ping timeout: 252 seconds]
<f_> Honestly I don't really care much about if it's U-Boot SPL running as BL2 or TF-A BL2...all I care about is if it works with no proprietary firmware running in the Cortex-A.
luka177 has joined #linux-amlogic
CounterPillow has joined #linux-amlogic
<f_> Then at some point I or someone else could probably also reverse-engineer BL30
<f_> But first, BL2 :P
<f_> narmstrong: also....I read "SCP" as "SPL" in your message.......my bad!
<f_> But yeah shouldn't be too complex to load the SCP firmware before BL31.
<f_> Probably could modify that
<f_> Some copy-paste from Amlogic's old sources, too ^^
<f_> But indeed, it shouldn't be too complex to implement that.
<f_> I think some SoCs supported by U-Boot SPL need SCP firmware too.
<f_> About SCP: I do have a weird name in my head for the libre firmware replacement
<f_> Before.....ACSBaby
<f_> Now........SCPBaby!
<f_> Sorry, couldn't find a better name :P
<f_> (name directly inspired by the 'gxbb' name)
<f_> But first I'd need to finish bl2 in the first place and party
<f_> (because then we wouldn't have any boot firmware running in the cortex-a....as said previously)
<f_> *any proprietary boot firmware
tolszak has quit [Remote host closed the connection]
<f_> Port that to gxl, party again!
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 252 seconds]
<narmstrong> Would be neat if you can make something work!
<f_> I'll try my best!
luka177 has joined #linux-amlogic
<f_> Mostly just need DDR init to work and then load more images
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
rpardini has quit [Quit: ZZZzzz…]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
rpardini has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 245 seconds]
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 248 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
<f_> now....
<f_> how should I handle timings?
<f_> IIRC you're not really supposed to modify those...just set the clock properly
luka177 has quit [Ping timeout: 246 seconds]
<f_> lvrp16: ^ can you confirm please?
<f_> assuming that's true.....that's even more unnecessary stuff in acs!
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 240 seconds]
<f_> and at this point I can just hardcode those
* f_ looks at libre computer amlogic u-boot.
<f_> looks true
* f_ now looks at what his AML-S905X-CC outputs over UART.
<f_> >DDR3 chl: Rank0+1 @ 912MHz - FAIL
<f_> >DDR3 chl: Rank0 @ 912MHz
<f_> some other stuff which I never saw before on my KII Pro
<f_> >#define CONFIG_DDR_FULL_TEST 1 //1 for ddr full test
<f_> also samueldr did see that acs.bin changes very unfrequently between boards IIRC
<f_> so....more useless things :)
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 244 seconds]
luka177 has joined #linux-amlogic
Danct12 has quit [Quit: A-lined: User has been AVIVA lined]
Danct12 has joined #linux-amlogic
<f_> haha imx does the same stuff as Amlogic in terms of register dumps
luka177 has quit [Ping timeout: 240 seconds]
<f_> .....so should I do the same?
luka177 has joined #linux-amlogic
<f_> But honestly the fact that the iMX8MQ seems to use the same/similar controller as the A311D makes reverse-engineering registers easier..
<f_> I think.
<f_> Unless...you know....NXP does the same mistake as Amlogic :P
luka177 has quit [Ping timeout: 250 seconds]
Danct12 has quit [Quit: A-lined: User has been AVIVA lined]
Danct12 has joined #linux-amlogic
f_ has quit [Quit: f_]
luka177 has joined #linux-amlogic
<samueldr> two wrongs make a right
luka177 has quit [Ping timeout: 256 seconds]
rpardini has quit [Quit: ZZZzzz…]
rpardini has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 248 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
jacobk has quit [Read error: Connection reset by peer]
jacobk has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 248 seconds]
jacobk has quit [Ping timeout: 258 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
rpardini has quit [Ping timeout: 260 seconds]
JohnnyonFlame has joined #linux-amlogic
Freezer003 has joined #linux-amlogic
luka177 has joined #linux-amlogic
jacobk has joined #linux-amlogic
Freezer003 has quit [Ping timeout: 245 seconds]
iprusov has quit [Quit: WeeChat 3.5]
iprusov has joined #linux-amlogic