i.Mx6q kernel stuck

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.Mx6q kernel stuck

3,314 Views
faustosessego1
Contributor III

Hi,

I am trying to port the kernel 4.1-1.0. from sabresd to my custom board.

Everything builds without an error and I get a new zImage, as shown below.  However,  the Kernel hangs while starting up.


U-Boot 2016.07 (May 03 2017 - 15:26:14 +0200)

CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 26C
Reset cause: POR
Board: i.MX6Q
I2C: ready
DRAM: gd->ram_size: 1073741824
DRAM test not implemented!
1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: CPU Net Initialization Failed
No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
reading zImage
6685024 bytes read in 333 ms (19.1 MiB/s)
Booting from mmc ...
reading imx6q-custom.dtb
29482 bytes read in 19 ms (1.5 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x660160 ]

Starting kernel ...

hang ...

My define called into custom_board.h (u-boot) are

#define CONFIG_EXTRA_ENV_SETTINGS \
"script=boot.scr\0" \
"image=zImage\0" \
"console=" CONFIG_CONSOLE_DEV "\0" \
"fdt_high=0xffffffff\0" \
"initrd_high=0xffffffff\0" \
"fdt_file=imx6q-custom.dtb\0" \
"fdt_addr=0x18000000\0" \
"boot_fdt=try\0" \
"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
"mmcautodetect=yes\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=${mmcroot}\0" \
"loadbootscript=" \
"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
"bootscript=echo Running bootscript from mmc ...; " \
"source\0" \
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
"loadimagerror=echo Load zImage from mmc ERROR!!; \0" \
"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
"if run loadfdt; then " \
"bootz ${loadaddr} - ${fdt_addr}; " \
"else " \
"if test ${boot_fdt} = try; then " \
"bootz; " \
"else " \
"echo WARN: Cannot load the DT; " \
"fi; " \
"fi; " \
"else " \
"bootz; " \
"fi;\0" \


#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"if run loadimage; then " \
"run mmcboot; " \
"else run loadimagerror; " \
"fi; " \
"else run mmcbooterror; fi; " \

I compile the kernel by

#!/bin/bash
export ARCH=arm
export CROSS_COMPILE=arm-linux-
export PATH=/home/fsessego/Documents/Yocto/fsl-linaro-toolchain/bin/:$PATH
cd ../linux-fslc
make clean
make imx_v7_defconfig
make -j4 zImage imx6q-custom.dtb

I suspect something wrong with my zImage when I specify the load address.

 

Regards

Labels (3)
0 Kudos
7 Replies

1,719 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Fausto,

If you are using a custom board then u-boot has no support for your board. You may refer to the porting guide that Igor pointed you here: https://community.nxp.com/thread/448757 

Carlos

0 Kudos

1,719 Views
faustosessego1
Contributor III

Hi Carlos,

finally i'm able to boot my custom board.

Now i have another problem.

I load correctly u-boot, kernel and root-fs but the board stucks:

U-Boot 2016.07 (May 31 2017 - 15:36:04 +0200)

CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 23C
Reset cause: POR
I2C: ready
DRAM: gd->ram_size: 1073741824
DRAM test not implemented!
1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: CPU Net Initialization Failed
No ethernet found.
Hit any key to stop autoboot: 0
reading imx6q-sibiri.dtb
31304 bytes read in 23 ms (1.3 MiB/s)
reading uImage
6657680 bytes read in 325 ms (19.5 MiB/s)
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-4.1.38
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6657616 Bytes = 6.3 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 18000000
Booting using the fdt blob at 0x18000000
Loading Kernel Image ... OK
Using Device Tree in place at 18000000, end 1800aa47

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.1.38 (fsessego@ubuntu) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #12 SMP PREEMPT Wed May 31 16:29:11 CEST 2017
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: INFOMOB i.MX6 Quad SIBIRI Board
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Reserved memory: created CMA memory pool at 0x3c000000, size 320 MiB
[ 0.000000] Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 12 pages/cpu @ab70d000 s16960 r8192 d24000 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: console=ttymxc0,115200 earlyprintk root=/dev/mmcblk3p2 rootwait rw
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 698324K/1048576K available (8362K kernel code, 435K rwdata, 2900K rodata, 424K init, 450K bss, 22572K 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 : 0xc0800000 - 0xff000000 (1000 MB)
[ 0.000000] lowmem : 0x80000000 - 0xc0000000 (1024 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .text : 0x80008000 - 0x80b07eb0 (11264 kB)
[ 0.000000] .init : 0x80b08000 - 0x80b72000 ( 424 kB)
[ 0.000000] .data : 0x80b72000 - 0x80bdede0 ( 436 kB)
[ 0.000000] .bss : 0x80be1000 - 0x80c51ac0 ( 451 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C-310 erratum 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] mxc_clocksource_init 3000000
[ 0.000000] Switching to timer-based delay loop, resolution 333ns
[ 0.000006] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[ 0.008298] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[ 0.018824] Console: colour dummy device 80x30
[ 0.023387] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.033700] pid_max: default: 32768 minimum: 301
[ 0.038513] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.045245] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.052991] CPU: Testing write buffer coherency: ok
[ 0.058256] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.064110] Setting up static identity map for 0x100082c0 - 0x10008318
[ 0.129969] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.149979] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.169984] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.170053] Brought up 4 CPUs
[ 0.190408] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[ 0.196689] CPU: All CPU(s) started in SVC mode.
[ 0.201934] devtmpfs: initialized
[ 0.213701] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.221885] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.251381] pinctrl core: initialized pinctrl subsystem
[ 0.257934] NET: Registered protocol family 16
[ 0.271672] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.309468] cpuidle: using governor ladder
[ 0.339462] cpuidle: using governor menu
[ 0.343623] CPU identified as i.MX6Q, silicon rev 1.5
[ 0.367087] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.375225] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.381990] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.432186] mxs-dma 110000.dma-apbh: initialized
[ 0.438501] SCSI subsystem initialized
[ 0.442867] usbcore: registered new interface driver usbfs
[ 0.448519] usbcore: registered new interface driver hub
[ 0.454032] usbcore: registered new device driver usb
[ 0.459370] 2000000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
[ 0.467350] 2000000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
[ 0.476125] i2c i2c-0: IMX I2C adapter registered
[ 0.480959] i2c i2c-0: can't use DMA
[ 0.485138] i2c i2c-1: IMX I2C adapter registered
[ 0.489969] i2c i2c-1: can't use DMA
[ 0.494000] i2c i2c-2: IMX I2C adapter registered
[ 0.498809] i2c i2c-2: can't use DMA
[ 0.502574] Linux video capture interface: v2.00
[ 0.507361] pps_core: LinuxPPS API ver. 1 registered
[ 0.512442] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.521718] PTP clock support registered
[ 0.539517] imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[ 0.560048] imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
[ 0.568667] MIPI CSI2 driver module loaded
[ 0.573165] Advanced Linux Sound Architecture Driver Initialized.
[ 0.580299] Bluetooth: Core ver 2.20
[ 0.584008] NET: Registered protocol family 31
[ 0.588549] Bluetooth: HCI device and connection manager initialized
[ 0.595028] Bluetooth: HCI socket layer initialized
[ 0.600021] Bluetooth: L2CAP socket layer initialized
[ 0.605200] Bluetooth: SCO socket layer initialized
[ 0.611006] Switched to clocksource mxc_timer1
[ 0.625799] NET: Registered protocol family 2
[ 0.630932] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.638198] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.644886] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.651446] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.657512] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.664221] NET: Registered protocol family 1
[ 0.668986] RPC: Registered named UNIX socket transport module.
[ 0.675058] RPC: Registered udp transport module.
[ 0.679860] RPC: Registered tcp transport module.
[ 0.684678] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.691857] CPU PMU: Failed to parse /soc/pmu/interrupt-affinity[0]
[ 0.698271] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.707328] imx rpmsg driver is registered.
[ 0.712535] Bus freq driver module loaded
[ 0.717796] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.730318] VFS: Disk quotas dquot_6.6.0
[ 0.734540] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.743681] NFS: Registering the id_resolver key type
[ 0.748864] Key type id_resolver registered
[ 0.753185] Key type id_legacy registered
[ 0.757367] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.764280] fuse init (API version 7.23)
[ 0.772556] io scheduler noop registered
[ 0.776587] io scheduler deadline registered
[ 0.781167] io scheduler cfq registered (default)
[ 0.786447] imx-weim 21b8000.weim: Driver registered.
[ 0.792668] MIPI DSI driver module loaded
[ 0.796924] MIPI DSI driver module loaded
[ 0.803100] imx-sdma 20ec000.sdma: no iram assigned, using external mem
[ 0.810093] imx-sdma 20ec000.sdma: no event needs to be remapped
[ 0.816420] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.824546] imx-sdma 20ec000.sdma: initialized
[ 0.830686] pfuze100-regulator 1-0008: Full layer: 2, Metal layer: 1
[ 0.837776] pfuze100-regulator 1-0008: FAB: 0, FIN: 0
[ 0.842947] pfuze100-regulator 1-0008: pfuze100 found.
[ 0.864826] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 22, base_baud = 5000000) is a IMX
[ 0.873646] console [ttymxc0] enabled
[ 0.877351] bootconsole [earlycon0] disabled
[ 0.883724] imx sema4 driver is registered.
[ 0.887983] [drm] Initialized drm 1.1.0 20060810
[ 0.893191] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[ 0.908185] brd: module loaded
[ 0.916976] loop: module loaded
[ 0.923792] CAN device driver interface
[ 0.928881] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.935462] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 0.940967] usbcore: registered new interface driver usb-storage
[ 0.947077] usbcore: registered new interface driver usb_ehset_test
[ 0.954364] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[ 0.962511] mousedev: PS/2 mouse device common for all mice
[ 0.970064] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
[ 0.978902] i2c /dev entries driver
[ 0.983811] IR NEC protocol handler initialized
[ 0.988365] IR RC5(x/sz) protocol handler initialized
[ 0.993460] IR RC6 protocol handler initialized
[ 0.998006] IR JVC protocol handler initialized
[ 1.002580] IR Sony protocol handler initialized
[ 1.007211] IR SANYO protocol handler initialized
[ 1.011946] IR Sharp protocol handler initialized
[ 1.016666] IR MCE Keyboard/mouse protocol handler initialized
[ 1.022528] IR XMP protocol handler initialized
[ 1.029485] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.035461] Bluetooth: HCI UART driver ver 2.3
[ 1.039918] Bluetooth: HCI UART protocol H4 registered
[ 1.045088] Bluetooth: HCI UART protocol BCSP registered
[ 1.050413] Bluetooth: HCI UART protocol ATH3K registered
[ 1.055927] usbcore: registered new interface driver bcm203x
[ 1.061696] usbcore: registered new interface driver btusb
[ 1.067267] usbcore: registered new interface driver ath3k
[ 1.073236] sdhci: Secure Digital Host Controller Interface driver
[ 1.079430] sdhci: Copyright(c) Pierre Ossman
[ 1.083825] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.090250] /soc/aips-bus@02100000/usdhc@0219c000: voltage-ranges unspecified
[ 1.097433] sdhci-esdhc-imx 219c000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.106621] sdhci-esdhc-imx 219c000.usdhc: Got CD GPIO
[ 1.112067] sdhci-esdhc-imx 219c000.usdhc: No vmmc regulator found
[ 1.118265] sdhci-esdhc-imx 219c000.usdhc: No vqmmc regulator found
[ 1.161182] mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[ 1.169674] mxc_vpu 2040000.vpu_fsl: VPU initialized
[ 1.175164] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[ 1.183999] Galcore version 5.0.11.41671
[ 1.232125] mmc3: host does not support reading read-only switch, assuming write-enable
[ 1.248086] mmc3: new high speed SDHC card at address aaaa
[ 1.254686] mmcblk3: mmc3:aaaa SL32G 28.8 GiB
[ 1.261437] mmcblk3: p1 p2
[ 1.568166] caam 2100000.caam: Entropy delay = 3200
[ 1.633888] caam 2100000.caam: Instantiated RNG4 SH0
[ 1.694650] caam 2100000.caam: Instantiated RNG4 SH1
[ 1.699634] caam 2100000.caam: device ID = 0x0a16010000000000 (Era -524)
[ 1.706363] caam 2100000.caam: job rings = 2, qi = 0
[ 1.776688] caam algorithms registered in /proc/crypto
[ 1.785918] caam_jr 2101000.jr0: registering rng-caam
[ 1.791802] platform caam_sm: blkkey_ex: 4 keystore units available
[ 1.798305] platform caam_sm: 64-bit clear key:
[ 1.802873] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 1.808547] platform caam_sm: 64-bit black key:
[ 1.813106] platform caam_sm: [0000] 88 18 55 69 9e 57 3b ef
[ 1.818779] platform caam_sm: [0008] 65 ff b1 02 01 13 13 b2
[ 1.824465] platform caam_sm: 128-bit clear key:
[ 1.829097] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 1.834783] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
[ 1.840453] platform caam_sm: 128-bit black key:
[ 1.845102] platform caam_sm: [0000] f7 2b 12 17 cd c2 30 23
[ 1.850775] platform caam_sm: [0008] b6 ec 77 8e 4d d4 05 29
[ 1.856457] platform caam_sm: 192-bit clear key:
[ 1.861101] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 1.866775] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
[ 1.872460] platform caam_sm: [0016] 10 11 12 13 14 15 16 17
[ 1.878129] platform caam_sm: 192-bit black key:
[ 1.882773] platform caam_sm: [0000] 2a b7 eb e1 f7 c2 9d f5
[ 1.888446] platform caam_sm: [0008] 33 33 71 0a e4 9a 26 3e
[ 1.894138] platform caam_sm: [0016] c9 1b c3 97 48 d8 27 ae
[ 1.899813] platform caam_sm: [0024] 9e 4b d9 59 f5 e3 80 aa
[ 1.905499] platform caam_sm: 256-bit clear key:
[ 1.910131] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 1.915828] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
[ 1.921516] platform caam_sm: [0016] 10 11 12 13 14 15 16 17
[ 1.927190] platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f
[ 1.932872] platform caam_sm: 256-bit black key:
[ 1.937502] platform caam_sm: [0000] 0f c1 af f4 f8 25 9f 8b
[ 1.943191] platform caam_sm: [0008] 04 25 bb ed 7d 5c 85 ab
[ 1.948865] platform caam_sm: [0016] e7 5b 95 e6 a1 1a 21 ff
[ 1.954550] platform caam_sm: [0024] 6a a4 28 26 cf 3b 90 5f
[ 1.960219] platform caam_sm: 64-bit unwritten blob:
[ 1.965211] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 1.970883] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 1.976568] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 1.982254] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 1.987925] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 1.993612] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 1.999284] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 2.004968] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 2.010639] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 2.016350] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.022048] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.027721] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.033409] platform caam_sm: 128-bit unwritten blob:
[ 2.038475] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 2.044163] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 2.049835] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 2.055521] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 2.061208] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 2.066879] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 2.072565] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 2.078242] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 2.083929] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 2.089601] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.095288] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.100959] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.106642] platform caam_sm: 196-bit unwritten blob:
[ 2.111722] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 2.117395] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 2.123081] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 2.128754] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 2.134440] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 2.140113] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 2.145797] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 2.151486] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 2.157159] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 2.162847] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.168520] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.174214] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.179886] platform caam_sm: 256-bit unwritten blob:
[ 2.184966] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 2.190638] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 2.196326] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 2.202013] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 2.207689] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 2.213374] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 2.219047] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 2.224731] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 2.230402] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 2.236088] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.241776] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.247447] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.253386] platform caam_sm: 64-bit black key in blob:
[ 2.258629] platform caam_sm: [0000] 17 1e c3 20 9f 9d b6 e8
[ 2.264320] platform caam_sm: [0008] e7 9d 93 46 ef 17 f7 10
[ 2.269993] platform caam_sm: [0016] 05 36 f4 58 a7 8c b1 8e
[ 2.275681] platform caam_sm: [0024] f2 11 21 ee 67 92 fc 26
[ 2.281371] platform caam_sm: [0032] 85 0a 67 a2 31 73 c6 8a
[ 2.287045] platform caam_sm: [0040] f3 28 00 cd f6 d7 08 1d
[ 2.292736] platform caam_sm: [0048] a7 39 b6 b1 48 5c a3 0e
[ 2.298409] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 2.304097] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 2.309769] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.315455] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.321144] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.326814] platform caam_sm: 128-bit black key in blob:
[ 2.332157] platform caam_sm: [0000] 1a 25 35 f5 52 3c 60 fb
[ 2.337829] platform caam_sm: [0008] 97 17 a9 17 b6 73 7f 5f
[ 2.343515] platform caam_sm: [0016] 91 6c 34 8f 9a 60 69 f9
[ 2.349187] platform caam_sm: [0024] 20 4f c9 d4 d3 58 e9 71
[ 2.354873] platform caam_sm: [0032] 2b 5a ac 7f c3 17 6c 7a
[ 2.360545] platform caam_sm: [0040] 61 f5 02 3a 18 9b 74 b4
[ 2.366232] platform caam_sm: [0048] bb 54 d3 6d 11 d7 72 44
[ 2.371918] platform caam_sm: [0056] df 38 a4 1e 67 23 e3 5f
[ 2.377589] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 2.383274] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.388945] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.394631] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.400300] platform caam_sm: 192-bit black key in blob:
[ 2.405640] platform caam_sm: [0000] 0f ca 3e 43 5f b8 df 0e
[ 2.411327] platform caam_sm: [0008] 3d b3 de 4b a3 92 28 5d
[ 2.417002] platform caam_sm: [0016] 26 97 83 4d c6 16 f1 0c
[ 2.422687] platform caam_sm: [0024] 23 98 82 28 51 b1 dc d4
[ 2.428360] platform caam_sm: [0032] cd 57 0b ff 22 9f fb c4
[ 2.434055] platform caam_sm: [0040] 0b 1c 41 f2 cd 7a 2f 32
[ 2.439727] platform caam_sm: [0048] ec 65 04 b8 38 df 51 f4
[ 2.445413] platform caam_sm: [0056] 6c 17 ee 84 3f da 86 9a
[ 2.451101] platform caam_sm: [0064] 85 79 79 9c b0 5b a9 1d
[ 2.456773] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 2.462458] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.468131] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.473814] platform caam_sm: 256-bit black key in blob:
[ 2.479141] platform caam_sm: [0000] 1b a9 2b d9 75 f6 ed 95
[ 2.484827] platform caam_sm: [0008] 2f 2e b5 90 6c eb b2 ce
[ 2.490499] platform caam_sm: [0016] b5 47 b7 16 ca ee 82 a0
[ 2.496184] platform caam_sm: [0024] b0 c8 02 23 aa 54 74 a3
[ 2.501872] platform caam_sm: [0032] 4e 29 c1 bb ec 7f 04 a1
[ 2.507545] platform caam_sm: [0040] ae 5b 25 2c 23 df 70 ec
[ 2.513231] platform caam_sm: [0048] 2d be 4a 31 2e dd f2 ba
[ 2.518904] platform caam_sm: [0056] ee c1 e7 51 37 65 05 ca
[ 2.524592] platform caam_sm: [0064] 3e 89 b5 6d 05 e4 18 7d
[ 2.530265] platform caam_sm: [0072] 2a 4b d1 21 b1 15 ba 2d
[ 2.535951] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 2.541638] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 2.547547] platform caam_sm: restored 64-bit black key:
[ 2.552897] platform caam_sm: [0000] 7a c9 32 a8 be 14 e0 95
[ 2.558570] platform caam_sm: [0008] 6f 59 96 d5 71 55 16 74
[ 2.564255] platform caam_sm: restored 128-bit black key:
[ 2.569667] platform caam_sm: [0000] f7 2b 12 17 cd c2 30 23
[ 2.575354] platform caam_sm: [0008] b6 ec 77 8e 4d d4 05 29
[ 2.581039] platform caam_sm: restored 192-bit black key:
[ 2.586452] platform caam_sm: [0000] 2a b7 eb e1 f7 c2 9d f5
[ 2.592138] platform caam_sm: [0008] 33 33 71 0a e4 9a 26 3e
[ 2.597811] platform caam_sm: [0016] e3 b6 e5 49 6c 88 77 ff
[ 2.603496] platform caam_sm: [0024] a5 a0 41 6b 9c bc f8 ef
[ 2.609165] platform caam_sm: restored 256-bit black key:
[ 2.614591] platform caam_sm: [0000] 0f c1 af f4 f8 25 9f 8b
[ 2.620263] platform caam_sm: [0008] 04 25 bb ed 7d 5c 85 ab
[ 2.625948] platform caam_sm: [0016] e7 5b 95 e6 a1 1a 21 ff
[ 2.631634] platform caam_sm: [0024] 6a a4 28 26 cf 3b 90 5f
[ 2.637587] snvs-secvio 20cc000.caam-snvs: can't get snvs clock
[ 2.643598] snvs-secvio 20cc000.caam-snvs: violation handlers armed - non-secure state
[ 2.651901] usbcore: registered new interface driver usbhid
[ 2.657485] usbhid: USB HID core driver
[ 2.664610] fsl-asrc 2034000.asrc: driver registered
[ 2.673021] NET: Registered protocol family 26
[ 2.678329] NET: Registered protocol family 10
[ 2.683804] sit: IPv6 over IPv4 tunneling driver
[ 2.689193] NET: Registered protocol family 17
[ 2.693701] can: controller area network core (rev 20120528 abi 9)
[ 2.699965] NET: Registered protocol family 29
[ 2.704459] can: raw protocol (rev 20120528)
[ 2.708750] can: broadcast manager protocol (rev 20120528 t)
[ 2.714454] can: netlink gateway (rev 20130117) max_hops=1
[ 2.720230] Bluetooth: RFCOMM TTY layer initialized
[ 2.725154] Bluetooth: RFCOMM socket layer initialized
[ 2.730323] Bluetooth: RFCOMM ver 1.11
[ 2.734121] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.739446] Bluetooth: BNEP filters: protocol multicast
[ 2.744703] Bluetooth: BNEP socket layer initialized
[ 2.749686] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.755637] Bluetooth: HIDP socket layer initialized
[ 2.760680] 8021q: 802.1Q VLAN Support v1.8
[ 2.764951] Key type dns_resolver registered
[ 2.774824] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:01 UTC (1)
[ 2.795453] SW4: disabling
[ 2.798197] SWBST: disabling
[ 2.801627] VGEN1: disabling
[ 2.804978] VGEN2: disabling
[ 2.808322] VGEN3: disabling
[ 2.811939] ALSA device list:
[ 2.814914] No soundcards found.
[ 2.845641] EXT3-fs (mmcblk3p2): error: couldn't mount because of unsupported optional features (240)
[ 2.856167] EXT2-fs (mmcblk3p2): error: couldn't mount because of unsupported optional features (240)
[ 2.874571] EXT4-fs (mmcblk3p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.882753] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.892488] devtmpfs: mounted
[ 2.895886] Freeing unused kernel memory: 424K (80b08000 - 80b72000)
INIT: version 2.88 booting
Starting udev
cmp: EOF on /etc/udev/cache.data
udev: Not using udev cache because of changes detected in the following files:
udev: /proc/version /proc/cmdline /proc/devices
udev: lib/udev/rules.d/* etc/udev/rules.d/*
udev: The udev cache will be regenerated. To identify the detected changes,
udev: compare the cached sysconf at /etc/udev/cache.data
udev: against the current sysconf at /dev/shm/udev.cache
[ 3.367434] udevd[189]: starting version 3.1.5
[ 3.372490] random: udevd urandom read with 7 bits of entropy available
[ 3.817019] EXT4-fs (mmcblk3p2): re-mounted. Opts: data=ordered
bootlogd: cannot allocate pseudo tty: No such file or directory
Populating dev cache
Fri Jan 27 13:20:12 UTC 2017
INIT: Entering runlevel: 5
Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
Starting syslogd/klogd: done

Poky (Yocto Project Reference Distro) 2.1.2 imx6qsabresd /dev/ttymxc0

imx6qsabresd login:

-->Stuck

Sometimes i'm able to write the user "root" but, after few seconds i logged, the system stuck.

Can you help me?

Can it depend on Kernel?

Thanks 

0 Kudos

1,719 Views
Joel69003
Contributor IV

Hello Fausto,

That's a long time ago since your message on this thread, there was no answer, but I have the same issue with another board with an iMX6 too. I'm usually able to login, but after few seconds or minutes the system is stucked (or at least the console !) Have you got solved this ?

Thanks,

Joel

0 Kudos

1,719 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Fausto,

actually the kernel will not need modifications because you may use the same machine in your custom board. so, rather than the kernel you may edit the Device Tree and the bootloader to match your custom board.

The following thread shows how to modify a bootloader for a custom board which in this case is the Udoo Quad board

U-Boot Migration Example 

Next you can find a doc showing how to implement a device tree for a custom board which again is the Udoo Quad

Basic Device Tree for the Udoo Board 

Finally you can find here the hole process to build an image based in NXP kernel with a custom  bootloader and a custom device tree.

Building Linux Image with QT5 for UDOO Quad 

Please note that specific matters about custom boards are beyond free support scope. For further help you may be intersted in our Professional Support and Service Resources|NXP 


Best regards,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,719 Views
faustosessego1
Contributor III

Hi Carlos,

i didn't modify the kernel but i created only the .dts file for my custom board.

The imx6q-custom.dts is:

/dts-v1/;

#include "imx6q.dtsi"
#include "imx6q-custom.dtsi"

/ {
model = "i.MX6 Quad CUSTOMBoard";
compatible = "fsl,imx6q-custom", "fsl,imx6q";
};

The mx6q-custom.dtsi is:

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
memory{
reg = <0x10000000 0x40000000>;
};
};

&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
status = "okay";
};

&usdhc4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc4>;
non-removable;
status = "okay";
};

&iomuxc {
imx6q-sibiri {
pinctrl_uart1: uart1grp {
fsl,pins = <
MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
>;
};

pinctrl_usdhc4: usdhc4grp {
fsl,pins = <
MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
>;
};
};
};

I set only the uart and the micro SD interface.

Here you are my interface

pastedImage_2.png

pastedImage_3.png

Where is the problem from your point of view?

Can it depend on wrong ram configuration? 

Let me know

Thanks

0 Kudos

1,719 Views
Carlos_Musich
NXP Employee
NXP Employee

What u-boot are you using?

I think the problem is there. When I was writing Building Linux Image with QT5 for UDOO Quad  I had the same issue, booting sequence hanged, and the problem was that the bootloader was not adapted for UdooQuad board.

0 Kudos

1,719 Views
faustosessego1
Contributor III

I'm using u-boot 2016.07 and kernel 4.1-1.0.x.

I get u-boot and kernel directly from yocto, so i think the matching is right.

0 Kudos