2010-03-01 20:23:16     unable to open an initial console.

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-03-01 20:23:16     unable to open an initial console.

zhang zhihua (CHINA)

Message: 86685   

 

我的开发板是BF518F-EZBRD,我把kernel放在parallel flash从0x20040000 开始,filesystem放在parallel flash从0x20180000开始地址,设置u-boot环境变量如下:

 

sfboot bootm 0x20040000

 

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

 

但是在启动的时候却出现错误:Warning: unable to open an initial console.

 

而且在超级终端也无法输入命令,但是通过telnet登上去又是正常的,怎么回事呢?

TranslateQuoteReplyEditDelete

 

 

2010-03-01 21:08:18     Re: unable to open an initial console.

Sonic Zhang (CHINA)

Message: 86687   

 

please paste the complete uboot boot args and boot logs here.

QuoteReplyEditDelete

 

 

2010-03-01 21:17:25     Re: unable to open an initial console.

zhang zhihua (CHINA)

Message: 86690   

 

U-Boot 2008.10 (ADI-2009R1-rc3) (Nov 11 2009 - 22:17:35)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.1) (spi flash boot)

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   32 MB

Flash:  4 MB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   0A:3C:29:4B:46:B2

Hit any key to stop autoboot:  0

## Booting kernel from Legacy Image at 20040000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1

   Created:      2010-03-02   0:46:53 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1211635 Bytes =  1.2 MB

   Load Address: 00001000

   Entry Point:  00232bac

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00232bac

Linux version 2.6.28.10-ADI-2009R1 (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #

66 Mon Mar 1 16:46:40 PST 2010

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00179220

  rodata    = 0x00179220-0x001e75b8

  bss       = 0x001e8000-0x0020ea74

  data      = 0x0020ea74-0x00226000

    stack   = 0x00224000-0x00226000

  init      = 0x00226000-0x00244000

  available = 0x00244000-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

Hardware Trace Active and Enabled

Boot Mode: 3

Blackfin support (C) 2004-2009 Analog Devices, Inc.

Compiled for ADSP-BF518 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 80 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 7873

Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=25000000 e

arlyprintk=serial,uart0,57600 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

I-pipe 1.10-00: pipeline enabled.

Console: colour dummy device 80x25

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 29128k/32768k RAM, (120k init code, 1504k kernel code, 692k da

ta, 1024k dma, 296k reserved)

Calibrating delay loop... 794.62 BogoMIPS (lpj=1589248)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

NET: Registered protocol family 1

I-pipe: Domain Xenomai registered.

Xenomai: hal/blackfin started.

Xenomai: real-time nucleus v2.4.7 (Andalusia) loaded.

Xenomai: starting native API services.

Xenomai: starting POSIX services.

Xenomai: starting RTDM services.

NTFS driver 2.1.29 [Flags: R/O].

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 56

io scheduler noop registered (default)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_

clk=2500000Hz(mdc_div=15)@sclk=80MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

physmap platform flash device: 00300000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Amd/Fujitsu Extended Query Table at 0x0040

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

Reducing visibility of 4096KiB chip to 3072KiB

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

Creating 3 MTD partitions on "physmap-flash.0":

0x00000000-0x00040000 : "bootloader(nor)"

0x00040000-0x00180000 : "linux kernel(nor)"

0x00180000-0x00300000 : "file system(nor)"

m25p80 spi0.2: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x00000000-0x00040000 : "bootloader(spi)"

0x00040000-0x00200000 : "linux kernel(spi)"

bfin-spi bfin-spi.0: cs5 >= max 5

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc00500, dma channel@7

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc03400, dma channel@5

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

dma_alloc_init: dma_page @ 0x00381000 - 256 pages at 0x01f00000

TCP cubic registered

NET: Registered protocol family 17

Distributed Switch Architecture driver version 0.1

eth0: detected a KSZ8893M switch

dsa slave smi: probed

rtc-bfin rtc-bfin: setting system clock to 2010-03-02 12:15:02 UTC (1267532102)

VFS: Mounted root (jffs2 filesystem).

Freeing unused kernel memory: 120k freed

Warning: unable to open an initial console.

mmc0: new SD card at address 0260

mmcblk0: mmc0:0260 SD    1.85 GiB

mmcblk0:<7>mmc0: starting CMD18 arg 00000000 flags 000000b5

p1 p2

eth1: link up, 100 Mb/s, full duplex

Trying 100/FULL

PHY: 0:03 - Link is Up - 100/Full

 

      ----thank you

TranslateQuoteReplyEditDelete

 

 

2010-03-01 21:20:51     Re: unable to open an initial console.

zhang zhihua (CHINA)

Message: 86691   

 

环境变量如下:

 

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

hostname=bf518f-ezbrd

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 2;sf erase 0 0x40000;sf write $(lo

adaddr) 0 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):

$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsver

s=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethact=Blackfin EMAC

ethaddr=0A:3C:29:4B:46:B2

filesize=210000

fileaddr=1000000

gatewayip=192.168.0.1

netmask=255.255.255.0

ipaddr=192.168.0.15

serverip=192.168.0.2

bootcmd=run sfboot

sfboot=bootm 20040000

bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=25000000 earlyprintk=s

erial,uart0,57600 console=ttyBF0,57600

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1045/8188 bytes

TranslateQuoteReplyEditDelete

 

 

2010-03-01 23:15:25     Re: unable to open an initial console.

Sonic Zhang (CHINA)

Message: 86693   

 

Please make sure you have the device node "/dev/console" in your jffs2 root fs.

 

If not, create it on your jffs2 root fs manually.

QuoteReplyEditDelete

 

 

2010-03-02 02:14:59     Re: unable to open an initial console.

zhang zhihua (CHINA)

Message: 86696   

 

你好,在/dev目录下有ttyBF0...的,但是还是不行...

TranslateQuoteReplyEditDelete

 

 

2010-03-02 02:50:13     Re: unable to open an initial console.

Sonic Zhang (CHINA)

Message: 86697   

 

不是 /dev/ttyBF0,而是/dev/console

Attachments

    Outcomes