[U-Boot] mx23evk resets when loading the kernel

Fabio Estevam festevam at gmail.com
Fri Apr 26 16:28:36 CEST 2013


On Fri, Apr 26, 2013 at 11:20 AM, Fabio Estevam <festevam at gmail.com> wrote:
> On Fri, Apr 26, 2013 at 11:15 AM, Marek Vasut <marex at denx.de> wrote:
>
>> Did you apply that patch of mine ?
>
> Yes, but does not help on this particular issue.

Well, actually it helped in some way. The reset pattern is different
now and after several attempts the kernel booted:

U-Boot 2013.04-dirty (Apr 26 2013 - 11:24:08)

CPU:   Freescale i.MX23 rev1.3 at 454 MHz
BOOT:  SSP SD/MMC #0
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading uImage
3258040 bytes read in 1113 ms (2.8 MiB/s)
Booting from mmc ...
reading imx23-evk.dtb
20944 bytes read in 33 ms (619.1 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.8.8-fslc+g7fd77a4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3257976 Bytes = 3.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 47b72000, end 47b7a1cf ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
HTLLCLC

U-Boot 2013.04-dirty (Apr 26 2013 - 11:24:08)

CPU:   Freescale i.MX23 rev1.3 at 454 MHz
BOOT:  SSP SD/MMC #0
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading uImage
3258040 bytes read in 1113 ms (2.8 MiB/s)
Booting from mmc ...
reading imx23-evk.dtb
20944 bytes read in 33 ms (619.1 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.8.8-fslc+g7fd77a4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3257976 Bytes = 3.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 47b72000, end 47b7a1cf ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
HTLLCLC

U-Boot 2013.04-dirty (Apr 26 2013 - 11:24:08)

CPU:   Freescale i.MX23 rev1.3 at 454 MHz
BOOT:  SSP SD/MMC #0
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading uImage
3258040 bytes read in 1113 ms (2.8 MiB/s)
Booting from mmc ...
reading imx23-evk.dtb
20944 bytes read in 33 ms (619.1 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.8.8-fslc+g7fd77a4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3257976 Bytes = 3.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 47b72000, end 47b7a1cf ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
HTLLCLC

U-Boot 2013.04-dirty (Apr 26 2013 - 11:24:08)

CPU:   Freescale i.MX23 rev1.3 at 454 MHz
BOOT:  SSP SD/MMC #0
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading uImage
3258040 bytes read in 1113 ms (2.8 MiB/s)
Booting from mmc ...
reading imx23-evk.dtb
20944 bytes read in 33 ms (619.1 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.8.8-fslc+g7fd77a4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3257976 Bytes = 3.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 47b72000, end 47b7a1cf ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
HTLLCLC

U-Boot 2013.04-dirty (Apr 26 2013 - 11:24:08)

CPU:   Freescale i.MX23 rev1.3 at 454 MHz
BOOT:  SSP SD/MMC #0
DRAM:  128 MiB
MMC:   MXS MMC: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading uImage
3258040 bytes read in 1113 ms (2.8 MiB/s)
Booting from mmc ...
reading imx23-evk.dtb
20944 bytes read in 33 ms (619.1 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.8.8-fslc+g7fd77a4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3257976 Bytes = 3.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41000000
   Booting using the fdt blob at 0x41000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 47b72000, end 47b7a1cf ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.8.8-fslc+g7fd77a4 (otavio at monster) (gcc version 3
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Freescale i.MX23 (Device Tree), model: Freescale i.MX23t
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa2
[    0.000000] Kernel command line: console=ttyAMA0,115200 root=/dev/mmcblk0p3 t
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 117992k/117992k available, 13080k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05daab4   (5963 kB)
[    0.000000]       .init : 0xc05db000 - 0xc06009a0   ( 151 kB)
[    0.000000]       .data : 0xc0602000 - 0xc0642308   ( 257 kB)
[    0.000000]        .bss : 0xc0642308 - 0xc0b93e48   (5447 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, 1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] of_irq_init: children remain, but no parents
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps eves
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingr
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3695 kB
[    0.000000]  per task-struct memory footprint: 1152 bytes
[    0.060000] Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.070000] CPU: Testing write buffer coherency: ok
[    0.080000] Setting up static identity map for 0x404322c0 - 0x40432318
[    0.090000] devtmpfs: initialized
[    0.100000] pinctrl core: initialized pinctrl subsystem
[    0.110000] regulator-dummy: no parameters
[    0.110000] NET: Registered protocol family 16
[    0.110000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.150000] Serial: AMBA PL011 UART driver
[    0.160000] 80070000.serial: ttyAMA0 at MMIO 0x80070000 (irq = 129) is a PL02
[    0.350000] console [ttyAMA0] enabled
[    0.380000] bio: create slab <bio-0> at 0
[    0.400000] mxs-dma 80004000.dma-apbh: initialized
[    0.410000] mxs-dma 80024000.dma-apbx: initialized
[    0.420000] vddio-sd0: 3300 mV
[    0.420000] SCSI subsystem initialized
[    0.430000] usbcore: registered new interface driver usbfs
[    0.430000] usbcore: registered new interface driver hub
[    0.440000] usbcore: registered new device driver usb
[    0.450000] Advanced Linux Sound Architecture Driver Initialized.
[    0.460000] Switching to clocksource mxs_timer
[    0.700000] NET: Registered protocol family 2
[    0.710000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.720000] TCP bind hash table entries: 1024 (order: 3, 36864 bytes)
[    0.730000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.730000] TCP: reno registered
[    0.740000] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.740000] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.750000] NET: Registered protocol family 1
[    0.760000] RPC: Registered named UNIX socket transport module.
[    0.770000] RPC: Registered udp transport module.
[    0.770000] RPC: Registered tcp transport module.
[    0.780000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.790000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.840000] Unable to handle kernel paging request at virtual address fb72144
[    0.840000] pgd = c0004000
[    0.840000] [fb721424] *pgd=00000000
[    0.840000] Internal error: Oops: 5 [#1] ARM
[    0.840000] Modules linked in:
[    0.840000] CPU: 0    Not tainted  (3.8.8-fslc+g7fd77a4 #1)
[    0.840000] PC is at __zone_watermark_ok+0x30/0xb0
[    0.840000] LR is at zone_watermark_ok+0x1c/0x24
[    0.840000] pc : [<c0095818>]    lr : [<c0095f98>]    psr: 60000053
[    0.840000] sp : c742dcb8  ip : 0000704a  fp : c742c000
[    0.840000] r10: 00000000  r9 : 00000001  r8 : c063fdd4
[    0.840000] r7 : c063fdd4  r6 : c064044c  r5 : 0000704a  r4 : 00000041
[    0.840000] r3 : 0ec38594  r2 : 000001c2  r1 : 00000000  r0 : c063fdd4
[    0.840000] Flags: nZCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment kel
[    0.840000] Control: 0005317f  Table: 40004000  DAC: 00000017
[    0.840000] Process swapper (pid: 1, stack limit = 0xc742c1b8)
[    0.840000] Stack: (0xc742dcb8 to 0xc742e000)
[    0.840000] dca0:                                                       00000
[    0.840000] dcc0: 00000041 0000704a c0c9b264 c0097bfc 00000041 00000001 00008
[    0.840000] dce0: 00000000 002212d0 00000000 c74302e8 00000020 c0640450 00000
[    0.840000] dd00: c0643874 00000000 00000000 60000053 c0c9b264 0ec38590 60004
[    0.840000] dd20: c060abd8 002012d0 00000000 c064044c c060abd8 00000000 00000
[    0.840000] dd40: 00000000 c0098764 00000000 00000041 c063fdc4 00000000 c7430
[    0.840000] dd60: c0613638 c002b0a8 c0643874 c7430000 002212d0 00000010 00001
[    0.840000] dd80: 00000000 c74302e8 c0b5d73c 00000004 00000006 c070d81c c064c
[    0.840000] dda0: 00000000 c74302e8 c0b5d73c c063fdc4 c7430000 c00c5c30 00003
[    0.840000] ddc0: 00000000 00000000 c7401d80 c0c9b340 000000d0 00000033 0000f
[    0.840000] dde0: 00000000 c00c59fc 00000000 00000000 c0c7f240 c0c9b340 c7400
[    0.840000] de00: 00008180 c042ce24 c0b5d73c 000080d0 c01270ac 60000053 c064c
[    0.840000] de20: 00000000 00330033 c7430000 c742c000 60000053 000080d0 c0530
[    0.840000] de40: 00000000 000080d0 00000dcf c01270ac 00000000 00008180 00000
[    0.840000] de60: c7592fa0 c742deb8 20000053 00000000 c7592820 00000002 c053c
[    0.840000] de80: 00008180 c01270ac 00000000 00000000 00000000 c7592820 00000
[    0.840000] dea0: 18000000 00000000 c740154c c01264dc 00000000 00000000 c7590
[    0.840000] dec0: c061852c 00000018 c7592820 c06184bc 00000000 c0129090 c0b80
[    0.840000] dee0: c75046bf c7592820 c7401500 c740154c c7504680 00000000 00008
[    0.840000] df00: c75046bf c00c7964 c7401544 c7401500 c0617c2c c0642320 c064c
[    0.840000] df20: c742c000 c05e5fc4 c742df38 c060071c 00000006 c0008898 c0578
[    0.840000] df40: 00000006 00000006 00000001 c0c99360 c060071c 00000006 c05fc
[    0.840000] df60: 00000073 c05f82f8 00000000 c05db840 00000006 00000006 c05d5
[    0.840000] df80: 55555555 00000000 00000000 c0429368 00000000 00000000 00000
[    0.840000] dfa0: 00000000 c0429370 00000000 c000ee28 00000000 00000000 00000
[    0.840000] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000
[    0.840000] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 55555
[    0.840000] [<c0095818>] (__zone_watermark_ok+0x30/0xb0) from [<00000041>] ()
[    0.840000] Code: 10825fa2 e2833004 104220c5 e3140010 (e7903103)
[    0.840000] ---[ end trace ef496dcd0f19f30b ]---
[    1.170000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0b
[    1.170000]


More information about the U-Boot mailing list