ROM API for DCD process

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ROM API for DCD process

1,814 次查看
ArnaudMouiche
Contributor II

hi all,

I'm currently developing a tiny boot for eeprom on imx6sl for loading u-boot from NAND SPI.

Everything is fine except I'm too lazy to re-write a DCD processor to load the u-boot DCD part.

Is there an official ROM API entry to call for this purpose ?

thanks.

Arnaud

标签 (1)
标记 (3)
0 项奖励
回复
6 回复数

1,491 次查看
Yuri
NXP Employee
NXP Employee

There were several discussions about the i.MX6 ROM API (what is it, how to use). The recent recommendation is to avoid
use the ROM API (it is not well documented, it is not clear if it will not be changed in next releases).

1,491 次查看
ArnaudMouiche
Contributor II

ok fine.

anyway a DCD processor doesn't request too much space.

regards,

arnaud

0 项奖励
回复

1,491 次查看
JerryFan
NXP Employee
NXP Employee

Hi ArnaudMouiche,

Any update? Did you ever implemented this successfully?

B.R
Jerry

0 项奖励
回复

1,491 次查看
ArnaudMouiche
Contributor II

Hello Jerry

Yes, I implemented all what I want successfully.

The DCD stuff was not complicated at all, just consuming few but important

code bytes.

Regards,

Arnaud

Le 19 août 2013 à 09:55, Chongbin Fan <b32609@freescale.com> a écrit :

<https://community.freescale.com/>

<https://community.freescale.com/> You have been mentioned

by Chongbin Fan<https://community.freescale.com/people/JerryFan?et=notification.mention>

in Re: ROM API for DCD process in Freescale Community - View Chongbin

Fan's reference to

you<https://community.freescale.com/message/345378?et=notification.mention#345378>

0 项奖励
回复

1,491 次查看
fabio_estevam
NXP Employee
NXP Employee

Do you mean SPI flash?

If so, you can use the same DCD configuration that is used to boot from SD card:

uboot-imx.git - Freescale i.MX u-boot Tree

and just flash u-boot into offset 0x400 of your SPI Flash.

1,491 次查看
ArnaudMouiche
Contributor II

No, I really mean "SPI NAND flash" (not SPI NOR, not parallel NAND), so something which is not directly bootable by the imx6SL ROM.

That's why the first stage will be a 4KB bootloader on eeprom, knowning just enough of the bad blocks & bad bits to look for multiple copies of uboot inside this Nand.

Since I want to keep the uboot header (IVT+ DCD...) as similar as the original, it must manage DCD process and/or plugins inside this first stage, or at least, forward the process to the ROM code (through a possible ROM API)

I don't want to put the DCD part inside this 4KB, since:

- 4KB is already very small

- if possible, I don't want to update this first stage when the DDR parameters will need to change (experience shows It can be frequent...)

Regards,

Arnaud

0 项奖励
回复