Maximum/Linux

Wikikirjastosta

Loitsuja linuxissa[muokkaa | muokkaa wikitekstiä]

Testattu C-8000, firmiksellä 1.04


/ # cat /proc/version

Linux version 2.6.9 (kdhong@linux.localdomain) (gcc version 3.4.4) #581 Sun Jul 1 12:49:45 KST 2007


/ # lsmod

Module                  Size  Used by    Tainted: P
simp911x               32728  0           LAN chip
cifs                  212328  0           verkko filesystem, nfs:lle vaihtoehtoinen
button                  6224  2
pdriver                 3396  4           platform device, sound card?
denc                    4332  0
ibmcore               562380  4
vfd_driver             12536  0
ppc405_gpio             5084  2
power                   2660  0
ubi9032                19304  0 - USB : Host / Client V2.0 1Ch(UBI9032), Host / Client V1.1 1Ch


/ # ls -l /etc/*

-rwxrwxrwx    1 506      255            31 Jan  1  1970 /etc/EOF
-rwxrwxrwx    1 506      255             8 Jan  1  1970 /etc/TZ
-rwxrwxrwx    1 506      255           445 Jan  1  1970 /etc/fb.modes
-rwxrwxrwx    1 506      255           886 Jan  1  1970 /etc/fstab
lrwxrwxrwx    1 506      255            16 Jan  1  1970 /etc/group -> /devel/etc/group
lrwxrwxrwx    1 506      255            13 Jan  1  1970 /etc/hostname -> /var/hostname
lrwxrwxrwx    1 506      255            10 Jan  1  1970 /etc/hosts -> /var/hosts
-rwxrwxrwx    1 506      255            16 Jan  1  1970 /etc/hosts.allow
-rwxrwxrwx    1 506      255          1000 Jan  1  1970 /etc/inittab
-rwxrwxrwx    1 506      255            60 Jan  1  1970 /etc/ioctl.save
-rwxrwxrwx    1 506      255            64 Jan  1  1970 /etc/issue
-rwxrwxrwx    1 506      255            73 Jan  1  1970 /etc/ld.so.conf
lrwxrwxrwx    1 506      255            12 Jan  1  1970 /etc/mtab -> /proc/mounts
-rwxrwxrwx    1 506      255           459 Jan  1  1970 /etc/passwd
-rwxrwxrwx    1 506      255           355 Jan  1  1970 /etc/profile
lrwxrwxrwx    1 506      255             6 Jan  1  1970 /etc/rc.d -> rc3.d/
lrwxrwxrwx    1 506      255            16 Jan  1  1970 /etc/resolv.conf -> /var/resolv.conf
lrwxrwxrwx    1  506      255            17 Jan  1  1970 /etc/shadow -> /devel/etc/shadow
lrwxrwxrwx    1  506      255            13 Jan  1  1970 /etc/smb.conf -> /var/smb.conf 
/etc/defaults:
-rwxrwxrwx    1 506      255            92 Jan  1  1970 devpts

/etc/init.d:
-rwxrwxrwx    1 506      255           225 Jan  1  1970 checkfs2
-rwxrwxrwx    1 506      255           804 Jan  1  1970 devpts.sh
-rwxrwxrwx    1 506      255          2416 Jan  1  1970 ethnet
-rwxrwxrwx    1 506      255         10480 Jan  1  1970 functions
-rwxrwxrwx    1 506      255           963 Jan  1  1970 localnet
-rwxrwxrwx    1 506      255          2392 Jan  1  1970 mountfs
-rwxrwxrwx    1 506      255           601 Jan  1  1970 pvrinit
-rwxrwxrwx    1 506      255          6669 Jan  1  1970 rc
-rwxrwxrwx    1 506      255           412 Jan  1  1970 rcS
-rwxrwxrwx    1 506      255           506 Jan  1  1970 sendsignals
-rwxrwxrwx    1 506      255          1115 Jan  1  1970 sysklogd
-rwxrwxrwx    1 506      255           769 Jan  1  1970 template

/etc/rc3.d:
lrwxrwxrwx    1 506      255            17 Jan  1  1970 S500pvr -> ../init.d/pvrinit

/etc/rcS.d:
lrwxrwxrwx    1 506      255            17 Jan  1  1970 S200mountfs -> ../init.d/mountfs
lrwxrwxrwx    1 506      255            18 Jan  1  1970 S300localnet -> ../init.d/localnet
lrwxrwxrwx    1 506      255            17 Jan  1  1970 S500pvrinit -> ../init.d/pvrinit



/dev # ls

