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