华为EC5108机顶盒

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

相关链接:

上海版EC5108在江苏使用

概述

目前到手的EC5108是上海电信版本,系统设置密码为:8005。缺省开了telnetd,登录用户:root,没有密码。

MTD分区信息:

0x0000000000000000-0x0000000002800000 (2800000): "root0"	/dev/mtdblock0		flash0.root0
0x0000000002800000-0x0000000005000000 (2800000): "root1"	/dev/mtdblock1		flash0.root1
0x0000000005000000-0x0000000007600000 (2600000): "roothome"	/dev/mtdblock2		flash0.roothome
0x0000000007600000-0x0000000007900000 ( 300000): "kernel0"	/dev/mtdblock3		flash0.kernel0
0x0000000007900000-0x0000000007c00000 ( 300000): "kernel1"	/dev/mtdblock4		flash0.kernel1
0x0000000007c00000-0x0000000007d80000 ( 180000): "cfe"		/dev/mtdblock5		flash0.cfe
0x0000000007d80000-0x0000000007de0000 (  60000): "nvram"	/dev/mtdblock6		flash0.nvram
0x0000000007de0000-0x0000000007e40000 (  60000): "nvram_bak"	/dev/mtdblock7		flash0.nvram_bak
0x0000000007e40000-0x0000000007ea0000 (  60000): "config0"	/dev/mtdblock8		flash0.config0	
0x0000000007ea0000-0x0000000007f00000 (  60000): "config1"	/dev/mtdblock9		flash0.config1
0x0000000007f00000-0x0000000008000000 ( 100000): "kreserve"	/dev/mtdblock10		flash0.kreserv

Linux文件系统:

# mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
tmpfs on /var type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/mtdblock2 on /root type yaffs2 (rw)

文件系统都是yaffs,但根目录mount成只读的,估计防止意外破坏。可以用下面的命令将根目录设置为可写:

mount -o rw,remount /

/var目录采用tmpfs,只能暂存一些临时内容。

/root目录使用单独的分区,而且是可写的,用于保存配置信息和功能扩展。下面是分区空间情况,扩展余地还是很大的。

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                   40960     38616      2344  94% /
/dev/root                40960     38616      2344  94% /
tmpfs                    20480      3732     16748  18% /var
/dev/mtdblock2           38912      2232     36680   6% /root

Linux进程信息:

# ps
  PID PORT STAT SIZE SHARED %CPU COMMAND
    1      S      0K     0K  0.0 init
    2      S      0K     0K  0.0 ksoftirqd/0
    3      S      0K     0K  0.0 events/0
    4      S      0K     0K  0.0 khelper
    5      S      0K     0K  0.0 kthread
    6      S      0K     0K  0.0 kblockd/0
    7      S      0K     0K  0.0 khubd
    8      S      0K     0K  0.0 pdflush
    9      S      0K     0K  0.0 pdflush
   10      S      0K     0K  0.0 kswapd0
   11      S      0K     0K  0.0 aio/0
   12      S      0K     0K  0.0 mtdblockd
   13      S      0K     0K  0.0 romblockd
   35      S      0K     0K  0.0 portmap
   37      R      0K     0K  0.0 utelnetd -d
   48      S      0K     0K  0.0 /home/yx5911/bin/back_upgrade
   54      S      0K     0K  0.0 /home/yx5911/bin/usbmounter
   67      S      0K     0K  6.3 ./telecom.elf -runlevel=1
   71   S0 S      0K     0K  0.0 /bin/getty -L ttyS0 115200 vt102
  122      S      0K     0K  0.0 -sh
  145      R      0K     0K  0.0 ps
#
# free
              total         used         free       shared      buffers
  Mem:       125248        60284        64964            0            0

Bootloader

CFE启动信息

BCM74130011
012
K1
K2

K3

K4

K5

Shmoo Version=3.5
DDR Freq=0x0000010E
%00000001%
RC1=00000002
WC1=FFFFFFD4
RC2=0000001B
WC2=0000003F
RC3=0000000E
WC3=FFFFFFD4
RC4=0000000E
WC4=00000041
NWC=0000000A
RC5=00000002
WC5=0000000A
RC6=0000001A
WC6=0000000A
NRC=0000000E
RW=00000019
WW=0000006E
G=00000000 R=0000000E W=0000000A 
BL=00000000
RC1=00000001
RC2=00000019

