您尚未登录。

楼主 # 2021-11-08 11:20:19

geniugogo
会员
注册时间: 2021-11-08
已发帖子: 4
积分: 4

F133的SPL代码DRAM初始化参数是怎样的?

想编一个F133的SPL出来,代码基于github上的: https://github.com/smaeul/sun20i_d1_spl
但是找到的是基于D1的SPL,目前发现是死在了初始化DRAM的过程中。运行日志如下:

[158]HELLO! BOOT0 is starting!
[160]BOOT0 commit : 771192d
[163]set pll start
[165]periph0 has been enabled
[168]set pll end
[169]board init ok
[171]DRAM only have internal ZQ!!
[174]get_pmu_exist() = -1
[177]ddr_efuse_type: 0xa
[180]ZQ calibration error,check external 240 ohm resistor.
[185][ERROR DEBUG] auto scan dram rank&width fail !

发现代码中有一段初始化DRAM的参数,这里不知道F133应该对应什么参数。
希望大佬告知一下。
D1的初始化DRAM的参数如下:

{
			0x00000318,
			0x00000003,
			0x007b7bfb,
			0x00000001,
			0x000010d2,
			0x00000000,
			0x00001c70,
			0x00000042,
			0x00000018,
			0x00000000,
			0x004a2195,
			0x02423190,
			0x0008b061,
			0xb4787896,
			0x00000000,
			0x48484848,
			0x00000048,
			0x1620121e,
			0x00000000,
			0x00000000,
			0x00000000,
			0x00870000,
			0x00000024,
			0x34050100,
		},

最近编辑记录 geniugogo (2021-11-08 11:21:12)

离线

#1 2021-11-08 12:40:49

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: F133的SPL代码DRAM初始化参数是怎样的?

这种问题去看xfel的源码

离线

楼主 #2 2021-11-09 10:15:00

geniugogo
会员
注册时间: 2021-11-08
已发帖子: 4
积分: 4

Re: F133的SPL代码DRAM初始化参数是怎样的?

xboot的参数牛逼

离线

#3 2022-02-16 08:50:08

j1sys
会员
注册时间: 2021-10-28
已发帖子: 9
积分: 4

Re: F133的SPL代码DRAM初始化参数是怎样的?

Similar information request. Working on a SPL for F133. BUT as a Windows Eclipse xpack GNU risc-v project.

Have a lot working but trying to do simple DRAM init.

Have researched D1 mainline SPL, xboot, and xfel github source code. Almost got it by grabbing mctl_hal.s from xfel. But this environment chokes on the assembler code. I think it has T-head extensions in it (lrbu for one).

mctl_hal.s appears to be compiler generated code. Do xboot/xfel authors have access to mctl_hal.c? I found an old one from 2014 on github but doubt if it will play we'll.

Assistance or guidance much appreciated.

Thanx,

Ed

离线

#4 2022-02-16 09:29:15

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: F133的SPL代码DRAM初始化参数是怎样的?

mctl_hal.S copyed from tina-d1 source code, and modify some depend functions

离线

#5 2022-02-16 10:56:47

j1sys
会员
注册时间: 2021-10-28
已发帖子: 9
积分: 4

Re: F133的SPL代码DRAM初始化参数是怎样的?

Thanx for quick reply. I'll continue research and advise of any solution.

离线

#6 2022-04-09 03:20:40

pnru
会员
注册时间: 2022-04-09
已发帖子: 1
积分: 1

Re: F133的SPL代码DRAM初始化参数是怎样的?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn