B600 V4A启动信息

来自IPTV爱好者
跳转至: 导航搜索

正常引导信息

CPU: STx7105  [32-bit mode]
Board: B600V4A Ver:0x00

U-Boot 1.3.1 (Sep 18 2009 - 09:56:17) - stm23-2009-06-29

DRAM:  128 MiB
NAND:   32 MiB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0 
mac_addr = 00:26:ED:34:56:02
Found kernel head at 0x600000
Found LOGO data at 0x580000
Found normal kernel image at 0x600000
------------------------------ 
	Partition Name: ker
	Partition Size: 0x001b848a
	Load address:   0x80800000
	Entry point:    0x80801000
	Version:        V40232408 2011-03-31
	CRC:            0x7eb20000
	Reserver1:      0x00000054
	Reserver2:      0x0000001c
------------------------------
Load 0x001b848a bytes kernel image from 0x00600060 to 0x81c00000......used 648 ms, 2783 Kbps
rf output 0
## Booting image at 81c00000 ...
   Image Name:   Linux-2.6.23.17_stm23_A18B-pdk71
   Image Type:   SuperH Linux Kernel Image (gzip compressed)
   Data Size:    1803338 Bytes =   1.7 MiB
   Load Address: 80800000
   Entry Point:  80801000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... (used 398 ms) OK

Starting kernel console=ttyAS0,115200 root=/dev/mtdblock7 rootfstype=jffs2 rw nwhwconf=device:eth0,hwaddr:00:26:ED:34:56:02 ip=192.168.3.12:10.16.8.xx:192.168.3.1:255.255.255.0:STB:eth0:off mem=84M bigphysarea=2000 dispmode=p dbglevel=1 enableconsole=1  boardtype=0  - 0x00000000 - 0 ...

boot_time=1366 ms
Starting Kernel ...

