LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-19-2011, 02:28 AM   #1
yeahone
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Question Ask for issue: Warning: unable to open an initial console.


MIPS architecture CPU, squashfs filesystem.
It looks like the ramdisk rootfs mounted and accessed normal.
But could not open an initial console during init_post() in kernel boot.

Anyone could give me some suggestion?
Thanks.

The boot message is as below, and printk work in kernel space but printf not work in user space.


U-Boot 1.3.2 (Dec 16 2011 - 16:23:03)

Board: BCM95300X
CPU Type: 0x5300 Rev. 0x1
CPU Speed: 400 MHz
DRAM: 128 MB
Flash: 32 MB
PCI[0]: Initializing host
01 01 14e4 b143 0200 00
PCI[1]: Initializing host
02 01 14e4 b143 0200 00
In: serial
Out: serial
Err: serial
Net: et
Loader version : 1.0.11.0
Product : Unknown ! PID = 1, BID = 1


Loading Runtime Image File : c1-packagev12.16.15.52.bin
Image version: 12.16.15.52
Image Name:
Created: 2011-12-16 08:25:17 UTC
Verifying Checksum ... OK
Loading Multi-File Image ... OK
Saving Environment to Flash...
done
nvram_commit: will write 94 bytes from 87f664b0
write 94 bytes to bc0e0000

Starting kernel ...

Linux version 2.6.22.18 (ming.bai@ATCRD5) (gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)) #1 PREEMPT Fri Dec 16 15:55:29 CST 2011
Found initrd of 6b8000@80600000
CPU revision is: 00019749
Determined physical RAM map:
memory: 00200000 @ 00000000 (reserved)
memory: 07348000 @ 00cb8000 (usable)
memory: 006b8000 @ 00600000 (reserved)
******reserved_end = 1a39
******mapstart = 1a39
Wasting 104192 bytes for tracking 3256 unused pages
map address = 81a39000
max_low_pfn = 8000, min_low_pfn = 0
bootmap_size = 1000, mapstart = 1a39
Initial ramdisk at: 0x80600000 (7045120 bytes)
Built 1 zonelists. Total pages: 32512
Kernel command line: console=ttyS0,9600 root=/dev/ram rw initrd=0x6b8000@0x80600000
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 512 (order: 9, 2048 bytes)
I2C_Clock set to 104166 on i2c_bus0
CPU: BCM5300 rev 1 at 400 MHz
Using 200.000 MHz high precision timer.
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 103040k/118048k available (2877k kernel code, 14956k reserved, 1062k data, 180k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Initializing host for 0
PCI: Initializing host for 1
registering PCI controller with io_map_base unset
registering PCI controller with io_map_base unset
SCSI subsystem initialized
PCI: device 0000:02:01.0 has unknown header type 40, ignoring.
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 6880k freed
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Fixing up bridge
dev b143 irq 5
PCI: Fixing up bridge
PCI: Fixing up bridge
dev b143 irq 6
PCI: Fixing up bridge
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 8) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 8) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
PCI: Enabling device 0000:00:01.0 (0004 -> 0006)
eth0: Broadcom BCM53000 10/100/1000 Mbps Ethernet Controller 3.50.21.0
netconsole: not configured, aborting
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Physically mapped flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Parallel Flash device: 0x2000000 at 0x20000000
Found flash partition table at offset 0x00080000
Creating 9 MTD partitions on "Physically mapped flash":
0x00000000-0x00080000 : "loader"
0x00080000-0x000c0000 : "partitiontable"
0x000c0000-0x00100000 : "environment"
0x00100000-0x00140000 : "filemapping"
0x00140000-0x00180000 : "hwinfo"
0x00180000-0x00fc0000 : "runtime1"
0x00fc0000-0x01000000 : "backupbpb"
0x01000000-0x01180000 : "userdata"
0x011c0000-0x02000000 : "runtime2"
i2c /dev entries driver
I2C_Clock set to 104166 on i2c_bus0
bcm5300x_i2c bcm5300x_i2c.0: Found bcm5300x i2c bus driver.(bus_id=0)
I2C_Clock set to 104166 on i2c_bus1
bcm5300x_i2c bcm5300x_i2c.1: Found bcm5300x i2c bus driver.(bus_id=1)
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: multipath personality registered for level -4
md: faulty personality registered for level -5
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: squashfs filesystem found at block 0
RAMDISK: Loading 6880KiB [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/done.
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 180k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
linux_kernel_bde: module license 'Proprietary' taints kernel. <--// the message during insmod module in /etc/rc //-->


Initial Accton Module. <--// the message during insmod module in /etc/rc //-->



K_L_IPCMEM_Initialize <--// the message during insmod module in /etc/rc //-->
vbase = a6400000, pbase = 6400000 <--// the message during insmod module in /etc/rc //-->
pbase = 6400000 <--// the message during insmod module in /etc/rc //-->


K_L_IPCMEM_Create_InterCSC_Relation <--// the message during insmod module in /etc/rc //-->

Last edited by yeahone; 12-19-2011 at 04:26 AM.
 
Old 12-21-2011, 09:52 PM   #2
yeahone
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Now, it is fixed.

The root cause is unhealthy binary map files in the rootfs.
Since the binaries and libraries should be stripped for size, the map files for them are stored in the rootfs. But some the map file is unhealthy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: unable to open an initial console grsandeep85 Linux - Embedded & Single-board computer 1 07-29-2009 05:09 AM
Warning: unable to open an initial console liyuheu Linux - Newbie 0 08-08-2004 07:34 PM
Warning: unable to open initial console. helshylock Linux - Software 5 03-30-2004 01:23 PM
Warning: unable to open an initial console. tomkeys Linux From Scratch 1 02-24-2003 10:34 PM
Warning: Unable to open an initial console opeer Linux - Newbie 0 01-29-2002 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration