[U-Boot] U-Boot hangs when starting kernel

Wolfgang Denk wd at denx.de
Wed Aug 4 11:44:36 CEST 2010


Dear scrawl at baseoftrash.de,

In message <1815091516.9403031.1280907775269.JavaMail.tomcat55 at mrmseu0.kundenserver.de> you wrote:
>
> I want to exchange RedBoot with UBoot on a TX25 module to improve the boot time. I managed to install UBoot, but, the kernel does not start. Everything goes ok but after "Starting kernel ..." nothing happens (sorry I can't copy paste from the serial ter
> minal). It has to be a problem with UBoot, as I use the same kernel command line as before and it worked with RedBoot.

This is NOT a problem with U-Boot.

> Versions of uBoot I tried: 2009/?? (precompiled from denx-cs.de) and latest 2010/06 (compiled myself)

It's working fine here.

> Kernel command line: init=/linuxrc root=ubi0:rootfs rootfstype=ubifs console=ttymxc0,115200 ro panic=1 printk.time=1 ubi.mtd=1
> 
> Booting with 
> 
> tftpboot 0x80108000 uImage
> bootm 0x80108000

That's wrong. Try loading at 81000000 instead:

=> tftp ${kernel_addr_r} ${bootfile}
Using FEC_MXC device
TFTP from server 192.168.1.1; our IP address is 192.168.20.16
Filename 'tx25/uImage'.
Load address: 0x81000000
Loading: T #################################################################
         ###################################################
done
Bytes transferred = 1690112 (19ca00 hex)
=> run nfsargs addip addtty addmtd addmisc
=> print bootargs
bootargs=root=/dev/nfs rw nfsroot=192.168.1.1:/opt/eldk-4.2-arm/arm ip=192.168.20.16:192.168.1.1:192.168.1.1:255.255.0.0:tx25:eth0:off panic=1 console=ttymxc0,115200
=> imi

## Checking Image at 81000000 ...
   Legacy image found
   Image Name:   Linux-2.6.31-00001-gbc01470
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1690048 Bytes = 1.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
=> bootm
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-2.6.31-00001-gbc01470
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1690048 Bytes = 1.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................................................................. done, booting the kernel.
Linux version 2.6.31-00001-gbc01470 (wd at sirius.denx.de) (gcc version 4.2.2) #1 PREEMPT Thu Jun 10 11:52:10 CEST 2010
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Ka-Ro electronics TX25 module (Freescale i.MX25)
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/nfs rw nfsroot=192.168.1.1:/opt/eldk-4.2-arm/arm ip=192.168.20.16:192.168.1.1:192.168.1.1:255.255.0.0:tx25:eth0:off panic=1 console=ttymxc0,115200
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 23828KB available (3092K code, 5405K data, 120K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:208
MXC GPIO hardware 128 GPIOs on 4 ports
MXC IRQ initialized
Clock input source is 24000000
CPU: 399.000MHz
AHB: 133.000MHz
MPLL: 532.000MHz
UPLL: 240.000MHz
IPG: 66.500MHz
OTG: 60.000MHz
LCD: 240.000MHz
Console: colour dummy device 80x30
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES:  8
... MAX_LOCK_DEPTH:          48
... MAX_LOCKDEP_KEYS:        8191
... CLASSHASH_SIZE:          4096
... MAX_LOCKDEP_ENTRIES:     16384
... MAX_LOCKDEP_CHAINS:      32768
... CHAINHASH_SIZE:          16384
 memory used by lock dependency info: 3615 kB
 per task-struct memory footprint: 1152 bytes
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
AHB clock rate: 133.000MHz SDMA clock rate: 66.500MHz
Using SDMA I.API
MXC SDMA API initialized
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
AUDMUX: probing
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 46
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
imx-fb imx-fb.0: i.MX Framebuffer driver
Using video mode G-ETV570G0DMU-8 640x480 (640x480)
Setting PCD to 7 for LCD clock 30.000MHz base clock 240.000MHz actual clock 34.285MHz
Console: switching to colour frame buffer device 80x30
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x43f90000 (irq = 45) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x43f94000 (irq = 32) is a IMX
imx-uart.4: ttymxc4 at MMIO 0x5002c000 (irq = 40) is a IMX
brd: module loaded
fec mii: probed
fec fec: Using PHY at addr 0x1f
net eth0: eth0: ethernet a2:3d:5e:7c:b2:f8
console [netcon0] enabled
...


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God made machine language; all the rest is the work of man.


More information about the U-Boot mailing list