<5>Linux version 2.6.23.17_stm23_A18B-pdk7105 (lixianjun@linux-s5uw58203) (gcc version 4.2.4 (snapshot) (STMicroelectronics/Linux Base 4.2.4-42)) #184 PREEMPT Sat May 8 13:07:26 EDT 2010
<4>cmdline change: bigphysarea=2000 
<5>Booting machvec: pdk7105
<7>Entering add_active_range(0, 262144, 283648) 0 entries of 1 used
<4>Node 0: start_pfn = 0x40000, low = 0x45400
<4>Zone PFN ranges:
<4>  Normal     262144 ->   283648
<4>Movable zone start PFN for each node
<4>early_node_map[1] active PFN ranges
<4>    0:   262144 ->   283648
<7>On node 0 totalpages: 21504
<7>  Normal zone: 168 pages used for memmap
<7>  Normal zone: 0 pages reserved
<7>  Normal zone: 21336 pages, LIFO batch:3
<7>  Movable zone: 0 pages used for memmap
<4>ZTE STB7105 Board Initialisation
<4>STx7105 version 3.x
<4>Built 1 zonelists in Zone order.  Total pages: 21336
<5>Kernel command line: console=ttyAS0,115200 root=/dev/mtdblock7 rootfstype=jffs2 rw nwhwconf=device:eth0,hwaddr:00:26:ED:34:56:02 ip=192.168.3.12:192.168.3.10:192.168.3.1:255.255.255.0:STB:eth0:off mem=84M bigphysarea=2000 dispmode=p dbglevel=1 enableconsole=1  boardtype=0 
<6>bpa2: partition 'bigphysarea' created at 0x40bf3000, size 8000 kB (0x007d0000 B)
<4>console_printk: 1 4 1 7
<4>intc: missing unique irq mask for irq 18 (vect 0x0440)
<4>intc: missing unique irq mask for irq 19 (vect 0x0460)
<4>PID hash table entries: 512 (order: 9, 2048 bytes)
<6>Using tmu for system timer
<4>Using 25.000 MHz high precision timer.
<4>Console: colour dummy device 80x25
<6>console [ttyAS0] enabled
<6>Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>Memory: 65664k/86016k available (2341k kernel code, 742k data, 120k init)
<4>PVR=04909200 CVR=60880000 PRR=00009e20
<4>I-cache : n_ways=2 n_sets=512 way_incr=16384
<4>I-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
<4>D-cache : n_ways=2 n_sets=512 way_incr=16384
<4>D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
<7>Calibrating delay loop... 446.46 BogoMIPS (lpj=223232)
<4>Mount-cache hash table entries: 512
<4>CPU: STx7105
<6>NET: Registered protocol family 16
<4>Audio noise setup
<4>logo_disp: V1.1_2009.05.18, Compiled at: May  8 2010 12:52:52
<4>disp_mode: 0x1
<6>[draw_logo]:  Enter draw_logo for the logo ...
<4>Found LOGO partition at 0x84000000
<4> logo information....:
<4>logo size:0x00027ba0,crc:0x0000572c
<4>logo offset=0x01000000
<4>logo head.offset=0x00006000
<6>[draw_logo]:  Start to decode all LOGO files...
<6>[draw_logo]:  Start to show the first LOGO...
<6>[draw_logo]: Create a logo thread : lasttime =13, step =1, percent=100, ptr=c1065000
<6>[logo_progress]: Enter logo_progress(ptr=c1065000) with param (13,1) 
<6>[draw_logo]: LOGO (decode+show) costs time (235 ticks ,235 ms)
<4>cramfs_size = 0x1400000
<6>Generic PHY: Registered new driver
<5>SCSI subsystem initialized
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Time: SuperH clocksource has been installed.
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>TCP established hash table entries: 4096 (order: 3, 32768 bytes)
<6>TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
<6>TCP: Hash tables configured (established 4096 bind 4096)
<6>TCP reno registered
<6>JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
<6>io scheduler noop registered (default)
<6>lirc_dev: IR Remote Control driver registered, major 61 
<6>lirc_stm: probe found data for platform device lirc
<6>lirc_stm: STM LIRC plugin has IRQ 244 using IR-RX mode
<6>lirc_stm: lirc_stm_calc_rx_clocks: IR clock is 100000000
<3>lirc_stm: SCD not available in IR-RX mode. Not armed
<6>lirc_dev: lirc_register_plugin: sample_rate: 0
<6>STMicroelectronics LIRC driver initialized.
<6>STMicroelectronics ASC driver initialized
<6>stasc.0: ttyAS0 at MMIO 0xfd032000 (irq = 121) is a stasc
<4>RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
<7>stmmacphy_dvr_probe: added phy for bus 0
<7>STMMAC driver:
<4>	platform registration... <7>done!
<6>	GMAC - user ID: 0x10, Synopsys ID: 0x33
<4>	no valid MAC address; please, set using ifconfig or nwhwconfig!
<6>	eth0 - (dev. name: stmmaceth - id: 0, IRQ #134
<4>	IO base addr: 0xfd110000)
<7>	Registering MDIO bus (id: 0)...
<7>calling mdiobus_register
<7>stmmac_mdio_reset: called!
<7>stmmac_mdio_reset: calling phy_reset
<7>mdiobus_register: found PHY and assigning IRQ 0
<6>STMMAC MII Bus: probed
<7>calling mdiobus_register done
<6>eth0: PHY ID 00008201 at 15 IRQ -1 (0:0f) active
<7>	MDIO bus registered!
<6>PPP generic driver version 2.4.2
<6>NET: Registered protocol family 24
<6>nwhw_config: (eth0) setting mac address: 00:26:ED:34:56:02
<6>Linux video capture interface: v2.00
<6>NAND device: Manufacturer ID: 0x20, Chip ID: 0x75 (ST Micro NAND 32MiB 3,3V 8-bit)
<6>Scanning device for bad blocks
<4>Bad eraseblock 0 at 0x00000000
<4>Bad eraseblock 1 at 0x00004000
<4>Bad eraseblock 2 at 0x00008000
<4>Bad eraseblock 3 at 0x0000c000
<4>Bad eraseblock 4 at 0x00010000
<4>Bad eraseblock 5 at 0x00014000
<4>Bad eraseblock 6 at 0x00018000
<4>Bad eraseblock 7 at 0x0001c000
<4>Bad eraseblock 8 at 0x00020000
<4>Bad eraseblock 9 at 0x00024000
<5>Creating 9 MTD partitions on "stm-nand-flex.0":
<5>0x00000000-0x02000000 : "all"
<5>0x00000000-0x000a0000 : "boot"
<5>0x000a0000-0x00480000 : "safe"
<5>0x00480000-0x00540000 : "conf"
<5>0x00540000-0x00580000 : "log"
<5>0x00580000-0x00600000 : "logo"
<5>0x00600000-0x00880000 : "kern"
<5>0x00880000-0x00c00000 : "root"
<5>0x00c00000-0x02000000 : "cramfs"
<7>ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
<6>stm-ehci stm-ehci.0: st-ehci
<6>stm-ehci stm-ehci.0: new USB bus registered, assigned bus number 1
<6>stm-ehci stm-ehci.0: irq 169, io mem 0xfe1ffe00
<6>stm-ehci stm-ehci.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
<6>usb usb1: configuration #1 chosen from 1 choice
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
<6>stm-ohci stm-ohci.0: stm-ohci
<6>stm-ohci stm-ohci.0: new USB bus registered, assigned bus number 2
<6>stm-ohci stm-ohci.0: irq 168, io mem 0xfe1ffc00
<6>usb usb2: configuration #1 chosen from 1 choice
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
<6>stm-ehci stm-ehci.1: st-ehci
<6>stm-ehci stm-ehci.1: new USB bus registered, assigned bus number 3
<6>stm-ehci stm-ehci.1: irq 143, io mem 0xfeaffe00
<6>stm-ehci stm-ehci.1: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
<6>usb usb3: configuration #1 chosen from 1 choice
<6>hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 1 port detected
<6>stm-ohci stm-ohci.1: stm-ohci
<6>stm-ohci stm-ohci.1: new USB bus registered, assigned bus number 4
<6>stm-ohci stm-ohci.1: irq 142, io mem 0xfeaffc00
<6>usb usb4: configuration #1 chosen from 1 choice
<6>hub 4-0:1.0: USB hub found
<6>hub 4-0:1.0: 1 port detected
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
<6>i2c /dev entries driver
<6>usbcore: registered new interface driver usbhid
<6>drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
<4>STMicroelectronics - Coprocessors st231 Init
<4>st-coprocessor-0: No RAM reserved
<4>st231.0 Coprocessor -------------------------------------------
<4>    not configured!
<4>---------------------------------------------------------------
<4>st-coprocessor-1: No RAM reserved
<4>st231.1 Coprocessor -------------------------------------------
<4>    not configured!
<4>---------------------------------------------------------------
<6>stm_rng hardware driver 1.0 configured
<4>STB7105 Board Controller Driver V1.1_2009.06.12
<4>bdctrl: insmod date and time: May  8 2010 12:52:56
<6>TCP cubic registered
<6>NET: Registered protocol family 1
<6>NET: Registered protocol family 17
<7>stmmac_init_phy:  trying to attach to 0:0f
<7>stmmac_init_phy:  eth0: attached to PHY (UID 0x8201) Link = 1
<4>IP-Config: Complete:
<4>      device=eth0, addr=192.168.3.12, mask=255.255.255.0, gw=192.168.3.1,
<4>     host=STB, domain=, nis-domain=(none),
<4>     bootserver=192.168.3.10, rootserver=192.168.3.10, rootpath=
<5>jffs2_scan_inode_node(): CRC failed on node at 0x0036c7dc: Read 0xffffffff, calculated 0x7c0105bd
<4>Empty flash at 0x0036c834 ends at 0x0036ca00
<4>Empty flash at 0x0036d920 ends at 0x0036da00
<4>Empty flash at 0x0037aeb4 ends at 0x0037b000
<5>jffs2_scan_inode_node(): CRC failed on node at 0x0037b7d4: Read 0xffffffff, calculated 0xc1d38ba8
<4>Empty flash at 0x0037b818 ends at 0x0037ba00
<4>VFS: Mounted root (jffs2 filesystem).

