“中兴B600机顶盒开发环境”的版本间的差异

来自IPTV爱好者
跳转至: 导航搜索
第9行: 第9行:
  
 
编译了内核用的 uImage 写入了 mtdblock3 结果 老是在safe模式下重复运行。挂了,没得玩了
 
编译了内核用的 uImage 写入了 mtdblock3 结果 老是在safe模式下重复运行。挂了,没得玩了
 +
 +
利用nand数据短路法,重新进入uboot,通过safe回到原始状态。
  
 
==B600V4启动信息==
 
==B600V4启动信息==

2009年2月20日 (五) 00:55的版本

B600V4 UBOOT使用

  • UBOOT包含了必要的启动信息,所以有了它我们可以自已编译二进制程序在板上直接运行。
  • printenv这个功能没有实现,所以会以为uboot不能远程启动,其实是可以的
  • setenv ipaddr 192.168.1.12
  • setenv ethaddr 00:15:16:17:18:19
  • setenv serverip 192.168.1.100
  • tftpboot 0x84800000 zimage


编译了内核用的 uImage 写入了 mtdblock3 结果 老是在safe模式下重复运行。挂了,没得玩了

利用nand数据短路法,重新进入uboot,通过safe回到原始状态。

B600V4启动信息

 Hardver: V2000
 Board: ZTE B600V3.1
 U-Boot for B600V3.1: 5202CPU, 128MSys/32M-16MFlash
 U-Boot 1.1.2-V125 (Apr 14 2008 - 09:32:26) - st2.0-14
 DRAM:  128 MB
 ram test...
 DBUS test... ok
 ABUS test... ok
 Ram OK!
 LMI_SYS: clear 
 VID DDR: 0 MB
 Flash:   16 MB
 *** Warning - bad CRC, using default environment
 In:    serial
 Out:   serial
 Err:   serial
 Net:   
 *** ERROR: ethaddr is NOT set !!
 Hit any key to stop autoboot:  3 ��� 2 ��� 1 ��� 0 
 found sys_mem config 
 g_conf_hdr.sysmem=92 
 mode: work_mode=0x0, disp_mode=0x1
 try find normal kernel: 0xa0000000
 found normal kernel:0xa0320000
 name        :ker
 len         :0x00168ce0
 load addr   :0x84401000
 entry point :0x84402000 
 version     :V40024601 2008-06-17
 crc         :0x00b10000
 reserver1   :0x0000005c
 reserver2   :0x00000010
 Decompressing kernel......
 d_in=0x84800000, len_in=0x168ce0
 d_out=0x84401000, len_out=0x2ce252
 load kernel ok
 Starting application at 0x84402000 ...

