Das Oszi Sysinfo

From eLinux.org
Revision as of 23:04, 31 March 2012 by Prpplague (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

uname -a

$ uname -a
Linux Tekway-dso 2.6.13 #3 Wed Jun 29 10:13:03 CST 2011 armv4tl GNU/Linux

/proc/cpuinfo

$ cat /proc/cpuinfo
Processor       : ARM920Tid(wb) rev 0 (v4l)
BogoMIPS        : 202.34
Features        : swp half thumb 
CPU implementer : 0x41
CPU architecture: 4T
CPU variant     : 0x1
CPU part        : 0x920
CPU revision    : 0
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format A
Cache format    : Harvard
I size          : 16384
I assoc         : 64
I line length   : 32
I sets          : 8
D size          : 16384
D assoc         : 64
D line length   : 32
D sets          : 8

Hardware        : QQ2440                                                        
Revision        : 0000                                                          
Serial          : 0000000000000000

/proc/cmdline

$ cat cmdline
noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0

/proc/interrupts

           CPU0                                                                 
 30:      80480   S3C2410 Timer Tick                                            
 34:          0   audio_in                                                      
 35:          0   audio_out                                                     
 41:          2   S3C2410 USB core                                              
 42:          0   ohci_hcd:usb1                                                 
 43:       1280   s3c2440-i2c                                                   
 62:          0   USB Over-current                                              
 70:        256   s3c2440-uart                                                  
 71:       1078   s3c2440-uart                                                  
 79:          0   s3c2410_action                                                
 80:          0   s3c2410_action                                                
Err:          0                                                                 

/proc/iomem

$ cat /proc/iomem
18000300-18000303 : dm9000.0
18000304-18000307 : dm9000.0
30000000-33ffffff : System RAM
  30021000-30291d33 : Kernel text
  30292000-3038e78b : Kernel data
49000000-49100000 : s3c2410-ohci
  49000000-49100000 : ohci_hcd
4d000000-4d100000 : s3c2410-lcd
4e000000-4e100000 : s3c2440-nand
  4e000000-4e100000 : s3c2440-nand
50000000-50003fff : s3c2440-uart.0
  50000000-500000ff : s3c2440-uart
50004000-50007fff : s3c2440-uart.1
  50004000-500040ff : s3c2440-uart
50008000-5000bfff : s3c2440-uart.2
  50008000-500080ff : s3c2440-uart
52000000-52100000 : s3c2410-usbgadget
53000000-53100000 : s3c2410-wdt
54000000-54100000 : s3c2440-i2c
  54000000-54100000 : s3c2440-i2c
55000000-55100000 : s3c2410-iis
57000000-570000ff : s3c2410-rtc
  57000000-570000ff : s3c2410-rtc
59000000-5900001f : s3c2440-spi.0
  59000000-5900001f : s3c2440-spi
5a000000-5a100000 : s3c2410-sdi
d0000300-d000030f : eth0

/proc/mtd

$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00004000 "bootloader"
mtd1: 00200000 00004000 "kernel"
mtd2: 03dac000 00004000 "root"

/proc/partitions

$ cat /proc/partitions
major minor  #blocks  name

  31     0        192 mtdblock0
  31     1       2048 mtdblock1
  31     2      63152 mtdblock2

/proc/fb

$ cat /proc/fb
0 s3c2410fb

/proc/devices

$ cat /proc/devices
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 14 sound
 29 fb
 81 video4linux
 89 i2c
 90 mtd
128 ptm
136 pts
180 usb
204 s3c2410_serial
242 dso-buzzer
245 dso-fpga
246 dso-lcd
247 dso-iobank
249 dso-i2c
250 dso-spi
253 dso-uart
254 devfs

Block devices:
  1 ramdisk
  7 loop
  8 sd
 31 mtdblock
 43 nbd
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
254 mmc

/proc/version

$ cat /proc/version
Linux version 2.6.13 (root@rain-fc4) (gcc version 3.4.1) #3 Wed Jun 29 10:13:031

/proc/yaffs

$ cat /proc/yaffs
YAFFS built:Jun 29 2011 10:09:19
$Id: yaffs_fs.c,v 1.51 2006/07/25 21:03:22 charles Exp $
$Id: yaffs_guts.c,v 1.36 2006/09/05 23:23:34 charles Exp $

Device 0 "root"
startBlock......... 0
endBlock........... 3946
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 1597
nTnodesCreated..... 5700
nFreeTnodes........ 92
nObjectsCreated.... 1000
nFreeObjects....... 37
nFreeChunks........ 53739
nPageWrites........ 484
nPageReads......... 28183
nBlockErasures..... 7
nGCCopies.......... 5
garbageCollections. 4
passiveGCs......... 4
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 131
nUnlinkedFiles..... 137
nBackgroudDeletions 0
useNANDECC......... 0
isYaffs2........... 0

lsmod

$ lsmod
   Tainted: P                                                                  
s3c2440_buzzer 2368 0 - Live 0xbf01a000                                         
dso_uart 1920 0 - Live 0xbf018000                                               
dso_spi 5864 0 - Live 0xbf015000                                                
dso_fpga 4176 0 - Live 0xbf012000                                               
usblp 11328 0 - Live 0xbf00e000                                                 
usb_char 6712 0 - Live 0xbf00b000                                               
usb_device 17736 1 usb_char, Live 0xbf005000                                    
s3c2440_lcd 4488 0 - Live 0xbf002000                                            
dso_iobank 3712 0 - Live 0xbf000000

mount

$ mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs (rw)
none on /dev type devfs (rw)
none on /proc type proc (rw,nodiratime)
none on /tmp type tmpfs (rw)
none on /var type tmpfs (rw)

/etc/rcS

$ cat /etc/rcS
#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

#
#       Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
/sbin/hwclock -s
/bin/mknod /dev/pts/0 c 136 0
/bin/ln -s /dev/v4l/video0 /dev/video0
/bin/ln -s /dev/fb/0 /dev/fb0
/bin/ln -s /dev/vc/0 /dev/tty1
/bin/ln -s /dev/sound/dsp /dev/dsp
/bin/ln -s /dev/sound/mixer /dev/mixer
/bin/ln -s /dev/scsi/host0/bus0/target0/lun0/part1 /dev/sda1

/bin/mount -t proc none /proc
/bin/mount -t tmpfs none /tmp
/bin/mount -t tmpfs none /var

/bin/mkdir -p /var/lib
/bin/mkdir -p /var/run
/bin/mkdir -p /var/log

rm /usr/udisk-flag
rm /usr/up -rf
rm /dso/driver/driver.log
touch /dso/driver/driver.log
insmod /dso/driver/dso-iobank.ko
insmod /dso/driver/dso-lcd.ko
/dso/app/setio e4 o 0
insmod /dso/driver/dso-usbstorage.ko
insmod /dso/driver/dso-usbd.ko
insmod /dso/driver/dso-usbchar.ko
insmod /dso/driver/dso-usblp.ko
insmod /dso/driver/dso-fpga.ko
insmod /dso/driver/dso-i2c.ko
insmod /dso/driver/dso-spi.ko
insmod /dso/driver/dso-uart.ko
#insmod /dso/driver/dm9000.ko
insmod /dso/driver/dso-buzzer.ko
mknod /dev/ttyS0 c 204 64
#/dso/app/setio f0 o 0
/dso/app/setio g12 o 1
/dso/app/sendspi f /dn.rbf
#/dso/app/sendfpgafile
#/sbin/ifconfig lo 127.0.0.1
#/dso/app/setnet 00:11:38:33:44:55 192.168.1.78
#mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.1.88:/mnt/option/nfss
/etc/rc.d/init.d/hotplug start
/etc/checkdso dso_update.exe
/bin/hostname -F /etc/sysconfig/HOSTNAME

/dso.exe

/dso

$ find /dso
/dso
/dso/app
/dso/app/sendspi
/dso/app/testacq
/dso/app/setnet
/dso/app/sendfpgafile
/dso/app/getdata
/dso/app/setio
/dso/driver
/dso/driver/driver.log
/dso/driver/dso-lcd.ko
/dso/driver/dso-usbchar.ko
/dso/driver/dso-usbd.ko
/dso/driver/dm9000.ko
/dso/driver/dso-usblp.ko
/dso/driver/dso-i2c.ko
/dso/driver/dso-fpga_1000b.ko
/dso/driver/dso-iobank.ko
/dso/driver/dso-fpga.ko
/dso/driver/dso-usbstorage.ko
/dso/driver/dso-cs8900.ko
/dso/driver/dso-buzzer.ko
/dso/driver/dso-uart.ko
/dso/driver/dso-fpga_1000bX.ko
/dso/driver/dso-spi.ko

/dso/driver/driver.log

$ cat /dso/driver/driver.log
[IOBANK] 1.00.0(090903)
CPU 400MHZ BUS 100MHZ
[LCD] 1.02.0(110314)50HZframefreq
[fpga] 1.00.0(091202)
[SPI] 1.00.0(090713)
[UART] 1.00.0(090713)
[BUZZER] 1.00.0(090713)