From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by ozlabs.org (Postfix) with ESMTP id 36A4867B2C for ; Mon, 6 Mar 2006 18:41:35 +1100 (EST) Received: by wproxy.gmail.com with SMTP id i31so1083796wra for ; Sun, 05 Mar 2006 23:41:34 -0800 (PST) Message-ID: <259581790603052341s15f21579yb3870adbde1f075e@mail.gmail.com> Date: Mon, 6 Mar 2006 08:41:33 +0100 From: Paulinha To: "Patil, Pankaj P." , linuxppc-embedded@ozlabs.org Subject: Re: INIT: In-Reply-To: <9B832BEB407A774AA0520CCFC23221970663EA35@CXOEXC11.AMERICAS.CPQCORP.NET> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5761_24371011.1141630893755" References: <9B832BEB407A774AA0520CCFC23221970663EA35@CXOEXC11.AMERICAS.CPQCORP.NET> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_5761_24371011.1141630893755 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I had the same problem two weeks ago, and my error was that I forgot to add PTY support on the linux kernel. Hope this help! Paula On 3/3/06, Patil, Pankaj P. wrote: > > I do have /dev/console in my file system. In fact , i used ethereal on > the host to see how far the INIT goes. > I saw all the usual NFS Lookup calls like /lib, /ld-2.3.1.so ..... /libc- > 2.31.so > The last NFS lookup call looks like DH:0xbea72a4a/tty0 > There are bunch of read replys after that but no more NFS lookups. Is it > normal to see a NFS Lookup that looks like 0xbea72a4a/tty0 ?? > What should be the next NFS Lookup call? > I did some searching from previous posts but haven't found exactly what i > am looking for. I am attaching a link to something that looks similar to = my > problem. Just in case, someone's having trouble understanding my issue. > http://ozlabs.org/pipermail/linuxppc-embedded/2004-August/015250.html > > Thanks > pankaj > > -----Original Message----- > From: atul.sabharwal@exgate.tek.com > [mailto:atul.sabharwal@exgate.tek.com] > Sent: Tuesday, February 28, 2006 6:03 PM > To: Patil, Pankaj P. > Cc: linuxppc-embedded@ozlabs.org > Subject: RE: INIT: > > > Easy answer is do you have /dev/console in your file system. Glibc > opens > /dev/console and the kernel uses /dev/ttyS0 as specified on the command > line. There should not be any app calling uart_close as the console > deriver > should be opening it. > > -- > Atul > > Hi, > I am running u-boot & linux2.6.12 on a custom ppc board(functional HW). > I can get to the point where u-boot loads the kernel, kernel does all > the initialization, loads the Root File System over NFS & calls the > Init process. > Next, i am expecting to see a shell prompt. I am not sure where in the > Init process i am failing. I have written my own serial driver(Philips > SC28L194 Quad UART--under development-possible culprit). The printks > work just fine. > All i see is the kernel calling the Init process & after a minute or so > i see uart_close call. > The kernel runs just fine & responds to ping. > What can trigger a uart_close??(tty_release calls release_dev calls > uart_close) I have a JTAG debugger. What's the best way to debug once > Init process is running?? > > > > I am attaching a dump of my console: > U-Boot 1.1.3 (Dec 16 2005 - 16:00:23), Build: 0.4.1 > > SysClock =3D 120Mhz , TClock =3D 120Mhz > CPU: MPC7447A v1.1 @ 960 MHz > CPU bus mode : 60x > > DRAM: SPD Checksum ok! > -- DIMM1 has 2 banks > -- DIMM2 has 0 banks > ECC Initialization of Bank 0: Done > CAS Latency =3D 2 tRP =3D 3 tRAS =3D 6 tRCD=3D3 > Total SDRAM memory is 1024 MB > Now running in RAM - U-Boot at: 00fc0000 > Remapped Internal SRAM to 0xf2000000 > Remapped Flash Card to 0xffc00000 > FLASH: 4 MB > Addresses 32M - 0M are saved for the U-Boot usage. > Mem malloc Initialization (32M - 16M): Done > > Internal SRAM ECC Initialization: Done > ***Phy Reset*** > Phy Auto-Negotiation Bit ReEnabled in SW > Net: , mv_enet1 [PRIME] > Hit any key to stop autoboot: 0 > Ethernet status port 1: Link up, Full Duplex, Speed 100 Mbps > Using mv_enet1 device > TFTP from server 192.168.1.1; our IP address is 192.168.1.2 > Filename 'uImage'. > Load address: 0x400000 > Loading: > ################################################################# > > ################################################################# > > ################################################################# > ######################## > done > Bytes transferred =3D 1119847 (111667 hex) > > ### Network statistics: ### > -------------------------- > Packets received: 2192 > Packets send: 2191 > Received bytes: 2347583 > Send bytes: 100803 > ## Booting image at 00400000 ... > Image Name: Linux-2.6.12 > Created: 2006-02-14 0:37:17 UTC > Image Type: PowerPC Linux Kernel Image (gzip compressed) > Data Size: 1119783 Bytes =3D 1.1 MB > Load Address: 00000000 > Entry Point: 00000000 > Verifying Checksum ... OK > Uncompressing Kernel Image ... OK > ## cmdline at 0x007FFF00 ... 0x007FFF98 > memstart =3D 0x00000000 > memsize =3D 0x40000000 > flashstart =3D 0xFFC00000 > flashsize =3D 0x00400000 > flashoffset =3D 0x00000000 > sramstart =3D 0xF8000000 > sramsize =3D 0x00400000 > bootflags =3D 0x00000001 > intfreq =3D 960 MHz > busfreq =3D 120 MHz > ethaddr =3D 64:00:00:00:00:00 > IP addr =3D 192.168.1.2 > baudrate =3D 115200 bps > tclk =3D 0 MHz > uboot_ver =3D 0.4.1a > L3 was init =3D 0 > Total memory =3D 768MB; using 2048kB for hash table (at c0400000) > Linux version 2.6.12 (root@RHEL40) (gcc version 3.3.3 (DENX ELDK 3.1.1 > 3.3.3-10)) #154 Mon Feb 13 17:36:35 MST 2006 > System Identification: > Freescale 74XX port > Built 1 zonelists > Kernel command line: console=3DttyS0,115200 root=3D/dev/nfs rw > nfsroot=3D192.168.1.1:/target/chestnut/rootfs > ip=3D192.168.1.2:192.168.1.1:192.168.1.1:255.255.255.0:DB64xxx:eth0:non > e > PID hash table entries: 4096 (order: 12, 65536 bytes) > time_init: decrementer frequency =3D 30.000000 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: 774400k available (1596k kernel code, 556k data, 344k init, 0k > highmem) > Mount-cache hash table entries: 512 > > NET: Registered protocol family 16 > PCI: Probing PCI hardware > JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc. > Generic RTC Driver v1.07 > Serial: SC28L194 driver 4 ports > ttyS0 at MMIO 0x0 (irq =3D 17) is a PHILIPS SC28L194 > ttyS1 at MMIO 0x0 (irq =3D 17) is a PHILIPS SC28L194 > ttyS2 at MMIO 0x0 (irq =3D 17) is a PHILIPS SC28L194 > ttyS3 at MMIO 0x0 (irq =3D 17) is a PHILIPS SC28L194 > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > loop: loaded (max 8 devices) > MV-643xx 10/100/1000 Ethernet Driver > eth0: port 1 with MAC address 00:11:85:da:0b:02 > eth0: RX NAPI Enabled > physmap flash device: 400000 at ffc00000 > mice: PS/2 mouse device common for all mice > NET: Registered protocol family 2 > IP: routing cache hash table of 8192 buckets, 64Kbytes > TCP established hash table entries: 131072 (order: 8, 1048576 bytes) > TCP bind hash table entries: 65536 (order: 6, 262144 bytes) > TCP: Hash tables configured (established 131072 bind 65536) > NET: Registered protocol family 1 > NET: Registered protocol family 17 > IP-Config: Complete: > device=3Deth0, addr=3D192.168.1.2, mask=3D255.255.255.0, gw=3D192.1= 68.1.1, > host=3DDB64xxx, domain=3D, nis-domain=3D(none), > bootserver=3D192.168.1.1, rootserver=3D192.168.1.1, rootpath=3D > Looking up port of RPC 100003/2 on 192.168.1.1 > Looking up port of RPC 100005/1 on 192.168.1.1 > VFS: Mounted root (nfs filesystem). > Freeing unused kernel memory: 344k init > > > Any help appreceated. > Thanks > pankaj > > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > ------=_Part_5761_24371011.1141630893755 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

