AnsweredAssumed Answered

Kernel console hangs after bootconsole [udbg0] disabled

Question asked by masasi on Apr 21, 2015
Latest reply on Apr 23, 2015 by Scott Wood

Hi,

I am trying to boot kernel for P1012 microprocessor and console hangs after bootconsole [udbg0] disabled. Also, when I try to check the kernel post-mortem debug I have seen the "Unable to open  message an initial console" message. I have an initramfs file with /dev/console and /root, the file seems to be detected by the kernel as can be seen by the output: Detected lzo compressed data. But the /dev/console node is not found. My uboot environment variables are:

 

baudrate=115200
bootargs=console=ttyCPM0,115200 root=/dev/ram rw init=/linuxrc
bootcmd=bootm 2000000 10000000 3000000
bootdelay=10
bootfile=uImage
consoledev=ttyCPM0
eth1addr=00:50:2b:4c:ab:55
eth2addr=00:50:2b:4c:ab:56
ethact=eTSEC2
ethaddr=00:50:2b:4c:ab:54
ethprime=eTSEC2
fileaddr=3000000
filesize=3a25
ipaddr=172.17.26.101
serverip=172.17.26.100

Environment size: 382/8188 bytes

 

and console output is:

=> boot
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   WTMKII PM Linux kernel3
   Created:      2015-04-21  14:35:24 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3084296 Bytes = 2.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 10000000 ...
   Image Name:   rootfs_yocto.img
   Created:      2015-04-20  10:39:31 UTC
   Image Type:   PowerPC Linux RAMDisk Image (lzo compressed)
   Data Size:    4058945 Bytes = 3.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree from Legacy Image at 03000000
   Image Name:   pmDTB2
   Created:      2015-04-21  13:37:57 UTC
   Image Type:   PowerPC Linux Flat Device Tree (uncompressed)
   Data Size:    14105 Bytes = 13.8 KiB
   Load Address: 06000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Booting using the fdt blob at 0x6000000
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 2fc21000, end 2fffff41 ... OK
   Loading Device Tree to 03ff9000, end 03fff718 ... OK
WARNING: could not find compatible node fsl-usb2-dr: FDT_ERR_NOTFOUND.
## Transferring control to Linux (at address 00000000) ...
   Booting using OF flat tree...
of_read_number:C056A37B 00000000
Using P1021 MDS machine description
Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
Found initrd at 0xefc21000:0xefffff41
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_mds_setup_arch()
arch: exit
Zone ranges:
  DMA      [mem 0x00000000-0x2fffffff]
  Normal   empty
  HighMem  [mem 0x30000000-0x3fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x3fffffff]
Initmem setup node 0 [mem 0x00000000-0x3fffffff]
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
Kernel command line: console=ttyCPM0,115200 root=/dev/ram rw init=/linuxrc
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Sorting __ex_table...
Memory: 963416K/1048576K available (4664K kernel code, 208K rwdata, 972K rodata, 196K init, 173K bss, 85160K reserved, 262136K highmem)
Kernel virtual memory layout:
  * 0xfffcf000..0xfffff000  : fixmap
  * 0xff800000..0xffc00000  : highmem PTEs
  * 0xff7fe000..0xff800000  : early ioremap
  * 0xf1000000..0xff7fe000  : vmalloc & ioremap
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC  " version 1.2 at ff740000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[14000000] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
Antes de do_basic_setup!!!!!!!
devtmpfs: initialized
NET: Registered protocol family 16

Freescale Elo series DMA driver
fsl-elo-dma ff721300.dma: #0 (fsl,eloplus-dma-channel), irq 20
fsl-elo-dma ff721300.dma: #1 (fsl,eloplus-dma-channel), irq 21
fsl-elo-dma ff721300.dma: #2 (fsl,eloplus-dma-channel), irq 22
fsl-elo-dma ff721300.dma: #3 (fsl,eloplus-dma-channel), irq 23
SCSI subsystem initialized
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Switched to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Paso por populate_rootfs
unpack_to_rootfs STEP1
unpack_to_rootfs STEP2
Detected gzip compressed data
unpack_to_rootfs STEP3
Salida del open /dev/console:-19
__initramfs_start:-1067771816 __initramfs_size:176
CONFIG_BLK_DEV_RAM
Trying to unpack rootfs image as initramfs...
unpack_to_rootfs STEP1
unpack_to_rootfs STEP2
Detected lzo compressed data
unpack_to_rootfs STEP3
Freeing initrd memory: 3960K (efc21000 - effff000)
futex hash table entries: 256 (order: -1, 3072 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.296:1): initialized
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
ntfs: driver 2.1.31 [Flags: R/O].
efs: 1.0a - http://aeschi.ch.eu.org/efs/
QNX4 filesystem 0.2.3 registered.
befs: version: 0.9.3
msgmni has been set to 1505
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Freescale Display Interface Unit (DIU) framebuffer driver
Generic non-volatile memory driver v1.1
brd: module loaded
loop: module loaded
nbd: registered device at major 43
st: Version 20101219, fixed bufsize 32768, s/g segs 256
fsl_espi ff707000.spi: cs=0, init_csmode=0x100008
fsl_espi ff707000.spi: master is unqueued, this is deprecated
fsl_espi ff707000.spi: at 0xf103e000 (irq = 59)
libphy: Fixed MDIO Bus: probed
libphy: Freescale PowerQUICC MII Bus: probed
libphy: Freescale PowerQUICC MII Bus: probed
libphy: Freescale PowerQUICC MII Bus: probed
libphy: Freescale PowerQUICC MII Bus: probed
OF: no ranges; cannot translate
fsl-gianfar: probe of soc@ff700000:ethernet@b0000 failed with error -12
OF: no ranges; cannot translate
fsl-gianfar: probe of soc@ff700000:ethernet@b1000 failed with error -12
OF: no ranges; cannot translate
fsl-gianfar: probe of soc@ff700000:ethernet@b2000 failed with error -12
ucc_geth_driver: QE UCC Gigabit Ethernet Controller
ucc_geth_driver: UCC1 at 0xff782000 (irq = 32)
ucc_geth_driver: UCC5 at 0xff782400 (irq = 40)
ipip: IPv4 over IPv4 tunneling driver
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
sctp: Hash tables configured (established 65536 bind 65536)
Key type dns_resolver registered
bootconsole [udbg0] disabled

 

And my initramfs permissions:

 

drwxrwxrwx 2 root  tty   4096 Apr 21 12:30 dev

          crwxrwxrwx 1 root  tty   5, 1 Apr 21 12:30 console

drwxrwxrwx 2 root  root  4096 Apr 21 12:28 root



 

Has anybody faced  similar problems?

 

Thanks in advance,

Maria

Outcomes