中兴B600机顶盒开发环境

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

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 ...
 Starting pid 210, console /dev/console: '/etc/rc.d/rcS'
 mount: Mounting proc on /proc failed: Device or resource busy
 insmod: /lib/modules/nls_utf8.ko: No such file or directory
 Starting udevd...
 mknod: /dev/bdctrl: File exists
 Thu Jan  1 00:00:00 UTC 1970
 /etc/rc.d/rcS: /etc/rc.d/rcS: 66: cannot create /proc/sys/net/ipv4/conf/wlan0/force_igmp_version: Directory nonexistent
 PATH=/usr/bin:/usr/sbin:/bin:/sbin
 LoadConfig success!
 System date is set to:
 ##########################################################
 the reference tree was released on 2006.03.24
 ##########################################################
 insmod /lib/modules26//stapi/stos_core.ko 
 insmod /lib/modules26//stapi/stcommon_core.ko 
 insmod /lib/modules26//stapi/stavmem_core.ko MAX_BLOCKS=190 PART_0=0xAA000000:0x02000000:"LMI_SYS" PART_1=0xB0000000:0x04000000:"LMI_VID"
 insmod /lib/modules26//stapi/stevt_core.ko 
 insmod /lib/modules26//stapi/stpio_core.ko 
 insmod /lib/modules26//stapi/stmerge_core.ko 
 insmod /lib/modules26//stapi/stpti4_core.ko 
 insmod /lib/modules26//stapi/stclkrv_core.ko 
 insmod /lib/modules26//stapi/stdenc_core.ko 
 insmod /lib/modules26//stapi/stvtg_core.ko 
 insmod /lib/modules26//stapi/sti2c_core.ko 
 insmod /lib/modules26//stapi/stvout_core.ko 
 insmod /lib/modules26//stapi/stlayer_core.ko 
 insmod /lib/modules26//stapi/stvmix_core.ko 
 insmod /lib/modules26//stapi/stfdma_core.ko 
 insmod /lib/modules26//stapi/stblit_core.ko 
 insmod /lib/modules26//stapi/stinj_core.ko 
 insmod /lib/modules26//stapi/stnet_core.ko 
 insmod /lib/modules26//stapi/mlxload.ko StartAddress=0x04200000
 /dev/stapi/lxload
 loading audio binary file StartAddress=0x04200000
 insmod /lib/modules26//stapi/mlxload.ko StartAddress=0x04000000
 /dev/stapi/lxload
 loading video binary file StartAddress=0x04000000
 insmod /lib/modules26//mme/embxshell.ko  
 insmod /lib/modules26//mme/embxloopback.ko  
 insmod /lib/modules26//mme/embxmailbox.ko mailbox0=0xB9211000:136:set2 mailbox1=0xB9212000:137:set2
 insmod /lib/modules26//mme/embxshm.ko mailbox0=ups:0:7:0x60000000:0:16:16:0:2048 
 insmod /lib/modules26//mme/mme_host.ko transport0=ups 
 insmod /lib/modules26//stapi/stvbi_core.ko 
 insmod /lib/modules26//stapi/stvid_core.ko 
 insmod /lib/modules26//stapi/stsubt_core.ko 
 insmod /lib/modules26//stapi/sti2c_ioctl.ko 
 /dev/stapi/sti2c_ioctl
 insmod /lib/modules26//stapi/staudlx_core.ko 
 insmod /lib/modules26//stapi/stvid_ioctl.ko 
 /dev/stapi/stvid_ioctl
 insmod /lib/modules26//stapi/stvin_core.ko 
 insmod /lib/modules26//stapi/stvin_ioctl.ko 
 /dev/stapi/stvin_ioctl
 insmod /lib/modules26//stapi/stevt_ioctl.ko 
 /dev/stapi/stevt_ioctl
 insmod /lib/modules26//stapi/stpio_ioctl.ko 
 /dev/stapi/stpio_ioctl
 insmod /lib/modules26//stapi/stblit_ioctl.ko 
 /dev/stapi/stblit_ioctl
 insmod /lib/modules26//stapi/stlayer_ioctl.ko 
 /dev/stapi/stlayer_ioctl
 insmod /lib/modules26//stapi/stpti4_ioctl.ko 
 /dev/stapi/stpti4_ioctl
 insmod /lib/modules26//stapi/stclkrv_ioctl.ko 
 /dev/stapi/stclkrv_ioctl
 insmod /lib/modules26//stapi/stdenc_ioctl.ko 
 /dev/stapi/stdenc_ioctl
 insmod /lib/modules26//stapi/stvtg_ioctl.ko 
 /dev/stapi/stvtg_ioctl
 insmod /lib/modules26//stapi/stvout_ioctl.ko 
 /dev/stapi/stvout_ioctl
 insmod /lib/modules26//stapi/stvmix_ioctl.ko 
 /dev/stapi/stvmix_ioctl
 insmod /lib/modules26//stapi/stvbi_ioctl.ko 
 /dev/stapi/stvbi_ioctl
 insmod /lib/modules26//stapi/stmerge_ioctl.ko 
 /dev/stapi/stmerge_ioctl
 insmod /lib/modules26//stapi/staudlx_ioctl.ko 
 /dev/stapi/staudlx_ioctl
 insmod /lib/modules26//stapi/utils_ioctl.ko 
 /dev/stapi/utils_ioctl
 insmod /lib/modules26//stapi/stsubt_ioctl.ko 
 /dev/stapi/stsubt_ioctl
 insmod /lib/modules26//stapi/stinj_ioctl.ko 
 /dev/stapi/stinj_ioctl
 insmod /lib/modules26//stapi/stnet_ioctl.ko 
 /dev/stapi/stnet_ioctl
 Module                  Size  Used by    Tainted: P  
 stnet_ioctl             3180  0 
 stinj_ioctl             5276  0 
 stsubt_ioctl            6168  0 
 utils_ioctl            16668  0 
 staudlx_ioctl          31360  0 
 stmerge_ioctl           6300  0 
 stvbi_ioctl             9088  0 
 stvmix_ioctl            9600  0 
 stvout_ioctl            9024  0 
 stvtg_ioctl             5856  0 
 stdenc_ioctl            7360  0 
 stclkrv_ioctl           6524  0 
 stpti4_ioctl           78488  0 
 stlayer_ioctl          10464  0 
 stblit_ioctl            9732  0 
 stpio_ioctl             9120  0 
 stevt_ioctl            11648  0 
 stvin_ioctl             9792  0 
 stvin_core             37676  1 stvin_ioctl
 stvid_ioctl            14944  0 
 staudlx_core          309520  1 staudlx_ioctl
 sti2c_ioctl             5064  0 
 stsubt_core            83564  1 stsubt_ioctl
 stvid_core            462064  3 utils_ioctl,stvin_core,stvid_ioctl
 stvbi_core             20896  1 stvbi_ioctl
 mme_host               31768  2 staudlx_core,stvid_core
 embxshm                28820  0 
 embxmailbox            11920  1 embxshm
 embxloopback            8864  0 
 embxshell              28808  6 staudlx_core,stvid_core,mme_host,embxshm,embxmailbox,embxloopback
 stnet_core             19772  1 stnet_ioctl
 stinj_core             14148  2 stinj_ioctl,stnet_core
 stblit_core           114160  2 stblit_ioctl,stsubt_core
 stfdma_core            69808  3 staudlx_core,stvid_core,stinj_core
 stvmix_core            21296  1 stvmix_ioctl
 stlayer_core          116068  5 stlayer_ioctl,stsubt_core,stvid_core,stvbi_core,stvmix_core
 stvout_core            72496  2 stvout_ioctl,stvmix_core
 sti2c_core              9612  2 sti2c_ioctl,stvout_core
 stvtg_core             28260  3 stvtg_ioctl,stvmix_core,stvout_core
 stdenc_core            17356  4 stdenc_ioctl,stvbi_core,stvout_core,stvtg_core
 stclkrv_core           21840  6 utils_ioctl,stclkrv_ioctl,staudlx_core,stsubt_core,stvid_core,stvtg_core
 stpti4_core           212648  6 utils_ioctl,staudlx_ioctl,stpti4_ioctl,stsubt_core,stinj_core,stclkrv_core
 stmerge_core           15420  2 stmerge_ioctl,stinj_core
 stpio_core              8016  2 stpio_ioctl,stvout_core
 stevt_core             19676  14 utils_ioctl,stevt_ioctl,stvin_core,staudlx_core,stsubt_core,stvid_core,stinj_core,stblit_core,stvmix_core,stlayer_core,stvout_core,stvtg_core,stclkrv_core,stpti4_core
 stavmem_core           30592  11 utils_ioctl,stvbi_ioctl,stlayer_ioctl,stvin_core,stvid_ioctl,staudlx_core,stsubt_core,stvid_core,stvbi_core,stblit_core,stlayer_core
 stcommon_core          13632  13 utils_ioctl,stvin_core,staudlx_core,stsubt_core,stvid_core,stvbi_core,stfdma_core,stvmix_core,stlayer_core,stvout_core,sti2c_core,stvtg_core,stpti4_core
 stos_core              26468  39 stnet_ioctl,stinj_ioctl,utils_ioctl,staudlx_ioctl,stvbi_ioctl,stvmix_ioctl,stvout_ioctl,stvtg_ioctl,stdenc_ioctl,stclkrv_ioctl,stpti4_ioctl,stlayer_ioctl,stblit_ioctl,stevt_ioctl,stvin_ioctl,stvin_core,stvid_ioctl,staudlx_core,sti2c_ioctl,stsubt_core,stvid_core,stvbi_core,stnet_core,stinj_core,stblit_core,stfdma_core,stvmix_core,stlayer_core,stvout_core,sti2c_core,stvtg_core,stdenc_core,stclkrv_core,stpti4_core,stmerge_core,stpio_core,stevt_core,stavmem_core,stcommon_core
 key                     3416  0 
 led                     5716  0 
 nls_cp936             126144  0 
 ntfs                  118668  0 
 
 Starting pid 1054, console /dev/ttyAS1: '/bin/sh'
 
 
 BusyBox v1.2.1 (2008.04.14-01:43+0000) Built-in shell (ash)
 Enter 'help' for a list of built-in commands.
 
 / # 
 Starting pid 1058, console /dev/ttyAS1: '/cramfs/bin/nano-X'
 
 Starting pid 1059, console /dev/ttyAS1: '/bin/sh'
 
 Starting pid 1060, console /dev/ttyAS1: '/cramfs/bin/javawatch'
 
 Starting pid 1061, console /dev/ttyAS1: '/cramfs/bin/mixer'
 
 Starting pid 1055, console /dev/ttyAS1: '/bin/sh'
 
 Starting pid 1056, console /dev/ttyAS1: '/bin/sh'
 
 Starting pid 1057, console /dev/ttyAS1: '/bin/sh'
 
 Starting pid 1062, console /dev/ttyAS1: '/cramfs/bin/ucclient'
 Get version info<VPlayer:V3.70 2007-11-30>
 UDPSOCKET RecvBuf Len=262144,secLen=4,nRet=0
 [LED] Init LED successfully, type=4!
 fopen new file handle 0x71F488 in InitIndexFile,file name =/var/log/10010.idx
 fopen new file handle 0x7204C8 in InitLogFile,file name =/var/log/10010_1.txt
 fopen new file handle 0x721508 in InitLogFile,file name =/var/log/10010_2.txt
 Nano-X CurVersion:1.00.001.1056v1 (20080411-12:52 built) 
 CompileDir:/home/lixl/proj/frame/resource/platform/mwframe/tools/dboutput 
 mixer sock: 3 
 Get version info<TR069:V1.4 2006 12-25>
 For the time being,this log index file not supported,pid = 1066
 registerInterface INFORM Suc!
 >>>>>>>>>>>>查询接口成功!
 
  Add Instance  Finish #####!!!! 
 >>>>>>>>>>>>>发送添加实例成功!
 
  Add Instance  Finish #####!!!! 
 调用HANDLE_ZTEBWINITOVER成功
 InitCommFrame finished OK.
 InitCommFrame,0,
 create  /var/tmp/zteinitflag.conf 
 Get version info<ZteBW:V3.30(ztebw v1.01.13 2007-11-14) 2007-11-30>
 [InitConfigMap] is called in norm mode
 
 
 BW:Now Set Mac Address: 00:1E:73:AB:E2:3F
 Get version info<appUp:V3.2 2007-12-29>
 [LED] Init LED successfully, type=3!
 =====Generate /tmp/dhcp.options =====
 My_getsystime: CLKS_PER_SEC=100!
 get_ini_string, g_uiQFileInformTime = 3600
 get_ini_string, g_iQFileUploadType = 1
 get_ini_string, g_cQFileUploadURL = http://172.16.100.99:8080/
 g_javasocket = 10,0
 fopen new file handle 0x6E6978 in InitIndexFile,file name =/var/log/5030.idx
 fopen new file handle 0x6E6420 in InitLogFile,file name =/var/log/5030_1.txt
 fopen new file handle 0x6E6458 in InitLogFile,file name =/var/log/5030_2.txt
 ###BW:Wait for VPlayer MSG!
 ###BW:(0x1)Recv Msg=0x46
 Shake Hand With VOD receive vod capacity set!
 ###BW:(0x1)Recv Msg=0x39
 VOD:Recv BW Data,cmd=STBCFG!
 Recv VM_CFG, VM_port is0!
 BW: Init eis
 720x576-50i,720x576-50i
 install signal:12
 #################################!!!:62
 smem_len=829440, line_length=1440, xres=720, yres=576, bits_per_pixel=16 nScrW = 640 nScrH = 526
 
 
 
 
 !!!@@####nano-X now in SD mode!!
 
 
 
 
 
 nano-X param:g_iScreenWidth =720 g_iScreenHeight =576 g_iVirScrW =640 g_iVirScrH =526 
 
 GFB_SetColorKey: f8 0 f8
 #################################!!!:1
 smem_len=829440, line_length=1440, xres=720, yres=576, bits_per_pixel=16 nScrW = 640 nScrH = 526
 
 
 
 
 !!!@@####nano-X now in SD mode!!
 
 
 
 
 
 nano-X param:g_iScreenWidth =720 g_iScreenHeight =576 g_iVirScrW =640 g_iVirScrH =526 
 
 GFB_SetColorKey: f8 0 f8
 MW CurVersion:1.00.001.1056v1 (20080410-18:21 built) 
 CompileDir:/home/lvyan/proj/frame/resource/platform/mwframe/tools/dboutput 
 MW CurVersion:1.00.001.1056v1 (20080411-12:52 built) 
 CompileDir:/home/lixl/proj/frame/resource/platform/mwframe/tools/dboutput 
 p .mtf ,strcmpi(p, .mtf) = 0 
 BW: StartBrowser success ....
 ########################RegisterPowerKey():g_window=4,MW_POWER_OFF_FP=63654,iRet=1
 BW==1111==>ReportNetChange,9,
 YHT===>ReportNetChange return : 0.
 My_getsystime: CLKS_PER_SEC=100!
 [STAPI] Get g_scrWidth  is 720   g_phyScrWidth is 0
 [STAPI] Get g_scrHeight is 576   g_phyScrHeight is 0
 VOD: Start,sizeof(T_VPLAYER) = 14620,TRUE = 1,FALSE = 0
 VOD:Recv BW Data,cmd=STBCFG!
 Recv VM_CFG, VM_port is0!
 alarm->AlarmCode = 5101
 alarm->AlarmReason = 1901
 curlx_tvnow: CLKS_PER_SEC=100!
 vodOSDClose g_bOSDOpen = 0
 OSD Region_Check Err: range failed 2
 Network is unreachable
 GFB_BlitterFlickerFilter 0 ERROR: range failed
 p .mtf ,strcmpi(p, .mtf) = 0 
 GFB_BlitterFlickerFilter 0 ERROR: range failed
 VOD:Net-Cable be pulled out!
 Network is unreachable
 MW CurVersion:1.00.001.1056v1 (20080410-18:21 built) 
 CompileDir:/home/lvyan/proj/frame/resource/platform/mwframe/tools/dboutput 
 img read succeed: size 2102, read 2102
 img read succeed: size 2139, read 2139
 img read succeed: size 2488, read 2488
 
 / #

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

libusb

 CC=sh4-linux-gcc ./configure --host=sh4-linux --prefix=$(cd ../install && pwd)
 make
 make install