B600V4 dmesg 信息

 <5>Linux version 2.6.17.14_stm22_0039-V128 (root@localhost.localdomain) (gcc 版本 4.1.1 (STMicroelectronics Special) [build Oct 16 2006]) #4 PREEMPT Mon May 26 14:54:52 CST 2008
 <4>found sys_mem config
 <4>ker_jpg.sys_mem=92 
 <4>string sys_mem = 92 
 <4>old_cmdsize=2   new_cmdsize=2 
 <4>STMicroelectronics STb7109E Reference board initialisation
 <4>STb7109 version 3.x
 <7>On node 0 totalpages: 23552
 <7>  DMA zone: 23552 pages, LIFO batch:3
 <4>Built 1 zonelists
 <5>Kernel command line: console=ttyAS1,115200  nwhwconf=device:eth0,hwaddr:00:15:EB:68:C0:67 dbglevel=1 dispmode=1 root=/dev/mtdblock7 rootfstype=jffs2 rw ide0=noprobe  ip=192.168.1.12
 <4>Ne::10.10.168.12
 <4>DN:255.255.0.0
 <4>Gat:LINUX7100:eth0:off  mem=92m bigphysarea=1000 coprocessor_mem=2m@0x04000000,2m@0x04200000  boardtype=2000 flashsize=16m vidsize=0m 
 <4>PID hash table entries: 512 (order: 9, 2048 bytes)
 <7>TMU0: ticks per jiffy = 16594
 <6>Using tmu for system timer
 <4>Console: colour dummy device 80x25
 <4>Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
 <4>Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
 <4>Memory: 86284k/94208k available (2432k kernel code, 7864k reserved, 340k data, 88k init)
 <4>PVR=04061100 CVR=30480000 PRR=00009300
 <4>I-cache : n_ways=2 n_sets=256 way_incr=8192
 <4>I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
 <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... 263.16 BogoMIPS (lpj=131584)
 <4>Mount-cache hash table entries: 512
 <4>CPU: STb710x
 <6>NET: Registered protocol family 16
 <6>Generic PHY: Registered new driver
 <5>SCSI subsystem initialized
 <6>usbcore: registered new driver usbfs
 <6>usbcore: registered new driver hub
 <4>DMA: Registering DMA API.
 <6>NET: Registered protocol family 2
 <4>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
 <4>TCP established hash table entries: 4096 (order: 2, 16384 bytes)
 <4>TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
 <6>TCP: Hash tables configured (established 4096 bind 2048)
 <6>TCP reno registered
 <6>bigphysarea: Allocated 1000 pages at 0x847ad000.
 <6>JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
 <6>io scheduler noop registered (default)
 <4>SST bdctrl Driver V1.0_2007.07.26
 <4>bdctrl: insmod date and time: May 26 2008 10:05:37
 <4>logo_init: insmod date and time: May 26 2008 10:05:34
 <4>B120 logo Driver V1.0_2007.01.09
 <4>g_disp_mode:0x1
 <4>reg_init:  g_disp_mode=1
 <4>the reg counts pal 576i:0x000000a1
 <6>[draw_logo]:  Enter draw_logo for the logo ...
 <4>Found LOGO partition at 0xa0300000
 <4> logo information....:
 <4>logo size:0x0001c610,crc:0x00004ea3
 <4>logo offset=0x00300000
 <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 =17, step =1, percent=100, ptr=c01b7000
 <6>[draw_logo]: LOGO (decode+show) costs time (278 ticks ,278 ms)
 <6>[logo_progress]: Enter logo_progress(ptr=c01b7000) with param (17,1) 
 <6>Device probe found data for platform device lirc
 <4>lirc_dev: IR Remote Control driver registered, at major 61 
 <4>lirc_dev: lirc_register_plugin: sample_rate: 0
 <4>lirc_dev: lirc_register_plugin: plugin lirc_stm owner 00000000
 <6>STM LIRC plugin has IRQ 125
 <6> Lirc STM: Using IRB mode
 <6>STMicroelectronics LIRC driver configured
 <4>STPIO layer initialised
 <6>Device probe found data for platform device wdt
 <6>STM watchdog initialized
 <6>STMicroelectronics ASC driver initialized
 <6>ttyAS0 at MMIO 0xb8032000 (irq = 121) is a asc
 <6>ttyAS1 at MMIO 0xb8033000 (irq = 120) is a asc
 <6>RTL8201cp: Registered new driver
 <6>PPP generic driver version 2.4.2
 <6>NET: Registered protocol family 24
 <4>stmmac_debug_dir_proc install ok
 <6>STMMAC driver:
 <4>	platform registration... <6>done!
 <4>stmmaceth_probe: dev->features=0x28
 <4>	no valid MAC address; please, set using ifconfig or nwhwconfig!
 <7>mdiobus_register: found PHY and assigning IRQ -1
 <6>STMMAC MII Bus: probed
 <6>nwhw_config: (eth0) setting mac address: 00:15:EB:68:C0:67
 <4>MTD img head shows: safe block num:20, safe size:0x280000
 <4>MTD img head shows: root block num:16, root size:0x200000
 <5>Generic ST boards onboard flash device: 0x02000000 (32.0Mb) at 0x00000000
 <7>drivers/mtd/maps/zte_stbboard.c init_stboards[458] onboard_map.virt = 0xa0000000
 <6>Onboard_Flash: Found 1 x16 devices at 0x0 in 16-bit bank
 <4> Amd/Fujitsu Extended Query Table at 0x0040
 <4>Onboard_Flash: CFI does not contain boot bank location. Assuming top.
 <5>number of CFI chips: 1
 <5>cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
 <5>Creating 9 MTD partitions on "Onboard_Flash":
 <5>0x00000000-0x01000000 : "allmtd"
 <5>0x00000000-0x00020000 : "boot"
 <5>0x00020000-0x002a0000 : "safe"
 <5>0x002a0000-0x002e0000 : "conf"
 <5>0x002e0000-0x00300000 : "log"
 <5>0x00300000-0x00320000 : "logo"
 <5>0x00320000-0x004a0000 : "kern"
 <5>0x004a0000-0x006a0000 : "root"
 <5>0x006a0000-0x01000000 : "cramfs"
 <6>ST40-ehci ST40-ehci.2: ST EHCI Host Controller
 <6>ST40-ehci ST40-ehci.2: new USB bus registered, assigned bus number 1
 <6>ST40-ehci ST40-ehci.2: irq 169, io mem 0xb91ffe00
 <6>ST40-ehci ST40-ehci.2: 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
 <4>2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (ST40)
 <6>ST40-ohci ST40-ohci.1: STB7100 OHCI
 <6>ST40-ohci ST40-ohci.1: new USB bus registered, assigned bus number 2
 <6>ST40-ohci ST40-ohci.1: irq 168, io mem 0xb91ffc00
 <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>Initializing USB Mass Storage driver...
 <6>usbcore: registered new driver usb-storage
 <6>USB Mass Storage support registered.
 <6>mice: PS/2 mouse device common for all mice
 <6>i2c /dev entries driver
 <6>i2c_st40_pio: ST40 PIO based I2C Driver
 <6>i2c_st40_pio: allocated pin (2,0) for scl (0x846e78cc)
 <6>i2c_st40_pio: allocated pin (2,1) for sda (0x846e78dc)
 <6>i2c_st40_pio: allocated pin (3,0) for scl (0x846e794c)
 <6>i2c_st40_pio: allocated pin (3,1) for sda (0x846e795c)
 <6>i2c_st40_pio: allocated pin (4,0) for scl (0x846e79cc)
 <6>i2c_st40_pio: allocated pin (4,1) for sda (0x846e79dc)
 <6>i2c_st40_pio bus 0: SCL=PIO2[0], SDA=PIO2[1]
 <6>i2c_st40_pio bus 1: SCL=PIO3[0], SDA=PIO3[1]
 <6>i2c_st40_pio bus 2: SCL=PIO4[0], SDA=PIO4[1]
 <6>DMA: Registering ST40 STB710x FDMAC handler (5 channels).
 <6>   STB_7109C3 SLIMCORE_HW V0.0 FDMA_FW V3.0 
 <4>STMicroelectronics - Coprocessors st231 Init
 <4>st231-0 Coprocessor -------------------------------------------
 <4>    flags 0001 RAM start at 0xa4000000  size      0x00200000
 <4>                  cop. addr 0x04000000
 <4>    Channels : Not defined
 <4>    IRQ      : not used
 <4>---------------------------------------------------------------
 <4>st231-1 Coprocessor -------------------------------------------
 <4>    flags 0001 RAM start at 0xa4200000  size      0x00200000
 <4>                  cop. addr 0x04200000
 <4>    Channels : Not defined
 <4>    IRQ      : not used
 <4>---------------------------------------------------------------
 <4>Netfilter messages via NETLINK v0.30.
 <6>TCP bic registered
 <6>NET: Registered protocol family 1
 <6>NET: Registered protocol family 17
 <6>stmmaceth_open: MAC address 00:15:eb:68:c0:67
 <3>IP-Config: Gateway not on directly connected network.
 <4>VFS: Mounted root (jffs2 filesystem).
 <4>Freeing unused kernel memory: 88k freed
 <6>PHY: 0:0f - Link is Up - 100/Full
 <6>[deinit_Logo]: all LOGO's resource (Exc. logoThread) are released 
 <6>[logo_progress]: Exit logo_progress (the actual=17, the expected=17) 


