From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Tue, 11 Oct 2005 11:57:41 +0530 From: apoorv sangal To: Mark Chambers , Linuxppc-embedded@ozlabs.org In-Reply-To: <003d01c5cd97$34404470$0301a8c0@chuck2> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3165_28706343.1129012061128" References: <20051007123126.GA6879@cathedrallabs.org> <003d01c5cd97$34404470$0301a8c0@chuck2> Cc: sibi_mathew@satyam.com, vikrant_basotra@satyam.com, apoorv sangal Subject: Re: Problem Regarding Ping in Linux kernel version 2.4.24 List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_3165_28706343.1129012061128 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am sending the output from the console of the boot sequence and ifconfig command as following. Please check the same and let me know where i am going wrong. ***************************************************************************= **************************** ## Total Size =3D 0x00088c6d =3D 560237 Bytes ## Start Addr =3D 0x02000000 =3D> bootm 02000000 ## Booting image at 02000000 ... Image Name: 2.4.24 10thOCT3 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 560173 Bytes =3D 547 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Memory BAT mapping: BAT2=3D128Mb, BAT3=3D0Mb, residual: 0Mb Linux version 2.4.24-pre2 (satyam@pmcserver) (gcc version 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a_1)) #17 Mon Oct 10 15:41:43 IST 2005 On node 0 totalpages: 32768 zone(0): 32768 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: console=3DttyS0,115200 root=3D1f00 Warning: real time clock seems stuck! Calibrating delay loop... 131.89 BogoMIPS Memory: 128148k available (948k kernel code, 368k data, 56k init, 0k highmem) Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 8192 (order: 3, 32768 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB. Inside Chr_dev_init CPM UART driver version 0.01 ttyS0 on SMC1 at 0x0000, BRG7 ttyS1 on SMC2 at 0x0040, BRG8 ttyS2 on SCC1 at 0x8000, BRG1 ttyS3 on SCC2 at 0x8100, BRG2 pty: 256 Unix98 ptys configured Pty initialisation is complete eth0: FCC2 ENET Version 0.4, 00:10:EC:40:30:8C Inside rd_init RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize pmc8260 flash map (size->0x2000000 mem->0xFC000000) map->buswidth : 2 cfi_cmdset_0001: Erase suspend on write enabled Using buffer write method Creating 1 MTD partitions on "pmc8260 flash memory": 0x008c0000-0x00bc0000 : "JFFS2 partition" NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 1024 buckets, 8Kbytes TCP: Hash tables configured (established 8192 bind 16384) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. ***** VFS:test name =3D /dev/root VFS:fs_name =3D jffs2 VFS:root name =3D 1f:00 **** jffs2_scan_inode_node(): Data CRC failed on node at 0x0003b1a8: Read 0xcd593a55, calculated 0x95474c25 jffs2_scan_inode_node(): CRC failed on node at 0x002aafc0: Read 0x00000001, calculated 0x8ea9f6b8 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002aafc8: 0x10e4 instead Eep. Child "issue" (ino #127) of dir ino #4 doesn't exist! VFS:tried fs_name =3D jffs2 err =3D 0 VFS: Mounted root (jffs2 filesystem) readonly. Freeing unused kernel memory: 56k init 4k prep init started: BusyBox v0.60.5 (2004.11.09-16:07+0000) multi-call binarymount: Mounting /dev/ram0 on /tmp failed: Invalid argument Starting networking: done. Starting udhcp Client: Jan 1 00:00:02 insmod: insmod: net-pf-17: no module by that name found done. Starting thttpd: done. Starting OpenSSH: done. Starting SNMP Agent: done. jffs2_read_inode() on nonexistent ino 127 (none) login: root Password: Jan 1 00:00:09 login[61]: root login on `ttyS0' BusyBox v0.60.5 (2004.11.09-16:07+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. # ifconfig eth0 down # ifconfig eth0 172.19.56.218 # ifconfig eth0 up # ifconfig eth0 Link encap:Ethernet HWaddr 00:10:EC:40:30:8C inet addr:172.19.56.218 Bcast:172.19.255.255Mask: 255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB) Base address:0x8500 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 RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB) # ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1 ): 56 data bytes 64 bytes from 127.0.0.1 : icmp_seq=3D0 ttl=3D64 time=3D0.= 6 ms 64 bytes from 127.0.0.1 : icmp_seq=3D1 ttl=3D64 time=3D0.= 2 ms 64 bytes from 127.0.0.1 : icmp_seq=3D2 ttl=3D64 time=3D0.= 2 ms 64 bytes from 127.0.0.1 : icmp_seq=3D3 ttl=3D64 time=3D0.= 2 ms 64 bytes from 127.0.0.1 : icmp_seq=3D4 ttl=3D64 time=3D0.= 2 ms --- 127.0.0.1 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max =3D 0.2/0.2/0.6 ms # # ping 172.19.59.101 PING 172.19.59.101 (172.19.59.101): 56 data bytes --- 172.19.59.101 ping statistics --- 6 packets transmitted, 0 packets received, 100% packet loss ***************************************************************************= **************************** Regards, Apoorv Sangal. On 10/10/05, Mark Chambers wrote: > > Hi > Thanks for the inputs... As per your suggestion I commented > { mk_mii_write(MII_REG_CR, 0x1200), NULL }, /* autonegotiate */ > but it doesn't make any diffrence, still the ping doesn't worked. > At Boot loader level (u-boot) Ping works fine, > I think you need to provide more information, because there are many > things > that could be wrong. Attach the output of your console from the boot > sequence, > and include the output of an ifconfig command if you can. > Mark Chambers > > ------=_Part_3165_28706343.1129012061128 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
I am sending the output from the console of the boot sequence and ifco= nfig command as following.
Please check the same and let me know where i am going wrong.
**********************************************************************= *********************************
## Total Size =3D 0x00088c6d =3D 560237 Bytes<= /div>

