ls1028 boot

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

ls1028 boot

1,180 次查看
Alik_Y1
Contributor II

Hello

I encountered a problem while upgarding xspi image to NOR Flash
(I know , i should have started from sdcard first )
I followed the instuctions but due to some logistics problems
instead of uploading the (prebuild) xspi image via tftp i used XMODEM( it took me while )
So the load address was different from tftp load adrress
Standart uboot load address is 0xA0000000 - for TFTP
The xmodem address is 0x90000000
According to documentation(Table 1. System memory map)
both are valid( DRAM - GPP DRAM Region #1 (0-2 GB)) .

there were no errors while uploading image .

The standart burn command for NOR flash is (from docs):

4. Program the firmware to FlexSPI NOR flash.
=> sf probe 0:0
=> sf erase 0 +$filesize && sf write $load_addr 0 $filesize
5. Reset and boot the board from FlexSPI NOR flash. The system will automatically boot up TinyDistro (log in
using root/root) or LSDK distro (log in using root/root or user/user) available on the removable storage device.
=> qixis_reset


I tweaked the command to take xmodem load address (0x90000000) and filesize 54501351 (bytes)
sf probe 0:0
sf erase 0 +54501351 && sf write 0x90000000 0 54501351
here is snippet from my console :

=> sf probe 0:0
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
=> sf erase 0 +54501351 && sf write 0x90000000 0 54501351
SF: 1414660096 bytes @ 0x0 Erased: OK
device 0 offset 0x0, size 0x54501351

at this stage it hung and i never got to "qixis_reset" command


After that , the only was to see something in console
if i config deep switch to boot from emmc(i tried boot from sdcard )

here is console dump:
U-Boot SPL 2018.03-00144-gc53e2aca78 (Dec 07 2018 - 12:38:39 +0000)
Initializing DDR....
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
WARNING: Calling __hwconfig without a buffer and before environment is ready
Trying to boot from MMC1


U-Boot 2018.03-00144-gc53e2aca78 (Dec 07 2018 - 12:38:39 +0000)

SoC: LS1028AE Rev1.0 (0x870b0010)
Clock Configuration:
CPU0(A72):1300 MHz CPU1(A72):1300 MHz
Bus: 400 MHz DDR: 1600 MT/s
Reset Configuration Word (RCW):
00000000: 34004010 00000030 00000000 00000000
00000010: 00000000 00bf0000 0030c000 00000000
00000020: 00a03150 00002580 00000000 00002496
00000030: 00000000 00000010 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 2006705a 00000000
00000070: bb580000 00000000
Model: NXP Layerscape 1028a RDB Board
Board: LS1028AE Rev1.0-RDB, Version: C, boot from eMMC
FPGA: v8 (RELEASED: RDB_2020_0330_1829)
SERDES1 Reference : Clock1 = 100.00MHz Clock2 = 100.00MHz
I2C: ready
DRAM: 3.9 GiB
DDR 3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
"Error" handler, esr 0xbf000002
elr: 0000000096042730 lr : 00000000960020a0 (reloc)
elr: 00000000fbda9730 lr : 00000000fbd690a0
x0 : 0000000020400000 x1 : 0000000000000000
x2 : 00000000d00dfeed x3 : 0000000001e00210
x4 : 0000000001e00214 x5 : 00000000000011a0
x6 : 0000000000001168 x7 : 0000000000000002
x8 : 0000000000001164 x9 : 000000000000000c
x10: 00000000fbb6093c x11: 00000000fbb60a88
x12: 0000000000001168 x13: 00000000fbb6099c
x14: 00000000fbb60a88 x15: 00000000fbb609ac
x16: 0000000000000001 x17: 0000000000000000
x18: 00000000fbb62d88 x19: 0000000020400000
x20: 00000000fbdd2298 x21: 0000000065d67000
x22: 000000001801deb1 x23: 0000000018009dd8
x24: 000000001801de99 x25: 0000000018020000
x26: 00000000deadbeef x27: 0000000001e00404
x28: 0000000001e00210 x29: 00000000fbb60960

Resetting CPU ...

### ERROR ### Please RESET the board ###

 


So it seems like the problem heappans before uboot reloc someware in fip.bin :
I am not sure what heappened

My questions :

Is it recoverable ?
Is Jtag can reprogram NORFlash
Is it any way to recover?
Any help will be super appriciated


Thanks

 

 

 

标记 (2)
0 项奖励
回复
3 回复数

1,170 次查看
yipingwang
NXP TechSupport
NXP TechSupport

You could use CodeWarrior for ARMv8 and CodeWarrior TAP to do recovery.

If you have purchased CodeWarrior license, please download and install the latest CodeWarrior for ARMv8 11.5.12 from NXP public Website.

Please sign in www.nxp.com, then download CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe and CodeWarrior for ARMv8 v11.5.12 b221209 Windows Offline Update from My NXP Account->Software Licensing and Support->View accounts->NXP Software->CodeWarrior Networked Suite - Specialist Level->11.5.12 CodeWarrior for QorIQ LS Series ARMv8 ISA.

After install CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe, please open CodeWarrior IDE and install service pack 11.5.12 from Help->Install New Software->Add->Archive

Then open CodeWarrior IDE, In Target Connections panel, please right click LS1028A_RDB to duplicate it to generate LS1028A_RDB(1), click "Flash Programmer" icon to connect to the target board to do flash programming, please refer to the attached screenshot target_connection.png.

Please refer to section "7.7 Using flash programmer from eclipse IDE" in

C:/Freescale/CW4NET_v2020.06/CW_ARMv8/ARMv8/Help/PDF/ARMv8_Targeting_Manual.pdf for details.

Are you bringing up your custom board?

If so, you need to modify DDR configuration section in ATF or u-boot source code.

You could refer to section "5.2.1.1 TF-A DDR Driver" in LSDK 21.08 user guide.

0 项奖励
回复

1,138 次查看
Alik_Y1
Contributor II

Thank you for your reply

Few quick questions :

Can  CodeWarrior be installed on Linux mashine  ?

Is it possible to work with third party flasher( Segger Jlink) as alternative just to write flash ?

Thanks for your help

Alik

 

 

0 项奖励
回复

1,094 次查看
yipingwang
NXP TechSupport
NXP TechSupport

It is possible to install CodeWarrior in the Linux machine, you could download CodeWarrior Linux installation files from the same path as I mentioned previously.

 

It is impossible for CodeWarrior to work with third party flasher.

0 项奖励
回复