AnsweredAssumed Answered

Programming eMMC on iMX6UL

Question asked by he vd on Apr 12, 2017

I replaced the SDcard on my iMX6UL-EVK with an eMMC.When I try to use MfgTool_Multipanel(library:2.5.1) 。I am getting the following error on my console:

 

Booting Linux on physical CPU 0x0
Linux version 3.14.38-6UL_ga-mfgtool+ge4944a5 (jenkins@yb5) (gcc version 4.9.2 (
GCC) ) #1 SMP PREEMPT Tue Aug 18 20:28:28 CDT 2015
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
cma: CMA: reserved 320 MiB at 8c000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @8bb40000 s8320 r8192 d16256 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.idPr
oduct=0x37FF g_mass_storage.iSerialNumber= clk_ignore_unused
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: 173960K/524288K available (6663K kernel code, 347K rwdata, 2244K rodata,
 352K init, 418K bss, 350328K reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x808bae40   (8908 kB)
      .init : 0x808bb000 - 0x80913080   ( 353 kB)
      .data : 0x80914000 - 0x8096aea0   ( 348 kB)
       .bss : 0x8096aeac - 0x809d38b0   ( 419 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:16 nr_irqs:16 16
Switching to timer-based delay loop
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
clocksource_of_init: no matching clocksources found
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00
BogoMIPS (lpj=30000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80657a78 - 0x80657ae8
Brought up 1 CPUs
SMP: Total of 1 processors activated (6.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
Use WDOG1 as reset source
syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
vdd3p0: 2625 <--> 3400 mV at 3000 mV
cpu: 725 <--> 1450 mV at 1150 mV
vddsoc: 725 <--> 1450 mV at 1175 mV
syscon 20e4000.iomuxc-gpr: regmap [mem 0x020e4000-0x020e7fff] registered
syscon 21ac000.romcp: regmap [mem 0x021ac000-0x021affff] registered
syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
20dc000.gpc supply pu not found, using dummy regulator
bio: create slab <bio-0> at 0
mxs-dma 1804000.dma-apbh: initialized
can-3v3: 3300 mV
VSD_3V3: 3300 mV
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l
inux.it>
PTP clock support registered
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
Switched to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 7304K (83801000 - 83f23000)
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 256 (order: 2, 16384 bytes)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
msgmni has been set to 994
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: Driver registered.
backlight.8 supply power not found, using dummy regulator
MIPI DSI driver module loaded
21c8000.lcdif supply lcd not found, using dummy regulator
mxsfb 21c8000.lcdif: failed to find mxc display driver
Console: switching to colour frame buffer device 60x34
mxsfb 21c8000.lcdif: initialized
imx-sdma 20ec000.sdma: no event needs to be remapped
imx-sdma 20ec000.sdma: loaded firmware 3.1
imx-sdma 20ec000.sdma: initialized
Serial: IMX driver
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a I
MX
console [ttymxc0] enabled
21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59, base_baud = 5000000) is a I
MX
serial: Freescale lpuart driver
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
fsl-quadspi 21e0000.qspi: unrecognized JEDEC id ffffff
fsl-quadspi 21e0000.qspi: Freescale QuadSPI probe failed
20b4000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
fec 20b4000.ethernet (unregistered net_device): Invalid MAC address: 00:00:00:00
:00:00
fec 20b4000.ethernet (unregistered net_device): Using random MAC address: 16:c9:
d6:7c:4d:d3
libphy: fec_enet_mii_bus: probed
fec 20b4000.ethernet eth0: registered PHC device 0
2188000.ethernet supply phy not found, using dummy regulator
pps pps1: new PPS source ptp1
fec 2188000.ethernet (unregistered net_device): Invalid MAC address: 00:00:00:00
:00:00
fec 2188000.ethernet (unregistered net_device): Using random MAC address: 2a:ed:
54:5d:67:72
fec 2188000.ethernet eth1: registered PHC device 1
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
2184200.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR SANYO protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
pxp-v4l2 pxp_v4l2.9: initialized
imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
Registering SWP/SWPB emulation handler
VSD_3V3: disabling
can-3v3: disabling
mmc1: new high speed DDR MMC card at address 0001
regulator-dummy: disabling
imx mcc test is registered.
mmcblk1: mmc1:0001 SEM04G 3.68 GiB
Number of LUNs=8
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
mmcblk1boot0: mmc1:0001 SEM04G partition 1 1.00 MiB
mmcblk1boot1: mmc1:0001 SEM04G partition 2 1.00 MiB
Number of LUNs=1
LUN: removable file: (no medium)
Number of LUNs=1
mmcblk1rpmb: mmc1:0001 SEM04G partition 3 128 KiB
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: g_mass_storage ready
snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0
)
 mmcblk1: p1 p2
clk: Not disabling unused clocks
ALSA device list:
  No soundcards found.
 mmcblk1boot1: unknown partition table
Freeing unused kernel memory: 352K (808bb000 - 80913000)
 mmcblk1boot0: unknown partition table
Starting UTP
uuc 0.5 [built Aug 18 2015 20:29:48]
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/mmcblk1'
UTP: executing "sh mksdcard.sh /dev/mmcblk1"
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.011907 s, 86.0 kB/s
sfdisk: Checking that no-one is using th mmcblk1: unknown partition table
is disk right now ...
sfdisk: OK
Disk /dev/mmcblk1: 120832 cylinders, 4 heads, 16 s mmcblk1: p1 p2
ectors/track
sfdisk:  /dev/mmcblk1: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0
   Device Boot Start   End    MiB    #blocks   Id  System
/dev/mmcblk1p1        10    509    500     512000    c  W95 FAT32 (LBA)
/dev/mmcblk1p2       600   3775   3176    3252224   83  Linux
/dev/mmcblk1p3         0      -      0          0    0  Empty
/dev/mmcblk1p4         0      -      0          0    0  Empty
sfdisk: Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
sfdisk: 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/mmcblk1.
utp_poll: pass returned.
UTP: received command '$ dd if=/dev/zero of=/dev/mmcblk1 bs=1k seek=384 conv=fsy
nc count=129'
UTP: executing "dd if=/dev/zero of=/dev/mmcblk1 bs=1k seek=384 conv=fsync count=
129"
129+0 records in
129+0 records out
132096 bytes (132 kB) copied, 0.117424 s, 1.1 MB/s
UTP: sending Success to kernel for command $ dd if=/dev/zero of=/dev/mmcblk1 bs=
1k seek=384 conv=fsync count=129.
utp_poll: pass returned.
UTP: received command '$ echo 0 > /sys/block/mmcblk1boot0/force_ro'
UTP: executing "echo 0 > /sys/block/mmcblk1boot0/force_ro"
UTP: sending Success to kernel for command $ echo 0 > /sys/block/mmcblk1boot0/fo
rce_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/mmcblk1boot0 bs=512 seek=2'
UTP: executing "dd if=$FILE of=/dev/mmcblk1boot0 bs=512 seek=2"
550+0 records in
550+0 records out
281600 bytes (282 kB) copied, 0.234873 s, 1.2 MB/s
UTP: sending Success to kernel for command $ dd if=$FILE of=/dev/mmcblk1boot0 bs
=512 seek=2.
utp_poll: pass returned.
UTP: received command '$ echo 1 > /sys/block/mmcblk1boot0/force_ro'
UTP: executing "echo 1 > /sys/block/mmcblk1boot0/force_ro"
UTP: sending Success to kernel for command $ echo 1 > /sys/block/mmcblk1boot0/fo
rce_ro.
utp_poll: pass returned.
UTP: received command '$ echo 8 > /sys/block/mmcblk1/device/boot_config'
UTP: executing "echo 8 > /sys/block/mmcblk1/device/boot_config"
UTP: sending Success to kernel for command $ echo 8 > /sys/block/mmcblk1/device/
boot_config.
utp_poll: pass returned.
UTP: received command '$ mkfs.vfat /dev/mmcblk1p1'
UTP: executing "mkfs.vfat /dev/mmcblk1p1"
mkfs.vfat 2.11 (12 Mar 2005)
UTP: sending Success to kernel for command $ mkfs.vfat /dev/mmcblk1p1.
utp_poll: pass returned.
UTP: received command '$ mkdir -p /mnt/mmcblk1p1'
UTP: executing "mkdir -p /mnt/mmcblk1p1"
UTP: sending Success to kernel for command $ mkdir -p /mnt/mmcblk1p1.
utp_poll: pass returned.
UTP: received command '$ mount -t vfat /dev/mmcblk1p1 /mnt/mmcblk1p1'
UTP: executing "mount -t vfat /dev/mmcblk1p1 /mnt/mmcblk1p1"
UTP: sending Success to kernel for command $ mount -t vfat /dev/mmcblk1p1 /mnt/m
mcblk1p1.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ cp $FILE /mnt/mmcblk1p1/zImage'
UTP: executing "cp $FILE /mnt/mmcblk1p1/zImage"
UTP: sending Success to kernel for command $ cp $FILE /mnt/mmcblk1p1/zImage.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ cp $FILE /mnt/mmcblk1p1/imx6ul-14x14-evk.dtb'
UTP: executing "cp $FILE /mnt/mmcblk1p1/imx6ul-14x14-evk.dtb"
UTP: sending Success to kernel for command $ cp $FILE /mnt/mmcblk1p1/imx6ul-14x1
4-evk.dtb.
utp_poll: pass returned.
UTP: received command '$ umount /mnt/mmcblk1p1'
UTP: executing "umount /mnt/mmcblk1p1"
random: nonblocking pool is initialized
UTP: sending Success to kernel for command $ umount /mnt/mmcblk1p1.
utp_poll: pass returned.
UTP: received command '$ mkfs.ext3 -E nodiscard /dev/mmcblk1p2'
UTP: executing "mkfs.ext3 -E nodiscard /dev/mmcblk1p2"
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
203600 inodes, 813056 blocks
40652 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=834666496
25 block groups
32768 blocks per group, 32768 fragments per group
8144 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
UTP: sending Success to kernel for command $ mkfs.ext3 -E nodiscard /dev/mmcblk1
p2.
utp_poll: pass returned.
UTP: received command '$ mkdir -p /mnt/mmcblk1p2'
UTP: executing "mkdir -p /mnt/mmcblk1p2"
UTP: sending Non-success to kerneUnable to handle kernel NULL pointer dereferenc
e at virtual address 00000004
pgd = 80004000
[00000004] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.14.38-6UL_ga-mfgtool+ge4944a5 #1
task: 80920228 ti: 80914000 task.ti: 80914000
PC is at imx_gpc_irq_unmask+0x0/0x40
LR is at imx6q_set_lpm+0x78/0xf4
pc : [<80021d58>]    lr : [<80027f50>]    psr: 200f0093
sp : 80915f40  ip : 00000000  fp : 80914000
r10: 8096acc7  r9 : 809233e4  r8 : 00000000
r7 : 0000000b  r6 : 00000000  r5 : 8096d0b8  r4 : 00000079
r3 : 00000000  r2 : 00000000  r1 : 00000020  r0 : 00000000
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 8842806a  DAC: 00000015
Process swapper/0 (pid: 0, stack limit = 0x80914238)
Stack: (0x80915f40 to 0x80916000)
5f40: 00000000 00000001 40af76fa 800216d8 800216c0 8bb410d0 00000001 80469394
5f60: 40af76fa 0000000b 8bb410d0 809c4c94 00000000 8bb410d0 809c4c94 00000001
5f80: 00000000 804694e4 00000000 80914000 00000000 80914000 8091c9a4 8065a84c
5fa0: 8096acc7 8000f148 00000000 8006d53c 00000001 ffffffff 00000000 808bbaac
5fc0: ffffffff ffffffff 808bb588 00000000 00000000 80903c20 00000000 10c5387d
5fe0: 8091c928 80903c1c 809212c0 8000406a 410fc075 80008074 00000000 00000000
[<80021d58>] (imx_gpc_irq_unmask) from [<80027f50>] (imx6q_set_lpm+0x78/0xf4)
[<80027f50>] (imx6q_set_lpm) from [<800216d8>] (imx6ul_enter_wait+0x18/0x84)
[<800216d8>] (imx6ul_enter_wait) from [<80469394>] (cpuidle_enter_state+0x3c/0xe
0)
[<80469394>] (cpuidle_enter_state) from [<804694e4>] (cpuidle_idle_call+0xac/0x1
54)
[<804694e4>] (cpuidle_idle_call) from [<8000f148>] (arch_cpu_idle+0x8/0x44)
[<8000f148>] (arch_cpu_idle) from [<8006d53c>] (cpu_startup_entry+0xf4/0x14c)
[<8006d53c>] (cpu_startup_entry) from [<808bbaac>] (start_kernel+0x2fc/0x360)
Code: 8096b73c aaaaaaab 80931cd4 03fe0000 (e5903004)
---[ end trace 56a06790c15f5882 ]---
Kernel panic - not syncing: Attempted to kill the idle task!
I have no idea how to  this problem.

Outcomes