<MasterR3C0RD>
Just changing `writel(0xe08, &mctl_ctl->mrctrl1)` to `writel(0xe0e, ...)` gets me through DRAM init
<apritzel>
MasterR3C0RD: on the A5E?
<MasterR3C0RD>
Yep, fails afterwards over FEL since it can't boot from anything; writing a new image now to try booting real media
<apritzel>
so for me it always passed the DRAM init, and detected the right size, but then fails in weird ways, which jernej and I tried to attribute to a subtle DRAM failure
<apritzel>
FEL is broken probably for a different reason: that's the same problem on the Avaota
<apritzel>
but I got failures from an SD card as well, and our "hope" was this is due to DRAM not being quite right
<MasterR3C0RD>
Once I get into U-Boot I'll see if I get anything special
<apritzel>
the same branch works completely fine on the X96QPro+ (DDR3L DRAM), so the FEL and MMC code are fine in general
<MasterR3C0RD>
Could be something marginal with DRAM, though in my experience once it works it works. Only other thing I could think of off the top of my head is if there's a similar "special case" for DRAM organization on the A523 as there is on the A133 (16 row 10 col treated in a special way)
<MasterR3C0RD>
4GB boards seem to have the most special cases thus far
<MasterR3C0RD>
Hmm, still getting "failed to boot from all boot devices"... maybe I'm missing a config option lol
flyback has quit [Ping timeout: 480 seconds]
flyback has joined #linux-sunxi
tiop has quit []
apritzel has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
<MasterR3C0RD>
apritzel: I presume by boot failures you had meant you weren't even able to get into U-Boot shell? That's at least where I'm at right now
<MasterR3C0RD>
In terms of additional calibrations, it appears the Cubie only wants read calibration, so the others aren't involved at all in this process, and if read calibration didn't work, I would expect no board to work. So problem must run deeper
hipboi has quit [Quit: hipboi]
hipboi has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
machinehum has quit [Remote host closed the connection]
hipboi has quit [Quit: hipboi]
machinehum has joined #linux-sunxi
colinsane has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
apritzel has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
tiop has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
flyback has quit [Ping timeout: 480 seconds]
flyback has joined #linux-sunxi
gsz has joined #linux-sunxi
dsimic is now known as Guest6749
dsimic has joined #linux-sunxi
Guest6749 has quit [Ping timeout: 480 seconds]
tiop has quit []
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
chewitt has joined #linux-sunxi
Schimsalabim has quit [Read error: No route to host]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
junari has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel>
MasterR3C0RD: ah, no, mine was stuck in SPL still, the MMC code there was complaining. That code typically has no issues, and works on the X96QPro+, so I'd assume it's a DRAM issue
buZz has quit [Remote host closed the connection]
bauen1 has joined #linux-sunxi
junari has quit [Remote host closed the connection]
jelly has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2025-01-23 14:18:24)]
ludger has joined #linux-sunxi
ludger has quit []
JohnDoe_71Rus has joined #linux-sunxi
jelly has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
apritzel_ has joined #linux-sunxi
<MasterR3C0RD>
Avaota arrived today, so should have something to compare against now. Very pretty and has just about every peripheral you could ask for on a bringup board
<apritzel>
MasterR3C0RD: which PCB version do you have? v1.3 as well?
<MasterR3C0RD>
1.5, Pine Store branded
hramrach has quit [Ping timeout: 480 seconds]
apritzel_ has quit [Ping timeout: 480 seconds]
<MasterR3C0RD>
apritzel: Does your v1.3 have SPI NAND? Looking at the changelog entries one of the differences is support for SPI NOR boot, but I see an FM25S01 on the back of the board which would be SPI NAND
hramrach has joined #linux-sunxi
<apritzel>
MasterR3C0RD: mine is SPI NAND: Winbond 25N02, as seen in the pictures in the Wiki
<MasterR3C0RD>
Don't see any NOR flash in the schematics either, so I guess it meant SPI NAND boot?
chewitt has quit [Quit: Zzz..]
tlwoerner_ has joined #linux-sunxi
tlwoerner has quit [Ping timeout: 480 seconds]
<apritzel>
seems to be more popular these days: you get much larger capacity, I think. We just don't support it yet in U-Boot, though there were patches on the list
linkmauve has left #linux-sunxi [Error from remote client]
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
nashpa has joined #linux-sunxi
<jernej>
MasterR3C0RD: MR14 must be also set in init[7] reg in lpddr4 timing code
dliviu has quit [Ping timeout: 480 seconds]
<MasterR3C0RD>
jernej: Ahhh I forgot about the init registers
<jernej>
in any case, memtest code in systerkit is pretty thorough, so if it passes, DRAM is not to blame for SD card or other issues
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
ftg has joined #linux-sunxi
<MasterR3C0RD>
From my POV it's either DRAM or voltages, but I'm not sure which yet; even after fixing init[7] I get corrupted errors when logging is maxed out in SPL on the Cubie, but no issue at all on the Avaota
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<Soupborsh>
Hello, I found that kernel bsp source for B288 has standby dram initialization code. How much it differs from the one that runs on boot? How can It be adapted to work in U-Boot Mainline SPL?
<apritzel>
Soupborsh: ah, good find, even has comments! But I don't know how much this differs, I think smaeul might know: he added DRAM suspend code to the crust firmware
<apritzel>
MasterR3C0RD: jernej: actually: why would the DRAM init need to be so different between the two boards? Just because the BSP does it this way?
<apritzel>
I mean couldn't we try to use the same static init approach as on the Avaota also for the Radxa?
<MasterR3C0RD>
apritzel: There's no real difference in the RAM init code; the only difference is the changing of a parameter that isn't parameterized
<MasterR3C0RD>
Soupborsh: Quick glance makes me think that is very similar to DRAM initialization; there's a full reset of the DRAM controller in there
<MasterR3C0RD>
It's also doing some trainings, which is very interesting
IlikeTech has quit [Read error: Connection reset by peer]
IlikeTech has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
<smaeul>
apritzel: BSP standby DRAM code is mostly similar to the boot code; it does a full reinitialization of the controller. it may be missing some things like training if it grabs the values from before standby
<smaeul>
crust code is very different because it avoids resetting the controller. it only clock gates the controller and powers down some pad drivers