2008-02-29 13:36:45     Missing TERMTYPE field in inittabinit

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

2008-02-29 13:36:45     Missing TERMTYPE field in inittabinit

Bill Fassler (UNITED STATES)

Message: 51914    I managed to screw something up and can't easily figure out what it is.  I tried to configure the console on frame buffer and it hung on the console handover.... so I backed out the changes for a sanity check to make sure I could still display video, pictures, nano-x whatever to the screen.....

 

Well now I see this new message (Missing TERMTYPE field in inittabinit) agt the end of bootup in this previously working image and I seem to have a problem with ethernet even though I didn't (knowingly) change anything that affects ethernet.

 

VOCAL> bootm 0x2000000

## Booting image at 02000000 ...

   Image Name:   Linux-2.6.22.14-ADI-2007R2-pre-s

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    13341044 Bytes = 12.7 MB

   Load Address: 00100000

   Entry Point:  002c8000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... Linux version 2.6.22.14-ADI-2007R2-pre-svn3937

(vocal@Grumpy) (gcc version 4.1.2 (ADI svn)) #503 Thu Feb 28 17:22:32 EST 2008

early printk enabled on early_BFuart0

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  text      = 0x00100000-0x00241c10

  rodata    = 0x00242000-0x002b1618

  data      = 0x002b2000-0x002c8000

    stack   = 0x002b2000-0x002b4000

  init      = 0x002c8000-0x01aa8000

  bss       = 0x01aa8000-0x01ab8490

  available = 0x01ab8490-0x07dff000

  DMA Zone  = 0x07e00000-0x08000000

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 602 MHz core clock and 120 MHz System Clock

HARRRII: memory_start=0x1ab9000, memory_end=0x7dff000, bootmap_size=0xfc0

VIDEO_CAP: reserved 0x600000 memory bank at 0x4600000

VIDEO_CAP: reserved  0x600000 memory bank at 0x6600000

LCD: reserved 0x284000 memory bank at 0x200000

LCD: reserved  0x284000 memory bank at 0x3300000

TIIMM: reserved 0x400000 memory bank at 0xB80000

