AnsweredAssumed Answered

kernel freezes at Registering SWP/SWPB emulation handler

Question asked by surajkumar mokhasi on Sep 12, 2019
Latest reply on Sep 13, 2019 by igorpadykov

Hello,

We are using custom imx6q hardware which has 512MiB DDR. we have modified the DDR registers with calibration values and uboot is booting fine. when i tried to boot kernel it freezes at "Registering SWP/SWPB emulation handler"

 

Below is the boot log:

 

U-Boot 2017.07 (Sep 03 2019 - 09:30:13 +0530)

 

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: sabrelite
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected s25fl512s_256k with page size 512 Bytes, erase size 256 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

 

Display: hdmi:1280x720M@60 (1280x720)
In:    serial
Out:   serial
Err:   serial
Net:   init_fec: phy not found
usb_ether
Error: usb_ether address not set.

 

Hit any key to stop autoboot:  0
=> setenv mmc_bootargs 'setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rw consoleblank=0 loglevel=7'
=> setenv mmc_boot 'run mmc_bootargs;mmc dev 1;ext4load mmc 1:1 0x18000000 imx6q-nitrogen6x.dtb;ext4load mmc 1:1 0x12000000 zImage;bootz 0x12000000 - 0x18000000'
=> setenv bootcmd 'run mmc_boot'
=> boot
switch to partitions #0, OK
mmc1 is current device
52800 bytes read in 15 ms (3.4 MiB/s)
5338536 bytes read in 258 ms (19.7 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x5175a8 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800fe3f

 

Starting kernel ...

 

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.74 (suraj@suraj-ubuntu-lap) (gcc version 7.4.0 (Buildroot 2019.02.5) ) #18 SMP PREEMPT Thu Sep 12 18:23:10 IST 2019
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Boundary Devices i.MX6 Quad Nitrogen6x Board
[    0.000000] Reserved memory: created CMA memory pool at 0x1c000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @8baf9000 s26060 r8192 d23092 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rw consoleblank=0 loglevel=7
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 178908K/524288K available (8192K kernel code, 360K rwdata, 2032K rodata, 1024K init, 466K bss, 17700K reserved, 327680K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xa0800000 - 0xff800000   (1520 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80900000   (9184 kB)
[    0.000000]       .init : 0x80b00000 - 0x80c00000   (1024 kB)
[    0.000000]       .data : 0x80c00000 - 0x80c5a2a0   ( 361 kB)
[    0.000000]        .bss : 0x80c5c000 - 0x80cd0a04   ( 467 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 errata 752271 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000007] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000026] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.001615] Console: colour dummy device 80x30
[    0.001638] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.001654] pid_max: default: 32768 minimum: 301
[    0.001729] Security Framework initialized
[    0.001741] Yama: becoming mindful.
[    0.001777] AppArmor: AppArmor initialized
[    0.001813] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001824] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002407] CPU: Testing write buffer coherency: ok
[    0.002789] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002856] Setting up static identity map for 0x10100000 - 0x10100058
[    0.169805] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.239794] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.309792] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.309902] Brought up 4 CPUs
[    0.309929] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[    0.309939] CPU: All CPU(s) started in SVC mode.
[    0.310774] devtmpfs: initialized
[    0.324832] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.325156] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.325181] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.342175] pinctrl core: initialized pinctrl subsystem
[    0.343446] NET: Registered protocol family 16
[    0.353045] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.379541] cpuidle: using governor menu
[    0.379726] CPU identified as i.MX6Q, silicon rev 1.2
[    0.409230] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.409247] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.410610] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.413261] imx-gpc 20dc000.gpc: no fsl,ldo-bypass found!
[    0.413406] imx-gpc 20dc000.gpc: Registered imx-gpc
[    0.466360] mxs-dma 110000.dma-apbh: initialized
[    0.469868] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 28, base_baud = 5000000) is a IMX
[    0.924333] console [ttymxc0] enabled
[    0.928890] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 77, base_baud = 5000000) is a IMX
[    0.938152] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 78, base_baud = 5000000) is a IMX
[    0.948001] SCSI subsystem initialized
[    0.952277] usbcore: registered new interface driver usbfs
[    0.957838] usbcore: registered new interface driver hub
[    0.963276] usbcore: registered new device driver usb
[    0.968561] 2000000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
[    0.976485] 2000000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
[    0.985027] imx-i2c 21a0000.i2c: stop-delay=0, inter-byte-delay=0
[    0.991659] i2c i2c-0: IMX I2C adapter registered
[    0.996383] i2c i2c-0: can't use DMA, using PIO instead.
[    1.002150] imx-i2c 21a4000.i2c: stop-delay=0, inter-byte-delay=0
[    1.008942] i2c i2c-1: IMX I2C adapter registered
[    1.013708] i2c i2c-1: can't use DMA, using PIO instead.
[    1.019371] imx-i2c 21a8000.i2c: stop-delay=0, inter-byte-delay=0
[    1.026667] i2c i2c-2: IMX I2C adapter registered
[    1.031422] i2c i2c-2: can't use DMA, using PIO instead.
[    1.037214] Linux video capture interface: v2.00
[    1.041902] pps_core: LinuxPPS API ver. 1 registered
[    1.046877] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.056055] PTP clock support registered
[    1.089546] imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[    1.119541] imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[    1.128556] mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed
[    1.135301] mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
[    1.143259] MIPI CSI2 driver module loaded
[    1.147808] imx rpmsg driver is registered.
[    1.152214] Advanced Linux Sound Architecture Driver Initialized.
[    1.159631] Bluetooth: Core ver 2.22
[    1.163257] NET: Registered protocol family 31
[    1.167709] Bluetooth: HCI device and connection manager initialized
[    1.174104] Bluetooth: HCI socket layer initialized
[    1.178999] Bluetooth: L2CAP socket layer initialized
[    1.184112] Bluetooth: SCO socket layer initialized
[    1.189013] NetLabel: Initializing
[    1.192442] NetLabel:  domain hash size = 128
[    1.196805] NetLabel:  protocols = UNLABELED CIPSOv4
[    1.201855] NetLabel:  unlabeled traffic allowed by default
[    1.207987] clocksource: Switched to clocksource mxc_timer1
[    1.213714] VFS: Disk quotas dquot_6.6.0
[    1.217720] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.225037] AppArmor: AppArmor Filesystem Enabled
[    1.242369] NET: Registered protocol family 2
[    1.247411] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.254550] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.261085] TCP: Hash tables configured (established 4096 bind 4096)
[    1.267502] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.273392] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.279865] NET: Registered protocol family 1
[    1.284727] RPC: Registered named UNIX socket transport module.
[    1.290683] RPC: Registered udp transport module.
[    1.295395] RPC: Registered tcp transport module.
[    1.300125] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.307048] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.317297] Bus freq driver module loaded
[    1.322499] audit: initializing netlink subsys (disabled)
[    1.327957] audit: type=2000 audit(1.250:1): initialized
[    1.334285] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.347748] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.355066] NFS: Registering the id_resolver key type
[    1.360180] Key type id_resolver registered
[    1.364374] Key type id_legacy registered
[    1.368674] fuse init (API version 7.26)
[    1.379506] io scheduler noop registered
[    1.383445] io scheduler deadline registered
[    1.387904] io scheduler cfq registered (default)
[    1.402206] 20e0000.hdmi_video supply HDMI not found, using dummy regulator
[    1.411556] add tfp410 i2c driver
[    1.418715] imx-sdma 20ec000.sdma: no iram assigned, using external mem
[    1.425747] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    1.437434] imx sema4 driver is registered.
[    1.441737] [drm] Initialized
[    1.445247] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[    1.463712] brd: module loaded
[    1.474309] loop: module loaded
[    1.477605] [max77823_init] start
[    1.482377] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[    1.490345] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[    1.498385] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[    1.506577] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[    1.516802] ahci-imx 2200000.sata: failed to reset phy: -110
[    1.522551] ahci-imx: probe of 2200000.sata failed with error -110
[    1.531900] m25p80 spi0.0: found s25fl512s, expected sst25vf016b
[    1.537928] m25p80 spi0.0: s25fl512s (65536 Kbytes)
[    1.542888] 3 ofpart partitions found on MTD device spi0.0
[    1.548407] Creating 3 MTD partitions on "spi0.0":
[    1.553213] 0x000000000000-0x0000000c0000 : "U-Boot"
[    1.559593] 0x0000000c0000-0x0000000c2000 : "env"
[    1.564310] mtd: partition "env" doesn't end on an erase block -- force read-only
[    1.573090] 0x0000000c2000-0x000000200000 : "splash"
[    1.578093] mtd: partition "splash" doesn't start on an erase block boundary -- force read-only
[    1.598107] spi_imx 2008000.ecspi: probed
[    1.603129] libphy: Fixed MDIO Bus: probed
[    1.607676] CAN device driver interface
[    1.611904] 2090000.flexcan supply xceiver not found, using dummy regulator
[    1.619865] flexcan 2090000.flexcan: device registered (reg_base=a0a88000, irq=36)
[    1.629430] 2188000.ethernet supply phy not found, using dummy regulator
[    1.636741] pps pps0: new PPS source ptp0
[    1.641415] fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[    1.651380] fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: c6:45:c7:55:b5:fb
[    1.662272] libphy: fec_enet_mii_bus: probed
[    1.666562] mdio_bus 2188000.ethernet-1: /soc/aips-bus@02100000/ethernet@02188000/mdio/ethernet-phy has invalid PHY address
[    1.681788] fec 2188000.ethernet eth0: registered PHC device 0
[    1.688015] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.694637] usbcore: registered new interface driver cdc_acm
[    1.700330] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.708442] usbcore: registered new interface driver usb-storage
[    1.714560] usbcore: registered new interface driver usbserial
[    1.720471] usbcore: registered new interface driver usbserial_generic
[    1.727056] usbserial: USB Serial support registered for generic
[    1.733144] usbcore: registered new interface driver cp210x
[    1.738788] usbserial: USB Serial support registered for cp210x
[    1.744756] usbcore: registered new interface driver ftdi_sio
[    1.750572] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.757931] usbcore: registered new interface driver keyspan
[    1.763663] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    1.771562] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    1.778940] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    1.786296] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    1.793726] usbcore: registered new interface driver pl2303
[    1.799381] usbserial: USB Serial support registered for pl2303
[    1.805352] usbcore: registered new interface driver qcserial
[    1.811173] usbserial: USB Serial support registered for Qualcomm USB modem
[    1.819768] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[    1.828091] setup_reset_gpios:-2, flags 0
[    1.836829] setup_reset_gpios:204, flags 1
[    1.868029] setup_reset_gpios:-2, flags 1
[    1.872199] 2184200.usb supply vbus not found, using dummy regulator
[    1.881956] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    1.886870] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[    1.918027] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    1.924434] hub 1-0:1.0: USB hub found
[    1.928261] hub 1-0:1.0: 1 port detected
[    1.933413] mousedev: PS/2 mouse device common for all mice
[    1.941367] check_alarm_past: alarm in the past
[    1.946177] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
[    1.955088] i2c /dev entries driver
[    1.961853] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    1.968450] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[    1.977715] sdhci: Secure Digital Host Controller Interface driver
[    1.983933] sdhci: Copyright(c) Pierre Ossman
[    1.988323] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.148062] mmc2: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    2.155852] sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
[    2.167127] sdhci-esdhc-imx 2198000.usdhc: Got CD GPIO
[    2.238227] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    2.248123] sdhci-esdhc-imx 219c000.usdhc: could not get ultra high speed state, work on normal mode
[    2.257307] sdhci-esdhc-imx 219c000.usdhc: Got CD GPIO
[    2.328215] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[    2.339934] mxc_vpu 2040000.vpu_fsl: VPU initialized
[    2.348799] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[    2.358157] caam 2100000.caam: ERA source: CAAMVID.
[    2.365163] caam 2100000.caam: AXI pipeline throttling enabled.
[    2.375459] caam 2100000.caam: Entropy delay = 3200
[    2.427730] mmc1: host does not support reading read-only switch, assuming write-enable
[    2.443245] caam 2100000.caam: Instantiated RNG4 SH0
[    2.443699] mmc1: new high speed SDHC card at address e624
[    2.444291] mmcblk1: mmc1:e624 SS08G 7.40 GiB
[    2.448403]  mmcblk1: p1
[    2.504008] caam 2100000.caam: Instantiated RNG4 SH1
[    2.509020] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[    2.515475] caam 2100000.caam: job rings = 2, qi = 0
[    2.527561] caam algorithms registered in /proc/crypto
[    2.536905] caam_jr 2101000.jr0: registering rng-caam
[    2.543053] usbcore: registered new interface driver usbhid
[    2.548663] usbhid: USB HID core driver
[    2.554799] sgtl5000 0-000a: Error reading chip id -6
[    2.565177] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[    2.572726] fsl-ssi-dai 202c000.ssi: No cache defaults, reading back from HW
[    2.585112] imx-sgtl5000 sound: ASoC: CODEC DAI sgtl5000 not registered
[    2.593792] imx-sgtl5000 sound: snd_soc_register_card failed (-517)
[    2.602353] NET: Registered protocol family 26
[    2.609514] NET: Registered protocol family 10
[    2.621274] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.630075] NET: Registered protocol family 17
[    2.636572] can: controller area network core (rev 20120528 abi 9)
[    2.642994] NET: Registered protocol family 29
[    2.647465] can: raw protocol (rev 20120528)
[    2.651770] can: broadcast manager protocol (rev 20161123 t)
[    2.657447] can: netlink gateway (rev 20130117) max_hops=1
[    2.663229] Bluetooth: RFCOMM TTY layer initialized
[    2.668159] Bluetooth: RFCOMM socket layer initialized
[    2.673325] Bluetooth: RFCOMM ver 1.11
[    2.677092] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.682436] Bluetooth: BNEP filters: protocol multicast
[    2.687680] Bluetooth: BNEP socket layer initialized
[    2.692736] 8021q: 802.1Q VLAN Support v1.8
[    2.697602] rfkill_gpio bt_rfkill: bt_rfkill device registered.
[    2.703698] Key type dns_resolver registered
[    2.710440] cpu cpu0: Registered imx6q-cpufreq
[    2.714928] Registering SWP/SWPB emulation handler

 

 

Is this related to any clock issues. Thanks in advance

Outcomes