We have designed custom board as a refernce by SABRESD board. we use KLM8G1GEME emmc5.1 instead of MTFC8GLCDM. When we use MFG tool, the buit customized images U boot,U Image and rootfs are burnded successfully into EMMC.here is UART messages:
mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
mxc_vpu 2040000.vpu_fsl: VPU initialized
mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
ata1: SATA link down (SStatus 0 SControl 300)
ahci-imx 2200000.sata: no device found, disabling link.
ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
backlight supply power not found, using dummy regulator
backlight supply power not found, using dummy regulator
input: gpio-keys as /devices/soc0/gpio-keys/input/input0
mmc3: MAN_BKOPS_EN bit is not set
backlight supply power not found, using dummy regulator
snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
VGEN3: disabling
mmc3: new DDR MMC card at address 0001
mmcblk3: mmc3:0001 8GME4R 7.28 GiB
mmcblk3boot0: mmc3:0001 8GME4R partition 1 4.00 MiB
mmcblk3boot1: mmc3:0001 8GME4R partition 2 4.00 MiB
mmcblk3rpmb: mmc3:0001 8GME4R partition 3 512 KiB
VGEN2: disabling
VGEN1: disabling
SW4: disabling
mipi_dsi_pwr_on: disabling
hdmi-5v-supply: disabling
sensor-supply: disabling
wm8962-supply: disabling
usb_otg_vbus: disabling
backlight supply power not found, using dummy regulator
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 284K (808e9000 - 80930000)
Starting UTP
uuc 0.5 [built Sep 16 2016 02:36:28]
UTP: Waiting for device to appear
UTP: file/device node /dev/utp already exists
cpu_id is 0
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ tar xf $FILE '
UTP: executing "tar xf $FILE "
UTP: sending Success to kernel for command $ tar xf $FILE .
utp_poll: pass returned.
UTP: received command '$ sh mksdcard.sh /dev/mmcblk3'
UTP: executing "sh mksdcard.sh /dev/mmcblk3"
1+0 records in
1+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00864567 s, 118 kB/s
Checking that no-one is using thirandom: sfdisk urandom read with 8 bits of entropy available
s disk right now ... OK
Di mmcblk3: p1 p2
sk /dev/mmcblk3: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
>>> Created a new DOS disklabel with disk identifier 0x999f01b2.
Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
/dev/mmcblk3p2: Created a new partition 2 of type 'Linux' and of size 6.7 GiB.
/dev/mmcblk3p3:
New situation:
Device Boot Start End Sectors Size Id Type
/dev/mmcblk3p1 20480 1044479 1024000 500M c W95 FAT32 (LBA)
/dev/mmcblk3p2 1228800 15269887 14041088 6.7G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
UTP: sending Success to kernel for command $ sh mksdcard.sh /dev/mmcblk3.
utp_poll: pass returned.
UTP: received command '$ dd if=/dev/zero of=/dev/mmcblk3 bs=1k seek=768 conv=fsync count=8'
UTP: executing "dd if=/dev/zero of=/dev/mmcblk3 bs=1k seek=768 conv=fsync count=8"
8+0 records in
8+0 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.010135 s, 808 kB/s
UTP: sending Success to kernel for command $ dd if=/dev/zero of=/dev/mmcblk3 bs=1k seek=768 conv=fsync count=8.
utp_poll: pass returned.
UTP: received command '$ echo 0 > /sys/block/mmcblk3boot0/force_ro'
UTP: executing "echo 0 > /sys/block/mmcblk3boot0/force_ro"
UTP: sending Success to kernel for command $ echo 0 > /sys/block/mmcblk3boot0/force_ro.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ dd if=$FILE of=/dev/mmcblk3boot0 bs=512 seek=2'
UTP: executing "dd if=$FILE of=/dev/mmcblk3boot0 bs=512 seek=2"
838+0 records in
838+0 records out
429056 bytes (429 kB, 419 KiB) copied, 0.0544753 s, 7.9 MB/s
UTP: sending Success to kernel for command $ dd if=$FILE of=/dev/mmcblk3boot0 bs=512 seek=2.
utp_poll: pass returned.
UTP: received command '$ echo 1 > /sys/block/mmcblk3boot0/force_ro'
UTP: executing "echo 1 > /sys/block/mmcblk3boot0/force_ro"
UTP: sending Success to kernel for command $ echo 1 > /sys/block/mmcblk3boot0/force_ro.
utp_poll: pass returned.
UTP: received command '$ mmc bootpart enable 1 1 /dev/mmcblk3'
UTP: executing "mmc bootpart enable 1 1 /dev/mmcblk3"
UTP: sending Success to kernel for command $ mmc bootpart enable 1 1 /dev/mmcblk3.
utp_poll: pass returned.
UTP: received command '$ while [ ! -e /dev/mmcblk3p1 ]; do sleep 1; echo "waiting..."; done '
UTP: executing "while [ ! -e /dev/mmcblk3p1 ]; do sleep 1; echo "waiting..."; done "
UTP: sending Success to kernel for command $ while [ ! -e /dev/mmcblk3p1 ]; do sleep 1; echo "waiting..."; done .
utp_poll: pass returned.
UTP: received command '$ mkfs.vfat /dev/mmcblk3p1'
UTP: executing "mkfs.vfat /dev/mmcblk3p1"
mkfs.fat 3.0.28 (2015-05-16)
UTP: sending Success to kernel for command $ mkfs.vfat /dev/mmcblk3p1.
utp_poll: pass returned.
UTP: received command '$ mkdir -p /mnt/mmcblk3p1'
UTP: executing "mkdir -p /mnt/mmcblk3p1"
UTP: sending Success to kernel for command $ mkdir -p /mnt/mmcblk3p1.
utp_poll: pass returned.
UTP: received command '$ mount -t vfat /dev/mmcblk3p1 /mnt/mmcblk3p1'
UTP: executing "mount -t vfat /dev/mmcblk3p1 /mnt/mmcblk3p1"
UTP: sending Success to kernel for command $ mount -t vfat /dev/mmcblk3p1 /mnt/mmcblk3p1.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ cp $FILE /mnt/mmcblk3p1/zImage'
UTP: executing "cp $FILE /mnt/mmcblk3p1/zImage"
UTP: sending Success to kernel for command $ cp $FILE /mnt/mmcblk3p1/zImage.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ cp $FILE /mnt/mmcblk3p1/imx6q.dtb'
UTP: executing "cp $FILE /mnt/mmcblk3p1/imx6q.dtb"
UTP: sending Success to kernel for command $ cp $FILE /mnt/mmcblk3p1/imx6q.dtb.
utp_poll: pass returned.
UTP: received command '$ umount /mnt/mmcblk3p1'
UTP: executing "umount /mnt/mmcblk3p1"
UTP: sending Success to kernel for command $ umount /mnt/mmcblk3p1.
utp_poll: pass returned.
However, when i choose booting from emmc, it didn't work, it still boot from usb. I have set BT_CFG pins properly.
we check the mmc info:
it didn't have RPMB capacity and others. Does it mean we didn't burn the uboot and kernel into the emmc successfully.
our bsp version is 4.1.15_2.1.0
Hello,
The imx6 don't support eMMC 5.1, it support eMMC 4.0 version.
Regards