<MasterR3C0RD>
Hmm, it appears the offset for the DRAM parameters in boot0 is different than expected. It gets a different set of DRAM parameters for DDR3 when the tool is run on it
Daanct12 has joined #linux-sunxi
<MasterR3C0RD>
Yeah, there's sets of DRAM parameters at 0x038 (incorrect), 0x474 (correct), and 0x674 (incorrect). Interestingly, there are 3 different dram_para sections in the sys_config.fex as well: "dram_para", "dram_para3", and "dram_para7"
<MasterR3C0RD>
Ahhhh looking at the SPL headers these are being stored in an additional "spare header"
flyback has quit []
flyback has joined #linux-sunxi
hipboi has joined #linux-sunxi
flyback has quit []
flyback has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
<MasterR3C0RD>
Looks like there's a method (sunxi_dram_handle) for selecting which boot mode is in use, and that changes which DRAM parameters are utilized. In the case of my device, the boot0 "extended header" states that selection is done by checking GPADC channel 1
jason123onirc has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
hipboi has quit []
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
Parthiban has joined #linux-sunxi
hipboi has joined #linux-sunxi
hipboi has quit []
ungeskriptet is now known as Guest7038
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest7039
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest7040
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest7041
ungeskriptet has joined #linux-sunxi
Guest7038 has quit [Ping timeout: 480 seconds]
Guest7039 has quit [Ping timeout: 480 seconds]
ungeskriptet is now known as Guest7042
ungeskriptet has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Guest7040 has quit [Ping timeout: 480 seconds]
Guest7041 has quit [Ping timeout: 480 seconds]
Guest7042 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
<MasterR3C0RD>
apritzel: Submitted a PR to sunxi-fw to add A133 and DRAM.ext support. They're combined in one PR, as I'm unsure whether or not this is a common theme on A133 devices, but it very well could be. https://github.com/apritzel/sunxi-fw/pull/6
Schimsalabim has joined #linux-sunxi
<MasterR3C0RD>
parthiban: If you could give this a try on the boot0 for your board, I'd be interested to see what results you get, especially if you get additional parameter sets in your results.
hipboi has joined #linux-sunxi
hipboi has quit []
indy has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
<Parthiban>
MasterR3C0RD: Morning, am new to this tool. Should I just run extract?
<MasterR3C0RD>
parthiban: Nope, you'd run `sunxi-fw info -v [boot0.bin | phoenixsuite-image.img]`
<MasterR3C0RD>
Either the boot0 or a PhoenixSuite flash image will work
<Parthiban>
not much info, I think am doing it wrong
<Parthiban>
./sunxi-fw info -v /tmp/pn/boot0_sdcard.bin
<Parthiban>
@ 0: boot0: Allwinner boot0
<Parthiban>
size: 4096 bytes
<Parthiban>
eGON checksum: 0xa98d87f0, programmed: 0x5f0a6c39
<Parthiban>
DRAM parameters: A64 H616 A133 H6
<Parthiban>
running against the elf gives the same out
<Parthiban>
got it
<Parthiban>
./sunxi-fw info -v /tmp/pn/boot0_sdcard.fex
<MasterR3C0RD>
I can see yours doesn't have the additional DRAM headers; looks like it's isolated to my device. Good to know
<Parthiban>
meaning, it's not lpddr4?
<MasterR3C0RD>
s/my device/my device for the time being/
<Parthiban>
From the schematics I can see it's lpddr4
<MasterR3C0RD>
No, it's still LPDDR4; this is unrelated to that
<MasterR3C0RD>
Essentially I found that on my device, it has additional DRAM parameters in an extended header stored within boot0
<MasterR3C0RD>
I was thinking it might be more common on A133 devices
<MasterR3C0RD>
Anyways, it's a bit late so I'll have to hop off, but you'll want to keep note of the parameters under the A133 header in that table; you'll need them later when I finish porting over the LPDDR4 timings (dashes mean they aren't present, you can just ignore those).
apritzel has joined #linux-sunxi
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
<apritzel>
MasterR3C0RD: it's actually the same on the recovery image for my A133 tablet: the DRAM parameters at the beginning of boot0 (what sunxi-fw decodes) are for DDR3, and there are more sets of parameters
<apritzel>
and it clearly selects type=7 in the boot0 log
<apritzel>
MasterR3C0RD: thanks for the PR, will have a look later, and try it on one of my images
warpme has joined #linux-sunxi
montjoie_ has quit [Read error: Connection reset by peer]
<MasterR3C0RD>
Awesome! Have you tested running anything on it, i.e, starting up Xorg, glxgears using the latest Mesa, etc?
<MasterR3C0RD>
Or are you still missing TCON?
<Parthiban>
MasterR3C0RD: Yeah, still DE, TCON is not enabled yet. With no details in the manual, trying to figure it still.
<MasterR3C0RD>
You could probably try using the TCON devicetree definitions for the H6/H616 with the A133's offsets
<Parthiban>
ideal plan is to run glmark2. but haven't compiled the mesa 3D. Imagination is using 23.0 version of it, whereas scrathgap yocto of mine using 24.x. Need to patch some yocto stuff there
<Parthiban>
Yeah, a64, H6, H616, this is all am checking.
<MasterR3C0RD>
Note that the open-source PowerVR drivers only provide Vulkan, and not completely comforming Vulkan yet at that; OpenGL support is through Zink.
<Parthiban>
Yeah, am aware. I want the DE + TCON to work first.
<MasterR3C0RD>
Yeah, looks like it's DE2.0 from a quick look at the Linux tree. Should mean the correct bindings may do the trick
apritzel has joined #linux-sunxi
<apritzel>
MasterR3C0RD: don't read too much into features like screen size, this is sometimes artificially limited by the target market (tablets = no HDMI = no 4K)
<apritzel>
but good work, I was hoping it being close to something already supported
<MasterR3C0RD>
apritzel: It wasn't the screen size I had been looking at, but rather the output size from the DE; though perhaps those are related, I'm still getting a handle on the hardware blocks. In any case, the only other difference I could find is that there is only a single mixer mentioned in the user manual, rather than 2, and that the DE blocks are
<MasterR3C0RD>
"independent", with DE1 being located outside the memory map.
<MasterR3C0RD>
Likely a hack to disable DE1 so that only DE0 is present
<MasterR3C0RD>
s/so that/since/
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]