I had the same problem two weeks ago, and my error was that I forgot to add= PTY support on the linux kernel.

Hope this help!
Paula

On 3/3/06, Patil, Pankaj P. <Pankaj.Patil@hp.com> wrote:
I do have  /dev/console in my file system. In fact , i used ether= eal on the host to see how far the INIT goes.
I saw all the usual NFS Lo= okup calls like /lib, /ld-2.3.1.so ..... /l= ibc- 2.31.so
The last NFS lookup call looks like DH:0xbea72a4a/tty0
Th= ere are bunch of read replys after that but no more NFS lookups. Is it normal to see a NFS Lookup that looks like 0xbea72a4a/tty0 ??
What shoul= d be the next NFS Lookup call?
I did some searching from previous posts but haven't found exactly what i am looking for. I am attaching a link to something that looks similar to my problem. Just in case, someone's having trouble understanding my issue.
http://ozlabs.org/pipermail/linuxppc-embedded/2004-August/= 015250.html

Thanks
pankaj

-----Original Message-----
From: atul.sabharwal@e= xgate.tek.com
[mailto:atul.sabharwal@exgate.tek.com]
Sent: Tuesday, February 28, 2006 6= :03 PM
To: Patil, Pankaj P.
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: INIT:


Easy= answer is do you have /dev/console in your file system.  Glibcopens
/dev/console and the kernel uses /dev/ttyS0 as specified on the command
= line.  There should not be any app calling uart_close as the cons= ole
deriver
should be opening it.