U-Boot命令

U-Boot> ?
?       - alias for 'help'
askenv  - get environment variables from stdin
autoscr - run script from memory
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bootsys - boot system
burnimg - burn image data into flash
cmp     - memory compare
coninfo - print console devices and information
copybbt - copies abridged version of NAND BBT
cp      - memory copy
crc32   - checksum calculation
dhcp    - invoke DHCP client to obtain IP/boot params
echo    - echo args to console
exit    - exit script
go      - start application at address 'addr'
help    - print online help
iminfo  - print header information for application image
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
normal  - enter norm mode
ping    - send ICMP ECHO_REQUEST to network host
pmb     - displays the contents of the PMB
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
readconf- read config from conf partition
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
safe    - enter safe mode
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sleep   - delay execution for some time
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
U-Boot>
U-Boot> printenv
bootargs=console=ttyAS0,115200 root=/dev/mtdblock7 rootfstype=jffs2 nwhwconf=device:eth0,hwaddr:00:FA:E0:FA:66:D0 ip=10.16.8.66::10.16.8.3:255.255.255.0:::off bigphysarea=2000
bootcmd=bootsys
bootdelay=0
baudrate=115200
netmask=255.255.255.0
ipaddr=192.168.3.12
ethaddr=00:15:16:17:18:19
gatewayip=192.168.3.1
serverip=192.168.3.10
stdin=serial
stdout=serial
stderr=serial

Environment size: 373/16380 bytes
U-Boot>

引导脚本rcS

cat /etc/rc.d/rcS
#!/bin/sh

HOSTNAME=STLinux
mount -a
mount -n /dev/root / -o remount,rw
#mount -t proc proc /proc
mount -t devpts devpts /dev/pts
mount -t usbfs none /proc/bus/usb
mount -t tmpfs -o size=3948k tmpfs /var

mkdir -p /dev/stapi
mount -t ramfs ramfs /dev/stapi

mkdir -p /tmp
mount -t ramfs ramfs /tmp

