TWR-LS1021A : U-boot console prompt not shown in LPUART mode

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

TWR-LS1021A : U-boot console prompt not shown in LPUART mode

4,637件の閲覧回数
srikanthkrishna
Contributor I

Hi All,

H/W: LS1021ATWR

SDK: v1.7

I have flashed the u-boot-ls1021atwr-lpuart.bin & rcw_1000_lpuart.bin to "BANK1" successfully ! But I am unable to get the u-boot console prompt since it is switching to HDMI by default, which shows u-boot console prompt on HDMI monitor rather than minicom. Even before setting video arguments ! Am I missing some thing ? Any hints are really appreciated.

LPUART U-boot from Bank1:


---------------------------------------------------------------------------------------------

=> tftp 81000000 u-boot_lpuart.bin

eTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !

eTSEC1: No link.

Speed: 100, full duplex

Using eTSEC2 device

TFTP from server 10.20.0.1; our IP address is 10.20.0.2

Filename 'u-boot.bin'.

Load address: 0x81000000

Loading: ##########################

         1.7 MiB/s

done

Bytes transferred = 368336 (59ed0 hex)

=> tftp 82000000 rcw_1000.bin

Speed: 100, full duplex

Using eTSEC2 device

TFTP from server 10.20.0.1; our IP address is 10.20.0.2

Filename 'rcw_1000_lpuart.bin'.

Load address: 0x82000000

Loading: #

         58.6 KiB/s

done

Bytes transferred = 120 (78 hex)

=> protect off all;erase 63f80000 63ffffff;cp.b 81000000 63f80000 80000

Un-Protect Flash Bank # 1

.... done

Erased 4 sectors

Copy to Flash... 9....8....7....6....5....4....3....2....1....done

=> protect off all;erase 64000000 6401ffff;cp.b 82000000 64000000 100

Un-Protect Flash Bank # 1

. done

Erased 1 sectors

Copy to Flash... 9done

=> reset

resetting ...

-----------------------------------------------------------------------------------

LPUART U-boot:

----------------------------------------------------------------------------------

U-Boot 2014.07-sdk-v1.7.x+g659b6a2 (Jan 30 2015 - 15:41:45)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 08038000

       00000030: 00080000 881b7340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V4.0

VBank: 1

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 32 (0x20)

Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0

QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1

Flash: 128 MiB

MMC:   FSL_SDHC: 0

EEPROM: CRC mismatch (89eb7bdd != ffffffff)

DCU: Switching to HDMI monitor @ 640x480

In:    serial

Out:   vga

Err:   vga

<<<<< NO U-boot prompt // u-boot prompt is shown on HDMI monitor if connected.

-----------------------------------------------------------------------------------

Where do I need to make the change to get the u-boot prompt on minicom.. in LPUART mode ?

ラベル(1)
0 件の賞賛
返信
10 返答(返信)

2,959件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello srikanthkrishnakar,


Regarding the u-boot and RCW NOR Flash address.

First please switch to bank 0, then flash u-boot and RCW to alternate bank(bank 1) at bank 0.

Because the current bank u-boot treats the alternate bank u-boot and RCW at 0x63f80000 and 0x64000000.

Just remind you to flash image in the correct bank.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,959件の閲覧回数
skrishnakar
Contributor III

Hi Yiping,

I followed the below mentioned steps:

To write u-boot & rcw to bank1:


ð  tftp 81000000 u-boot_lpuart.bin

ð  tftp 82000000 rcw_1000_dcw.bin

ð  protect off all;erase 63f80000 63ffffff;cp.b 81000000 63f80000 80000

ð  protect off all;erase 64000000 6401ffff;cp.b 82000000 64000000 100



Switch Settings:


SW[3.5]: ON Bank1

SW[3.5]:OFF Bank0 ( default )


Switching between NOR/SD:

SW[2.1]: OFF , SW[2.3]: ON, SD-BOOT

SW[2.1]: ON , SW[2.3]: OFF, NOR-BOOT


Do these steps looks OK ?


Thanks for your support!

0 件の賞賛
返信

2,959件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello srikanth krishnakar,


According your u-boot log, your u-boot is generated on Jan 30 2015, but it seems that your purpose is flashing the pre_built image rcw_1000_lpuart.bin and u-boot-ls1021atwr_lpuart.bin on bank 1, so I suspect you didn't flash images on the correct bank.


1. Please configure the switch setting to configure the target as Bank0(default).

2. At bank0, flash images to bank1

tftp 81000000 u-boot-ls1021atwr_lpuart.bin

tftp 82000000 rcw_1000_lpuart.bin

protect off all;erase 63f80000 63ffffff;cp.b 81000000 63f80000 80000

protect off all;erase 64000000 6401ffff;cp.b 82000000 64000000 100

