Linux internals

From Spykee Developer Wiki

Revision as of 17:41, 5 December 2010 by Lustinblack (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Boot Messages

U-Boot 1.1.6 (Jan  2 2008 - 14:48:22)
Marvell Version: 2 Maryland

DRAM:  32 MB
Flash:  4 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Waiting for USB connection
USB not connected 
Hit any key to stop autoboot:  1 ??? 0 
## Booting image at ffc00000 ...
   Image Name:   Linux-
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    860684 Bytes = 840.5 kB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux............................................................ done, booting the kernel.
Linux version (bagland@rhuidean.wavestorm) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)) #1 PREEMPT Wed Apr 2 17:47:11 CEST 2008
CPU: ARM926EJ-Sid(wb) [41159261] revision 1 (ARMv5TE)
Machine: MV88W8618-SPYKEE
Using U-Boot  release
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists
Kernel command line: console=ttyS0,38400 root=/dev/mtdblock1 rootfstype=squashfs mtdparts=spykee:896k(KERNEL),2752k(ROOTFS),64k(SYSCONF),64k(LINUX_MANCONF),64k(UBOOT_CONF),-(UBOOT)ro
PID hash table entries: 256 (order: 8, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 30464KB available (1652K code, 182K data, 76K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Inersting MV88W8XX8 SRAM node at addr=0x00010000, len=65536 
Reserved 64 pages (page size 4096) starting from c0280000 for WLAN buffer pool
gpio: major=254, minor=0
Marvell USB EHCI Host controller
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Dynamic Power Management for MV8618.
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0xf800c840 (irq = 11) is a 16550
serial8250: ttyS1 at MMIO 0xf800c940 (irq = 11) is a 16550
RAMDISK driver initialized: 2 RAM disks of 4096K size 1024 blocksize
Found: SST 39VF3201
spykee: Found 1 x16 devices at 0x0 in 16-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
6 cmdlinepart partitions found on MTD device spykee
Found 6 partitions through the cmdline
Creating 6 MTD partitions on "spykee":
0x00000000-0x000e0000 : "KERNEL"
0x000e0000-0x00390000 : "ROOTFS"
0x00390000-0x003a0000 : "SYSCONF"
0x003a0000-0x003b0000 : "LINUX_MANCONF"
0x003b0000-0x003c0000 : "UBOOT_CONF"
0x003c0000-0x00400000 : "UBOOT"
Loading ehci-mv88w8xx8 
Inside ehci_mv88w8xx8_probe
ehci-mv88w8xx8 ehci-mv88w8xx8.1436: EHCI Host Controller
ehci-mv88w8xx8 ehci-mv88w8xx8.1436: new USB bus registered, assigned bus number 1
ehci-mv88w8xx8 ehci-mv88w8xx8.1436: irq 8, io mem 0xf8000100
ehci-mv88w8xx8 ehci-mv88w8xx8.1436: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux ehci_hcd
usb usb1: SerialNumber: ehci-mv88w8xx8.1436
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 76K

init started: BusyBox v1.7.2 (2008-04-02 17:50:53 CEST)

starting pid 160, tty '': '/etc/rc.sysinit'
Loading MV88w8xx8/max9851 Audio OSS driver 
usbcore: registered new driver snd-usb-audio
Silicon Labs C2 port support v. 0.50.0 - (C) 2007 Rodolfo Giometti
c2port0: new C2 port added
c2port0: flash has 8 blocks x 512 bytes (4096 bytes total)
rb: major=253, minor=0
network_hostname not found
syslog_remote not found
wlandrv: module license 'Proprietary' taints kernel.
WLAN module setup

WLAN mfg partition name is 'LINUX_MANCONF' (part num=3)
WLAN domain code = 0x10
WLAN device addr = 00:1c:3d:XX:XX:XX (from mfg part)
WLAN device name = wlan0
WLAN buffer pool starts from c0280000 size 0003fc00 (85 * 3072)

starting pid 233, tty '': '/etc/init.d/rcS'
cpu_speed not found
cfg: rm
cfg: rm
C2: already at the same version
test_mode not found
robot_ not found
watchdog_enable not found

Please press Enter to activate this console.

Network services

By default the robot listen on IPv4 ports 9000 and 9001. Before it is configured to use any other wifi network, it will provide its own ad-hoc network with IP address It will hand out IP addresses to others on this network using DHCP.

Original firmware, rootfs FileMap

bin  dev  etc  home  lib  mnt  opt  proc  root	sbin  sys  tmp	usr  var
ash	 df	 hostname  iptunnel  more	    rm	       touch
busybox  dmesg	 ip	   kill      mount	    rmdir      true
cat	 echo	 ipaddr    ln	     mv		    run-parts  umount
chmod	 false	 ipcalc    login     netstat	    sed        uname
cp	 grep	 iplink    ls	     ps		    sh	       usleep
date	 gunzip  iproute   mkdir     pwd	    sleep      vi
dd	 gzip	 iprule    mknod     quickboot.img  tar        zcat
audio	 mixer1     mtdblock5  ptyp8	  sda1	 sda8	  tty7	 ttyp7
audio1	 mtd0	    null       ptyp9	  sda10  sda9	  ttyp0  ttyp8
console  mtd1	    ptmx       quickboot  sda11  shm	  ttyP0  ttyp9
dsp	 mtd2	    pts        ram	  sda12  sndstat  ttyp1  ttyS0
dsp1	 mtd3	    ptyp0      ram0	  sda13  tty	  ttyP1  ttyS1
gpio	 mtd4	    ptyp1      ram1	  sda14  tty0	  ttyp2  ttyS2
kmem	 mtd5	    ptyp2      ram2	  sda2	 tty1	  ttyP2  ttyS3
log	 mtdblock0  ptyp3      ram3	  sda3	 tty2	  ttyp3  urandom
loop0	 mtdblock1  ptyp4      random	  sda4	 tty3	  ttyP3  video0
loop1	 mtdblock2  ptyp5      rb	  sda5	 tty4	  ttyp4  zero
mem	 mtdblock3  ptyp6      rtc	  sda6	 tty5	  ttyp5
mixer	 mtdblock4  ptyp7      sda	  sda7	 tty6	  ttyp6
332.img		  fstab	      release-version
default.cfg	  group     leds.conf	 profile      resolv.conf
dh1024.pem	  hostname  motd	 protocols    securetty
dpm_script	  hosts     mtab	 random-seed  services
dropbear	  init.d    network	 rc.d	      TZ
firmware-version  inittab   passwd	 rc.sysinit   udhcpc.script
dropbear_dss_host_key  dropbear_rsa_host_key
rcS  S05cpu_speed  S10nvram_check  S30leds  S35update_332  S36robot  S40wifi
/lib:	   modules
c2port_core.ko			modules.inputmap   snd-mixer-oss.ko
c2port_spykee.ko		modules.isapnpmap  snd-page-alloc.ko
compat_ioctl32.ko		modules.ofmap	   snd-pcm.ko
ext2.ko				modules.pcimap	   snd-pcm-oss.ko
fat.ko				modules.seriomap   snd-rawmidi.ko
i2c-algo-bit.ko			modules.symbols    snd-timer.ko
i2c-algo-mv88w8xx8_pcf50633.ko	modules.usbmap	   snd-usb-audio.ko
i2c-algo-mv88w8xx8_spi.ko	msdos.ko	   snd-usb-lib.ko
i2c-core.ko			nls_cp437.ko	   soundcore.ko
i2c-dev.ko			nls_iso8859-1.ko   usb-storage.ko
loop.ko				ov530.ko	   v4l1-compat.ko
max9851.ko			rb.ko		   v4l2-common.ko
modules.alias			scsi_mod.ko	   vfat.ko
modules.ccwmap			sd_mod.ko	   videodev.ko
modules.dep			snd-hwdep.ko	   wlandrv.ko
modules.ieee1394map		snd.ko
halt	  iwconfig  iwspy    mdev      reboot	wpa_cli
ifconfig  iwgetid   klogd    modprobe  rmmod	wpa_supplicant
init	  iwlist    logread  ping      syslogd	zcip
insmod	  iwpriv    lsmod    poweroff  udhcpc
bin  lib  sbin	share
[            display_ir_leds  killall	 robot_log	   test_audio
[[           du		      ledsd	 robot_status	   tftp
analog	     dumpleases       lex	 rz		   time
audio_mixer  env	      logger	 scp		   tr
basename     expr	      md5sum	 self_test	   traceroute
c2	     find	      mnft_test  set-leds	   uniq
cerberus     free	      msg_leds	 set_reg	   wc
cfg	     get_reg	      nc	 sort		   wget
clear	     head	      nslookup	 spykee_prod_test  xargs
cmp	     id		      rb	 sz		   yes
cut	     ipcrm	      readlink	 tail
dbclient     ipcs	      reset	 tee
dirname      iperf	      robot	 test
chroot	eraseall  flash_erase	  flash_lock	fw_setenv  udhcpd
crond	fcp	  flash_eraseall  flash_unlock	mtd_debug
erase	flashcp   flash_info	  fw_printenv	telnetd
ah-ah-ah.mp3  bip.mp3	camera.mp3     engine.mp3  robot.mp3
alarm.mp3     bomb.mp3	connected.mp3  lazer.mp3
cache  lib  lock  log  pcmcia  run  spool  tmp


Using command : cfg show



  • mtdblock0 = Linux Kernel
  • mtdblock1 = Squashfs RootFs
  • mtdblock2 = nvram configuration (64K)
  • mtdblock3 = Linux Configuration
  • mtdblock4 = U-Boot Configuration
  • mtdblock5 = U-Boot (boot loader)
Personal tools
Google AdSense