--
Atul

Hi,
I a= m running u-boot &=20 linux2.6.12 on a custom ppc board(functional HW).
I can get to the point= where u-boot loads the kernel, kernel does all
the initialization, = ; loads the Root File System over NFS & calls the
Init process.=
Next, i am expecting to see a shell prompt. I am not sure where in the
Init process i am failing. I have written my own serial driver(Philips<= br>SC28L194 Quad UART--under development-possible culprit). The printks
= work just fine.
All i see is the kernel calling the Init process & a= fter a minute or so
i see uart_close call.
The kernel runs just fine & responds to p= ing.
What can trigger a uart_close??(tty_release calls release_dev calls=
uart_close) I have a JTAG debugger. What's the best way to debug once
Init process is running??



I am attaching a dump of my co= nsole:
U-Boot 1.1.3 (Dec 16 2005 - 16:00:23), Build: 0.4.1

SysClo= ck =3D 120Mhz , TClock =3D 120Mhz
CPU:   MPC7447A v1.1 @ 960 M= Hz
CPU bus mode : 60x

DRAM:  SPD Checksum ok!
-- DIMM1 has 2 banks
-- DIM= M2 has 0 banks
ECC Initialization of Bank 0: Done
CAS Latency =3D 2 t= RP =3D 3 tRAS =3D 6 tRCD=3D3
Total SDRAM memory is 1024 MB
Now runnin= g in RAM - U-Boot at: 00fc0000
Remapped Internal SRAM to 0xf2000000
Remapped Flash Card to 0xffc000= 00
FLASH:  4 MB
Addresses 32M - 0M are saved for the U-Boot= usage.
Mem malloc Initialization (32M - 16M): Done

Internal SRAM= ECC Initialization: Done
***Phy Reset***
Phy Auto-Negotiation Bit ReEnabled in SW
Net:&nbs= p;  , mv_enet1 [PRIME]
Hit any key to stop autoboot:  0Ethernet status port 1: Link up, Full Duplex, Speed 100 Mbps
Using mv_= enet1 device
TFTP from server 192.168.1.1; our IP add= ress is 192.168.1.2
Filename 'uImage'= .
Load address: 0x400000
Loading:
################################= #################################

#################################################################
#################################################################
=          ########################done
Bytes transferred =3D 1119847 (111667 hex)

### Network statistics: ###
--------------------------
Packe= ts received:          &nb= sp;   2192
Packets send:     &n= bsp;            = ;2191
Received bytes:        &n= bsp;       2347583
Send bytes:           &nb= sp;        100803
## Booting ima= ge at 00400000 ...
   Image Name:   Linux-2.6.12
