initrd - console
Siva Prasad
sprasad at bivio.net
Tue Dec 11 12:26:30 EST 2007
Hi,
I am trying to boot kernel with initrd. However, it hangs in
run_init_process("/sbin/init"). I went into the system calls to see what
it is doing.
As part of debugging, I ended up adding a printk statement in
arch/powerpc/kernel/process.c:sys_execve() routine. Noticed that all the
calls are coming here, however nothing is printed on the screen. I think
initrd is executing fine (unless one of you says otherwise). See the
capture below for boot log.
Question 1: how come nothing is printed from ramdisk (userland programs)
to the serial console, while all the kernel printk's are working
perfectly?
Question 2: How important is to have interrupts working for just
printing. I know that interrupts are must to enter input.
Thanks in advance.
Using MPC86xx HPCN machine description
Total memory = 1024MB; using 2048kB for hash table (at cfe00000)
Linux version 2.6.19 (sprasad at cider.bivio.net) (gcc version 4.1.1
20060525 (Red Hat 4.1.1-1)) #206 SMP Mon Dec 10 16:32:37 PST 2007
Found initrd at 0xc6000000:0xc62f912a
Found legacy serial port 0 for /soc8641 at ff700000/serial at 4500
mem=ff704500, taddr=ff704500, irq=1a, clk=598500000, speed=0
Found MPC86xx PCIE host bridge at 0x00000000ff708000. Firmware bus
number: 0->254
Found MPC86xx PCIE host bridge at 0x00000000ff709000. Firmware bus
number: 0->255
MPC86xx HPCN board from Freescale Semiconductor
Zone PFN ranges:
DMA 0 -> 196608
Normal 196608 -> 196608
HighMem 196608 -> 262144
early_node_map[1] active PFN ranges
0: 0 -> 262144
Built 1 zonelists. Total pages: 260096
Kernel command line: root=/dev/ram rw console=ttyS0,115200
mpic: Setting up MPIC " MPIC " version 1.2 at ff740000, max 2 CPUs
mpic: ISU size: 16, shift: 4, mask: f
mpic: Initializing for 80 sources
PID hash table entries: 4096 (order: 12, 16384 bytes)
generic_calibrate_decr: 7 ppc_tb_freq = 150000000.
generic_calibrate_decr: 7 ppc_proc_freq = 1649267441.
time_init: decrementer frequency = 150.000000 MHz
time_init: processor frequency = 1649.267441 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1030352k/1048576k available (2740k kernel code, 279760k
reserved, 232k data, 129k bss, 156k init)
Mount-cache hash table entries: 512
mpic: requesting IPIs ...
Processor 1 is stuck.
Brought up 1 CPUs
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Freeing initrd memory: 3044k freed
NET: Registered protocol family 16
SIVA sys_execve - filename=/sbin/hotplug.
PCI: Probing PCI hardware
SIVA sys_execve - filename=/sbin/hotplug.
PCI: 0000:00:00.0: class b20 doesn't match header type 01. Ignoring
class.
SIVA sys_execve - filename=/sbin/hotplug.
PCI: Cannot allocate resource region 1 of PCI bridge 1
PCI: Cannot allocate resource region 2 of PCI bridge 1
PCI: Cannot allocate resource region 1 of device 0000:01:00.0
PCI: Cannot allocate resource region 3 of device 0000:01:00.0
PCI: Failed to allocate mem resource #1:4000 at 0 for 0000:01:00.0
PCI: Failed to allocate mem resource #3:10000 at 0 for 0000:01:00.0
SIVA sys_execve - filename=/sbin/hotplug.
bus mdio_bus: add driver Generic PHY
SIVA sys_execve - filename=/sbin/hotplug.
Generic PHY: Registered new driver
SCSI subsystem initialized
bus i2c: add driver i2c_adapter
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
highmem bounce pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
bus pci: add driver pcieport-driver
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing enabled
SIVA sys_execve - filename=/sbin/hotplug.
SIVA sys_execve - filename=/sbin/hotplug.
bus platform: add driver serial8250
serial8250.0: ttyS0 at MMIO 0xff704500 (irq = 26) is a 16550A
bus pci: add driver serial
RAMDISK driver initialized: 16 RAM disks of 131072K size 1024 blocksize
loop: loaded (max 8 devices)
bus mdio_bus: add driver Vitesse VSC8244
Vitesse VSC8244: Registered new driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
bus pci: add driver ALI15x3_IDE
SIVA sys_execve - filename=/sbin/hotplug.
bus ide: add driver ide-disk
bus ide: add driver ide-cdrom
bus scsi: add driver sd
bus pci: add driver ahci
bus platform: add driver fsl-i2c
bus i2c: add driver eeprom
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
SIVA sys_execve - filename=/sbin/hotplug.
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 156k init
SIVA before run_init_process("/sbin/init").
SIVA sys_execve - filename=/sbin/init.
SIVA sys_execve - filename=/etc/rc.d/rcS.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/hostname.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/bin/hostname.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/filesystems.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/bin/mount.
SIVA sys_execve - filename=/bin/mount.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/mount.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/mount.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/ln.
SIVA sys_execve - filename=/bin/mount.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/syslog.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/sbin/syslogd.
SIVA sys_execve - filename=/sbin/klogd.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/depmod.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/modules.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/network.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/sbin/ifconfig.
SIVA sys_execve - filename=/sbin/route.
SIVA sys_execve - filename=/bin/rm.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/sbin/ifconfig.
SIVA sys_execve - filename=/sbin/modprobe.
SIVA sys_execve - filename=/sbin/modprobe.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/sbin/route.
SIVA sys_execve - filename=/bin/sed.
SIVA sys_execve - filename=/bin/mv.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/settime.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/bin/touch.
SIVA sys_execve - filename=/bin/sleep.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/init.d/inetd.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/bin/echo.
SIVA sys_execve - filename=/usr/sbin/inetd.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/etc/rc.d/rc.local.
SIVA sys_execve - filename=/usr/bin/[.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
SIVA sys_execve - filename=/sbin/getty.
- Siva
More information about the Linuxppc-dev
mailing list