BL=00000001
RC1=00000002
RC2=00000019

BL=00000002
RC1=00000000
RC2=00000019

BL=00000003
RC1=00000001
RC2=0000001F

BL=00000004
RC1=00000001
RC2=0000001B

BL=00000005
RC1=00000001
RC2=0000001A

BL=00000006
RC1=00000003
RC2=0000001F

BL=00000007
RC1=00000001
RC2=0000001E
3
COPY CODE
A567

BCM97413B1 CFE v2.21.2524, CFE core v2.12, Endian Mode: Little
Build Date: Wed Dec 16 09:06:13 CST 2009 (dinglei@localhost)
Copyright (C) Beijing Yuxing Software Co., Ltd.

DDR Freq:      270MHz
CPU speed:     405MHz
Memory Config: 64-bit UMA
Device Tech:   512Mb
Total memory:  256MB
Boot Device:   NAND XOR
Total flash:   128MB

CFE> help
Available commands:

flash               Update a flash memory device
setmemsize          Set OS memory size.
setrunlevel         Set run level
d                   Dump memory.
batch               Load a batch file into memory and execute it
go                  Start a previously loaded program.
load                Load an executable file into memory without executing it
save                Save a region of memory to a remote file via TFTP
boot                Load an executable file into memory and execute it
ping                Ping a remote IP host.
ifconfig            Configure the Ethernet interface
show heap           Display information about CFE's heap
show memory         Display the system physical memory map.
show osd            Display OSD.
show devices        Display information about the installed devices.
unsetenv            Delete an environment variable.
printenv            Display the environment variables
setenv              Set an environment variable.
help                Obtain help for CFE commands

For more information about a command, enter 'help command-name'
*** command status = 0
CFE> show devices
Device Name          Description
-------------------  ---------------------------------------------------------
              uart0  16550 DUART at 0xB0400B00 channel 0
       flash0.root0  New NAND flash at 18000000 offset 00000000 size 40960KB
       flash0.root1  New NAND flash at 18000000 offset 02800000 size 40960KB
    flash0.roothome  New NAND flash at 18000000 offset 05000000 size 38912KB
     flash0.kernel0  New NAND flash at 18000000 offset 07600000 size 3072KB
     flash0.kernel1  New NAND flash at 18000000 offset 07900000 size 3072KB
         flash0.cfe  New NAND flash at 18000000 offset 07C00000 size 1536KB
       flash0.nvram  New NAND flash at 18000000 offset 07D80000 size 384KB
   flash0.nvram_bak  New NAND flash at 18000000 offset 07DE0000 size 384KB
     flash0.config0  New NAND flash at 18000000 offset 07E40000 size 384KB
     flash0.config1  New NAND flash at 18000000 offset 07EA0000 size 384KB
     flash0.kreserv  New NAND flash at 18000000 offset 07F00000 size 1024KB
               eth0  BCM7038 Internal Ethernet at 0xB0080000
*** command status = 0
CFE> printenv 
Variable Name        Value
-------------------- --------------------------------------------------
        BOOT_CONSOLE uart0
              SPLASH ENABLE
          CFEVERSION 2.21.2524
           BOARDNAME YX6965A
FRONTPANEL_S_VERSION 8
FRONTPANEL_H_VERSION 24
              BOOTOK 6
            RUNLEVEL 1
      ROOTFS0VERSION 10030.4.1410
      ROOTFS1VERSION 10030.4.1410
      KERNEL0VERSION 3.6.2515
      KERNEL1VERSION 3.6.2515
              ROOTFS 1
           BAKROOTFS 0
              KERNEL 1
           BAKKERNEL 0
            BOOTTIME 0
          DRAM0_SIZE 256
          DRAM1_SIZE 0
          FLASH_TYPE NAND XOR
          FLASH_SIZE 128
      CFE_MEMORYSIZE 128
          NET_DEVICE eth0
          NET_IPADDR 0.0.0.0
         NET_NETMASK 0.0.0.0
         NET_GATEWAY 0.0.0.0
      NET_NAMESERVER 0.0.0.0
