Kernel console hangs after bootconsole [udbg0] disabled

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

Kernel console hangs after bootconsole [udbg0] disabled

5,405 Views
masasi
Contributor II

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

Tags (1)
6 Replies

2,756 Views
scottwood
NXP Employee
NXP Employee

ttyCPM0 is wrong for this chip.  It should be ttyS0.

0 Kudos

2,756 Views
masasi
Contributor II

Thank you for your help!

Console device set to ttyS0 makes kernel hang as well at "serial8250.0: ttyS1 at MMIO 0xff704600 (irq = 42, base_baud = 25000000) is a 16550A" message. Console hangs after call to register_console function, which calls uart_set_options with the expected parameters:

Baud rate=115200

NO Parity

8 Bits

NO Flow

Then register_console function locks current console (console_lock() function) and no there is no more console output.

Here is my current configuration (and my kernel configuration as an attached file):

- Environment variables:

=> print
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/ram rw init=/linuxrc
bootcmd=bootm 2000000 10000000 3000000
bootdelay=10
bootfile=uImage
consoledev=ttyS0
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: 378/8188 bytes

- Console output is:


=> boot
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   WTMKII PM Linux kernel10
   Created:      2015-04-22   8:03:38 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3977907 Bytes = 3.8 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-22   7:16:49 UTC
   Image Type:   PowerPC Linux Flat Device Tree (uncompressed)
   Data Size:    13868 Bytes = 13.5 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 03fff62b ... 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:C0720637 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=ttyS0,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: 961468K/1048576K available (6036K kernel code, 304K rwdata, 1400K rodata, 236K init, 183K bss, 87108K 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
Paso serial8250_console_setup
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

Found FSL PCI host bridge at 0x00000000ff709000. Firmware bus number: 0->0
PCI host bridge /pcie@ff709000  ranges:
MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
  IO 0x00000000ffc10000..0x00000000ffc1ffff -> 0x0000000000000000
/pcie@ff709000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ff70a000. Firmware bus number: 0->0
PCI host bridge /pcie@ff70a000  ranges:
MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000
  IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ff70a000: PCICSRBAR @ 0xfff00000
PCI: Probing PCI hardware
fsl-pci ff709000.pcie: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0xf1020000-0xf102ffff] (bus address [0x0000-0xffff])
pci_bus 0000:00: root bus resource [mem 0xa0000000-0xbfffffff]
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
fsl-pci ff70a000.pcie: PCI host bridge to bus 0001:02
pci_bus 0001:02: root bus resource [io  0xf1040000-0xf104ffff] (bus address [0x0000-0xffff])
pci_bus 0001:02: root bus resource [mem 0xc0000000-0xdfffffff]
pci_bus 0001:02: root bus resource [bus 02-ff]
pci 0001:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0001:02:00.0: PCI bridge to [bus 03-ff]
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
PCI: Cannot allocate resource region 0 of device 0001:02:00.0, will remap
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0000:00:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0000:00:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0:   bridge window [io  0xf1020000-0xf102ffff]
pci 0000:00:00.0:   bridge window [mem 0xa0000000-0xbfffffff]
pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
pci 0001:02:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0001:02:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0001:02:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0001:02:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0001:02:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: PCI bridge to [bus 03]
pci 0001:02:00.0:   bridge window [io  0xf1040000-0xf104ffff]
pci 0001:02:00.0:   bridge window [mem 0xc0000000-0xdfffffff]
pci_bus 0001:02: Some PCI device resources are unassigned, try booting with pci=realloc
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
vgaarb: loaded
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
Advanced Linux Sound Architecture Driver Initialized.
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.
Detected gzip compressed data
Trying to unpack rootfs image as initramfs...
Detected lzo compressed data
Detected gzip compressed data
rootfs image is not initramfs (compression method lzo not configured); looks like an initrd
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.392: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/
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
QNX4 filesystem 0.2.3 registered.
befs: version: 0.9.3
msgmni has been set to 1502
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
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xff704500 (irq = 42, base_baud = 25000000) is a 16550A


If I update console device to ttyS1, console output is:


=> boot
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   WTMKII PM Linux kernel10
   Created:      2015-04-22   8:03:38 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3977907 Bytes = 3.8 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-22   7:16:49 UTC
   Image Type:   PowerPC Linux Flat Device Tree (uncompressed)
   Data Size:    13868 Bytes = 13.5 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 03fff62b ... 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:C0720637 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=ttyS1,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: 961468K/1048576K available (6036K kernel code, 304K rwdata, 1400K rodata, 236K init, 183K bss, 87108K 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
Paso serial8250_console_setup
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)
devtmpfs: initialized
NET: Registered protocol family 16

Found FSL PCI host bridge at 0x00000000ff709000. Firmware bus number: 0->0
PCI host bridge /pcie@ff709000  ranges:
MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
  IO 0x00000000ffc10000..0x00000000ffc1ffff -> 0x0000000000000000
/pcie@ff709000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ff70a000. Firmware bus number: 0->0
PCI host bridge /pcie@ff70a000  ranges:
MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000
  IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ff70a000: PCICSRBAR @ 0xfff00000
