<Kwiboo>
f_: Your recent changes made reading from memory multiple times work on my c2, and as you mentioned that did not solve the issue. However comparing regs with what atf-bl2 write to regs reviled a diff in the value being written to DDR0_PUB_MR2.
<Kwiboo>
PUB_MR2: ((timings.cwl - 5) & 7 << 3) <<-- it is missing parentheses :-)
<Kwiboo>
after changing it to (((timings.cwl - 5) & 7) << 3), the memory pattern test finally passed
<Kwiboo>
so now writing and reading memory seem to be working, hope that small fix also make it work on your device :-)
montjoie has quit [Ping timeout: 260 seconds]
montjoie has joined #linux-amlogic
dlan has joined #linux-amlogic
naoki has joined #linux-amlogic
jacobk has joined #linux-amlogic
GNUtoo has quit [*.net *.split]
hexdump0815 has quit [Ping timeout: 244 seconds]
hexdump0815 has joined #linux-amlogic
GNUtoo has joined #linux-amlogic
buzzmarshall has quit [Quit: Konversation terminated!]
jacobk has quit [Ping timeout: 246 seconds]
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 248 seconds]
<lvrp16>
rockosov: might have mobileeye v1 working within the month.
<lvrp16>
Tomeu is giving a presentation at Embedded Recipes at the end of the month.
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 240 seconds]
Kwiboo has quit [Ping timeout: 252 seconds]
Kwiboo has joined #linux-amlogic
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
jacobk has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
dliviu has quit [Quit: Going away]
dliviu has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 240 seconds]
ldevulder_ has quit [Ping timeout: 258 seconds]
ldevulder has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 258 seconds]
ldevulder_ is now known as ldevulder
f_ has joined #linux-amlogic
<f_>
Kwiboo: hehe, my bad.
<f_>
Works for me too now
<f_>
>reading 0x1000000 returns 2
<f_>
Let's perhaps try getting that to work on gxl too
<f_>
lepotato first, since it also uses DDR3
<f_>
(but mine uses a different channel setting)
<Kwiboo>
Great, btw, also looks like SPL runs at EL1, so to be able to execute ATF at EL3 a smc call to BL1 must be made to start execution
<f_>
Indeed, SPL runs at EL1.
<Kwiboo>
tried to use normal SPL atf load and it ended with a "Synchronous Abort" handler, esr 0x02000000, at almost first instruction of atf: vbar_el3,x0
<Kwiboo>
could be some Makefile using SPL_ and not SPL_TPL_
<f_>
Indeed
<f_>
Kwiboo: The lack of TPL_DM_MMC was on-purpose it seems
iprusov has quit [Quit: WeeChat 3.5]
iprusov has joined #linux-amlogic
<Kwiboo>
I do not think there should be any issue extending it to TPL, but agree that if possible a minimal read func that does bare minimum could be enough, still the goal for u-boot seem to be move everything into driver model
<f_>
lol
<narmstrong>
pretty sure we could do a very bare mmc read from board init in TPL
<narmstrong>
like amlogic does in bl1
<f_>
and BL2
<f_>
storage_init() only inits the NAND if present
<narmstrong>
and using the mmc controller dedicated bound buffer, it will make the code trivial
<f_>
just need to do this properly with upstreamable code and port to gxl then
<Kwiboo>
yes this was with only SPL, no debug messages and tuned some compile options to reduce size
f_ has quit [Ping timeout: 240 seconds]
<Kwiboo>
also took advantage of the fit image support for adding sha256 hash, so no need to add code to calculate hash before sending bl30/bl301 via mailbox, just use precalculated values
gis has joined #linux-amlogic
<Kwiboo>
u-boot-spl-dtb.bin is only 38kb so still some room for more code if needed