## Start Addr =3D 0x02000000

=3D> bootm 02000000 ## Booting image at 02000000 ...

Image Name: 2.4.24 10thOCT3

Image Type: PowerPC Linux Kernel Image (gzip compressed)

Data Size: 560173 Bytes =3D 547 kB

Load Address: 00000000

Entry Point: 00000000

Verifying Checksum ... OK

Uncompressing Kernel Image ... OK

Memory BAT mapping: BAT2=3D128Mb, BAT3=3D0Mb, residual: 0Mb

Linux version 2.4.24-pre2 (satyam@pmcserver) (gcc version 3.2.2 20030217= (Yellow Dog Linux 3.0 3.2.2-2a_1)) #17 Mon Oct 10 15:41:43 IST 2005

On node 0 totalpages: 32768

zone(0): 32768 pages.

zone(1): 0 pages.

zone(2): 0 pages.

Kernel command line: console=3DttyS0,115200 root=3D1f00

Warning: real time clock seems stuck!

Calibrating delay loop... 131.89 BogoMIPS

Memory: 128148k available (948k kernel code, 368k data, 56k init, 0k hig= hmem)

Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)

Inode cache hash table entries: 8192 (order: 4, 65536 bytes)

Mount cache hash table entries: 512 (order: 0, 4096 bytes)

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

Page-cache hash table entries: 32768 (order: 5, 131072 bytes)

POSIX conformance testing by UNIFIX

Linux NET4.0 for Linux 2.4

Based upon Swansea University Computer Society NET3.039

Initializing RT netlink socket

Starting kswapd

JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communicatio= ns AB.

Inside Chr_dev_init

CPM UART driver version 0.01

ttyS0 on SMC1 at 0x0000, BRG7

ttyS1 on SMC2 at 0x0040, BRG8

ttyS2 on SCC1 at 0x8000, BRG1

ttyS3 on SCC2 at 0x8100, BRG2

pty: 256 Unix98 ptys configured

Pty initialisation is complete

eth0: FCC2 ENET Version 0.4, 00:10:EC:40:30:8C

Inside rd_init

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

