AnsweredAssumed Answered

MFG Download fail on i.MX6SL with eMMC 5.1

Question asked by DaeYong LEE on Jul 13, 2018

Hi. everyone.


Our custom board based on i.MX6SL(SoloLite) EVK board and using MCIMX6L8DVN10AB.
(platform : imx-3.10.17-1.0.0_ga, Boot CFG: eMMC using uSDHC2, LPDDR2, without LCD)

Recently our custom i.mx6SL board wanna using eMMC 5.1 instead eMMC 4.4.

Now i try to use MFG tool to download firmware to eMMC 5.1, But always fail. the log as below(refer attachment file):

Could some one give me some hint?

Thanks.

-------------------------------------------------------------------------------------------------------------
U-Boot 2013.04 (Oct 10 2014 - 12:25:37)

CPU: Freescale i.MX6SL rev1.2 at 792 MHz
CPU: Temperature 41 C, calibration data: 0x5a151d5f
Reset cause: POR
Board: MX6SLEVK
I2C: ready
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
MMC: no card present
MMC init failed
Using default environment

In: serial
Out: serial
Err: serial
Found PFUZE100! deviceid=10,revid=21
MMC: no card present
mmc0(part 0) is current device
Net: FEC [PRIME]
Warning: failed to set MAC address

Boot from USB for mfgtools
Use default environment for mfgtools
Run bootcmd_mfg: run mfgtool_args;bootm ${loadaddr} ${initrd_addr} ${fdt_addr};
Hit any key to stop autoboot: 0
## Booting kernel from Legacy Image at 80800000 ...
Image Name: Linux-3.10.17-1.0.0_ga+g232293e
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5300504 Bytes = 5.1 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 83800000 ...
Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4399687 Bytes = 4.2 MiB
Load Address: 12c00000
Entry Point: 12c00000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Loading Kernel Image ... OK
OK
switch to ldo_bypass mode!
Using Device Tree in place at 83000000, end 8300b524

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 3.10.17-1.0.0_ga+g232293e (korea@korea-H67M-D2-B3-2) (gcc version 4.8.1 (GCC) ) #2 SMP PREEMPT Fri Oct 10 12:13:04 KST 2014
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX6 SoloLite (Device Tree), model: Freescale i.MX6 SoloLite EVK Board
cma: CMA: reserved 320 MiB at 8c000000
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 8 pages/cpu @8111e000 s8896 r8192 d15680 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber=
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 173644k/173644k available, 350644k reserved, 0K highmem
................................... [skip] ...................................
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ tar xf $FILE '
UTP: executing "tar xf $FILE "
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
UTP: sending Success to kernel for command $ tar xf $FILE .
utp_poll: pass returned.
UTP: received command '$ sh mksdcard.sh /dev/mmcblk0'
UTP: executing "sh mksdcard.sh /dev/mmcblk0"
1+0 records in
1+0 records out
sfdisk: Warning: /dev/mmcblk0 is not a block device

sfdisk: Disk /dev/mmcblk0: cannot get geometry


Disk /dev/mmcblk0: 0 cylinders, 255 heads, 63 sectors/track
sfdisk: /dev/mmcblk0: unrecognized partition table type

Old situation:
sfdisk: No partitions found

Warning: given size (0) exceeds max allowable size (503)
New situation:
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End MiB #blocks Id System
/dev/mmcblk0p1 7+ 509- 503- 514080 c W95 FAT32 (LBA)
/dev/mmcblk0p2 596+ 596- 0 0 83 Linux
/dev/mmcblk0p3 0 - 0 0 0 Empty
/dev/mmcblk0p4 0 - 0 0 0 Empty
Warning: partition 2 has size 0 but is not marked Empty
Warning: partition 1 extends past end of disk
Successfully wrote the new partition table


If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
UTP: sending Success to kernel for command $ sh mksdcard.sh /dev/mmcblk0.
utp_poll: pass returned.
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
UTP: received command 'send'
UTP: sending Success to kernel for command send.
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
UTP: received command '$ dd if=/dev/zero of=/dev/mmcblk0 bs=1k seek=384 conv=fsync count=129'
UTP: executing "dd if=/dev/zero of=/dev/mmcblk0 bs=1k seek=384 conv=fsync count=129"
129+0 records in
129+0 records out
UTP: sending Success to kernel for command $ dd if=/dev/zero of=/dev/mmcblk0 bs=1k seek=384 conv=fsync count=129.
utp_poll: pass returned.
UTP: received command '$ dd if=$FILE of=/dev/mmcblk0 bs=1k seek=1 conv=fsync'
UTP: executing "dd if=$FILE of=/dev/mmcblk0 bs=1k seek=1 conv=fsync"
281+1 records in
281+1 records out
UTP: sending Success to kernel for command $ dd if=$FILE of=/dev/mmcblk0 bs=1k seek=1 conv=fsync.
utp_poll: pass returned.
UTP: received command '$ mkfs.vfat /dev/mmcblk0p1'
UTP: executing "mkfs.vfat /dev/mmcblk0p1"
mkfs.vfat 2.11 (12 Mar 2005)
/dev/mmcblk0p1: No such file or directory
UTP: sending Non-success to kernel for command $ mkfs.vfat /dev/mmcblk0p1.
utp_poll: exit with status 256
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
mmc1: unrecognised EXT_CSD revision 8
mmc1: error -22 whilst initialising MMC card
mmc1: unrecognised EXT_CSD revision 8
................................... [skip] ...................................
-------------------------------------------------------------------------------------------------------------------------

( Note: I have made initramfs.cpio.gz.boot for mfgtool.
1. changed mmc.c by "https://community.nxp.com/docs/DOC-332187"
2. make imx_v7_mfg_defconfig
2. make
3. bitbake fsl-image-manufacturing
4. mkimage -A arm -O linux -T ramdisk -a 0x12c00000 -n "initramfs" -d fsl-image-manufacturing-imx6slevk.cpio.gz initramfs.cpio.gz.uboot
5. changed initramfs.cpio.gz.boot
6. Download firmware by mfgtool but still failed.
The modified code(mmc.c) does not seem to be reflected because I added the log but it is not visible.
)

Attachments

Outcomes