How to change CCSRBAR in T2080 CPU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change CCSRBAR in T2080 CPU

3,148件の閲覧回数
ryudaejin
Contributor III

Dear friends,

I'm using T2080 CPU and using boot loader povided by vxworks.

I'm booting normally with the following bootloader settings:
- Flash1: 0xFF00_0000~0xFFFF_FFFF (16MB)
- Bootloader: 0xFFF0_0000~ 0xFFFF_FFFF (1MB, boot ROM)
- CCSBAR: 0xFE00_0000~ 0xFEFF_FFFF (16MB, default address)

 

My board has more size of Flash1.  So I'm trying to remap Flash1.

However, with the following settings, the boot fails.

- Flash1: 0xFE00_0000~0xFFFF_FFFF (48MB)
- boot loader: 0xFFF0_0000~ 0xFFFF_FFFF (1MB, boot rom)
- CCSBAR: 0xFE00_0000~ 0xFEFF_FFFF (16MB)

I think the problem is caused by overlapping CCSBAR.

However, even after setting CCSBAR to 0xFD00_0000, the boot still fails.

 

Please let me know how can I change the CCSBAR.

(It's listed in T2080 RM 4.3.11 but I'm not sure what it means.)

0 件の賞賛
返信
7 返答(返信)

3,048件の閲覧回数
June_Lu
NXP TechSupport
NXP TechSupport

Yes, it seems start code could relocate it, maybe you could refer the source below

https://github.com/nxp-qoriq/u-boot/blob/f3363c060497515ca8b71451cb56f3ec0abacaa9/arch/powerpc/cpu/m...

0 件の賞賛
返信

3,060件の閲覧回数
June_Lu
NXP TechSupport
NXP TechSupport

I am sorry, the official code is SDK2.0, no such example for modifying the CCSRBAR.

Since the CCSR impacts numerous registers, if you change its address, please ensure that all related source code has been properly updated to reflect this change.

0 件の賞賛
返信

3,053件の閲覧回数
ryudaejin
Contributor III

Dear June_Lu,

If you look at the NXP community forum, you'll see that someone previously solved the same problem as me. The title and date are below.

* CCSRBAR Relocate issue in T2080 Processor. by karunakaranradh at 01-31-2017.

 

The reply references the U-boot source code as below

* Freescale PowerPC u-boot Tree

 

However, I can't access the references.

Is there a way to access the references?

タグ(1)
0 件の賞賛
返信

3,097件の閲覧回数
June_Lu
NXP TechSupport
NXP TechSupport

Where do you set the CCSR, is it follow the rule of T2080 RM, page 177, guidelines?

Could you access the CCSR registers after the changing the LAW? It seems CCSR registers access should also be changed, see the RM Table 2-5.

0 件の賞賛
返信

3,087件の閲覧回数
ryudaejin
Contributor III

First of all, thank you for your additional response.

The boot loader is changing the CCSR (0xFE00_0000 -> 0xFD00_0000), but since the boot process is not working, I cannot confirm whether the CCSR register is accessible.

 

For CCSR configuration, I use 'vxbl-1.0.4.1' provided by VXWorks7(by windriver).

When CCSRBAR=0xFE00_0000, the boot process is normal. However, when CCSRBAR set to 0xFD00_0000, the boot process does not work.

 

CCSRBAR shouldn't overlap with the flash area, right?

Are there any examples or publicly available code for changing CCSRBAR? (I'll have to compare it with VXBL.)

 

0 件の賞賛
返信

3,102件の閲覧回数
ryudaejin
Contributor III

Thanks for your reply.

However, I have already modified the TLB and LAW sizes in the boot loader to match the changed flash size.

タグ(1)
0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2202684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ET2080%20CPU%E3%81%AECCSRBAR%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%A6%AA%E6%84%9B%E3%81%AA%E3%82%8B%E5%8F%8B%E4%BA%BA%E3%81%AE%E7%9A%86%E6%A7%98%3C%2FP%3E%3CP%3E%E7%A7%81%E3%81%AF%20T2080%20CPU%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%80%81vxworks%20%E3%81%8C%E6%8F%90%E4%BE%9B%E3%81%99%E3%82%8B%E3%83%96%E3%83%BC%E3%83%88%E3%83%AD%E3%83%BC%E3%83%80%E3%83%BC%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E6%AC%A1%E3%81%AE%E3%83%96%E3%83%BC%E3%83%88%E3%83%AD%E3%83%BC%E3%83%80%E3%83%BC%E8%A8%AD%E5%AE%9A%E3%81%A7%E6%AD%A3%E5%B8%B8%E3%81%AB%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%20-%20%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A51%3A%200xFF00_0000~0xFFFF_FFFF%20(16MB)%3CBR%20%2F%3E%20-%20%E3%83%96%E3%83%BC%E3%83%88%E3%83%AD%E3%83%BC%E3%83%80%E3%83%BC%3A%200xFFF0_0000~%200xFFFF_FFFF%20(1MB%E3%80%81%E3%83%96%E3%83%BC%E3%83%88ROM)%3CBR%20%2F%3E%20-%20CCSBAR%3A%200xFE00_0000~%200xFEFF_FFFF%20(16MB%E3%80%81%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9)%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E7%A7%81%E3%81%AE%E3%83%9C%E3%83%BC%E3%83%89%E3%81%AB%E3%81%AF%20Flash1%20%E3%81%AE%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%8C%E3%82%88%E3%82%8A%E5%A4%9A%E3%81%8F%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82SO%E3%80%81Flash1%20%E3%82%92%E5%86%8D%E3%83%9E%E3%83%83%E3%83%97%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%E6%AC%A1%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%A7%E3%81%AF%E8%B5%B7%E5%8B%95%E3%81%AB%E5%A4%B1%E6%95%97%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E-%20%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A51%3A%200xFE00_0000~0xFFFF_FFFF%20(48MB)%3CBR%20%2F%3E%20-%20%E3%83%96%E3%83%BC%E3%83%88%E3%83%AD%E3%83%BC%E3%83%80%E3%83%BC%3A%200xFFF0_0000~%200xFFFF_FFFF%20(1MB%E3%80%81%E3%83%96%E3%83%BC%E3%83%88ROM)%3CBR%20%2F%3E%20-%20CCSBAR%3A%200xFE00_0000~%200xFEFF_FFFF%20(16MB)%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%AF%20CCSBAR%20%E3%81%AE%E9%87%8D%E8%A4%87%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E7%99%BA%E7%94%9F%E3%81%97%E3%81%9F%E3%82%82%E3%81%AE%E3%81%A8%E6%80%9D%E3%82%8F%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81CCSBAR%20%E3%82%92%200xFD00_0000%20%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%97%E3%81%9F%E5%BE%8C%E3%81%A7%E3%82%82%E3%80%81%E3%83%96%E3%83%BC%E3%83%88%E3%81%AF%E5%A4%B1%E6%95%97%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ECCSBAR%20%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%82%92%E6%95%99%E3%81%88%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%3CP%3E%EF%BC%88T2080%20RM%204.3.11%E3%81%AB%E8%A8%98%E8%BC%89%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E3%81%9D%E3%82%8C%E3%81%8C%E4%BD%95%E3%82%92%E6%84%8F%E5%91%B3%E3%81%99%E3%82%8B%E3%81%AE%E3%81%8B%E3%81%AF%E5%88%86%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E