Set the SD card to start TWR-LS1021A, the serial port has no output information

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set the SD card to start TWR-LS1021A, the serial port has no output information

2,131 Views
hfkjsaoidu213
Contributor II

Hi,

  I am using LS1021A TWR board for development. But after read the pdf file Layerscape Software Development Kit User Guide(Supports: LSDK 20.04_290520), booting through SD card mode encountered the following problems.

hfkjsaoidu213_2-1618752792165.png

1)Execute the following flex-installer command to automatically install LSDK default rootfs_lsdk2004_LS_arm64_main.tgz and bootpartition_LS_arm64_lts_4.19.tgz.

   flex-installer -i auto -m ls1021atwr -d /dev/sdb

Here is what the terminal looks like after executing this command.

-----------------*****************----------------------------------

/dev/sdb: 31 GB
Partitioning /dev/sdb ...
Formatting partitions ...
Model: Generic MassStorageClass (scsi)
Disk /dev/sdb: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 71.3MB 176MB 105MB primary ext4
2 177MB 2325MB 2147MB primary ext4
3 2326MB 7694MB 5369MB primary ext4
4 7695MB 31.9GB 24.2GB primary ext4

partition and format /dev/sdb [Done]

Downloading http://www.nxp.com/lgfiles/sdk/lsdk2004/firmware_ls1021atwr_uboot_sdboot.img ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 40.3M 100 40.3M 0 0 992k 0 0:00:41 0:00:41 --:--:-- 1079k
-rw-r--r-- 1 root root 42282003 Apr 8 2020 firmware_ls1021atwr_uboot_sdboot.img

Downloading http://www.nxp.com/lgfiles/sdk/lsdk2004/bootpartition_LS_arm32_lts_5.4.tgz ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 74.4M 100 74.4M 0 0 4195k 0 0:00:18 0:00:18 --:--:-- 6770k

Downloading http://www.nxp.com/lgfiles/sdk/lsdk2004/rootfs_lsdk2004_ubuntu_main_arm32.tgz ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 408M 100 408M 0 0 2412k 0 0:02:53 0:02:53 --:--:-- 1845k
Downloaded distro images [Done]
82582+1 records in
82582+1 records out
42282003 bytes (42 MB, 40 MiB) copied, 9.51379 s, 4.4 MB/s
Program firmware_ls1021atwr_uboot_sdboot.img into /dev/sdb startblock=8 [Done]
Installing bootpartition_LS_arm32_lts_5.4.tgz to /dev/sdb2, waiting ...
Install bootpartition_LS_arm32_lts_5.4.tgz in /dev/sdb2 [Done]
Installing rootfs_lsdk2004_ubuntu_main_arm32.tgz to /dev/sdb4, waiting ...
Install rootfs_lsdk2004_ubuntu_main_arm32.tgz in /dev/sdb4 [Done]
setting PARTUUID for boot partition ...
Installation completed successfully

-----------------*****************----------------------------------

2) Plug the SD card into the TWR-LS1021A board. Set the SD card to boot.

hfkjsaoidu213_4-1618753581129.png

 

3)Then power on the board.

  But the serial port does not have any output information.

pls help me confirm above question, thank you very much.

 

0 Kudos
10 Replies

2,063 Views
hfkjsaoidu213
Contributor II

The target board is Version 2.0

0 Kudos

2,105 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please configure your target board booting from NOR flash, then provide u-boot console log?

Please check whether the block size of your SD card is 512bytes.

On your host PC, please deploy SD card with the following command(please note "bs" is the block size of your SD card), then plug in SD to your target board, after configuring the switch setting to check whether there is output information.

dd if=firmware_ls1021atwr_uboot_sdboot.img of=/dev/sdb bs=512 seek=8

0 Kudos

2,096 Views
hfkjsaoidu213
Contributor II

嗨,

     yipingwang,I used the IMG you provided, load it to the SD card under Linux using the dd command, and then power on the board.The serial port still has no output information.

hfkjsaoidu213_0-1618898368940.png

 

  • Attached file is the u-boot console log started from NOR Flash.

 

 

0 Kudos

2,089 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please provide u-boot console log similar as the following?

U-Boot 2019.10-g3cd9bc3993 (Apr 09 2020 - 00:48:45 +0800)

CPU: Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)
Clock Configuration:
CPU0(ARMV7):1200 MHz,
Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate),
Reset Configuration Word (RCW):
00000000: 0608000c 00000000 00000000 00000000
00000010: 30000000 00007900 e0025a00 21046000
00000020: 00000000 00000000 00000000 18000000
00000030: 00080000 481b7340 00000000 00000000
Model: LS1021A TWR Board
Board: LS1021ATWR
CPLD: V3.2
PCBA: V2.0
VBank: 0
DRAM: 1 GiB
Using SERDES1 Protocol: 48 (0x30)
Not a microcode
Flash: 128 MiB
MMC: FSL_SDHC: 0
Loading Environment from Flash... OK
EEPROM: NXID v16777216
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Net: eth0: ethernet@2d10000 [PRIME], eth1: ethernet@2d50000, eth2: ethernet@2d90000
=>
=>

0 Kudos

2,085 Views
hfkjsaoidu213
Contributor II

There is no output information of u-boot. After about 2 minutes, kernel information is directly printed out.As the attached file.

0 Kudos

2,082 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please type "reboot" under Linux Kernel prompt.

0 Kudos

2,079 Views
hfkjsaoidu213
Contributor II

There is no command input line, so cannot type "reboot".

hfkjsaoidu213_0-1618906564321.png

0 Kudos

2,075 Views
yipingwang
NXP TechSupport
NXP TechSupport

When did you purchase this TWR-LS1021A? The CPU on the target board is Version 2.0 or 1.0?

0 Kudos

2,055 Views
hfkjsaoidu213
Contributor II

Hi,

yipingwangThe target board is Version V1.0, 1.0GHz.

hfkjsaoidu213_0-1618989647385.png

 

 

What is the difference between 1.0 and 2.0? Is it the supported SDK that is different?

0 Kudos

2,007 Views
yipingwang
NXP TechSupport
NXP TechSupport

The LSDK is only used for LS1021A 2.0 platform. For  LS1021A 1.0, you could use QorIQ SDK 1.8 release.

Please refer to https://community.nxp.com/t5/Layerscape/SDcard-boot-SDK-1-8-LS1021a/m-p/407378

 

 

0 Kudos