# insmod nand bad managment module
if [ ! -d /cramfs ]; then
        mkdir /cramfs
fi
insmod /etc/nandbm.ko partition=8
mount -t cramfs /dev/nandbm/8 /cramfs

#mount -t jffs2 /dev/mtdblock8 /cramfs
mount -t sysfs none /sys

[ ! -L font ] && ln -s /cramfs/font font
[ ! -L /bin/stb ] && ln -s /cramfs/bin /bin/stb
[ ! -L /lib/modules26 ] && ln -s /cramfs/lib /lib/modules26
[ ! -L /bin/javaprocess ] && ln -s /cramfs/bin/javaprocess /bin/javaprocess
[ ! -L /bin/hw_test ] && ln -s /cramfs/bin/hw_test /bin/hw_test
[ ! -L /zteui ] && ln -s /cramfs/zteui zteui

#
# Starting udevd
#
mkdir -p /var/mnt/
mkdir -p /var/mntt/
mkdir -p /var/log/
mkdir -p /var/qos/
mkdir -p /var/js_cri
mkdir -p /var/ppp/
echo "Starting udevd..."
/etc/udev/udevd --daemon
/etc/udev/udevtrigger

insmod /cramfs/lib/led.ko
#insmod /cramfs/lib/key.ko
#insmod /cramfs/lib/usbserial.ko
#insmod /cramfs/lib/cypress_m8.ko
insmod /cramfs/lib/serial_ir_kasen.ko
mknod /dev/kansen c 100 0
mknod /dev/ttyUSB0 c 188 0

export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/cramfs/bin
export LD_LIBRARY_PATH=/lib:/lib/mwframe

#Start some demons
#/sbin/syslogd
#/sbin/udhcpc -i eth0 -H $HOSTNAME -s /etc/udhcpc.script
#/sbin/sysctl -w net.ipv4.conf.eth0.force_igmp_version=2
/bin/hostname $HOSTNAME

#
# start telnet tool from PC tool
#
#/usr/sbin/telnetd &
#/usr/sbin/telnetd -l /bin/sh

date -s 010100001970
ifconfig lo 127.0.0.1
ifconfig eth0 192.168.1.12

mkdir -p /var/state/dhcp

echo "" > /var/state/dhcp/dhclient.leases

echo    "20000  20100" > /proc/sys/net/ipv4/ip_local_port_range
echo 2 > /proc/sys/net/ipv4/conf/eth0/force_igmp_version
echo 2 > /proc/sys/net/ipv4/conf/wlan0/force_igmp_version

echo 2 > /proc/sys/net/ipv4/tcp_syn_retries
echo 3 > /proc/sys/net/ipv4/tcp_synack_retries

echo 131072 > /proc/sys/net/core/rmem_default
echo 655360 > /proc/sys/net/core/rmem_max
echo 1048576 2097152 3145728 > /proc/sys/net/ipv4/tcp_rmem

#
# disable to output kernel debug info
#
echo 1 > /proc/sys/kernel/printk

#
# Prepare for JAVA
#
cd /var
mkdir tmp
mkdir java
cd java
mkdir appdb

mkdir /var/run
mkdir /var/IrCard
mkdir /var/wpa_supplicant

cd /bin/stb
./start


cat /bin/stb/start
#!/bin/sh

export PATH=$PATH:/cramfs/bin/
cp /zteui/jsmsgbox /var/js -rf
cd /bin/stb
./start_cfg&
#./stbcfg remote&
. /bin/stb/load_env.sh
. /bin/stb/load_modules.sh
./vplayer&
./usbcheck&
./hw_test_manager&
#./mainapp&
#./getcaption&
#./nano-X -p&
#./mqplug&
#./ztebw&
#./javawatch&
#./ucclient&
#./mixer&
#./ftp&
#./localplayer&
#./appup checkconf&
#./diskformat&
#./v200&


cat /etc/inittab
# /etc/inittab init(8) configuration for BusyBox
::sysinit:/etc/rc.d/rcS
ttyAS0::respawn:-/bin/sh
ttyAS0::respawn:/cramfs/bin/mainapp 0>/dev/null
ttyAS0::respawn:/cramfs/bin/stbcfg remote 0>/dev/null
ttyAS0::respawn:/cramfs/bin/getcaption 0>/dev/null
ttyAS0::respawn:/cramfs/bin/nano-X -p
ttyAS0::respawn:/cramfs/bin/ztebw 0>/dev/null
ttyAS0::respawn:/cramfs/bin/javawatch
ttyAS0::respawn:/cramfs/bin/mixer
ttyAS0::respawn:/cramfs/bin/mqplug
ttyAS0::respawn:/cramfs/bin/logupload
#ttyAS1::respawn:/cramfs/bin/ucclient
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init