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
naoki has joined #linux-amlogic
steev has quit [Server closed connection]
steev has joined #linux-amlogic
camus has quit [Ping timeout: 240 seconds]
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
camus has joined #linux-amlogic
camus has quit [Client Quit]
camus has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
vagrantc has quit [Quit: leaving]
Tartarus has quit [Server closed connection]
Tartarus has joined #linux-amlogic
Terry137322934 has quit [Quit: Bye Bye]
Terry137322934 has joined #linux-amlogic
elastic_dog has quit [Ping timeout: 240 seconds]
kilobyte_ch has quit [Ping timeout: 265 seconds]
elastic_dog has joined #linux-amlogic
kilobyte_ch has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
narmstrong has quit [Server closed connection]
narmstrong has joined #linux-amlogic
luka177 has joined #linux-amlogic
ldevulder has joined #linux-amlogic
adema has quit [Server closed connection]
adema has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
rockosov has joined #linux-amlogic
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
rockosov has quit [Ping timeout: 252 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 258 seconds]
f_ has joined #linux-amlogic
<f_> Hi all.
luka177 has joined #linux-amlogic
JohnnyonF has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 252 seconds]
rockosov has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
ndufresne2 has quit [Quit: The Lounge - https://thelounge.chat]
ndufresne5 has joined #linux-amlogic
naoki has quit [Quit: naoki]
f_ has quit [Ping timeout: 260 seconds]
rockosov has quit [Ping timeout: 252 seconds]
<narmstrong> o/
rockosov has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
leah has quit [Ping timeout: 265 seconds]
leah has joined #linux-amlogic
kenny has quit [Quit: WeeChat 3.8]
kenny has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
f_ has joined #linux-amlogic
f11f12 has joined #linux-amlogic
<f_> So. We don't have any databooks from Synopsys
<f_> Let's look at other vendors for a sec...narmstrong: you told me that plenty of vendors use Synopsys DDR..maybe there's a chance of finding one that has libre RAM init?
<narmstrong> Not sure about that, but you can try!
<f_> Maybe they documented parts of their databook?
* f_ is still surprised about the fact that so many people are interested in reversing BL2.
<f_> Now that I think about it, Amlogic did document some of their DDR code..
* f_ looks at code.
<f_> Wait......they write the content of some struct members to registers!
<f_> Of course! Makes sense now!
<f_> This fact, combined with the reverse-engineering of newer BL2 versions, should give us all we need to write understandable code that could be included upstream!!
<f_> We may not need the Synopsys DDR databook after all!
* f_ is still not a DDR expert :S
<f_> Look at that, closely!
<f_> A lot of it writes contents of some struct members to registers!
<f_> I still kinda want to fixup ACSBaby.
<f_> But not now
<narmstrong> yeah no it's basically a dump of thousand of registers values that were generated by s synopsys TCL/TK tool running in an old CentOS8 VM based on the IP configuration set by the Synopsys engineer support team
<narmstrong> true story
<f_> I trust you :D
<f_> But why did they even want to do this then?
<f_> Did they really expect that anyone is going to modify those?
<f_> narmstrong: But what you're telling me is that I'd need the data book after all, right?
<narmstrong> f_: no, because you won't need to understand/change those values
<f_> I could theoretically just write ddr init and get away with that, tbh
<narmstrong> f_: basically until they do the physical tapeout they do not know how the IP behaves exactly, so first thing to do is pas some code to determines some physical values, pass them into the tool and you have optimized values for the soc
<f_> But then it's not funny anymore!
<narmstrong> yeah there's plenty of unfunny stuff in SoC design :-p
<f_> I considered trying to write DDR init but then I wouldn't know what I'm doing :P
<f_> Which is why I wanted to have documentation for the registers :P
<f_> But I guess Amlogic doesn't even know how their stuff works then.
luka177 has quit [Ping timeout: 258 seconds]
<f_> So ¯\_(ツ)_/¯ it's gonna be fine
<narmstrong> nop neither most of the synopsys people either lol
* f_ "laughs".
<f_> So the Synopsys people don't even know what they're doing lol
<f_> But yeah that also means most of the struct members are completly unnecessary and will be exactly the same everywhere
<narmstrong> Synopsys is an huge company, and the knowledge is spread over the people
<narmstrong> probably yes
<f_> so I can just hardcode these values and get away with that
<f_> and have the board-specific values somewhere in a device tree.
<narmstrong> yep
luka177 has joined #linux-amlogic
<f_> No idea if I'm going to get sued for this lol :D
<f_> (hope not)
<narmstrong> move to france if you gwet problems lol
<f_> Sure but I should be fiiiiiiiine!
<f_> The license doesn't say anything about disassembly of their binaries lol
<f_> and it doesn't say anything about reverse-engineering either, so I'm fairly confident it's allowed
<narmstrong> ok then! (I'm not a lawyer, so...)
<f_> me either
<f_> But still, fairly confident.
<f_> If I was reverse-engineering iwlwifi then I'll be in trouble though
<f_> (license says that reverse-engineering is forbidden)
<f_> But Amlogic's license doesn't say anything about that, and I assume I have the right to use their binaries, so I should have the right to disassemble and post reverse-engineering notes.
<f_> well, at least I don't think repk_ has had any problem with that.
<f_> (IIRC gxlimg repo contains a disassembly of BL2)
<narmstrong> indeed, I did the G12A reverse but only by looking at the generated files
<f_> yeah
<f_> Let's get to work then!
<f_> I'll try writing good code, i.e. code that be included in Arm Trusted Firmware-A.
<f_> Then we'll be closer to a free BL2!
luka177 has quit [Ping timeout: 240 seconds]
<f_> (decompiled bl2)
<f_> Forgive the C++-style comments :S (no idea why Ghidra put those)
<f_> *forgive me for the...
<f_> s/chennal/channel/ BTW
luka177 has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
<f_> After all that I think it should be easy to port all my TF-A work to gxl
<f_> will do once I succeed in porting TF-A to gxbb and once (maybe???) I get a gxl board to work with.
ldevulder has quit [Ping timeout: 240 seconds]
<f_> For using device trees we'll have to use FCONF I think.
<f_> Is there any Amlogic gxbb board that uses LPDDR?
vagrantc has joined #linux-amlogic
f_ has quit [Quit: nyaa~]
f_ has joined #linux-amlogic
luka177 has quit [Ping timeout: 265 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
jacobk has joined #linux-amlogic
ldevulder_ has quit [Quit: Leaving]
f_ has quit [Quit: zzz]
tsegers has quit [Read error: Connection reset by peer]
steev has quit [Ping timeout: 240 seconds]
tsegers has joined #linux-amlogic
ccaione has quit [Read error: Connection reset by peer]
narmstrong has quit [Read error: Connection reset by peer]
ccaione has joined #linux-amlogic
narmstrong has joined #linux-amlogic
steev has joined #linux-amlogic
dliviu has quit [Quit: Going away]
Lyude has quit [Quit: Bouncer restarting]
Lyude has joined #linux-amlogic
dliviu has joined #linux-amlogic
Lyude has quit [Quit: Bouncer restarting]
Lyude has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
Danct12 has quit [Ping timeout: 240 seconds]
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
jacobk has quit [Ping timeout: 252 seconds]
naoki has joined #linux-amlogic
jacobk has joined #linux-amlogic