AnsweredAssumed Answered

Linux hangs after "Mount-cache hash table entries: 512"

Question asked by jbd64 on Jan 9, 2014
Latest reply on Feb 12, 2014 by alejandrolozano

Hi,

 

I have troubles adapting linux for our custom board based on an i.mx6 Solo.

U-boot is working, but linux hangs after : Mount-cache hash table entries: 512

Here is the complete log (U-boot + linux) :

U-Boot 2009.08 (janv. 08 2014 - 18:16:22)

 

 

CPU: Freescale i.MX6 family TO1.1 at 792 MHz

Temperature:   41 C, calibration data 0x5744e269

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 198000000Hz

emi_slow clock: 99000000Hz

ddr clock     : 396000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

Board: i.MX6DL/Solo-MASTERLIGHT: unknown-board Board: 0x61011 [WDOG ]

Boot Device: MMC

I2C:   ready

DRAM:   1 GB

MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

*** Warning - bad CRC or MMC, using default environment

 

 

In:    serial

Out:   serial

Err:   serial

Net:   got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

Hit any key to stop autoboot:  0

FEC: Link is down 0

*** ERROR: `ethaddr' not set

FEC: Link is down 0

## Booting kernel from Legacy Image at 10800000 ...

   Image Name:   Linux-3.0.35MasterLight_1A+

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3715744 Bytes =  3.5 MB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

 

 

Starting kernel ...

 

 

[    0.000000] Initializing cgroup subsys cpuset

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 3.0.35MasterLight_1A+ (dacnis@VM-CCF) (gcc version 4.7.2 (GCC) ) #11 Wed Jan 8 18:47:09 CET 2014

[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

[    0.000000] Machine: Freescale i.MX 6Solo MasterLight Board

[    0.000000] Ignoring unrecognised tag 0x54410008

[    0.000000] MX6Q_SABRESD_RESERVE START

[    0.000000] MX6Q_SABRESD_RESERVE END

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] MX6_MAP_IO START

[    0.000000] CPU identified as i.MX6DL/SOLO, silicon rev 1.1

[    0.000000] MX6_MAP_IO END

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

[    0.000000] Kernel command line: console=ttymxc0,115200n8 rdinit=/linuxrc enable_wait_mode=off

[    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] allocated 4194304 bytes of page_cgroup

[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups

[    0.000000] Memory: 1024MB = 1024MB total

[    0.000000] Memory: 1027284k/1027284k available, 21292k reserved, 360448K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

[    0.000000]     vmalloc : 0xea800000 - 0xf2000000   ( 120 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xea000000   ( 672 MB)

[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)

[    0.000000]       .init : 0xc0008000 - 0xc004c000   ( 272 kB)

[    0.000000]       .text : 0xc004c000 - 0xc0733000   (7068 kB)

[    0.000000]       .data : 0xc0734000 - 0xc0775a30   ( 263 kB)

[    0.000000]        .bss : 0xc0775a54 - 0xc07f8330   ( 523 kB)

[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS:496 nr_irqs:496 496

[    0.000000] MX6_INIT_IRQ START

[    0.000000] MXC GPIO hardware

[    0.000000] MX6_INIT_IRQ END

[    0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

[    0.000000] Set periph_clk's parent to pll2_pfd_400M!

[    0.000000] MXC_Early serial console at MMIO 0x21f4000 (options '115200n8')

[    0.000000] bootconsole [ttymxc0] enabled

[    0.000000] Console: colour dummy device 80x30

[    0.252063] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

[    0.340356] pid_max: default: 32768 minimum: 301

[    0.345185] Security Framework initialized

[    0.349353] AppArmor: AppArmor initialized

[    0.353571] Mount-cache hash table entries: 512

I inserted printk in the beginning and end of functions of my board setup code.

The functions map_io, init_irq, timer, reserve are called, but linux crashes before the call of my board_init function.

 

Can you help me searching the problem ?

 

Thank you.

Outcomes