GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
camus has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 252 seconds]
vagrantc has quit [Quit: leaving]
hays has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
hexdump0815 has quit [Ping timeout: 260 seconds]
hexdump0815 has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
camus has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 246 seconds]
hexdump0815 has quit [Quit: WeeChat 1.9.1]
hexdump0815 has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
chewitt has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
f11f12 has joined #linux-amlogic
f_ has joined #linux-amlogic
<f_>
hi all. I'm seriously considering stopping work on TF-A to instead port U-Boot SPL. What do y'all think about that?
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
<chewitt>
f_ if I had a more serious clue about U-Boot I'd make an informed comment .. but sadly :)
<f_>
Hi chewitt :)
<chewitt>
btw, I saw in backlog that you don't have a g12 board for boot hacking
<f_>
I mean, I could continue on tinkering with TF-A BL2 but have no idea if it's going to get merged upstream ¯\_(ツ)_/¯
<f_>
chewitt: Nah I don't, sorta.
<f_>
I do have a set-top box which might be g12 but it's not really mine.
<chewitt>
if you're going to keep poking at things, feel free to purchase something locally and expense it to LibreELEC via our OpenCollective page
JohnnyonFlame has quit [Ping timeout: 246 seconds]
<f_>
I should now have some gxl boards now though
<chewitt>
what did you get?
<f_>
lvrp16 sent me a lepotato and lafrite :)
<chewitt>
ahh, nice
<f_>
So I'll be able to work on gxl too, alongside or after working on gxbb.
<chewitt>
usually the only way to find out if things will be merged, is to send RFC patches
<f_>
There are some interesting g12 boards locally though, but even if I got one to poke at I would still finish working on gxl/gxbb first.
<f_>
finish means, in this case, that I'm able to boot linux
<f_>
I think I should at some point port LibreELEC to my KII Pro sometime.
<chewitt>
i'm not sure what memory controller is used on the Allwinner boards, but I know Jernej Škrabec (one of LE's contributors) did work on U-Boot RAM init support for them
<f_>
chewitt: 80% sure it's also a synopsys controller
<chewitt>
he and others that have done work in that area can be found in the #linux-sunxi channel on oftc.net
<f_>
At least that's what the linux-sunxi website states.
<f_>
At least sun4i, sun5i and sun7i use a synopsys controller
JohnnyonFlame has joined #linux-amlogic
<f_>
Amlogic have put some comments in their code in their old sources.
<f_>
With some trial and error and looking at these comments, I should probably be able to document how the controller works.
<f_>
also by looking at ghidra...although Amlogic barely changed their entire BL2 code
<f_>
chewitt: I'd say ~60%-70% of their code was kept unmodified.
<f_>
e.g. if you compare storage_init() in my decomp and in their old sources you'll see that it was mostly kept unmodified, apart from some ghidra-related quirks.
<chewitt>
"if it works, don't fix it" is a universal thing in a sources :)
<chewitt>
in all..
<f_>
Indeed.
<f_>
As far as I can tell all they did to ddr init was adding LPDDR support
<f_>
but that's pretty much about it.
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-amlogic
ck_98 has joined #linux-amlogic
ck_98 has quit [Ping timeout: 246 seconds]
<f_>
I guess I could just sort of copy-paste Amlogic code and be done with it, but the long term solution would be to properly document registers.
luka177 has quit [Ping timeout: 246 seconds]
jacobk has joined #linux-amlogic
<f_>
Someone reached out to me saying that BL1/BL2/BL3* could have an option to "censor" UART logs. Is that true?
<f_>
there's no such thing, which means they most likely added that in gxl and newer.
<f_>
To confirm this I need to decompile gxl BL2 though
<chewitt>
someone probably tried to 'tidy' the output and the reformatting function has unforeseen other potential
<f_>
lol
<f_>
Will feed gxl BL2 into ghidra real quick
JohnnyonFlame has quit [Ping timeout: 246 seconds]
jacobk has quit [Ping timeout: 246 seconds]
<xdarklight>
minute: it's good that you haven't tried my patch - it's obviously broken as I didn't zero-initialize "ret", meaning on successful rtw_sdio_read_port() calls it would return garbage. I'll send the proper patch as v2 to the mailing list and keep you Cc'ed. once you tested it please reply there (preferably with your Tested-by)
luka177 has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
luka177 has quit [Ping timeout: 245 seconds]
jacobk has joined #linux-amlogic
jacobk 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
<xdarklight>
minute: the patch is now in your inbox
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 246 seconds]
<minute>
xdarklight: ooooh ok thanks
chewitt has quit [Quit: Zzz..]
f_ has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-amlogic
f11f12 has quit [Quit: Leaving]
GNUtoo has quit [Remote host closed the connection]