=    Created:      2006-02-14 &n= bsp; 0:37:17 UTC
   Image Type:   PowerPC Linux Kern= el Image (gzip compressed)
   Data Size:   &nbs= p;1119783 Bytes =3D   1.1 MB
   Load Address: 00000000
   Entry Point:&= nbsp; 00000000
   Verifying Checksum ... OK
 &nbs= p; Uncompressing Kernel Image ... OK
## cmdline at 0x007FFF00 ... 0x007F= FF98
memstart    =3D 0x00000000
memsize &nbs= p;   =3D 0x40000000
flashstart  =3D 0xFFC00000
flashsize   =3D 0x004= 00000
flashoffset =3D 0x00000000
sramstart   =3D 0xF8000000=
sramsize    =3D 0x00400000
bootflags  = =3D 0x00000001
intfreq     =3D   &nb= sp;960 MHz
busfreq     =3D    12= 0 MHz
ethaddr     =3D 64:00:00:00:00:00
IP addr &= nbsp;   =3D 192.168.1.2
bau= drate    =3D 115200 bps
tclk    =     =3D      0 MHz
ubo= ot_ver   =3D 0.4.1a
L3 was init =3D 0
Total memory =3D 768M= B; using 2048kB for hash table (at c0400000)
Linux version 2.6.12 (root@RHEL40) (gcc version 3.3.3 (DENX ELDK 3.1.1<= br>3.3.3-10)) #154 Mon Feb 13 17:36:35 MST 2006
System Identification:Freescale 74XX port
Built 1 zonelists
Kernel command line: console= =3DttyS0,115200 root=3D/dev/nfs rw
nfsroot=3D192.168.1.1:/target/chestnut/rootfs
ip=3D192.168.1.2:192.168.1.1:192.168.1.1:255.255.255.0:DB64xxx:eth0:non
e
PID hash table= entries: 4096 (order: 12, 65536 bytes)
time_init: decrementer frequency =3D 30.000000 MHz
Console: colour d= ummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524= 288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes= )
Memory: 774400k available (1596k kernel code, 556k data, 344k init, 0k<= br>highmem)
Mount-cache hash table entries: 512

NET: Registered p= rotocol family 16
PCI: Probing PCI hardware
JFFS2 version 2.2. (C) 20= 01-2003 Red Hat, Inc.
Generic RTC Driver v1.07
Serial: SC28L194 driver 4 ports
ttyS0 at= MMIO 0x0 (irq =3D 17) is a PHILIPS SC28L194
ttyS1 at MMIO 0x0 (irq =3D = 17) is a PHILIPS SC28L194
ttyS2 at MMIO 0x0 (irq =3D 17) is a PHILIPS SC= 28L194
ttyS3 at MMIO 0x0 (irq =3D 17) is a PHILIPS SC28L194
io scheduler no= op registered
io scheduler anticipatory registered
io scheduler deadl= ine registered
io scheduler cfq registered
RAMDISK driver initialized= : 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
MV-643xx 10/100/1000 Ethernet Drivereth0: port 1 with MAC address 00:11:85:da:0b:02
eth0: RX NAPI Enabledphysmap flash device: 400000 at ffc00000
mice: PS/2 mouse device commo= n for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 81= 92 buckets, 64Kbytes
TCP established hash table entries: 131072 (order: = 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 b= ytes)
TCP: Hash tables configured (established 131072 bind 65536)
NET: Reg= istered protocol family 1
NET: Registered protocol family 17
IP-Confi= g: Complete:
      device=3Deth0, addr=3D<= a href=3D"http://192.168.1.2">192.168.1.2 , mask=3D255.255.255.0, gw=3D192.168.1.1,
     host= =3DDB64xxx, domain=3D, nis-domain=3D(none),
     boo= tserver=3D192.168.1.1 , rootserver=3D192.168.1.1, rootpath=3D<= br>Looking up port of RPC 100003/2 on 192.16= 8.1.1
Looking up port of RPC 100005/1 on 192.168.1.1
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory= : 344k init


Any help appreceated.
Thanks
pankaj

_______________________________________________
Linuxppc-embedded maili= ng list
Linuxppc-embedded@ozlab= s.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
__________= _____________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/l= inuxppc-embedded

------=_Part_5761_24371011.1141630893755--