LS1012A Failed to load 'boot/Image'

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

LS1012A Failed to load 'boot/Image'

Jump to solution
1,104 Views
epoletaev
Contributor III

Hi,

I'm getting trouble to load ubuntu from flex-installer prepared medium.

So far I have one SD card from two dozens that boots without issues, but other cards and eMMC does not work well (have same error as below).

 

Prepare

root@localhost:~/ls1012/ls1012ardb# ./flex-installer.sh -i pf -d /dev/mmcblk1
/dev/mmcblk1: 30 GB
Partitioning /dev/mmcblk1 ...
Formatting partitions ...
Model: MMC KC3032 (sd/mmc)
Disk /dev/mmcblk1: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
 
Number  Start  End    Size    Type    File system  Flags
1      71.3MB  2219MB  2147MB  primary  ext4
2      2220MB  2354MB  134MB  primary  ext4
3      2355MB  7724MB  5369MB  primary  ext4
4      7725MB  31.3GB  23.5GB  primary  ext4
 
partition and format /dev/mmcblk1    [Done]
root@localhost:~/ls1012/ls1012ardb#
root@localhost:~/ls1012/ls1012ardb# ./flex-installer.sh -i install -m ls1012ardb -b boot_LS_arm64_lts_5.15.tgz -f firmware_ls1012ardb_qspiboot.img -r rootfs_sdk2110_ubuntu_main_arm64.tgz -d /dev/mmcblk1
61877+1 records in
61877+1 records out
63362204 bytes (63 MB, 60 MiB) copied, 5.70644 s, 11.1 MB/s
Program firmware_ls1012ardb_qspiboot.img to /dev/mmcblk1 with offset 4K    [Done]
Installing boot_LS_arm64_lts_5.15.tgz to /dev/mmcblk1p1 ...
Install boot_LS_arm64_lts_5.15.tgz in /dev/mmcblk1p1    [Done]
Installing rootfs_sdk2110_ubuntu_main_arm64.tgz to /dev/mmcblk1p4 ...
Install rootfs_sdk2110_ubuntu_main_arm64.tgz in /dev/mmcblk1p4    [Done]
setting UUID a7ee0e4a-6838-4909-ae72-a69752fddadf for boot partition /dev/mmcblk1p1 ...
syncing data ...
Installation completed successfully
 
Boot
 
=> set devnum 1
=> pri mmc_boot
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
=> run mmc_boot
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /ls1012ardb_boot.scr
685 bytes read in 1 ms (668.9 KiB/s)
## Executing script at 80000000
Failed to load 'boot/Image'
Failed to load 'boot/fsl-ls1012a-rdb.dtb'
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk esdhc@1560000.blk...
Scanning disk esdhc@1580000.blk...
Found 10 disks
No EFI system partition
ERROR: invalid device tree
Scanning mmc 1:2...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ERROR: invalid device tree
Scanning mmc 1:3...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ERROR: invalid device tree
Scanning mmc 1:4...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ERROR: invalid device tree
 
MMC boot partition content:
 
sda - SD card I used to copy flex-installer from
mmcblk0 - working ubuntu sd card
mmcblk1 - eMMC (32gb)
 
 
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 14.7G 0 disk
mqsda1 8:1 1 14.7G 0 part
mtdblock0 31:0 0 128M 0 disk
mmcblk1 179:0 0 29.1G 0 disk
- mmcblk1p1 179:1 0 2G 0 part
- mmcblk1p2 179:2 0 128M 0 part
- mmcblk1p3 179:3 0 5G 0 part
- mmcblk1p4 179:4 0 22G 0 part
mmcblk1boot0 179:32 0 4M 1 disk
mmcblk1boot1 179:64 0 4M 1 disk
mmcblk0 179:96 0 15G 0 disk
- mmcblk0p1 179:97 0 2G 0 part /boot
- mmcblk0p2 179:98 0 128M 0 part
- mmcblk0p3 179:99 0 5G 0 part
- mmcblk0p4 179:100 0 7.8G 0 part /
root@localhost:~/ls1012/ls1012ardb# mount /dev/mmcblk1p1 /media/sda1
root@localhost:~/ls1012/ls1012ardb# ls -la /media/sda1/
total 60168
drwxr-xr-x 4 user user 4096 Aug 16 02:15 .
drwxr-xr-x 3 root root 4096 Aug 16 02:04 ..
-rw-r--r-- 1 user user 44870144 Aug 16 02:15 Image
-rw-r--r-- 1 user user 16639851 Aug 16 02:15 Image.gz
lrwxrwxrwx 1 root root 19 Aug 16 02:15 boot.scr -> ls1012ardb_boot.scr
-rw-r--r-- 1 user user 13580 Aug 16 02:15 fsl-ls1012a-qds-ls1012ardb.dtb
-rw-r--r-- 1 user user 13580 Aug 16 02:15 fsl-ls1012a-qds.dtb
-rw-r--r-- 1 user user 12626 Aug 16 02:15 fsl-ls1012a-rdb-ls1012ardb.dtb
-rw-r--r-- 1 user user 12626 Aug 16 02:15 fsl-ls1012a-rdb.dtb
drwx------ 2 root root 16384 Aug 16 02:14 lost+found
-rw-r--r-- 1 user user 685 Aug 16 02:15 ls1012ardb_boot.scr
drwxr-xr-x 3 user user 4096 Aug 16 02:15 modules
Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,092 Views
yipingwang
NXP TechSupport
NXP TechSupport

It seems that there is problem with your boot script ls1012ardb_boot.scr, in the bootscript, the content should be as the following.

setenv kernel_image Image

setenv dtb fsl-ls1012a-rdb.dtb

it should not fetch images in boot folder.

View solution in original post

0 Kudos
Reply
3 Replies
1,093 Views
yipingwang
NXP TechSupport
NXP TechSupport

It seems that there is problem with your boot script ls1012ardb_boot.scr, in the bootscript, the content should be as the following.

setenv kernel_image Image

setenv dtb fsl-ls1012a-rdb.dtb

it should not fetch images in boot folder.

0 Kudos
Reply
1,065 Views
epoletaev
Contributor III

It seems LSDK made such script for me

 

repo init -u https://github.com/nxp-qoriq/yocto-sdk -b kirkstone -m ls-5.15.71-2.2.0_distro.xml
repo sync
. setup-env -m ls1012ardb
cd ..
DISTRO=fsl-qoriq-distro MACHINE=ls1012ardb source distro-setup-env
bitbake fsl-image-lite
bitbake qoriq-composite-firmware
 
(I'm using older version of LSDK because specific driver sources are not compiles with the latest one)
0 Kudos
Reply
1,075 Views
epoletaev
Contributor III

Thanks @yipingwang! You right, I was able to boot with the correct script.

I'm still trying to figure out how did I got this issue with my script...

0 Kudos
Reply