rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
mauz555 has joined #linux-sunxi
lurchi__ is now known as lurchi_
mauz555 has quit [Ping timeout: 272 seconds]
<MoeIcenowy> jernej: oops it's insane
mauz555 has joined #linux-sunxi
mauz555 has quit [Remote host closed the connection]
mauz555 has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 256 seconds]
lynxis has joined #linux-sunxi
lucascastro has quit [Ping timeout: 256 seconds]
lynxis has quit [Remote host closed the connection]
lynxis has joined #linux-sunxi
<smaeul> apritzel: bauen1: I don't think 0x030000d0 does anything unless the fuse is set, so I don't think you can dump SBROM without it
<smaeul> if you (or anybody with an H616 board) send me an NBROM dump (or a PR to sunxi-blobs), I could tell you where the CPU hotplug flag is
lynxis has quit [Read error: Connection reset by peer]
<smaeul> I actually used super-standby to first dump the SBROM. I could not get the CPU hotplug method to boot even hello world from wdreset
lynxis has joined #linux-sunxi
<smaeul> CPU hotplug is literally the first thing BROM checks, so it's before all of the silicon bug workarounds ;)
<smaeul> apritzel: bauen1: indeed super standby requires an eGON image. it also must have a length aligned to 1k (which apparently is larger than normal boot)
gaston1980 has quit [Quit: Konversation terminated!]
<apritzel> smaeul: yeah, I tried 0x030000d0, and it did nothing: bit 31 sticks, but no change when reading from 0x0, and FEL keeps working (tested both from U-Boot and via FEL)
gaston1980 has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
gaston1980 has joined #linux-sunxi
<apritzel> smaeul: your "literally the first thing BROM checks" tickled me, and you are right: the magic is the same as in the other SoCs, and needs to be in 0x070005c0, the address is then in 0x070005c4
<apritzel> untested (getting late here)
<apritzel> smaeul: will send you the dump anyway, for your collection ;-)
<smaeul> awesome, thanks!
mauz555 has quit [Remote host closed the connection]
<apritzel> jernej: when you wake up: can you try " + 0x5c0" instead of " + 0x1b8" in the FEL64 patch, for the H616?
apritzel has quit [Ping timeout: 272 seconds]
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 264 seconds]
ChriChri_ is now known as ChriChri
gaston1980 has quit [Ping timeout: 260 seconds]
victhor has quit [Ping timeout: 260 seconds]
lurchi_ is now known as lurchi__
sunshavi has quit [Remote host closed the connection]
gaston1980 has joined #linux-sunxi
gaston1980 has quit [Ping timeout: 256 seconds]
s_frit_ has joined #linux-sunxi
s_frit has quit [Ping timeout: 260 seconds]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 256 seconds]
<bauen1> smaeul: probably because the hotplug method skips a few register writes related to clocks
<bauen1> smaeul: but most importantly to SYS_CFG to enable all SRAM (and probably other components) (or maybe bring them "out of reset"
ddlstwrr has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
<bauen1> e.g. on the H6 SRAM A1 is enabled at reset but you need to work a little magic to enable e.g. SRAM A2
<jernej> apritzel: 5c0 seems to work, but I get U-Boot header CRC mismatch for some reason
<jernej> FEL still works though
<jernej> MoeIcenowy: What's insane?
<jernej> apritzel: if I enable FIT and SPL_LOAD_FIT in U-Boot, gcc reports overflow for 360 bytes :(
<jernej> on 64-bit variant
<jernej> apritzel: this works: sunxi-fel spl spl/sunxi-spl.bin write 0x4a000000 u-boot.bin execute 0x4a000000
<jernej> and it's good enough for me
<jernej> wait, for some reason both, reset64 and execute commands work
apritzel has joined #linux-sunxi
iyzsong has quit [Quit: ZNC 1.7.5 - https://znc.in]
iyzsong has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
apritzel has quit [Ping timeout: 256 seconds]
AneoX has quit [Ping timeout: 256 seconds]
AneoX has joined #linux-sunxi
ddlstwrr has quit [Read error: Connection reset by peer]
asdf28 has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
jernej has quit [Read error: Connection reset by peer]
jernej has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
cmeerw has joined #linux-sunxi
iyzsong has quit [Quit: ZNC 1.7.5 - https://znc.in]
iyzsong has joined #linux-sunxi
iyzsong has quit [Quit: ZNC 1.7.5 - https://znc.in]
iyzsong has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
JohnDoe8 has joined #linux-sunxi
victhor has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 256 seconds]
apritzel has joined #linux-sunxi
<apritzel> jernej: yes, U-Boot starts with this magic instruction word, that is both a branch in AArch32 and an almost-nop in AArch64. The next instruction is an AA64 branch, so you get a switch
<jernej> ah, I remember now
<apritzel> jernej: U-Boot header CRC mismatch> are you trying to boot the whole u-boot-sunxi-with-spl.bin image directly in sunxi-fel?
<apritzel> jernej: the 64-bit SoCs use a FIT image, which is not (yet) supported by sunxi-tools
<apritzel> jernej: I made some patches a while ago, need to revive them
<jernej> apritzel: correct, but I haven't enable FIT yet
<jernej> see my message about 360 bytes overflow
<apritzel> right, saw this
warpme_ has joined #linux-sunxi
<apritzel> I was wondering if we can cheat and ditch the whole AXP driver, instead just issue some I2C writes
<apritzel> You just enable DCDC-D?
<jernej> actually, it's already enabled, just set it to correct value
<jernej> note, enabling I2C brings other dependencies - clock configuration (PRCM) and gpio configuration
<jernej> apritzel: did you try to use my DRAM driver on OPi?
<apritzel> no, not yet
<apritzel> but will try it later today
<jernej> apritzel: do you really think I2C driver is so big? AXP driver is already as small as possible
<jernej> well, almost, but those calculations take only few instructions
<apritzel> I don't know, just felt like a waste to have a "driver" at all for just a single register write
<jernej> check axp305.c, you'll see it's pretty minimal
<apritzel> jernej: actually: the H616 can boot >32KB eGON images
<apritzel> jernej: for now you can try to remove the artificial limit check in the build system?
<apritzel> (or relax it)
<jernej> yes, I can - where is this check?
<apritzel> jernej: don't know from the top of my head, there is at least one in mksunxiboot, and in another one somewhere
<apritzel> try to chase down the error message
<jernej> ah, it's from linker script...
<jernej> found it - in sunxi-common.h
<jernej> apritzel: I updated it to 48 KiB and it seems to work
<jernej> however, then I have to boot U-Boot proper with second command over FEL
<jernej> all in one doesn't work anymore
<jernej> ah, it seems something else needs to be fixed in sunxi-fel, it complaints when using bigger SPL only
<jernej> ok, I lifted limit in sunxi-fel and it works normally now
Naka has joined #linux-sunxi
Nakaori has quit [Ping timeout: 264 seconds]
<jernej> apritzel: you need at least these changes for OPi DRAM: http://ix.io/2EVC if that doesn't work, probably ODT and maybe bit delay compensation settings need adjusting too
lucascastro has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
<apritzel> I should create a cron job for "git fetch jernej" ;-)
<jernej> ah, sorry, it's early development...
<jernej> I promise I won't push anything in near future
<jernej> I think it's time to split patch and work on ATF
<jernej> and Linux
<apritzel> jernej: no, that's totally fine! No worries
<apritzel> jernej: you are doing a great job on that
<apritzel> TF-A is just a bit annoying, since this SRAM location is so baked in
<apritzel> jernej: so about the AXP DRAM issue: in the past the PMICs were somewhat preconfigured to power DRAM out of reset, I wonder why this is not the case here?
<jernej> it's powered, just not at appropriate voltage
<apritzel> too low?
<jernej> yes, but I forgot at how much
<apritzel> because in the past we had 1.5V on LPDDR3, and that was at least working
<apritzel> jernej: what are the DRAM chips on your TV boxes?
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
<apritzel> jernej: the OPi has two Samsung K4B4G1646E, 4Gb x 16
<jernej> apritzel: 8x MT41K1G4RH
<jernej> so each IC is 4 x 1 Gb
<apritzel> so mctl_auto_detect_rank_width() falls through for me, but it should be 32bit, 1 rank
<apritzel> but this might be a red herring, there might be something else wrong ...
<jernej> did you apply my patch?
<apritzel> yes
<apritzel> are your chips DDR3L or DDR3?
<jernej> ODT settings are also different
<jernej> DDR3L
pgreco_ has joined #linux-sunxi
<jernej> what about frequency? did you adjust it?
pgreco has quit [Ping timeout: 265 seconds]
<apritzel> no, boot0 uses 720 MHz, IIRC, you have 696, so that should fit? I can try to lower it, to get some wiggle room for the other parameters
pgreco_ is now known as pgreco
<jernej> and maybe comment out bit delay compensation - not sure if OPi sets any value there
Benjojo has quit [Write error: Connection reset by peer]
Benjojo has joined #linux-sunxi
<apritzel> sorry, no change. I tried 648 and 600 MHz, setting those ODT values to 0xe, and returning from mctl_phy_bit_delay_compensation() early
<apritzel> will try to dump the DRAM registers and compare them next
<jernej> ok
<apritzel> jernej: the reset config for the DRAM voltage is 1.1V on my board, so they seem to assume LPDDR4
<jernej> interesting, there is no LPDDR4 boards afaik
<jernej> I guess it has to be compatible with chip with lowest power supply
<jernej> apritzel: you can also play with different combinations of training and calibration
<jernej> anyway, let me know what you will find out, I'm going afk
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
apritzel has quit [Ping timeout: 260 seconds]
mauz555 has joined #linux-sunxi
mauz555 has quit [Ping timeout: 260 seconds]
apritzel has joined #linux-sunxi
<MoeIcenowy> jernej: different DRAM PHY on H6 and H616
apritzel has quit [Ping timeout: 265 seconds]
xes_ has quit [Ping timeout: 260 seconds]
xes_ has joined #linux-sunxi
xes__ has joined #linux-sunxi
xes_ has quit [Ping timeout: 265 seconds]
xes has joined #linux-sunxi
xes__ has quit [Ping timeout: 272 seconds]
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
swiftgeek has quit [Ping timeout: 240 seconds]
swiftgeek has joined #linux-sunxi
apritzel has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
sunshavi has joined #linux-sunxi
hanni76 has joined #linux-sunxi
apritzel has quit [Ping timeout: 256 seconds]
hanni76 has quit [Remote host closed the connection]
JohnDoe8 has quit [Ping timeout: 256 seconds]
JohnDoe8 has joined #linux-sunxi
apritzel has joined #linux-sunxi
lurchi_ has quit [Quit: Konversation terminated!]
lucascastro has quit [Read error: Connection reset by peer]
lucascastro has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
apritzel has quit [Ping timeout: 272 seconds]
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 264 seconds]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
iamfrankenstein has quit [Quit: iamfrankenstein]
apritzel has joined #linux-sunxi
jbrown has quit [Ping timeout: 272 seconds]
lucascastro has quit [Ping timeout: 264 seconds]
jstein has joined #linux-sunxi
popolon has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
JohnDoe8 has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
lurchi_ is now known as lurchi__
jbrown has joined #linux-sunxi
lurchi__ is now known as lurchi_
asdf28 has quit [Remote host closed the connection]
DrFrankensteinUK has quit [Read error: Connection reset by peer]
DrFrankensteinUK has joined #linux-sunxi
cmeerw has quit [Ping timeout: 260 seconds]
qschulz has quit [Remote host closed the connection]
qschulz has joined #linux-sunxi
lurchi_ is now known as lurchi__
<apritzel> jernej: scratching my head over the addrmap registers: the chips on the OPi-Zero2 have 15 rows, 10 columns (datasheet), and are organised as single rank, 2 x16 chips, that should give the actual 1GB, if my math is correct
<apritzel> argh, nevermind, mixed rows and cols up in one register, so the boot0 dump matches what the SPL writes