Errors while downloading images to SD card using MFGTOOL

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

Errors while downloading images to SD card using MFGTOOL

642 Views
sreekanth_m
Contributor II

Hi

I am using i.MX6UL evaluation board for my project. I need to download images to NOR flash or SD card using mfgtools. I started working on it. But when I change cfg.ini file with Nor flash configuration mfgtool application doesn't come up. So I tried with SD card configuration to do my task at least to know the feasibility. But it throws me errors.

These are the error logs on the console.

U-Boot 2017.03-imx_v2017.03_4.9.11_1.0.0_ga+ga2fea67 (Sep 17 2017 - 14:43:30 -0500)

CPU: Freescale i.MX6UL rev1.1 at 396 MHz
Reset cause: POR
Model: Freescale i.MX6 UltraLite DDR3 ARM2 Board
Board: MX6UL 14X14 DDR3 ARM2
DRAM: 1 GiB
ERROR: read error from device: bef4c768 register: 0x0!
at /home/bamboo/build/4.9.11-1.0.0/fsl-imx-x11/temp_build_dir/build_fsl-imx-x11/tmp/work/imx6ul14x14ddr3arm2-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/drivers/power/pmic/pfuze100.c:46/pfuze100_read()
Not supported, id=11
initcall sequence bffa90d0 failed at call 878042ec (err=-22)
### ERROR ### Please RESET the board ###

Please help me solve this.

Labels (1)
Tags (2)
0 Kudos
2 Replies

512 Views
sreekanth_m
Contributor II

Hi Guys

Finally I am able to flash the Quad SPI NOR of i.MX6ULEVK. But when I tried booting from NOR flash It is not happening. These are logs while booting.

U-Boot 2017.03-imx_v2017.03_4.9.11_1.0.0_ga+ga2fea67 (Sep 17 2017 - 14:55:08 -0500)

CPU: Freescale i.MX6UL rev1.1 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
Model: Freescale i.MX6 UltraLite 14x14 EVK Board
Board: MX6UL 14x14 EVK
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected n25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

Display: TFT43AB (480x272)
Video: 480x272x24
In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@020b4000 using MAC address from ROM
eth1: ethernet@020b4000 [PRIME]
Warning: ethernet@02188000 using MAC address from ROM
, eth0: ethernet@02188000
Normal Boot
Hit any key to stop autoboot: 0
MMC: no card present
mmc_init: -123, time 2
MMC: no card present
mmc_init: -123, time 2
MMC: no card present
mmc_init: -123, time 2
Booting from net ...
ethernet@020b4000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@020b4000
BOOTP broadcast 1
BOOTP broadcast 2

As per the document , I have tried with following commands to set the environment.

U-Boot > setenv bootcmd 'run bootargsset; sf probe; sf read ${loadaddr} 0xA00000
0x2000; sf read ${fdt_addr} 0x800000 0x800; bootz ${loadaddr} - ${fdt_addr} '

Then If I reboot, I get following logs on the command prompt.

## Error: "bootargsset" not defined
SF: Detected n25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
device 0 offset 0xa00000, size 0x1600000
SF: 23068672 bytes @ 0xa00000 Read: OK

Your help will be highly appreciated.

Thanks

Sreekanth M.

0 Kudos

512 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Sreekanth,

have you set correctly SW7? It looks like Boot ROM is looking for SD card and if you want to boot from QSPI you muste set SW7[OFF, OFF, ON, OFF] according to https://www.nxp.com/docs/en/user-guide/MIMXRT1050EVKHUG.pdf 

Regards,

Carlos

0 Kudos