pmc8260 flash map (size->0x2000000 mem->0xFC000000)

map->buswidth : 2

cfi_cmdset_0001: Erase suspend on write enabled

Using buffer write method

Creating 1 MTD partitions on "pmc8260 flash memory":

0x008c0000-0x00bc0000 : "JFFS2 partition"

NET4: Linux TCP/IP 1.0 for NET4.0

IP Protocols: ICMP, UDP, TCP, IGMP

IP: routing cache hash table of 1024 buckets, 8Kbytes

TCP: Hash tables configured (established 8192 bind 16384)

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

*****

VFS:test name =3D /dev/root

VFS:fs_name =3D jffs2

VFS:root name =3D 1f:00

****

jffs2_scan_inode_node(): Data CRC failed on node at 0x0003b1a8: Read 0xc= d593a55, calculated 0x95474c25

jffs2_scan_inode_node(): CRC failed on node at 0x002aafc0: Read 0x000000= 01, calculated 0x8ea9f6b8

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002aafc8: 0= x10e4 instead

Eep. Child "issue" (ino #127) of dir ino #4 doesn't exist!

VFS:tried fs_name =3D jffs2 err =3D 0

VFS: Mounted root (jffs2 filesystem) readonly.

Freeing unused kernel memory: 56k init 4k prep

 

init started: BusyBox v0.60.5 (2004.11.09-16:07+0000) multi-call binarym= ount: Mounting /dev/ram0 on /tmp failed: Invalid argument

Starting networking: done.

Starting udhcp Client: Jan 1 00:00:02 insmod: insmod: net-pf-17: no modu= le by that name found done.

Starting thttpd: done.

Starting OpenSSH: done.

Starting SNMP Agent: done.

jffs2_read_inode() on nonexistent ino 127

(none) login: root

Password:

Jan 1 00:00:09 login[61]: root login on `ttyS0'

BusyBox v0.60.5 (2004.11.09-16:07+0000) Built-in shell (ash)

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

# ifconfig eth0 down

# ifconfig eth0 172.19.56.218

# ifconfig eth0 up

# ifconfig

eth0 Link encap:Ethernet HWaddr 00:10:EC:40:30:8C

inet addr:172.19.56.218 Bcast:172.19.255.255 Mask:255.255.0.0

UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000

RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)

Base address:0x8500

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

RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)

# ping 127.0.0.1

PING 127.0.0.1 (127.0.0.1): 56 data bytes

64 bytes from 127.0.0.1: icmp_seq=3D0 t= tl=3D64 time=3D0.6 ms

64 bytes from 127.0.0.1: icmp_seq=3D1 t= tl=3D64 time=3D0.2 ms

64 bytes from 127.0.0.1: icmp_seq=3D2 t= tl=3D64 time=3D0.2 ms

64 bytes from 127.0.0.1: icmp_seq=3D3 t= tl=3D64 time=3D0.2 ms

64 bytes from 127.0.0.1: icmp_seq=3D4 t= tl=3D64 time=3D0.2 ms

--- 127.0.0.1 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max =3D 0.2/0.2/0.6 ms

#

# ping 172.19.59.101

PING 172.19.59.101 (172.19.59.101): 56 data bytes

--- 172.19.59.101 ping statistics -= --

6 packets transmitted, 0 packets received, 100% packet loss

**********************************************************************= *********************************
Regards,
Apoorv Sangal.

 
On 10/10/05, Mark Chambers <markc@mail.com= > wrote:
 
 
Hi
Thanks for the inputs... As per your suggestion I commented
           &nbs= p;            { mk_m= ii_write(MII_REG_CR, 0x1200), NULL }, /* autonegotiate */
but it doesn't make any diffrence, still the ping doesn't worked.
 
At Boot loader level (u-boot) Ping works fine,
 
 
I think you need to provide more infor= mation, because there are many things
that could be wrong.  Attach the = output of your console from the boot sequence,
and include the output of an ifconfig = command if you can.
 
Mark Chambers
 

------=_Part_3165_28706343.1129012061128--