TIIMM: reserved 0x400000 memory bank at 0x2000000

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 32004

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 512 (order: 9, 2048 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Physical pages: 7dff

Memory available: 81392k/130048k RAM, (24448k init code, 1287k kernel code, 65k

data, 2048k dma)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (7 KB free)

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

Blackfin Instruction SRAM: 16 KB (8 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

vphone_init(): registering device resources

Generic PHY: Registered new driver

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

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

BF561 Core B driver v0.1 initialized.

HARI: Request core0 supplement int 0 !!!

HARI: Request core0 supplement int 1 !!!

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf561-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x04e25000 - 512 pages at 0x07e00000

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

Serial: Blackfin serial driver

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

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

SMSC LAN83C185: Registered new driver

Linux video capture interface: v2.00

VS6524: i2c driver ready

Configured TIMER3 for Radio Clock (33Khz)

 

########## Sys_clck = 120422400  r_period = 3676

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, r

egs_base@ffc00500, dma channel@16

sl811: driver sl811-hcd, 19 May 2005

sl811-hcd sl811-hcd.0: SL811HS v1.5

sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 1

sl811-hcd sl811-hcd.0: irq 81, io mem 0x28000000

usb usb1: Product: SL811HS v1.5

usb usb1: Manufacturer: Linux 2.6.22.14-ADI-2007R2-pre-svn3937 sl811-hcd

usb usb1: SerialNumber: sl811-hcd.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver libusual

mice: PS/2 mouse device common for all mice

ad7877 spi0.7: touchscreen, irq 86

input: AD7877 Touchscreen as /class/input/input0

i2c /dev entries driver

VS6524: detecting client on address 0x20

VS6524: Firmware Version 1.1

VS6524: Patch Version 0.0

VS6524: BHSYNCSETUP: f BDATAFORMAT0: 3

VS6524: V4L driver Blackfin CMOS Camera now ready

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50

2006 UTC).

ASoC version 0.13.1

bfin-wm8750: bf5xx_wm8750_init

bfin-wm8750: bf5xx_probe

WM8750: WM8750 Audio Codec 0.12

wm8750: adding i2c driver  for address = 0x1a !!!!

wm8750_i2c_attach invoked !!

wm8750: successfully attached to codec at addr = 0x1a

asoc: WM8750 <-> bf5xx-i2s-0 mapping ok

bfin-wm8750: bf5xx_wm8750_init_dev

ALSA device list:

  #0: bf5xx-wm8750 (WM8750)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

************ Missing Ethernet driver info here ***********************

Freeing unused kernel memory: 24448k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

init: Missing TERMTYPE field in inittabinit: Missing TERMTYPE field in inittabin

it: Missing TERMTYPE field in inittabinit: Missing TERMTYPE field in inittabinit

: Missing TERMTYPE field in inittab

 

BusyBox v1.4.1 (2008-02-28 17:10:04 EST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:~> ifconfig

************ Missing eth0 and can't do anything about it *******************************

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

QuoteReplyEditDelete

 

 

2008-02-29 14:24:23     Re: Missing TERMTYPE field in inittabinit

Mike Frysinger (UNITED STATES)

Message: 51915    look at your /etc/inittab file ... i would imagine that's where the inittab errors are coming from

 

as for ifconfig, it only shows configured interfaces.  so if you havent configured eth0, it will of course not show up.  use the -a option if you want to see all interfaces.

QuoteReplyEditDelete

 

 

2008-02-29 15:24:50     Re: Missing TERMTYPE field in inittabinit

Bill Fassler (UNITED STATES)

Message: 51921    The problem with the Ethernet oddly enough has something to do with  my u-boot.  When I "run addip" before booting the kernel then I find the SMCS and have eth0, if I don't then I have what you see in the first post.

 

I had a particular version of u-boot that seemed to eliminate this need to "run addip", but apparently I unwittingly overwrote it and I can't easily remember what the heck was different.  New builds of u-boot produce the above (although I don't recall making any changes to the source). Not to mention that we only have 4 working prototype boards and there isn't two 100% identical ones in the bunch.

 

I think this all boils down to the fact that I haven't found all my hardware/software problems regarding my SMSC9117 chip.  I can still only work at 10Mb and if I TFTP an image and then bootm it all goes well, but if screw up and mistype something and have to re-TFTP the image, then everything goes to hell in a handbasket and all my environment variables disappear and Ethernet will not work again until I reset the board.

 

Ugh.  The Ethernet and Touchscreen are the only two things that continue to give me trouble on these custom boards, but due to the many in-house hardware modification we had to do based on debug, we might have harmed things in intangible ways.

 

Our second generation custom boards are on order, perhaps I'll have an easier time debugging then...

 

Bill

QuoteReplyEditDelete

 

 

2008-02-29 16:24:22     Re: Missing TERMTYPE field in inittabinit

Mike Frysinger (UNITED STATES)

Message: 51927    "run addip" adds the "ip=" kernel command line option and sets up the interface by default ... it's the same exact thing as if you ran `ifconfig eth0 192.168.0..................`

 

if the interface is not up, then `ifconfig` will not show it.  this is expected behavior.  use the -a option to view downed interfaces.  the ip= option just makes the interface up by default.

QuoteReplyEditDelete

 

 

2008-02-29 17:07:11     Re: Missing TERMTYPE field in inittabinit

Bill Fassler (UNITED STATES)

Message: 51930    Then why would the exact same uClinux image act differently depending on which u-boot image I am loading and booting from?

 

The same uClinux image launched from one version of u-boot does not require "run addip" and comes up with the ethernet interface ready to go.

 

This image launched on the SAME board but with a different version of u-boot will require the "run addip".

 

The worst part is, other than the time stamp, I don't know what the difference in u-boot is.  I didn't change anything in the source that I recall.  I just rebuilt just before I archived (backed up my work).

 

(Ah... but remember I ran all that autoreconf -i, aclocal, automake, libtoolize and intltoolize **** trying to get finch cross compiled.... hmmm, but that was in an entire different source tree, just on this machine. Could this have had an impact?)

 

Bill

QuoteReplyEditDelete

 

 

2008-02-29 17:18:13     Re: Missing TERMTYPE field in inittabinit

Mike Frysinger (UNITED STATES)

Message: 51932    if your u-boot bootcmd is different, then it's going to behave differently

 

review the file /proc/cmdline

Attachments

    Outcomes