If I didn't get your purpose clearly, please feel free to let me know.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,959件の閲覧回数
skrishnakar
Contributor III

Hello Yiping,

Yes I followed the steps mentioned by you. Being at "Bank0" (default), flashed the latest "lpuart" variant of images (u-boot & rcw) and u-boot console prompt is available only on Bank0. I would like to know what is the purpose of "rcw_1000_sdboot.bin" has to be written, if in-case I am booting from SDCARD ?

I already have written "u-boot-with-spl-pbl.bin" image  to SDCARD and able to see console prompt in SD_BOOT mode. But I am unable to identify that location where the "rcw_1000_sdboot.bin" should be written !!

Any pointers are really useful.

Quick note: Does the kernel have identical features and drivers supported in both NOR & SD Boot modes ? Or there are differences in features supported when we boot from SDCARD compared to NOR boot ?

Thanks in Advance!

Srikanth

0 件の賞賛
返信

2,959件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello srikanth krishnakar,


Regarding your problem for LPUART boot from BANK 1, I have verified the prebuilt image on my target without any problem, please refer to my following steps.

1. Please check default switch setting.

LS1021A TWR X3

Switch 1 2 3 4 5 6 7 8

SW2 ON [1] OFF [0] OFF [0] OFF [0] ON [1] ON [1] ON [1] ON [1]

SW3 OFF ON ON OFF OFF OFF OFF ON

LS1021A TWR X2 Switch Setting

Switch 1 2 3 4 5 6 7 8

SW2 OFF [0] OFF [0] ON [1] OFF [0] OFF [0] ON [1] OFF [0] ON [1]

SW3 OFF ON ON OFF ON OFF OFF OFF

2. Boot the system from BANK 0, and flash lpuart image, I have attached for you, since I suspect there is problem with u-boot which you are using.

tftp 81000000 u-boot-ls1021atwr_lpuart.bin

tftp 82000000 rcw_1000_lpuart.bin

protect off all;erase 63f80000 63ffffff;cp.b 81000000 63f80000 80000

protect off all;erase 64000000 6401ffff;cp.b 82000000 64000000 100


3. Shorted the jumpers J19 & J20 to 1-2, and configure SW[3.5]: ON Bank1.


4. Power on the board, please refer to my log

U-Boot 2014.01Layerscape-SDK-V1.3+g50d6848 (Oct 24 2014 - 19:22:06)

CPU:  Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

      CPU0(ARMV7):1000 MHz,

      Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

      00000000: 0608000a 00000000 00000000 00000000

      00000010: 20000000 00407900 e0025a00 21046000

      00000020: 00000000 00000000 00000000 08038000

      00000030: 00080000 881b7340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V4.0

VBank: 1

I2C:  ready

DRAM:  1 GiB (DDR3, 32-bit, CL=10.5, ECC off)

Using SERDES1 Protocol: 32 (0x20)

Flash: 128 MiB

MMC:  FSL_SDHC: 0

EEPROM: NXID v1

Firmware 'Microcode version 0.0.0 for T1040 r1.0' for 1040 V1.0

QE: uploading microcode 'Microcode for T1040 r1.0'

In:    serial

Out:  serial

Err:  serial

SATA link 0 timeout.

AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode

flags: 64bit ncq pm clo only pmp fbss pio slum part ccc

scanning bus for devices...

Found 0 device(s).

Net:  eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

Hit any key to stop autoboot:  0

Actually I suspect you built u-boot with DCU enabled.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,959件の閲覧回数
skrishnakar
Contributor III

Hello Yiping,

Thanks for your images provided. Can you please provide images of sdk-v1.7, since we have moved to sdk-1.7 ?

Best Regards,

Srikanth

0 件の賞賛
返信

2,959件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello Srikanth,

Please refer to the attached pre-built image.

Thanks,

Yiping

0 件の賞賛
返信

2,959件の閲覧回数
addiyi
NXP Employee
NXP Employee

u-boot-with-spl-pbl.bin already includes rcw for sdboot. rcw_1000_sdboot.bin is placed at the beginning of bin image. u-boot-with-spl-pbl.bin image includes rcw + pbi + uboot, so is a complete image for booting sd.


To create suck an image from the scratch refer to eSPI/SD/NAND Boot.


Adrian

0 件の賞賛
返信

2,959件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello srikanthkrishnakar,


In your description, you didn't mention the switch setting, have you already configure "J19 and J20 short 1-2"?


You could refer to "Hardware Setting for Special Purposes" section in SDK document for the details.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,959件の閲覧回数
skrishnakar
Contributor III

Hello Yiping,

I have shorted the jumpers J19 & J20 to 1-2 for LPUart functionality. If they are not shorted then I won't see any u-boot logs on minicom for u-boot from BANK1.

Thanks!

0 件の賞賛
返信