openvpn配置

 下载网站 www.openvpn.org
 ./configure --prefix=/sh4target/usr/local/openvpn  --host=sh4-linux-uclibc \
   --disable-lzo --disable-plugins --disable-management --disable-debug --disable-http\
   --with-ssl-headers=/sh4target/usr/local/ssl/include/ \
   --with-ssl-lib=/sh4target/usr/local/ssl/lib/

lzo 配置

 ./configure --prefix=/sh4target/usr/local/lzo --host=sh4-linux-uclibc \
   --disable-largefile --disable-dependency-tracking 

openssl配置

 ./config no-asm no-dso no-krb6 --prefix=/sh4target/usr/local/ssl
 make depend 
 make 
 make install

bridge配置

 CFLAGS= -I/sh4target/usr/include ; export CFLAGS
 ./configure --prefix=/sh4target/usr/local/bridge --host=sh4-linux-uclibc --includedir=/sh4target/usr/include
 vi brctl/Makfile 
  KERNEL_HEADERS 后面加入 -I/sh4target/usr/include

thttpd配置

 wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz
 tar zxvf thttpd*.gz  
 mv thttpd-2.24b  thttpd
 cd thttpd
 ./configure --prefix=/sh4target/usr/local/thttpd
 改 gcc 为 sh4-linux-uclibc-gcc 
 make install