PCI: Probing PCI hardware
fsl-pci ff709000.pcie: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0xf1020000-0xf102ffff] (bus address [0x0000-0xffff])
pci_bus 0000:00: root bus resource [mem 0xa0000000-0xbfffffff]
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
fsl-pci ff70a000.pcie: PCI host bridge to bus 0001:02
pci_bus 0001:02: root bus resource [io  0xf1040000-0xf104ffff] (bus address [0x0000-0xffff])
pci_bus 0001:02: root bus resource [mem 0xc0000000-0xdfffffff]
pci_bus 0001:02: root bus resource [bus 02-ff]
pci 0001:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0001:02:00.0: PCI bridge to [bus 03-ff]
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
PCI: Cannot allocate resource region 0 of device 0001:02:00.0, will remap
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0000:00:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0000:00:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0:   bridge window [io  0xf1020000-0xf102ffff]
pci 0000:00:00.0:   bridge window [mem 0xa0000000-0xbfffffff]
pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
pci 0001:02:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0001:02:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0001:02:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: BAR 0: no space for [mem size 0x00100000]
pci 0001:02:00.0: BAR 0: failed to assign [mem size 0x00100000]
pci 0001:02:00.0: BAR 9: no space for [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: BAR 9: failed to assign [mem size 0x00200000 64bit pref]
pci 0001:02:00.0: PCI bridge to [bus 03]
pci 0001:02:00.0:   bridge window [io  0xf1040000-0xf104ffff]
pci 0001:02:00.0:   bridge window [mem 0xc0000000-0xdfffffff]
pci_bus 0001:02: Some PCI device resources are unassigned, try booting with pci=realloc
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
vgaarb: loaded
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
Advanced Linux Sound Architecture Driver Initialized.
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.
Detected gzip compressed data
Trying to unpack rootfs image as initramfs...
Detected lzo compressed data
Detected gzip compressed data
rootfs image is not initramfs (compression method lzo not configured); looks like an initrd
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.392: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/
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
QNX4 filesystem 0.2.3 registered.
befs: version: 0.9.3
msgmni has been set to 1502
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
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xff704500 (irq = 42, base_baud = 25000000) is a 16550A
console [ttyS1] disabled
serial8250.0: ttyS1 at MMIO 0xff704600 (irq = 42, base_baud = 25000000) is a 16550A

0 Kudos

2,756 Views
scottwood
NXP Employee
NXP Employee

Can you confirm which serial port you're connected to?  Is 115200 the right baud rate?  What does the linux,stdout-path property in /chosen look like after U-Boot has modified the device tree?  Is the base_baud of 25000000 correct for your board (check whether U-Boot's notion of the bus clock is correct)?

What happens if you put a "return;" at the beginning of default_serial_dl_write() in drivers/tty/serial/8250/8250_core.c (i.e. leave the baud rate unchanged)?

0 Kudos

2,756 Views
masasi
Contributor II

Thank you for your help,

I don't know how to check which serial port I am connected to, what should I do in order to check it?

The 115200 baud rate is the correct one and the rest of parameters being configured are ok as well:

Baud rate=115200

NO Parity

8 Bits

NO Flow

I have checked in the kernel that  the  linux,stdout-path property  is set to fsl,ns16550. Also, according to uboot fdt command, the device tree has been modified with the following information:

serial@4500 {

                cell-index = <0x00000000>;

                device_type = "serial";

                compatible = "fsl,ns16550", "ns16550";

                reg = <0x00004500 0x00000100>;

                clock-frequency = <0x00000000>;

                interrupts = <0x0000002a 0x00000002 0x00000000 0x00000000>;

        };

        serial@4600 {

                cell-index = <0x00000001>;

                device_type = "serial";

                compatible = "fsl,ns16550", "ns16550";

                reg = <0x00004600 0x00000100>;

                clock-frequency = <0x00000000>;

                interrupts = <0x0000002a 0x00000002 0x00000000 0x00000000>;

        };

Finally, if I put a return at the beginning of  default_serial_dl_write(), the console hangs as well after:

console [ttyS0] disabled

serial8250.0: ttyS0 at MMIO 0xff704500 (irq = 42, base_baud = 25000000) is a 16550A

Probably this does not make any sense but I have succeed to configure ttyS0 if I set "newcon" in register_console() function [kernel/printk/printk.c] as follows:

     newcon->write  = console_drivers->write;

      newcon->device  = console_drivers->device;

      newcon->setup  = console_drivers->setup;

      newcon->early_setup = console_drivers->early_setup;

      newcon->index  = console_drivers->index;

      newcon->data  = console_drivers->data;

Anyway using this configuration, console hangs after:

Warning: unable to open an initial console.

as sys_open() for /dev/console gives ENODEV (No such device) error

Thanks in advance,


Maria

0 Kudos

2,259 Views
contributor3
Contributor III

Hi,

were you able to fix this issue? I have the same issue.

 

best regards

 

0 Kudos

2,757 Views
scottwood
NXP Employee
NXP Employee

"fsl,ns16550" is not a valid stdout-path.  As the name implies, it's supposed to be a path, not a compatible string.

That newcon stuff looks like you're overwriting the proper serial driver's methods to point at udbg's methods, in effect continuing to use udbg.  That's not the right anwser.

0 Kudos