*** command status = 0

Linux

Linux引导信息:

Starting ...
Loading: ........... 131072 bytes read
Entry address is 0x8706b798
Serial code2: 51081008H0D014007
Board name: YX6965A
MAC address: 00:07:67:d6:46:b7
Loading: ............ 48976 bytes read
Entry address is 0x8708ba10
Jpeg info: width=720 height=576
bootindex=0, kernel=1, root=1
Loading: 0x80001000/3216320 0x80314000/401541 0x80376085/167815 Entry address is 0x80353000
TP1 Entry Address at 0x80000ffc = 80353000
Starting program at 0x80353000

<5>Linux version 2.6.18-7.1-yx5915 (YX6965A-3.6.2515 by liuxiaonian@localhost) (gcc version 4.2.0 20070124 (prerelease) - BRCM 10ts-20080721) #19 PREEMPT Fri Dec 11 11:13:27 CST 2009
Fetching vars from bootloader... OK (e,D,b,C)
Detected 256 MB on MEMC0 (strap 0x22b40012)
rac = 255
g_board_RAM_size=256MB
Options: sata=0 enet=1 emac_1=1 no_mdio=0 docsis=0 ebi_war=0 pci=1 smp=0
CPU revision is: 0002a044
FPU revision is: 00130001
Primary instruction cache 32kB, physically tagged, 2-way, linesize 64 bytes.
Primary data cache 64kB, 4-way, linesize 64 bytes.
<6>Synthesized TLB refill handler (20 instructions).
<6>Synthesized TLB load handler fastpath (32 instructions).
<6>Synthesized TLB store handler fastpath (32 instructions).
<6>Synthesized TLB modify handler fastpath (31 instructions).
Determined physical RAM map:
 memory: 10000000 @ 00000000 (usable)
User-defined physical RAM map:
node [00000000, 08000000: RAM]
node [08000000, 08000000: RSVD]
<5>Reserving 128 MB upper memory starting at 08000000
<7>On node 0 totalpages: 65536
<7>  DMA zone: 65536 pages, LIFO batch:15
Built 1 zonelists.  Total pages: 65536
<5>Kernel command line: root=/dev/mtdblock1 ro kernel=flash0.kernel1 runlevel=1 eth-mac-addr=0x0,0x7,0x67,0xd6,0x46,0xb7 mem=128M brcmrac=0xFF   console=ttyS0,115200

# dmesg
<4>PID hash table entries: 2048 (order: 11, 8192 bytes)
<4>Found MIPS counter frequency: 203 Mhz
<4>Using 202.501 MHz high precision timer.
<4>Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
<4>Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>Memory: 124928k/262144k available (2858k kernel code, 137040k reserved, 538k data, 144k init, 0k highmem)
<7>Calibrating delay loop... 404.48 BogoMIPS (lpj=808960)
<4>Mount-cache hash table entries: 512
<4>Checking for 'wait' instruction...  available.
<6>NET: Registered protocol family 16
<5>SCSI subsystem initialized
<6>usbcore: registered new driver usbfs
<6>usbcore: registered new driver hub
<6>NET: Registered protocol family 2
<4>IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
<4>TCP established hash table entries: 8192 (order: 3, 32768 bytes)
<4>TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
<6>TCP: Hash tables configured (established 8192 bind 4096)
<6>TCP reno registered
<6>brcm-pm: disabling power to USB block
<4>PINMUX11 = -0x9241249
<6>brcm-pm: disabling power to ENET block
<6>brcm-pm: disabling power to SATA block
<4>yaffs Dec 11 2009 11:09:50 Installing.
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
<6>io scheduler deadline registered
<6>io scheduler cfq registered
<6>Serial: 8250/16550 driver $Revision: 1.90 $ 3 ports, IRQ sharing disabled
<6>serial8250: ttyS0 at MMIO 0x0 (irq = 22) is a 16550A
<6>serial8250: ttyS1 at MMIO 0x0 (irq = 66) is a 16550A
<6>serial8250: ttyS2 at MMIO 0x0 (irq = 67) is a 16550A
<6>loop: loaded (max 8 devices)
<6>brcm-pm: enabling power to ENET block
<4>Broadcom BCM7413 P21 Ethernet Network Device v2.0 Dec 11 2009 11:10:43
<6>Config Internal PHY Through MDIO: 100 MB Full-Duplex (auto-neg)
<6>PPP generic driver version 2.4.2
<6>NET: Registered protocol family 24
<4>Broadcom STB NAND controller (BrcmNand Controller)
<4>i=0, CS[0] = 0
<6>brcmnand_probe: CS0: dev_id=20f1001d
<4>After: NandSelect=40000101, nandConfig=15142200
<6>NAND Config: Reg=15142200, chipSize=128 MB, blockSize=128K, erase_shift=11
<6>busWidth=1, pageSize=2048B, page_shift=11, page_mask=000007ff
<4>timing1 not adjusted: 5363444f
<4>timing2 not adjusted: 00000fc6
<6>BrcmNAND mfg 20 f1 ST NAND01GW3B2B 128MB
<4>
<4>Found NAND: ACC=f7ff1010, cfg=15142200, flashId=20f1001d, tim1=5363444f, tim2=00000fc6
<6>BrcmNAND version = 0x0302 128MB @00000000
<6>brcmnand_probe: CS0: dev_id=20f1001d
<4>After: NandSelect=40000101, nandConfig=15142200
<4>Found NAND chip on Chip Select 0, chipSize=128MB, usable size=128MB, base=0x
<4>brcmnand_scan: B4 nand_select = 40000101 flat=0
<4>brcmnand_scan: After nand_select = 40000101
<6>page_shift=11, bbt_erase_shift=17, chip_shift=27, phys_erase_shift=17
<6>Brcm NAND controller version = 3.2 NAND flash size 128MB @18000000
<6>mtd->oobsize=64, mtd->eccOobSize=16
<6>brcmnand_scan:  mtd->oobsize=64
<6>brcmnand_scan: oobavail=50, eccsize=512, writesize=2048
<6>brcmnand_scan, eccsize=512, writesize=2048, eccsteps=4, ecclevel=15, eccbytes=3
<4>brcmnand_default_bbt: bbt_td = bbt_main_descr
<7>Bad block table found at page 65472, version 0xFF
<7>Bad block table found at page 65408, version 0xFF
<6>brcmnandCET: Status -> Deferred
<4>     numchips=1, size=8000000
<5>Creating 11 MTD partitions on "bcm7xxx-nand.0":
<5>0x0000000000000000-0x0000000002800000 : "root0"
<5>0x0000000002800000-0x0000000005000000 : "root1"
<5>0x0000000005000000-0x0000000007600000 : "roothome"
<5>0x0000000007600000-0x0000000007900000 : "kernel0"
<5>0x0000000007900000-0x0000000007c00000 : "kernel1"
<5>0x0000000007c00000-0x0000000007d80000 : "cfe"
<5>0x0000000007d80000-0x0000000007de0000 : "nvram"
<5>0x0000000007de0000-0x0000000007e40000 : "nvram_bak"
<5>0x0000000007e40000-0x0000000007ea0000 : "config0"
<5>0x0000000007ea0000-0x0000000007f00000 : "config1"
<5>0x0000000007f00000-0x0000000008000000 : "kreserve"
<4>ehci_hcd_brcm_init: Initializing 2 EHCI controller(s)
<6>brcm-pm: enabling power to USB block
<4>10 Dec 2004 USB 2.0 'Enhanced' Host Controller (EHCI) Driver (EHCI-brcm-0)
<4>drivers/usb/host/ehci-brcm.c: starting brcm EHCI USB Controller
<4> - USB h/w setup mode <N>
<4> - USB power enable set for active HIGH mode
<6>brcm-ehci brcm-ehci.0: BRCM EHCI
<6>brcm-ehci brcm-ehci.0: new USB bus registered, assigned bus number 1
<6>brcm-ehci brcm-ehci.0: irq 62, io mem 0x10480300
<6>brcm-ehci brcm-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: 2 ports detected
<4>10 Dec 2004 USB 2.0 'Enhanced' Host Controller (EHCI) Driver (EHCI-brcm-1)
<4>drivers/usb/host/ehci-brcm.c: starting brcm EHCI USB Controller
<6>brcm-ehci-1 brcm-ehci-1.1: BRCM EHCI
<6>brcm-ehci-1 brcm-ehci-1.1: new USB bus registered, assigned bus number 2
<6>brcm-ehci-1 brcm-ehci-1.1: irq 57, io mem 0x10480500
<6>brcm-ehci-1 brcm-ehci-1.1: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
<6>usb usb2: configuration #1 chosen from 1 choice
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 2 ports detected
<4>ohci_hcd_brcm_init: Initializing 2 OHCI controller(s)
<4>2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (OHCI-brcm-0)
<4>drivers/usb/host/ohci-brcm.c: starting brcm OHCI USB Controller
<4> - Resetting at b0480408
<4><-- brcm_start_hc
<6>brcm-ohci-0 brcm-ohci-0.0: BRCM OHCI
<6>brcm-ohci-0 brcm-ohci-0.0: new USB bus registered, assigned bus number 3
<6>brcm-ohci-0 brcm-ohci-0.0: irq 63, io mem 0x10480400
<6>usb usb3: configuration #1 chosen from 1 choice
<6>hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 2 ports detected
<4>2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (OHCI-brcm-1)
<4>drivers/usb/host/ohci-brcm.c: starting brcm OHCI USB Controller
<4> - Resetting at b0480608
<4><-- brcm_start_hc
<6>brcm-ohci-1 brcm-ohci-1.1: BRCM OHCI
<6>brcm-ohci-1 brcm-ohci-1.1: new USB bus registered, assigned bus number 4
<6>brcm-ohci-1 brcm-ohci-1.1: irq 64, io mem 0x10480600
<6>usb usb4: configuration #1 chosen from 1 choice
<6>hub 4-0:1.0: USB hub found
<6>hub 4-0:1.0: 2 ports detected
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new driver usb-storage
<6>USB Mass Storage support registered.
<6>usbcore: registered new driver usbhid
<6>drivers/usb/input/hid-core.c: v2.6:USB HID core driver
<6>usbcore: registered new driver usbserial
<6>drivers/usb/serial/usb-serial.c: USB Serial Driver core
<6>drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
<6>usbcore: registered new driver pl2303
<6>drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
<6>mice: PS/2 mouse device common for all mice
<6>TCP bic registered
<6>NET: Registered protocol family 1
<6>NET: Registered protocol family 17
<6>yaffs: dev is 32505857 name is "mtdblock1"
<4>yaffs: Attempting MTD mount on 31.1, "mtdblock1"
<4>yaffs: MTD device does not support have the right page sizes
<6>yaffs: dev is 32505857 name is "mtdblock1"
<4>yaffs: Attempting MTD mount on 31.1, "mtdblock1"
<4>yaffs: restored from checkpoint
<4>VFS: Mounted root (yaffs2 filesystem) readonly.
<6>Freeing unused kernel memory: 144k freed
<6>yaffs: dev is 32505858 name is "mtdblock2"
<4>yaffs: Attempting MTD mount on 31.2, "mtdblock2"
<4>yaffs: restored from checkpoint
<4>rtusb init --->
<6>usbcore: registered new driver rt2870
<6>usbcore: registered new driver rt73
<4>fuse init (API version 7.8)
<4>fuse distribution version: 2.7.4
<4>bcmdriver: module license 'Proprietary' taints kernel.
<3>BCMDRV: Initializing bcmdriver version $ 12 $
<3>BCMDRV: Using Interrupt Definition for 7405b0 (uname -a)
<3>BCMDRV: Total intc words=3,Total Irqs=97
<3>BCMDRV: Global Interrupt Mask 0:0xD3DF7FFF,1:0x1CBF95F3,2:0x00000008,3:0x00000000
<3>BCMDRV: Initialization complete...
<4>brcm-pm: SATA callback not registered