How can upload the lsdk_linux_arm64_LS_devel.itb to XSPI / EMMC then boot successfully

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

How can upload the lsdk_linux_arm64_LS_devel.itb to XSPI / EMMC then boot successfully

1,131 Views
jonas_wu
Contributor I

NXP LS1028A

use the lsdk_linux_arm64_LS_tiny.itb (32.4MB) but it not include some tools, for example I2C tools …

 

use the command  "flex-builder -i mklinux -r buildroot:devel" to build lsdk_linux_arm64_LS_devel.itb (154.1 MB)

 

(1)at U-Boot we can  download to 0xa0000000

tftp 0xa0000000 lsdk_linux_arm64_LS_devel.itb

 

(2)boot from  0x10000000 mot problem

bootm 0xa0000000#ls1028ardb

 

(3) load to XSPI(256MB) , no problem

=> sf probe 0

SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 256 MiB

=> sf probe 0:0

SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 256 MiB

=> sf erase 0x1000000 +$filesize && sf write 0xa0000000 0x1000000 $filesize

SF: 154140672 bytes @ 0x1000000 Erased: OK

device 0 offset 0x1000000, size 0x92f0b50

SF: 154078032 bytes @ 0x1000000 Written: OK

 

(4) at U-BOOT from XSPI(256MB) to boot, Fail !!

Trying load from FlexSPI flash ...

SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 256 MiB

device 0 offset 0x1000000, size 0x2800000

SF: 41943040 bytes @ 0x1000000 Read: OK

## Loading kernel from FIT Image at a0000000 ...

Bad FIT kernel image format!

ERROR: can't get kernel image!

 

(3) load to EMMC(8GB) , no problem

tftp 0xa0000000 lsdk_linux_arm64_LS_devel.itb

mmc dev 1

mmc write a0000000 0x8000 0x49786

(4) atU-BOOT from EMMC(8GB) boot, Fail!!

=>run emmc_bootcmd

Trying load from EMMC ..

Device: FSL_SDHC

Manufacturer ID: 13

OEM: 14e

Name: S0J35

Bus Speed: 52000000

Mode : MMC High Speed (52MHz)

Rd Block Len: 512

MMC version 5.1

High Capacity: Yes

Capacity: 7.3 GiB

Bus Width: 4-bit

Erase Group Size: 512 KiB

HC WP Group Size: 8 MiB

User Capacity: 7.3 GiB WRREL

Boot Capacity: 31.5 MiB ENH

RPMB Capacity: 4 MiB ENH

switch to partitions #0, OK

mmc1(part 0) is current device

 

MMC read: dev # 1, block # 32768, count 81920 ... 81920 blocks read: OK

## Loading kernel from FIT Image at a0000000 ...

Bad FIT kernel image format!

ERROR: can't get kernel image!

The question is "How can upload the lsdk_linux_arm64_LS_devel.itb to XSPI / EMMC then boot successfully", thank you.

Tags (1)
0 Kudos
Reply
1 Reply

1,021 Views
Pavel
NXP Employee
NXP Employee

Test your board using similar command sequence.

 

  1. flex-builder -i mklinux -r buildroot:devel"
  2. tftp a0000000 /LS1046ARDB/lsdk_linux_arm64_LS_devel.itb
  3. mmc erase 0x8000 0x50000
  4. mmc write a0000000 0x8000 0x50000
  5. mmc read a0000000 0x8000 0x50000
  6. bootm a0000000#ls1046ardb

Have a great day,
Pavel Chubakov

  1.  

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

0 Kudos
Reply