MAKEDEV      hda2         mtd16        mtdr8        sda1         stdout       vcs13
actel        hda20        mtd2         mtdr9        sda2         tty          vcs14
adec_dev     hda3         mtd3         null         sda3         tty0         vcs15
atibm        hda4         mtd4         port         sda4         tty1         vcs16
aud_mpeg     hda5         mtd5         power        sda5         tty10        vcs17
aud_pcm      hda6         mtd6         psaux        sda6         tty11        vcs18
audio        hda7         mtd7         ptmx         sda7         tty12        vcs19
audio1       hda8         mtd8         pts          sda8         tty13        vcs2 
audio2       hda9         mtd9         ptyp0        sdb          tty14        vcs3
audio3       i2c-0        mtdblock0    ptyp1        sdb1         tty15        vcs4
audioctl     i2c-1        mtdblock1    pvr          sdb2         tty16        vcs5
button       i2c-2        mtdblock10   ram          sdb3         tty17        vcs6
ci-0         i2c-3        mtdblock11   ram0         sdb4         tty18        vcs7
ci-1         i2c-4        mtdblock12   ram1         sdb5         tty19        vcs8
console      i2c-5        mtdblock13   ram10        sdb6         tty2         vcs9
core         i2c-6        mtdblock14   ram11        sdb7         tty3         vcsa
demuxapi0    i2c-7        mtdblock15   ram12        sdc          tty4         vcsa0
demuxapi1    initctl      mtdblock16   ram13        sdc1         tty5         vcsa1
demuxapi2    inportbm     mtdblock2    ram14        sdc2         tty6         vcsa10
denc         input        mtdblock3    ram15        sdc3         tty7         vcsa11
dmadrv       irmouse      mtdblock4    ram16        sdc4         tty8         vcsa12
dsp          jbm          mtdblock5    ram2         sdc5         tty9         vcsa13
dsp1         kmem         mtdblock6    ram3         sdc6         ttyS0        vcsa14
dsp2         logibm       mtdblock7    ram4         sdc7         ttyS1        vcsa15
dsp3         mem          mtdblock8    ram5         sdd          ttyS2        vcsa16
dvb-ci0      mixer        mtdblock9    ram6         sdd1         ttyS3        vcsa17
dvb-ci1      mixer1       mtdr0        ram7         sdd2         ttyp0        vcsa18
full         mixer2       mtdr1        ram8         sdd3         ttyp1        vcsa19
gpio         mixer3       mtdr10       ram9         sdd4         urandom      vcsa2
hda          ml9208       mtdr11       random       sdd5         usb-game     vcsa3
hda1         mouse        mtdr12       raw          sdd6         usb-jpeg     vcsa4
hda10        mpu401data   mtdr13       rawctl       sdd7         usb-mp3      vcsa5
hda11        mpu401stat   mtdr14       rawir        sequencer    usb-record   vcsa6
hda12        mtd0         mtdr15       rmidi0       smpte0       usb-upgrade  vcsa7
hda13        mtd1         mtdr16       rmidi1       smpte1       usbmouse     vcsa8
hda14        mtd10        mtdr2        rmidi2       smpte2       vcs          vcsa9
hda15        mtd11        mtdr3        rmidi3       smpte3       vcs0         vdec_dev
hda16        mtd12        mtdr4        rtc          sndstat      vcs1         vid
hda17        mtd13        mtdr5        sci0         stbgfx       vcs10        zero
hda18        mtd14        mtdr6        sci1         stderr       vcs11
hda19        mtd15        mtdr7        sda          stdin        vcs12
  • mtd* ovat ns. memory technology devices, eli käytännössä flashin osia
  • mielenkiintoisena yksityiskohtana usb-laitteet
  • kirjoittamalla esim: ls -l /proc/222/fd/ saat näkyviin mitä laitteita boksin pääohjelma /app/pvrmain käyttää, samalla näet esim socketit joita ohjelma käyttää kommunikointiin
  • stbgfx on onscreen display jota /app/application/httpd/grabpng ohjelma käyttää valikkonäkymän kaappaamiseen (?) ja niiden välittämiseen web käyttöliitymään
  • i2c-0 on ilmeisesti(?) käytössä kaukosäätimen toimintaan, ainakin web käyttöliittymän prosessit sitä käyttävät.

/ # fdisk -l

Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1               1          17      136521   83  Linux
/dev/hda2              18         181     1317330   83  Linux
/dev/hda3             182         247      530145   83  Linux
/dev/hda4             248       38913   310584645    5  Extended
/dev/hda5             248        2858    20972826   83  Linux
/dev/hda6            2859        4164    10490413+  83  Linux
/dev/hda7            4165       38913   279121311   83  Linux

/etc # mount

/dev/mtdblock2 on / type cramfs (ro)
/dev/mtdblock6 on /app type cramfs (ro)
/dev/mtdblock5 on /modules_sys type cramfs (ro)
/dev/mtdblock14 on /pgserver type cramfs (ro)
/dev/mtdblock15 on /app_sys type cramfs (ro)
proc on /proc type proc (rw,nodiratime)
ramfs on /var type ramfs (rw)
ramfs on /tmp type ramfs (rw)
none on /proc/bus/usb type usbdevfs (rw)
/dev/hda2 on /pvr type ext3 (rw)
/dev/hda3 on /program type ext3 (rw)
/dev/hda5 on /mnt/mp3 type vfat (rw,nodiratime,fmask=0022,dmask=0022)
/dev/hda6 on /mnt/jpeg type vfat (rw,nodiratime,fmask=0022,dmask=0022)
  • /dev/hda7 on varattu nauhoituksille, hakemistoon /pvr sisältää talletuksiin viittaavat tiedostot, kuten .event talletetut tiedoston ohjelmatiedot.


  • nmap
PORT      STATE SERVICE
21/tcp    open  ftp
23/tcp    open  telnet
80/tcp    open  http
30450/tcp open  unknown
34000/tcp open  unknown
34001/tcp open  unknown
34002/tcp open  unknown
34003/tcp open  unknown
34004/tcp open  unknown
34005/tcp open  unknown
49152/tcp open  unknown