Issue with running Linux Binary Demo Files at MCIMX6QP-SDB

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

Issue with running Linux Binary Demo Files at MCIMX6QP-SDB

1,279 Views
roman_toropov
Contributor I

Hi folks,

I came across a situation when I tried to run Linux Binary Demo, but saw the following error:

U-Boot 2019.04-4.19.35-1.1.0+g4d377539a1 (Oct 29 2019 - 14:53:36 +0000)

CPU: Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz)
CPU: Automotive temperature grade (-40C to 125C) at 44C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
Board: MX6-SabreSD
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC: FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
Loading Environment from MMC... OK
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc2 is current device
flash target is MMC:2
Net:
Warning: ethernet@02188000 using MAC address from ROM
eth0: ethernet@02188000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc2 is current device
7565456 bytes read in 375 ms (19.2 MiB/s)
Booting from mmc ...
54125 bytes read in 13 ms (4 MiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>

I tried both images with the same result: 

L4.19.35_1.1.0_MX6QDLSOLOX (REV L4.19.35_1.1.0 )

L5.4.3_1.0.0_MX6QDLSOLOX (REV LF_L5.4.3_1.0.0 )

I am very confused because before that I tried the same thing with the MCIMX8QM-CPU and it worked well. I will be glad of any help, thanks.

Labels (3)
0 Kudos
7 Replies

1,118 Views
joanxie
NXP TechSupport
NXP TechSupport

I have tested 5.4.3 demo images on imx6qp board successfully, my steps :

use "uuu.exe uuu.auto-imx6qpsabresd", then set sw6 to boot up from EMMC, my log file is:
U-Boot 2019.04-lf-5.4.y_v2019.04+g228843cdf5 (Feb 24 2020 - 11:57:07 +0000)

CPU:   Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C) at 34C
Reset cause: POR
Model: Freescale i.MX6 Quad Plus SABRE Smart Device Board
Board: MX6-SabreSD
DRAM:  1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC:   FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
Loading Environment from MMC... *** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc3(part 0) is current device
flash target is MMC:3
Net:   
Warning: ethernet@02188000 using MAC address from ROM
eth0: ethernet@02188000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  3 2 1 0
switch to partitions #0, OK
mmc3(part 0) is current device
8519824 bytes read in 245 ms (33.2 MiB/s)
Booting from mmc ...
54171 bytes read in 9 ms (5.7 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x820090 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1801039a
switch to ldo_bypass mode!

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.3-lts-lf-5.4.y+gf8118585ee3c (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Feb 26 11:06:09 UTC 2020
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Freescale i.MX6 Quad Plus SABRE Smart Device Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x3c000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk3p2 rootwait rw
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 692452K/1048576K available (11264K kernel code, 526K rwdata, 4112K rodata, 1024K init, 430K bss, 28444K reserved, 327680K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]     Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 erratum 769419 enabled

0 Kudos

1,118 Views
roman_toropov
Contributor I

Thanks for that, but I'm mostly interested in booting from an SD card. Could you check this out?

0 Kudos

1,118 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use dd command to download wic file to your SD card? normally, you download wic file by dd commands, then you can boot up the board without any change, how about try:

"setevn image zImage-imx6qpdlsolox.bin" then save and boot up again?

0 Kudos

1,118 Views
roman_toropov
Contributor I

Yes, I use dd command.

After "setevn image zImage-imx6qpdlsolox.bin":

U-Boot 2019.04-lf-5.4.y_v2019.04+g228843cdf5 (Feb 24 2020 - 11:05:25 +0000)

CPU: Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz)
CPU: Automotive temperature grade (-40C to 125C) at 39C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
Board: MX6-SabreSD
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC: FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
Loading Environment from MMC... OK
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc2 is current device
flash target is MMC:2
Net: eth0: ethernet@02188000 [PRIME]
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc2 is current device
Booting from net ...
ethernet@02188000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@02188000
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
ethernet@02188000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@02188000
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
ethernet@02188000 Waiting for PHY auto negotiation to complete........user interrupt!
Could not initialize PHY ethernet@02188000
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
Wrong Image Format for bootm command
ERROR: can't get kernel image!

0 Kudos

1,118 Views
joanxie
NXP TechSupport
NXP TechSupport

because work from home, I couldn't test for you now, did you change anything on HW or SW? how about use uuu to download wic file again?

"uuu -b sd_all u-boot-imx6qpsabresd_sd.imx imx-image-full-imx6qpdlsolox.wic"

0 Kudos

1,118 Views
joanxie
NXP TechSupport
NXP TechSupport

which demo images do you use? did you download imx-image-full-imx6qpdlsolox.sdcard ? could you use command printenv in the uboot, then send the uboot environment to me?

0 Kudos

1,118 Views
roman_toropov
Contributor I

Hi Joan,

Thanks for your reply!

I tried imx-image-full-imx6qpdlsolox.wic and  imx-image-multimedia-imx6qpdlsolox.wic

=> printenv
baudrate=115200
board_name=SABRESD
board_rev=MX6QP
boot_fdt=try
bootargs=console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw
bootcmd=run findfdt;run findtee;mmc dev ${mmcdev};if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi
bootcmd_mfg=run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run ;
bootdelay=3
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
dfu_alt_info=spl raw 0x400
dfu_alt_info_img=u-boot raw 0x10000
dfu_alt_info_spl=spl raw 0x400
dfuspi=dfu 0 sf 0:0:10000000:0
emmc_dev=3
emmcdev=2
epdc_waveform=epdc_splash.bin
ethact=ethernet@02188000
ethaddr=00:04:9f:05:b8:f8
ethprime=eth0
fastboot_dev=mmc2
fdt_addr=0x18000000
fdt_file=imx6qp-sabresd.dtb
fdt_high=0xffffffff
fdtcontroladdr=4ef31148
fileaddr=18000000
filesize=d39b
findfdt=if test $fdt_file = undefined; then if test $board_name = SABREAUTO && test $board_rev = MX6QP; then setenv fdt_file imx6qp-sabreauto.dtb; fi; if test $board_name = SABREAUTO && test $board_rev =;
findtee=if test $tee_file = undefined; then if test $board_name = SABREAUTO && test $board_rev = MX6QP; then setenv tee_file uTee-6qpauto; fi; if test $board_name = SABREAUTO && test $board_rev = MX6Q; t;
finduuid=part uuid mmc ${mmcdev}:2 uuid
image=zImage
initrd_addr=0x12C00000
initrd_high=0xffffffff
ip_dyn=yes
kboot=bootz
loadaddr=0x12000000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadtee=fatload mmc ${mmcdev}:${mmcpart} ${tee_addr} ${tee_file}
mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk_ignore_unused
mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${tee} = yes; then run loadfdt; run loadtee; bootm ${tee_addr} - ${fdt_addr}; else if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run;
mmcdev=2
mmcpart=1
mmcroot=/dev/mmcblk2p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${tee} = yes; then ${get_cmd} ${tee_addr} ${t;
script=boot.scr
sd_dev=2
serial#=0915c1d4e6b6ea9c
soc_type=imx6qp
spi_bus=1
spi_uboot=0x400
tee=yes
tee_addr=0x20000000
tee_file=uTee-6qpsdb
update_emmc_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if ${get_cmd} ${update_sd_firmware_filename}; then if mmc dev ${emmcdev} 1; then setexpr fw_sz ${filei
update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmware_filename}; then setexpr fw_sz ${filesize}i
weim_base=0x08000000
weim_uboot=0x08001000

Environment size: 4927/8188 bytes

0 Kudos