Closed ChalesYu closed 3 years ago
What board is that? I have a Teclast M8 tablet, and from all I know the DRAM controller on the A63 is different from all of A64, H6 and H616, so it requires significant work to get support for that. Initial PMIC support for the DRAM voltage is only something we need for the H616 so far, all other PMICs have sensible default voltages set on DCDC5 (or whatever is meant to drive the DRAM chips), so DRAM power works on reset.
@apritzel Thanks for your reply
Happily found that board can flash Teclast M8 firmware , but AFAIK, A63 only have one LPDDR3 variant, the main different should be the screen type, and other I/O port etc.
Here is a A63 core board. Althrough some board has a eMCP for memory , but this type is still LPDDR3. So, shouldn't different on software driver(init DRAM) part.
Initial PMIC support for the DRAM voltage is only something we need for the H616 so far, all other PMICs have sensible default voltages set on DCDC5 (or whatever is meant to drive the DRAM chips), so DRAM power works on reset.
That helps a lot. I know why I can't find PMIC init code for A64+AXP803 in u-boot finally. (and won't continue to figure out PMIC issue)
also, I found a early libdram code (not binary),maybe it can helps.
21.5.19 EDIT:
add some questions here, maybe off-topic :
spl sunxi-a64-spl32-ddr3.bin
? So we can skip DRAM init part and boot u-boot and kernel ?
sunxi-fel -v -p spl sunxi-a64-spl32-ddr3.bin write 0x44000 /path/to/arm-trusted-firmware/bl31.bin write 0x4a000000 /path/to/u-boot/u-boot.bin reset64 0x44000
Okay , seems this SoC is only for business use, but vendor or official still want use BSP 3.10, I can't get any source code, and prepare to sell this board.
I even brought a H616 board (X96 mate), and have tried to replace aw859a with ap6330, but failed. stuck at probe axp305 . don't know how to fix it , now that h616 board has destroyed and lay in the trash.
So now game is over , hope others people have better luck play with these SoC .
Hi, I'm trying to boot A63 board using fel , but seems support is missing. from linux-sunxi.org can know this soc is similar as h6 and a64. but now seems only BSP works. Is there anything I can help with to add support?
21.4.24 UPDATE:
mainline still not work , add some logs from BSP for reference :
uart0:
uart1:
BSP boot0: boot0.bin.zip
21.4.19 UPDATE:
seems have some progress ,but still fail in init I2C to talk to PMIC u-boot-a63-debug.patch.txt
21.3.30 UPDATE: find it's very close to a83t+axp813 but seems mainline u-boot doesn't support RSB on sun50i(H6) yet guess the SPL need to config PMIC on RSB to DRAM power on DCDC5 dump some file for people who interest
axp802_dump_screen_off.txt axp802_dump_screen_off_1.txt axp802_dump_screen_on_1.txt axp802_dump_screen_on_2.txt dump_dram_ctrl.txt dump_pio.txt dump_r_pio.txt
21.3.22 UPDATE: Just guess this A63+AXP802 can be treat as H6+AXP803 that board has a 3GB LPDDR3 RAM ,but although try to set
CONFIG_SUNXI_DRAM_H6_LPDDR3
in u-boot still stuck at SPL , have same problemTimeout initialising DRAM
guess that AXP802 is not enable regulator for vdd-dram(dcdc5),but don't know how to enable it. from u-boot code can see the regulator of this PMIC is similar as AXP818(0x51) but don't know how to make this PMIC work in SPL (lazy to guess how it connect with(I2C/RSB),pin(PL0/PL1),chip id(0x51or 0x1 or 0x3) and regulator address etc. )
Maybe when H616 get full support this board can get some luck.
add some regulator from dmesg for reference
21.3.14 UPDATE: a guess work commit is here but stuck at DRAM: