AnsweredAssumed Answered

I.MX6 U-Boot hang while it boot linux kernel

Question asked by Jinliang Li on Jul 26, 2019
Latest reply on Jul 31, 2019 by Jinliang Li

 

U-Boot Version: u-boot-fslc  2017.11-fslc  https://github.com/Freescale/u-boot-fslc/commit/a07698f0bfdb2887b617399643acd659c6e75138

Board: i.mx6ul

 

It can boot successfully until I add some debug information in boot process by printf function just like in the patch in attachments.  After adding some printf, U-Boot bootz command can't parse the dtb successfully, and then hang. The detailed error messages :

 

=> load mmc 1:1 0x83000000 imx6ul-14x14-evk.dtb
reading imx6ul-14x14-evk.dtb
37104 bytes read in 19 ms (1.9 MiB/s)
=> load mmc 1:1 0x82000000 zImage
reading zImage
7436328 bytes read in 337 ms (21 MiB/s)
=> bootz 0x82000000 - 0x83000000
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:612
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:641
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:655
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:664
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:715
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:721
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:612
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:641
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:655
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:664
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/bootm.c:692
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/arch/arm/lib/bootm.c:417
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/arch/arm/lib/bootm.c:224
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/image.c:1508
Using Device Tree in place at 83000000, end 8300c0ef
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/image-fdt.c:194
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/image-fdt.c:196
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/image.c:1515
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/image-fdt.c:467
DONKEY:/path/build/tmp/work/imx6ulevk-alios-linux-gnueabi/u-boot-fslc/v2017.11+gitAUTOINC+a07698f0bf-r0/git/common/image-fdt.c:472
subnode: chosen: FDT_ERR_BADSTRUCTURE
ERROR: /chosen node create failed
- must RESET the board to recover.

FDT creation failed! hanging...### ERROR ### Please RESET the board ###

 

 

It seems that the memory of dtb (0x83000000 ) is corrupted due to my some printf.  That's unbelievable. Could anyone help me on this? 

 

Thanks in advance,

Jinliang

Outcomes