Thanks igorpadykov
But this image was working with our other i.MX6UL custom board having same hardware configuration and the only difference was the previous board is having eMMC on uSDHC2 port and this board is having uSD card on uSDHC1 port.
Please have a look at below log-
U-Boot 2015.04-imx_v2015.04_4.1.15_1.0.0_ga+gd7d7c43 (Mar 02 2017 - 19:02:08)
CPU: Freescale i.MX6UL rev1.0 at 396 MHz
CPU: Temperature 35 C
Reset cause: POR
Board: MX6UL 14X14 LPDDR2 ARM2
I2C: ready
DRAM: 256 MiB
MMC: FSL_SDHC: 0
*** Warning - bad CRC, using default environment
Starting kernel ...
Booting Linux on physical CPU 0x0Linux version 4.1.15-1.1.1-mfgtool+gd5d7c02 (pratyush@pratyush) (gcc version 5.2.0 (GCC) ) #2 SMP PREEMPT Wed Mar 1 10:59:54 IST 2017CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387dCPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cacheMachine model: Freescale i.MX6 UltraLite 14x14 EVK BoardReserved memory: failed to allocate memory for node 'linux,cma'cma: Failed to reserve 320 MiBMemory policy: Data cache writeallocPERCPU: Embedded 12 pages/cpu @8fdd3000 s16768 r8192 d24192 u49152Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber= clk_ignore_unusedPID hash table entries: 1024 (order: 0, 4096 bytes)Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)Memory: 241848K/262144K available (6899K kernel code, 321K rwdata, 2400K rodata, 388K init, 423K bss, 20296K reserved, 0K cma-reserved, 0K highmem)Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0x90800000 - 0xff000000 (1768 MB) lowmem : 0x80000000 - 0x90000000 ( 256 MB) pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) modules : 0x7f000000 - 0x7fe00000 ( 14 MB) .text : 0x80008000 - 0x8091cfa0 (9300 kB) .init : 0x8091d000 - 0x8097e000 ( 388 kB) .data : 0x8097e000 - 0x809ce5c0 ( 322 kB) .bss : 0x809d1000 - 0x80a3af54 ( 424 kB)SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1Preemptible hierarchical RCU implementation. Additional per-CPU info printed with stalls. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1NR_IRQS:16 nr_irqs:16 16mxc_clocksource_init 24000000Switching to timer-based delay loop, resolution 41nssched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971nsclocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 nsConsole: colour dummy device 80x30Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)pid_max: default: 32768 minimum: 301Mount-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 propertyCPU0: thread -1, cpu 0, socket 0, mpidr 80000000Setting up static identity map for 0x80008280 - 0x800082f0Brought up 1 CPUsSMP: Total of 1 processors activated (48.00 BogoMIPS).CPU: All CPU(s) started in SVC mode.devtmpfs: initializeddevice-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nspinctrl core: initialized pinctrl subsystemNET: Registered protocol family 16DMA: preallocated 256 KiB pool for atomic coherent allocationscpuidle: using governor laddercpuidle: using governor menuhw-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 drivermxs-dma 1804000.dma-apbh: initializedSCSI subsystem initializedusbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbi2c i2c-0: IMX I2C adapter registeredi2c i2c-0: can't use DMAi2c i2c-1: IMX I2C adapter registeredi2c i2c-1: can't use DMALinux video capture interface: v2.00pps_core: LinuxPPS API ver. 1 registeredpps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>PTP clock support registeredAdvanced Linux Sound Architecture Driver Initialized.Switched to clocksource mxc_timer1NET: Registered protocol family 2TCP established hash table entries: 2048 (order: 1, 8192 bytes)TCP bind hash table entries: 2048 (order: 2, 16384 bytes)TCP: Hash tables configured (established 2048 bind 2048)UDP hash table entries: 256 (order: 1, 8192 bytes)UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)NET: Registered protocol family 1RPC: 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: 7376K (83800000 - 83f34000)imx rpmsg driver is registered.Bus freq driver module loadedfutex hash table entries: 256 (order: 2, 16384 bytes)VFS: Disk quotas dquot_6.6.0VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)NFS: Registering the id_resolver key typeKey type id_resolver registeredKey type id_legacy registeredjffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.fuse init (API version 7.23)io scheduler noop registeredio scheduler deadline registeredio scheduler cfq registered (default)imx-weim 21b8000.weim: Driver registered.backlight supply power not found, using dummy regulatorimx-sdma 20ec000.sdma: no event needs to be remappedimx-sdma 20ec000.sdma: loaded firmware 3.3imx-sdma 20ec000.sdma: initialized2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMXconsole [ttymxc0] enabled21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 218, base_baud = 5000000) is a IMXimx sema4 driver is registered.[drm] Initialized drm 1.1.0 20060810[drm] Initialized vivante 1.0.0 20120216 on minor 0brd: module loadedloop: module loadedfsl-quadspi 21e0000.qspi: unrecognized JEDEC id bytes: ff, ff, fffsl-quadspi 21e0000.qspi: Freescale QuadSPI probe failed2188000.ethernet supply phy not found, using dummy regulatorpps pps0: new PPS source ptp0fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 06:74:d9:e9:f7:67libphy: fec_enet_mii_bus: probedfec 2188000.ethernet eth0: registered PHC device 0ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driverehci-mxc: Freescale On-Chip EHCI Host driverusbcore: registered new interface driver usb-storage2184800.usbmisc supply vbus-wakeup not found, using dummy regulator2184000.usb supply vbus not found, using dummy regulatorMass Storage Function, version: 2009/09/11LUN: removable file: (no medium)LUN: removable read only file: /fatNumber of LUNs=1Number of LUNs=1g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11g_mass_storage gadget: g_mass_storage readymousedev: PS/2 mouse device common for all miceinput: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0i2c /dev entries driverIR NEC protocol handler initializedIR RC5(x/sz) protocol handler initializedIR RC6 protocol handler initializedIR JVC protocol handler initializedIR Sony protocol handler initializedIR SANYO protocol handler initializedIR Sharp protocol handler initializedIR MCE Keyboard/mouse protocol handler initializedIR XMP protocol handler initializedpxp-v4l2 pxp_v4l2: initializedimx2-wdt 20bc000.wdog: use WDOG_B to reboot.imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)sdhci: Secure Digital Host Controller Interface driversdhci: Copyright(c) Pierre Ossmansdhci-pltfm: SDHCI platform and OF driver helper/soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecifiedsdhci-esdhc-imx 2190000.usdhc: Got CD GPIOsdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator foundmmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA/soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecifiedsdhci-esdhc-imx 2194000.usdhc: No vmmc regulator foundsdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator foundg_mass_storage gadget: high-speed config #1: Linux File-Backed Storagemmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMAusbcore: registered new interface driver usbhidusbhid: USB HID core driverNET: Registered protocol family 10sit: IPv6 over IPv4 tunneling driverNET: Registered protocol family 17Key type dns_resolver registeredRegistering SWP/SWPB emulation handlersnvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)VSD_3V3: disablingcan-3v3: disablingclk: Not disabling unused clocksALSA device list: No soundcards found.Freeing unused kernel memory: 388K (8091d000 - 8097e000)Starting UTPuuc 0.5 [built Mar 1 2017 10:44:28]UTP: Waiting for device to appearUTP: file/device node /dev/utp already existscpu_id is 0UTP: 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/mmcblk0'UTP: executing "sh mksdcard.sh /dev/mmcblk0"“wait for /dev/mmcblk0 appear”“wait for /dev/mmcblk0 appear”“wait for /dev/mmcblk0 appear”“wait for /dev/mmcblk0 appear”“wait for /dev/mmcblk0 appear”“wait for /dev/mmcblk0 appear”“wait for /dev/mmcblk0 appear”
earlier, there was some hardware connection bug and due to this we were getting "MMC init failed" in previous log.
But it's resolved now. But we are still not able to get any further.
DDR calibration is already done and the following values were updated in cfg file and new u-boot.imx was generated.
Read calibration
MPRDDLCTL PHY0 (0x021b0848) = 0x40404A50
Write calibration
MPWRDLCTL PHY0 (0x021b0850) = 0x40405048
Is there anything else we need to do for DDR calibration?
Regards
Punit Kumar