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
Consolatis has quit [Server closed connection]
Consolatis has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
jacobk has quit [Ping timeout: 258 seconds]
jacobk has joined #linux-amlogic
JohnnyonF has quit [Ping timeout: 252 seconds]
tortoise has quit [Server closed connection]
tortoise has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
naoki has quit [Quit: naoki]
naoki has joined #linux-amlogic
luka177 has joined #linux-amlogic
f_ has joined #linux-amlogic
<f_> Hey all.
<f_> I'm pushing my updated notes to my git repo
<f_> I think I'm going to take a ~1 day break from Amlogic though.
<f_> only one day though
<f_> (that means you'll see me spamming in #linux-amlogic tomorrow!)
<f_> Or not
<f_> ......
* f_ decides to continue working on Amlogic stuff.
<f_> Might take a break later
<f_> but I really want to finish pctl init
<f_> and test
<f_> to then rage quit when it's not working.
<f_> =) I like that
<f_> and finally get it working and be very, very happy about the fact that you've done something incredible.
<narmstrong> f_: your work is entertaining !
<f_> Indeed =)
<f_> And I'll repeat the same process for gxl!
<f_> create a Gerrit MR and call it a win!
<f_> And I try to document as much as I can, too, so that people can e.g. port to other Amlogic SoCs!
<f_> or learn how it works
<narmstrong> having this for gxl will be a great win because there's a lot of people with a gxl board (namely the potato) that would love that
<f_> narmstrong: Wait and see!
<f_> I'll most likely get both LePotato and LaFrite.
<f_> probably next week though
<f_> (still didn't bother about those yet..have some personal things to resolve first)
<f_> (as in, didn't ask for those yet)
<narmstrong> if you need help on lepotato and larite => lvrp16 is the one who made those boards
<f_> I'm aware of that, thanks!
<f_> they actually PM'd me to tell me that they were interested in my work.
<f_> (which I highly appreciate)
<narmstrong> nice!
<f_> and I really like what they're doing
<f_> having a LePotato and LaFrite along with my KII pro sitting side-by-side =)
<f_> Honestly though it shouldn't be hard to adapt BL2 for gxl
<f_> But yeah I *will* get a LePotato and LaFrite, that's for sure!
<f_> And somehow I have SOIC clips for flashing flash chips so I can drop my BL2 in the SPI flash
<f_> And flash with either a Raspberry Pi or the LePotato!
<narmstrong> nice! but with pyamlboot you can boot u-boot from usb and flash the spi, quite handy
<f_> That too!
<f_> Should test it on my KII Pro someday
<f_> maybe add support for it in pyamlboot
<camus> GXL and GXB use the same dwc ddr phy, but G12A/SM1 uses a different phy :(
* f_ still has to figure out how to send patches...They don't feel like signing in to GMail just to enter a code (2FA isn't even on)
<f_> camus: :(
<f_> But I knew GXL and GXBB were similar!
<narmstrong> for g12a/sm1 they sideload ddr "blobs" into bl2, so I expect the ddr init code has been moved out
<f_> I suppose their BL2 is still proprietary, right?
<narmstrong> yep
<f_> Either way I expect the same codebase
<narmstrong> and they likely moved to a a more recent tfa since they support newer psci
<f_> So what should be reverse-engineered would be the ddr blobs.
<f_> narmstrong: Oh well
<f_> So their codebase may be different?..
<f_> Or they may have just imported newer code into TF-A like what they did with U-Boot for years.
<narmstrong> no idea, hard to say, probably a mix of both
<f_> I unfourtunately don't own any G12A/SM1 board so can't tell..but I hope my reverse-engineering notes will be helpful for that
<f_> still highly suspect they use mostly the same codebase since S905.
<f_> narmstrong: But did generations earlier (Meson6, Meson8,...) use U-Boot SPL?
<f_> I saw references to U-Boot SPL in Amlogic's older U-Boot tree supposedly targetting those SoCs.
<narmstrong> f_: no ide actually, xdarklight_ should be able to answer that question
<narmstrong> but it's probable yes
<f_> Ah yes, xdarklight_ is working on Meson6 and Meson8 IIRC
<narmstrong> yep
<f_> Nice
<f_> One little useless thing to tell before I go back to REing
<f_> When looking at Amlogic devs emails I see they start with the same message lol
<f_> >Hi <name>
<f_> > Thanks for your response
<f_> Oh wait a second
<f_> Just saw a spam email landing in linux-amlogic@
<f_> 7win 14
<f_> Whoops.
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
tomeu has quit [Remote host closed the connection]
naoki has quit [Quit: naoki]
<f_> wait a second
<f_> they did "obfuscate" some stuff
<f_> in their BL2
<f_> Ghidra doesn't recognise the fact that this is a struct!
<f_> because lVar2 is a `long`
<f_> so..
<f_> long thing = ddrt[3]; /* :P */
<f_> struct ddr_timing_t ddrt;
<f_> = { {...} }
<f_> Sucks.
<f_> but hey
<f_> Ghidra has a neat data type manager
<f_> It shows all struct members as well as addresses where they're located at!
<f_> Very neat.
<f_> Have we got some Amlogic staff here though lol
<f_> so sad that I'm reverse-engineering their blobs and understanding what they do :P
<f_> (but hey, this is for an SoC no longer supported :P)
<f_> (that's the good news, the bad news is that I'll adapt this for gxl)
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
kenny has quit [Ping timeout: 250 seconds]
kenny has joined #linux-amlogic
camus has quit [Remote host closed the connection]
camus has joined #linux-amlogic
Terry1373229340 has joined #linux-amlogic
Terry137322934 has quit [Ping timeout: 250 seconds]
Terry1373229340 is now known as Terry137322934
<f_> >Pointer to pointer to ddrt[3]
<f_> :P
leah has quit [Ping timeout: 264 seconds]
<f_> Really, pointers that point to other pointers..
<f_> There's a TON of that!
buzzmarshall has joined #linux-amlogic
leah has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
f11f12 has joined #linux-amlogic
rellla has quit [Server closed connection]
rellla has joined #linux-amlogic
f__ has joined #linux-amlogic
f_ has quit [Ping timeout: 250 seconds]
rockosov has quit [Ping timeout: 250 seconds]
rockosov has joined #linux-amlogic
f11f12 has quit [Quit: Leaving]
xdarklight_ is now known as xdarklight
<xdarklight> f__: indeed, IIRC 32-bit SoCs are using u-boot SPL. I'm not sure how relevant this is for GXBB and newer though because the 32-bit SoCs are booting to an Synopsys ARC HS core whose purpose it is to bring the ARM core up (and standby/wakeup management etc.)
f__ is now known as f_
<f_> Sure.
<f_> I was just curious. Thanks!
<f_> Found references to U-Boot SPL in an Amlogic fork and got confused. That's why I asked.
<f_> Either way, thanks!
rellla has quit [Ping timeout: 250 seconds]
rellla has joined #linux-amlogic
kenny has quit [Ping timeout: 250 seconds]
kenny has joined #linux-amlogic
vagrantc has joined #linux-amlogic
jkl has quit [Quit: Gone.]
luka177 has quit [Ping timeout: 260 seconds]
Danct12 has joined #linux-amlogic
luka177 has joined #linux-amlogic
jkl has joined #linux-amlogic
<f_> Got to go. Will push and disconnect.
f_ has quit [Quit: Disconnecting.]
luka177 has quit [Ping timeout: 260 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: 264 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
CounterPillow has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 250 seconds]
luka177 has joined #linux-amlogic
<lvrp16> narmstrong: we got psci 1.0 on gxl
iprusov has quit [Quit: WeeChat 3.5]
iprusov has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
naoki has joined #linux-amlogic