Home 14.04.2005: Untersuchung des proc-Verzeichnis Ping funktioniert nur unter Kernel 2.4, aber nicht im Kernel 2.6 Eigen compilierter Kernel 2.4: Ping funktioniert!
 

B.2.2 Referenzboot-Output des eingebauten kernel 2.4

Low Voltage Detect Reset
Power-on Reset

ColdFire MCF5282 on the COBRA5282
Firmware v3b.1a.10 (Build 3 on Mar  2 2004 10:52:53)
Copyright 1995-2003 Motorola, Inc.  All Rights Reserved.
senTec Elektronik GmbH
Enter 'help' for help.


Starting Copy...
Copy finished!
Linux version 2.4.24-uc0 (hede@sentec09) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20014
uClinux/COLDFIRE(m5282)
COLDFIRE port done by Greg Ungerer, gerg@snapgear.com
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line:
Calibrating delay loop... 42.29 BogoMIPS
Memory available: 6412k/8192k RAM, 0k/0k ROM (680k kernel code, 203k data)
kmem_create: Forcing size word alignment - vm_area_struct
kmem_create: Forcing size word alignment - mm_struct
kmem_create: Forcing size word alignment - filp
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
kmem_create: Forcing size word alignment - bdev_cache
kmem_create: Forcing size word alignment - cdev_cache
kmem_create: Forcing size word alignment - kiobuf
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
kmem_create: Forcing size word alignment - sock
Initializing RT netlink socket
Starting kswapd
kmem_create: Forcing size word alignment - file_lock_cache
kmem_create: Forcing size word alignment - nfs_read_data
kmem_create: Forcing size word alignment - nfs_write_data
ColdFire internal UART serial driver version 1.00
ttyS0 at 0x40000200 (irq = 77) is a builtin ColdFire UART
ttyS1 at 0x40000240 (irq = 78) is a builtin ColdFire UART
kmem_create: Forcing size word alignment - blkdev_requests
fec.c: Probe number 0 with 0x0000
eth0: FEC ENET Version 0.2, 00:cf:52:82:cf:01
fec: PHY @ 0x1f, ID 0x20005c30 -- DP83847
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 7 disk images:
0: ED188-1A3187 [VIRTUAL ED188-1A3187] (RO)
1: FFC00000-FFC3FFFF [VIRTUAL FFC00000-FFC3FFFF] (RW)
2: FFC00000-FFC07FFF [VIRTUAL FFC00000-FFC07FFF] (RW)
3: FFC08000-FFC3FFFF [VIRTUAL FFC08000-FFC3FFFF] (RW)
4: FFC40000-FFFFFFFF [VIRTUAL FFC40000-FFFFFFFF] (RW)
5: FFD00000-FFDFFFFF [VIRTUAL FFD00000-FFDFFFFF] (RW)
6: FFC00000-FFFFFFFF [VIRTUAL FFC00000-FFFFFFFF] (RW)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
kmem_create: Forcing size word alignment - ip_dst_cache
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 24k freed (0xd4000 - 0xd9000)
Shell invoked to run file: /etc/rc
Command: hostname cobra1
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: ifconfig lo 127.0.0.1
tommand: routee tadhd 0-n:et  1c27o.0n.0f.0i nget:ma ska 2u55t.2o55-.2n55e.0g loo
 Ciomamatndi: o# nse t oupn t,he  i1p 0ad0drFesDs Xof, t he1 t0ar0geHt:D
00o,mm an1d:0 iFfcDonXfi,g  et1h00 1H92D.1X68..1
  .2 broadcast 192.168.100.255 netmask 255.255.255.0 up
Command: # add a route via eth0:
Command: route add -net 192.168.100.0 netmask 255.255.255.0 eth0
Command: # start the portmapper (needed for nfs):
Command: portmap &
[15]
Command: # the following line is an example, how to mount nfs directories:
Command: #mount -t nfs -o rsize=4096,wsize=4096 192.168.100.1:/home/uClinux /usr
Command: cat /etc/motd
===============================================
               COBRA5282 board
               Version 20040324
===============================================
Command:
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> ping 192.168.100.1
192.168.100.1 is alive!
/> route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.255.255.0   U     0      0        0 lo
/> busybox
BusyBox v0.60.5 (2004.03.25-08:53+0000) multi-call binary

Usage: busybox [function] [arguments]...
   or: [function] [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use, and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        busybox, dd, df, echo, ifconfig, kill, ln, ls, mknod, more, mount,
        ping, ps, route, touch, umount, vi

/> traceroute
traceroute: Bad command or file name
/> netstat -a
netstat: Bad command or file name
/> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:CF:52:82:CF:01
          inet addr:192.168.100.2  Bcast:192.168.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3 errors:3 dropped:0 overruns:0 frame:3
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:358 (358.0 iB)  TX bytes:310 (310.0 iB)
          Base address:0x1000

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)

/>

Im Vergleich hierzu die 2.6-Antworten:

/> ping
BusyBox v0.60.5 (2005.02.24-18:14+0000) multi-call binary

Usage: ping host

pid 23: failed 256
/> ping 192.168.100.1
ping: 192.168.100.1: Resolver error
pid 24: failed 256
/> route
/> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:CF:52:82:CF:01
          inet addr:192.168.100.2  Bcast:192.168.100.255  Mask:255.255.255.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:0x1000

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)

/> route add -net 192.168.100.0 netmask 255.255.255.0 eth0
SIOCADDRT: File exists
pid 27: failed 1792
/> route -C
BusyBox v0.60.5 (2005.02.24-18:14+0000) multi-call binary

Usage: route [{add|del|flush}]

pid 29: failed 256
/> route add -net 127.0.0.0
SIOCADDRT: Invalid argument
pid 32: failed 1792
/> busybox
BusyBox v0.60.5 (2005.02.24-18:14+0000) multi-call binary

Usage: busybox [function] [arguments]...
   or: [function] [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use, and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        busybox, dd, df, echo, ifconfig, kill, ln, ls, mknod, more, mount,
        ping, ps, route, touch, umount, vi

/>


Copyright © Andreas Birkert
Letzte Aktualisierung am 20. Dezember 2013
Home 14.04.2005: Untersuchung des proc-Verzeichnis Ping funktioniert nur unter Kernel 2.4, aber nicht im Kernel 2.6 Eigen compilierter Kernel 2.4: Ping funktioniert!