ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
juri__ has joined #linux-sunxi
juri_ has quit [Ping timeout: 480 seconds]
<machinehum> aperezdc_: Thanks for those values
<machinehum> I'm still a little lost on this guy https://pastebin.com/raw/RWYAmrBQ so smaeul you're saying that my disassembly of boot0 will not contain these values?
<machinehum> I guess is the boot0 loaded right at 00020000h? Because if so it looks like para is the contents at 0x38 which I've listed
<apritzel> machinehum: yes, AW uses a struct with the DRAM values, and places it near the beginning of the boot0 binary
<apritzel> they would appear in a boot0 disassembly, but not in libdram disassembly
<machinehum> To be clear I'm talking about the "para" argument of init_DRAM, not the values you sent to me
<apritzel> I understand
<machinehum> Okay
<apritzel> I don't remember right now what the first 8 is, but 792 is the frequency (in MHz), and 7 is the DRAM type
<apritzel> IIRC 7 is LPDDR3
<apritzel> those are the easy things, the more interesting specific timing values come next, mostly encoded already to be written directly into registers
<machinehum> So I can assume the values at 0x38 in boot0 are the struct values?
<apritzel> yes, most likely
<apritzel> where do those names come from? libdram?
<apritzel> ZQ looks definitely like a match, my boot0 says 003b3bfb, which is a typical value
<machinehum> I got the names from libdram yeah
<machinehum> Filled out the struct in boot0, because ghidra obviously didn't know what they were
<machinehum> The names that is
<apritzel> yeah, that part requires clever combining of the two
<apritzel> the rest looks matching as well, 0x1c70 looks like a valid MR0
<machinehum> My boot0 does not agree https://pastebin.com/raw/wYMZ3cfm
<machinehum> Unless I'm reading this wrong
<apritzel> looks alright to me ...
<apritzel> @0x38 is the frequency, and the rest follows
<apritzel> type, ZQ, ODT enable, ...
<machinehum> zq starts at 0x40 which is fb3b3b00
<machinehum> Oh
<apritzel> little endian
<machinehum> Endianess
<machinehum> Derp
<machinehum> I haven't done stuff like this since school, which was a while ago
<machinehum> Okay neat, so I can start working that into the code as well
<machinehum> Some of those MBUS_PORT_* are not in the enum, should I just add them?
<apritzel> smaeul: that is all very sad ...
<apritzel> machinehum: keep in mind that the MBUS_PORT values come from the H6 definitions, not from the A64 ones
<machinehum> So I'll have to use sunxi_mctl_com_reg etc from the dram_sun50i_h6.h
<smaeul> apritzel: why sad?
apritzel has quit [Ping timeout: 480 seconds]
<machinehum> apritzel where exactly did you get the PORT12, 27, etc... from? There not defined in dram_sun50i_h6.c
Daanct12 has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
aggi has quit [Quit: connection closed.]
MoeIcenowy has quit [Remote host closed the connection]
MoeIcenowy has joined #linux-sunxi
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
mehdix has joined #linux-sunxi
aggi has joined #linux-sunxi
NekoMay has joined #linux-sunxi
Luke-Jr has quit [Ping timeout: 480 seconds]
Luke-Jr has joined #linux-sunxi
Daaanct12 has joined #linux-sunxi
Daanct12 has quit [Read error: Connection reset by peer]
narmstrong_ has joined #linux-sunxi
jakllsch_ has joined #linux-sunxi
buZz_ has joined #linux-sunxi
gnarface has quit [synthon.oftc.net larich.oftc.net]
gnarface has joined #linux-sunxi
Rajko has quit [Read error: Connection reset by peer]
evgeny_boger has joined #linux-sunxi
Daaanct12 is now known as Daanct12
apritzel has joined #linux-sunxi
evgeny_boger has quit [Read error: No route to host]
bauen1 has quit [Ping timeout: 480 seconds]
Daaanct12 has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
Daaanct12 has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #linux-sunxi
Daaanct12 has joined #linux-sunxi
Nemo_bis has joined #linux-sunxi
Daanct12 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
gnarface has quit [synthon.oftc.net larich.oftc.net]
gnarface has joined #linux-sunxi
Nemo_bis has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
Daaanct12 has quit [Quit: Leaving]
szemzoa has joined #linux-sunxi
szemzoa_ has joined #linux-sunxi
szemzoa has quit [Read error: Connection reset by peer]
Nemo_bis has joined #linux-sunxi
buZz_ has left #linux-sunxi [#linux-sunxi]
buZz has joined #linux-sunxi
<montjoie> smaeul: thanks, it works better. did uboot/sbi/etc does a dtb address change ? i needed to change dtb address in my CI
szemzoa_ has left #linux-sunxi [#linux-sunxi]
szemzoa_ has joined #linux-sunxi
szemzoa_ has left #linux-sunxi [#linux-sunxi]
szemzoa has joined #linux-sunxi
<szemzoa> I'm porting the D1_spl bootloader to T113-S3, mcrl_hal.c and the others are working, but I got some errors after loading OP-TEE. Anybody has an idea what I missed here? https://pastebin.com/UBevgnF6
juri__ has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
juri_ has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
arti has quit [Quit: arti]
arti has joined #linux-sunxi
Danct12 has quit [Remote host closed the connection]
aggi has quit [Quit: zzz]
aggi has joined #linux-sunxi
Danct12 has joined #linux-sunxi
vagrantc has joined #linux-sunxi
cnxsoft has quit []
ftg^ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
bauen1 has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
ftg^ has quit [Ping timeout: 480 seconds]
gamiee2 has joined #linux-sunxi
hlauer has joined #linux-sunxi
JohnDoe_71Rus has quit []
ftg^ has joined #linux-sunxi
megi has joined #linux-sunxi
juri__ has joined #linux-sunxi
juri___ has joined #linux-sunxi
juri_ has quit [Ping timeout: 480 seconds]
juri__ has quit [Ping timeout: 480 seconds]
rajkosto has joined #linux-sunxi
juri___ has left #linux-sunxi [#linux-sunxi]
juri_ has joined #linux-sunxi
hentai has quit [Quit: Leaving]
megi has quit [charon.oftc.net helix.oftc.net]
hlauer has quit [charon.oftc.net helix.oftc.net]
gamiee2 has quit [charon.oftc.net helix.oftc.net]
rajkosto has quit [charon.oftc.net helix.oftc.net]
szemzoa has quit [charon.oftc.net helix.oftc.net]
mehdix has quit [charon.oftc.net helix.oftc.net]
paulk-ter has quit [charon.oftc.net helix.oftc.net]
plaes has quit [charon.oftc.net helix.oftc.net]
DuClare_ has quit [charon.oftc.net helix.oftc.net]
cyrozap has quit [charon.oftc.net helix.oftc.net]
pg12 has quit [charon.oftc.net helix.oftc.net]
ftg^ has quit [charon.oftc.net liquid.oftc.net]
bauen1 has quit [charon.oftc.net liquid.oftc.net]
arti has quit [charon.oftc.net liquid.oftc.net]
Nemo_bis has quit [charon.oftc.net liquid.oftc.net]
freemangordon has quit [charon.oftc.net liquid.oftc.net]
juri_ has quit [charon.oftc.net liquid.oftc.net]
swiftgeek has quit [charon.oftc.net liquid.oftc.net]
chuang[m] has quit [charon.oftc.net liquid.oftc.net]
ad__ has quit [charon.oftc.net liquid.oftc.net]
DavidHeidelberg[m] has quit [charon.oftc.net liquid.oftc.net]
jernej has quit [charon.oftc.net liquid.oftc.net]
ats has quit [charon.oftc.net liquid.oftc.net]
veremitz has quit [charon.oftc.net liquid.oftc.net]
Newbyte has quit [charon.oftc.net liquid.oftc.net]
juri_ has joined #linux-sunxi
swiftgeek has joined #linux-sunxi
veremitz has joined #linux-sunxi
bauen1 has joined #linux-sunxi
ad__ has joined #linux-sunxi
jernej has joined #linux-sunxi
Newbyte has joined #linux-sunxi
ats has joined #linux-sunxi
DavidHeidelberg[m] has joined #linux-sunxi
arti has joined #linux-sunxi
freemangordon has joined #linux-sunxi
ftg^ has joined #linux-sunxi
Nemo_bis has joined #linux-sunxi
chuang[m] has joined #linux-sunxi
rajkosto has joined #linux-sunxi
szemzoa has joined #linux-sunxi
hlauer has joined #linux-sunxi
megi has joined #linux-sunxi
mehdix has joined #linux-sunxi
plaes has joined #linux-sunxi
DuClare_ has joined #linux-sunxi
gamiee2 has joined #linux-sunxi
paulk-ter has joined #linux-sunxi
pg12 has joined #linux-sunxi
ynezz has joined #linux-sunxi
insep has joined #linux-sunxi
sajattack[m] has joined #linux-sunxi
cyrozap has joined #linux-sunxi
veremitz has quit [Quit: ZNC - http://znc.in]
veremitz has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
gamiee2 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<apritzel> machinehum: I decoded the ports back from dumping the registers after boot0 initialised the DRAM
<apritzel> a lot of them were 0 (hence the gaps), but those listed were programmed
<apritzel> I don't know that they stand for, but that doesn't really matter, as we just set them to the same values as boot0 does and are good
<apritzel> smaeul: sad because of both the RISC-V foundation not foreseeing the problem, and also AW (and friends) for ignoring the coherency requirement of the architecture
dliviu has joined #linux-sunxi
machinehum1 has joined #linux-sunxi
machinehum has quit [Ping timeout: 480 seconds]
machinehum1 has left #linux-sunxi [#linux-sunxi]
machinehum has joined #linux-sunxi
<karlp> oh, that's gross. :(