uClinux System Information

For the Linux geeks, here is some technical information from the router board under uClinux. (The below output is a telnet session to the board).

# cat /proc/cpuinfo
Processor       : Winbond W90N740 rev 1 (v3l)
BogoMIPS        : 39.83
Hardware        : W90N740
Revision        : 0000
Serial          : 0000000000000000

# cat /proc/mem_map
0x00000000: RRRRRRRR[======]--RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
0x00040000: RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
0x00080000: RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
0x000c0000: RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
0x00100000: RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR[==============][===
0x00140000: ===========][===================================================
0x00180000: =======][=======================================================
0x001c0000: ===][==============][=========][================================
0x00200000: ==========================][==============][====================
0x00240000: ======================================]-------------------------
0x00280000: ----------------------------------------------------------------
0x002c0000: ----------------------------------------------------------------
0x00300000: ----------------------------------------------------------------
0x00340000: --------------------------------------s-------------------------
0x00380000: ---------------------------sss11[][][]1s[][]11--[]sssss1[]1ssss1
0x003c0000: ssssssss11ss11ss[]sssR[]R1s11s1sss[][][][]sssssss111ssssss11ss[]

init             Mem:  260064 Slack:     678 Shared:       0
inetd            Mem:   47072 Slack:    2910 Shared:       0
sh               Mem:  333920 Slack:     607 Shared:       0
telnetd          Mem:   55200 Slack:    2245 Shared:       0
sh               Mem:  333920 Slack:     612 Shared:       0
cat              Mem:  260064 Slack:     598 Shared:       0
Total            Mem: 1290240 Slack:    7650 Shared:       0

Active: 0, inactive: 0, free: 311
Free pages:     311 (1244kB), %1 frag, %0 slack
Free blks:        4 min=2 max=255 avg=77
Used blks:        5 min=1 max=597 avg=142

# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:   3006464  1732608  1273856        0        0        0
Swap:        0        0        0
MemTotal:         2936 kB
MemFree:          1244 kB
MemShared:           0 kB
Buffers:             0 kB
Cached:              0 kB
SwapCached:          0 kB
Active:              0 kB
Inactive:            0 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:         2936 kB
LowFree:          1244 kB
SwapTotal:           0 kB
SwapFree:            0 kB

# cat /proc/uptime
59680.97 59677.5

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                     327       327         0 100% /
/dev/rom0                  327       327         0 100% /

# cat /etc/inittab
::sysinit:/etc/rc
::respawn:/bin/sh

# cat /etc/rc     
#!/bin/sh
hostname uClinuxRouter 
cat /etc/motd
mount -t proc /dev/none /proc
#expand /etc/ramfs.img /dev/ram0
#expand /etc/ramfs.img /dev/ram1
#mount -t ext2 /dev/ram0 /var
#mount -t ext2 /dev/ram1 /home
ifconfig eth0 192.168.1.246 netmask 255.255.255.0
ifconfig eth1 192.168.2.247 netmask 255.255.255.0
ifconfig lo 127.0.0.1
inetd&

# cat /etc/inetd.conf
discard dgram  udp wait   root /bin/discard
discard stream tcp nowait root /bin/discard
telnet  stream tcp nowait root /bin/telnetd
netbios-ssn stream tcp nowait root /bin/smbd -d1 -s /etc/config/smb.conf

# ls /dev
console         cua0            cua1            kmem            log             mem             null
ptyp0           ptyp1           ptyp2           ptyp3           ptyp4           ptyp5           ptyp6
ptyp7           ptyp8           ptyp9           ptypa           ptypb           ptypc           ptypd
ptype           ptypf           ram0            ram1            random          rom0            rom1
rom2            rom3            rom4            rom5            rom6            rom7            rom8
rom9            tty             tty0            tty1            tty2            tty3            ttyS0
ttyS1           ttyp0           ttyp1           ttyp2           ttyp3           ttyp4           ttyp5
ttyp6           ttyp7           ttyp8           ttyp9           ttypa           ttypb           ttypc
ttypd           ttype           ttypf           urandom         zero

# ps
  PID TTY     Uid        Size State Command
    1         hugo          0   S   init 
    2         hugo          0   S   [keventd]
    3         hugo          0   S   [ksoftirqd_CPU0]
    4         hugo          0   R   [kswapd]
    5         hugo          0   S   [bdflush]
    6         hugo          0   S   [kupdated]
    7         hugo          0   S   [khubd]
   15         hugo          0   S   inetd 
   16         hugo          0   S   /bin/sh 
   68         hugo          0   S   /bin/telnetd 
   69 ttyp0   hugo          0   S   sh 
   70 ttyp0   hugo          0   R   ps