00:31
jacobk has quit [Ping timeout: 240 seconds]
01:46
<
lvrp16 >
Finally done conferences and can go home to get some work done.
01:49
<
lvrp16 >
Go home and start bugging people to get more documentation.
02:59
naoki has quit [Quit: naoki]
03:26
hexdump0815 has quit [Ping timeout: 255 seconds]
03:27
hexdump0815 has joined #linux-amlogic
04:26
Danct12 has quit [Read error: Connection reset by peer]
04:45
jacobk has joined #linux-amlogic
04:51
jacobk has quit [Ping timeout: 255 seconds]
04:53
naoki has joined #linux-amlogic
05:13
Danct12 has joined #linux-amlogic
05:22
jacobk has joined #linux-amlogic
05:53
jacobk has quit [Ping timeout: 272 seconds]
06:01
jacobk has joined #linux-amlogic
06:32
<
f_ >
Seeing as you're already preparing for V1.0, will I get V1.0 or V0.2 after all?
07:09
naoki has quit [Quit: naoki]
07:18
jacobk has joined #linux-amlogic
07:23
Daanct12 has joined #linux-amlogic
07:49
JohnnyonFlame has quit [Read error: Connection reset by peer]
07:49
JohnnyonFlame has joined #linux-amlogic
08:36
ldevulder has joined #linux-amlogic
10:09
<
f_ >
Am very curious as to how BL2 handles DRAM firmware
10:34
<
narmstrong >
Yeah there must be an entry point to each fw ?
10:34
<
f_ >
I don't really care about that tbh
10:34
<
f_ >
Mostly interested on aml_ddr.fw
10:34
<
f_ >
I'm 50% sure it is
*not* firmware to be loaded into DRAM
10:35
<
f_ >
and rather something just like BL21
10:38
<
f_ >
which they made perhaps because of size limits?
10:38
Danct12 has quit [Read error: Connection reset by peer]
10:49
gabes2 has joined #linux-amlogic
11:32
<
narmstrong >
yea it's init code, no idea why they ship them separately since afterwards they glue them together
11:44
* f_
checks amlogic-boot-fip scripts
11:49
<
narmstrong >
they're added in a weird header after the fip table
11:56
<
narmstrong >
man i wrote this code, looks good
11:56
<
f_ >
Have no doubt your code is better than Amlogic's
11:57
<
f_ >
Yeah that's good code
11:57
<
f_ >
Could probably get loaded by BL2 tbh, which could be why that weird header is used
11:59
<
narmstrong >
ok yeah I wrote this in Borland C++ in a DOS shell
11:59
<
f_ >
understandable then, you didn't use vim
12:00
<
Daanct12 >
EDIT.COM the best
12:01
<
narmstrong >
it was dark time for me, I wasn't really aware of linux
12:01
<
f_ >
narmstrong: Vim does run on DOS though :P
12:01
<
narmstrong >
oh yeah I know
12:02
<
f_ >
In the meantime MS releases MSDOS 2.x source code
12:02
<
narmstrong >
I was like John Snow, I didn't know anything and learned C with an old book on Borland C++ 4.5 for 80286
12:03
<
narmstrong >
anyway yeah, didn't you pass the ddrfw files to Ghidra ?
12:11
<
f_ >
what is up with these commits though
12:11
<
f_ >
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Sync with u-boot Dockerfile
12:12
<
narmstrong >
a little --autosquash all it the will disappear
12:13
<
f_ >
17:50 <xdarklight> to all reverse engineering interested people here wanting to take a look at the DDR firmware blobs on G12A and newer SoCs: $ dd if=aml_ddr.fw bs=1 skip=96 | lz4 > foo.bin.dec
12:13
<
f_ >
the gibberish at the start isn't a real problem for ghidra if that file wasn't compressed.
12:16
<
f_ >
>The file aml_ddr.fw.dec seems to have nasted files in it.
12:16
<
f_ >
Will go for a while..
12:17
<
f_ >
(bouncer will stay connected though=
12:39
psydroid has joined #linux-amlogic
12:53
camus has quit [Quit: camus]
12:56
jacobk has quit [Ping timeout: 240 seconds]
13:05
<
narmstrong >
and I switched to buildman to build the boards, 2m to build 44 boards ^^
13:06
Daanct12 has quit [Quit: WeeChat 4.0.5]
13:07
jacobk has joined #linux-amlogic
13:16
<
mkorpershoek >
super cool for buildman !
13:43
GNUtoo has quit [Ping timeout: 256 seconds]
14:28
Danct12 has joined #linux-amlogic
14:40
<
f_ >
Fed aml_ddr.fw into ghidra and it's indeed aarch64 code.
14:40
<
f_ >
At this point reversing g12 BL2 is useless.
14:40
<
f_ >
It only seems to load that and run it..
14:42
<
narmstrong >
at first, but we should have them as source as some point, FTW !
14:42
<
f_ >
but yeah they indeed moved everything there..
14:42
<
f_ >
and indeed..they load it manually from BL2.
14:42
<
f_ >
So they may have probably split it because of size limits.
14:43
<
f_ >
but IIRC the size limit changed in g12?
14:43
<
narmstrong >
i don't think so, perhaps it was too limited to load more init codes
14:45
<
f_ >
When I say the size, I mean the maximum size the bootROM can load to SRAM
14:46
<
f_ >
on gxbb/gxl it's maximum 48K with 44K usable.
14:47
<
narmstrong >
yeah they may have hit the limit with all the ddr variants
14:47
<
f_ >
I think on g12 it's 0xf000?
15:01
<
f_ >
OK back to gxl.
15:37
<
f_ >
^ SPL/BL2 register diffs.
15:37
<
f_ >
Best viewed with less -R
15:43
<
f_ >
and we have many differences..
16:06
jacobk has quit [Ping timeout: 272 seconds]
16:46
<
f_ >
Reversing DRAM made easier on g12
16:46
* f_
looks at Amlogic staffers lurking here.
16:53
jacobk has joined #linux-amlogic
16:53
vagrantc has joined #linux-amlogic
17:15
paddymahoney has joined #linux-amlogic
17:34
Terry13732293409 has quit [Quit: Bye Bye]
17:34
Terry13732293409 has joined #linux-amlogic
18:17
chewitt has quit [Quit: Zzz..]
18:26
<
f_ >
Wait done for PGSR0, currently 0x80000fff
18:27
<
f_ >
^ PGSR0 says success!
18:27
<
f_ >
Should push now..
18:28
<
f_ >
Still got some diffs (I guess)
18:30
chewitt has joined #linux-amlogic
18:30
<
f_ >
To clarify though, DRAM init still doesn't work..
18:30
<
f_ >
But it's still progress!
18:36
chewitt has quit [Quit: Zzz..]
18:38
<
f_ >
(currently waits for PCTL_STAT to return UPCTL_STAT_ACCESS which never happens..so further effort is needed)
19:09
gis has quit [Ping timeout: 260 seconds]
19:22
hexdump0815 has quit [Quit: WeeChat 1.9.1]
19:22
hexdump0815 has joined #linux-amlogic
19:35
jacobk has quit [Ping timeout: 240 seconds]
19:45
gis has joined #linux-amlogic
21:00
<
f_ >
Removed some files generated by make which ended up getting picked up by git for some reason.
21:00
<
f_ >
(make distclean)
21:01
<
f_ >
Did great progress today.
21:08
jacobk has joined #linux-amlogic
21:32
jacobk has quit [Ping timeout: 260 seconds]
21:35
f_[xmpp] has quit [Ping timeout: 272 seconds]
21:38
psydroid has quit [Remote host closed the connection]