yehaku 发表于 2008-8-21 00:23:41

bcm6358 系列猫的开发包。有LINUX的朋友可以研究下

http://www.linux-mips.org/pub/li ... nux-2.6.26.2.tar.gz
http://www.linux-mips.org/wiki/Main_Page

这里是教学
http://www.linux-mips.org/wiki/Broadcom_SOCs

这里是6358开发最新FW和内核功能模块发布页。
可以通过挂接功能模块实现很多DDWRT才具有的功能。包括BT下在和网络WEB服务器。网络存储。
http://www.efixo.com/neufbox4/freesoftware/

下面是BCM6358 系统的原代码和开发工具包
[*]kernel/userapps - bcm963xx_3.12L.01_consumer.tar.gz[*]toolchain for x86 - bcm963xx_uclibc_crosstools_3.4.2_0.9.27.tar.gz[*]installation script - consumer_install

只要你能吧你的6358猫CFE读出来。可以自己动手在LINUX下面自己动手重新编译对应的最新BCM公司的6358完美功能FW。

下面是6358 LNUX系统可以挂接和增加的最新功能模块
tm2684-utilsN/Ahttp://linux-atm.sourceforge.net/bridge-utilsbridge-utils_1.1.orig.tar.gzhttp://bridge.sourceforge.net/busyboxbusybox-1.1.3.tar.bz2http://www.busybox.net/chillispotchillispot-1.1.0.tar.gzhttp://www.chillispot.org/dnsmasqdnsmasq-2.35.tar.gzhttp://www.thekelleys.org.uk/dnsmasq/doc.htmlebtablesebtables.tar.bz2http://ebtables.sourceforge.net/iproute2iproute2.tar.bz2http://www.linuxgrill.com/anonymous/iproute2/ipsec-toolsipsec-tools.tar.bz2http://ipsec-tools.sourceforge.netiptablesiptables.tar.bz2http://www.netfilter.orglinuxigdlinuxigd-0.95.tar.gzhttp://linux-igd.sourceforge.net/lighttpdlighttpd-1.4.13.tar.gzhttp://www.lighttpd.net/rp-pppoeppp-2.4.4.tar.gzhttp://www.roaringpenguin.com/en/penguin/openSourceProducts/rpPppoeppp-utilsppp-2.4.4.tar.gzftp://ftp.samba.org/pub/ppp/syslog-ngsyslog-ng-1.6.9.tar.gzhttp://www.balabit.com/network-security/syslog-ng/pure-ftpdpure-ftpd-1.0.21.tar.bz2http://www.pureftpd.org/project/pure-ftpdp910ndp910nd-0.9.tar.bz2http://etherboot.sourceforge.net/p910nd/robocfgN/Ahttp://wiki.openwrt.org/OpenWrtRoboCfgzlibzlib-1.2.3.tar.gzhttp://www.zlib.net/libezxmlezxml-0.8.6.tar.gzhttp://ezxml.sourceforge.net/libcyasslcyassl-0.8.0.ziphttp://www.yassl.com/libclearsilverclearsilver-0.10.4.tar.gzhttp://www.clearsilver.net/libpcrepcre-7.0.tar.bz2http://www.pcre.org/ libfcgifcgi-2.4.0.tar.gzhttp://www.fastcgi.comlibupnplibupnp-1.4.1.tar.gzhttp://upnp.sourceforge.net/libctaocryptcyassl-0.8.0.ziphttp://www.yassl.com

[ 本帖最后由 yehaku 于 2008-8-20 16:36 编辑 ]

yehaku 发表于 2008-8-21 00:58:52

Known 6358 platforms*:

D-Link DSL-2640B

Freebox v5

Netcomm NB9WMAXX

Neuf Box 4

US Robotics USR9113

Zhone 6228

下面是一款开放式6358 猫的介绍。
Neuf Box 4


1. Components

1.1. RAM
There is 32 MB of RAM.



1.2. Flash
There is 8 MB of Flash.



1.3. SoC BCM6358
The processor is a MIPS 32 bits at 300 MHz (BCM6358 MIPS32® Dual Thread).


[*]http://www.broadcom.com/products/DSL/xDSL-CPE-Solutions/BCM6358

[*]http://www.broadcom.com/collateral/pb/6358-PB01-R.pdf



1.4. Switch BCM5325E
[*]http://www.broadcom.com/products/Small-Medium-Business/Fast-Ethernet-Switching-Products/BCM5325E

[*]http://www.broadcom.com/collateral/pb/5325E-PB00-R.pdf



1.5. Wifi BCM4318
[*]http://broadcom.com/products/Wireless-LAN/802.11-Wireless-LAN-Solutions/BCM94318

[*]http://broadcom.com/collateral/pb/94318-PB00-R.pdf



2. Links
OpenBox4, community project which aims at creating an alternative firmware for the Neuf Box 4


* If no dedicated Openwrt page is found an external link is supplied
http://wiki.openwrt.org/OpenWrtDocs/Hardware/Neuf/NeufBox4
Easy-to-use high-tech capabilities
Neuf Cegetel developed the new Neuf Box to make the most advancedtechnical features readily accessible to even the most non-technicalusers.
Neuf Box implements the Wi-Fi® 802.11g standard with a simplified andsecure automatic setup procedure. Wireless connection for new PCsoperates by automatic device recognition, with no need for the user toenter a network name (SSID) or WEP encryption code. Secure Wi-Fi®hookup is by WPA or WEP encryption. The built-in Wi-Fi® chip isoptimized with BroadRange™ technology from Broadcom Corporation, forlonger range, higher datarates, and lower electricity consumption bymobile handsets. With its new Neuf Box, Neuf Cegetel reaffirms itsquadri play strategy.
The new Neuf Box has extensive connection capabilities, with two 480Mbit/s high-speed USB 2.0 master ports and four Ethernet ports, openingthe way to full convergence with simultaneous use of home multimediaequipment: desktop and laptop computers, video game consoles, sharedprinter and hard disk, etc. To connect a Neuf TV HD decoder, Neuf Boxusers can opt for 85 Mbit/s power-line technology from Neuf Cegetel andget the best of Neuf TV HD service without wiring constraints: thetelevision can be located anywhere in the home, even separated from theNeuf Box and the phone socket by thick walls.
Straightforward and hassle-free setup remains a distinctive feature ofthe Neuf Box system. Setting up the box is a matter of minutes, using aconnection kit on CD-ROM, with flash animations providing step-by-stepuser guidance. Internet, telephony and television services areconfigured automatically and without any customer intervention. Withthe automatic authentication of the user by the network, there is noneed to input any identification code (ADSL connexion and VoIP), whichmakes the installation simpler and safer. Finally, cable ends arematched to the Neuf Box connectors by colour-coding, for rapid andfoolproof connection.
Open-ended and upgradeable architecture
As well as addressing the expectations of users today, Neuf Box is alsoready to accommodate new developments to come, with its comprehensiveconnection capabilities, advanced electronic circuitry and open-endedsoftware design. Forthcoming firmware upgrades from Neuf Cegetel willbe uploaded automatically for user-transparent installation.
The new Neuf Box features the latest-generation 300 MHz MIPS32® DualThread processor, ready for FTTH, with a simple Ethernet opticalconverter handling fibre connection to the Neuf Box.
The forthcoming Wi-Fi® 802.11n standard will be supported directly, bymeans of a slot-in card; users won’t need to change their box. The newNeuf Box will also support the Wi-Fi Protected Setup (WPS) standard(scheduled for spring 2007), for secure automatic recognition of allstandard Wi-Fi® peripherals.
The Neuf Box firmware makes extensive use of Open Source and Linux 2.6.Sources under general public licence are accessible via a specialcommunity website, which invites new program input from developers.From the Neuf Box web interface, users can access software validated byNeuf Cegetel and install it freely in a memory area provided for thispurpose.

Smart, customizable design consistent with sustainable development objectives
The new Neuf Box features a smart new design. The illuminated frontpanel uses innovative IMD (In-Mold Decoration) technology, whichinvolves forming the decoration during the plastic injection mouldingprocess, for optimum image clarity and durability. Users can adjust theillumination brightness or switch it off altogether.
Neuf Box provides clear user information, with front-panel pictogramsshowing active usages. An “Info” lamp reporting on Neuf Box status.With future upgrades, this multi-coloured indicator could beuser-programmed with custom colour settings.
The Neuf Box can stand horizontally or vertically.
Sustainable development was a primary design consideration for NeufBox: Neuf Cegetel runs a product return and recycling programme toensure safe ecological disposal of Neuf Box units when they reach theend of their useful lives. All materials used meetlow-energy-consumption requirements.

Neuf Box prices
> The new Neuf Box is provided to customers subscribing to the 100%Neuf Box package, priced at

[ 本帖最后由 yehaku 于 2008-8-20 17:00 编辑 ]

yehaku 发表于 2008-8-21 01:01:20

Easy-to-use high-tech capabilities

Neuf Cegetel developed the new Neuf Box to make the most advanced technical features readily accessible to even the most non-technical users.

Neuf Box implements the Wi-Fi® 802.11g standard with a simplified and secure automatic setup procedure. Wireless connection for new PCs operates by automatic device recognition, with no need for the user to enter a network name (SSID) or WEP encryption code. Secure Wi-Fi® hookup is by WPA or WEP encryption. The built-in Wi-Fi® chip is optimized with BroadRange™ technology from Broadcom Corporation, for longer range, higher datarates, and lower electricity consumption by mobile handsets. With its new Neuf Box, Neuf Cegetel reaffirms its quadri play strategy.

The new Neuf Box has extensive connection capabilities, with two 480 Mbit/s high-speed USB 2.0 master ports and four Ethernet ports, opening the way to full convergence with simultaneous use of home multimedia equipment: desktop and laptop computers, video game consoles, shared printer and hard disk, etc. To connect a Neuf TV HD decoder, Neuf Box users can opt for 85 Mbit/s power-line technology from Neuf Cegetel and get the best of Neuf TV HD service without wiring constraints: the television can be located anywhere in the home, even separated from the Neuf Box and the phone socket by thick walls.

Straightforward and hassle-free setup remains a distinctive feature of the Neuf Box system. Setting up the box is a matter of minutes, using a connection kit on CD-ROM, with flash animations providing step-by-step user guidance. Internet, telephony and television services are configured automatically and without any customer intervention. With the automatic authentication of the user by the network, there is no need to input any identification code (ADSL connexion and VoIP), which makes the installation simpler and safer. Finally, cable ends are matched to the Neuf Box connectors by colour-coding, for rapid and foolproof connection.

Open-ended and upgradeable architecture

As well as addressing the expectations of users today, Neuf Box is also ready to accommodate new developments to come, with its comprehensive connection capabilities, advanced electronic circuitry and open-ended software design. Forthcoming firmware upgrades from Neuf Cegetel will be uploaded automatically for user-transparent installation.

The new Neuf Box features the latest-generation 300 MHz MIPS32® Dual Thread processor, ready for FTTH, with a simple Ethernet optical converter handling fibre connection to the Neuf Box.

The forthcoming Wi-Fi® 802.11n standard will be supported directly, by means of a slot-in card; users won’t need to change their box. The new Neuf Box will also support the Wi-Fi Protected Setup (WPS) standard (scheduled for spring 2007), for secure automatic recognition of all standard Wi-Fi® peripherals.

The Neuf Box firmware makes extensive use of Open Source and Linux 2.6. Sources under general public licence are accessible via a special community website, which invites new program input from developers. From the Neuf Box web interface, users can access software validated by Neuf Cegetel and install it freely in a memory area provided for this purpose.



Smart, customizable design consistent with sustainable development objectives

The new Neuf Box features a smart new design. The illuminated front panel uses innovative IMD (In-Mold Decoration) technology, which involves forming the decoration during the plastic injection moulding process, for optimum image clarity and durability. Users can adjust the illumination brightness or switch it off altogether.

Neuf Box provides clear user information, with front-panel pictograms showing active usages. An “Info” lamp reporting on Neuf Box status. With future upgrades, this multi-coloured indicator could be user-programmed with custom colour settings.

The Neuf Box can stand horizontally or vertically.

Sustainable development was a primary design consideration for Neuf Box: Neuf Cegetel runs a product return and recycling programme to ensure safe ecological disposal of Neuf Box units when they reach the end of their useful lives. All materials used meet low-energy-consumption requirements.



Neuf Box prices

> The new Neuf Box is provided to customers subscribing to the 100% Neuf Box package, priced at

yehaku 发表于 2008-8-21 04:46:10

关于BCM 6358 300MHZ MIPS 处理器介绍
MIPS是世界上很流行的一种RISC处理器。MIPS的意思是“无内部互锁流水级的微处理器”(Microprocessor without interlocked piped stages),其机制是尽量利用软件办法避免流水线中的数据相关问题。它最早是在80年代初期由斯坦福(Stanford)大学Hennessy教授领导的研究小组研制出来的。MIPS公司的R系列就是在此基础上开发的RISC工业产品的微处理器。这些系列产品为很多计算机公司采用构成各种工作站和计算机系统。

  MIPS技术公司是美国著名的芯片设计公司,它采用精简指令系统计算结构(RISC)来设计芯片。和英特尔采用的复杂指令系统计算结构 (CISC)相比,RISC具有设计更简单、设计周期更短等优点,并可以应用更多先进的技术,开发更快的下一代处理器。MIPS是出现最早的商业RISC 架构芯片之一,新的架构集成了所有原来MIPS指令集,并增加了许多更强大的功能。

MIPS 的
Ubuntu中文 开发论坛。上面有不少关于嵌入 开发的资料。
http://forum.ubuntu.org.cn/viewforum.php?f=97

其实自己编写固件原理和在PC机上装LINUX 一样的。
期待大家一起来研究和编译出BCM6358无线猫的全功能FW。
而且现在国内BCM6358猫的架构基本都是采用BCM公司提供的工版开发包编译的。CFE里的对应控制接口地址也是相同的。
不同的也就是MIPS 驱动内核LNIUX版本和功能模块的多少和限制方式而已。

[ 本帖最后由 yehaku 于 2008-8-20 20:55 编辑 ]

bncy 发表于 2008-8-21 08:12:32

这个厉害!关注

yehaku 发表于 2008-8-21 13:38:30

[前言]
      这是一个几年以来我一直想做的“功课”,之所以称之为“功课”,而不能说是“文章”,是因为我觉得自己的知识还远远不够,不管是深度还是广度,也不管是全面性还是透彻性,我都不敢企及。但是我实在是很想把我的一些理解写出来,然后能和其他朋友一起探讨,纠正错误,补充完善,最终目的就是要加深对ARM和 MIPS 这两种CPU架构的认识。
    这里的目前最多只能算个草稿吧,待以后不断的补充。

[正文]
1.流水线结构 pipeline
    - MIPS 是最简单的体系结构之一,所以使大学喜欢选择 MIPS 体系结构来介绍计算体系结构课程。
    - ARM has barrel shifter
      shifter是两面性的,一方面它可以提高数学逻辑运算速度,另一方面它也增加了硬件的复杂性。所以和可以完成同样功能的adder/shift register相比,效率更高,但是也占用更多的芯片面积。
      
    - MIPS have "branch delay slot" and "load delay slot"
      MIPS使用编译器来解决上面的两个问题。因为MIPS最初的设计思想就是使用简单的RISC硬体,然后靠编译器及其他软体技术,来达成RISC的完整概念。

2.指令结构 instruction
    - MIPS have 32bit and 64bit architecture,but ARM only have 32bit architecture
       ARM11 局部64位
    - MIPS是开放式的架构,用户可以在开发的内核中加入自己的指令,
    - ARM has 4-bit condition code in every instruction
      ARM 在这一点很像x86。MIPS在MIPS IV也加入"conditional move"指令,来提高pipeline的效率。
    - ARM has pre- and post-increment addressing modes
      auto-increment/decrement on load/store instructions
    - 在节省代码空间方面,MIPS16 很类似ARM Thumb

3.寄存器 register
    -由于MIPS内核中有32个注册器(Register),而ARM只有16个,这种结构设计上的先天优势,决定了在同等性能表现下,MIPS的芯片面积和功耗会更小。
    - ARM 有一组特殊用途寄存器cp0-cp15,可以使用MCR,MRC等指令控制;相对应的,MIPS也有cp0 0-30,使用mfc0,mtc0 指令控制。

    - Register banking in ARM.r8-r12 FIQ mode;r13:SP r14:LR
       感觉不出banked register有什么好处。

    - MIPS has a hard-wired-to-zero register ,but ARM not
       MIPS use register $0 for Zero

4.地址空间 address space
    - MIPS 起始地址是0xbfc00000,会有4Mbyte的大小限制,但一般MIPS芯片都会采取一些方法解决这个问题。
      ARM没有这种问题。
      MIPS24K 起始地址改到了0xbf000000,现在有16Mbyte的空间了。

    - MIPS don't have to turn paging on to enable the cache.
      MIPS have the address space for both cache and un-cache
      but ARM need enable/disable cache

5.功能 function
    - Float point: MIPS64 has.
      ARM's support for FP is limited, and usually not included, and it is a 32 bit architecture
    - ARM use JTAG,MIPS use EJTAG。Debug工具一般两种都支持。使用起来感觉差不多。

6.性能 performance
    - 具体性能比较,因为差异性太大,所以很难分出谁好谁坏。从个人经验来讲 MIPS4k和ARM9基本上是同一个级别的,但ARM9性能似乎要比MIPS4K好。
      同样是32bit的MIPS24K性能上比MIPS4K有很大提升,也应该比ARM9要好些。
      因为没有用过ARM11和MIPS34K的芯片,没法比较,但感觉这两个似乎是一个级别的。

7.应用
    - 在1000MHz以上的应用,很难找到采用ARM架构的产品。
      MIPS架构用在200MHz或者是266MHz以下的应用比较少,而这恰恰是ARM的主攻市场。
    - ARM 在手机等便携式领域,MIPS 在住宅网关、线缆调制解调器、线缆机顶盒等
    - ARM 采用硬核授权;MIPS 采用软核授权,用户可以自己配置,做自己的产品。

8.未来发展
    - ARM的下一代走向多内核结构,而MIPS公司的下一代核心则转向硬件多线程功能(multithreading)
      MIPS 的multithreading 很类似Intel 的 HyperThreading技术。从现在的发展来看,多内核占上风。

9.总结
    自己感觉ARM和MIPS在一开始的RISC的设计上有很多不同,但随着技术的发展,各自扬长避短,好的技术大家都会使用。比如ARM11和MIPS R1000就使用了很多一样的技术。感觉RISC做到了极至就都一样了。

yehaku 发表于 2008-8-21 13:40:02

Switch芯片上的VLAN一般有两种:
1.port based VLAN
    port就是一个RJ45接口。
    以port为基础来定义VLAN组,比如port0,port1是一个VLAN组,port2,port3是一个VLAN组。
    这种VLAN一般会用来隔离不同的网络。
2.802.1Q VLAN
    通过区分802.1Q标签所带的VLAN ID值不同来划分到不同的VLAN组。
    一般这种VLAN会与QoS结合起来应用。

Switch上的Qos一般有几种:
1.port Based Qos
    可以为不同的port定义不同的优先级
2.Diff-Serv Qos
    就是用IP TOS来定义优先级
3.802.1P Qos
    在802.1P标签里定义不同的优先级,可以和802.1Q VLAN结合起来应用。
4.MAC/IP Based QoS
    比较高级的功能。可以为特定的MAC address或者IP address定义不同的优先级。


一下是我们用到的一些switch的功能列表:

                  |BCM5325E|RTL8309| 88E6060|KS8995M|KS8995X
Port Based QoS    |Yes      |Yes   | No      |Yes      |Yes
Diff-ServQoS   |Yes      |Yes   | No      |Yes      |Yes
802.1P QoS       |Yes      |Yes   | No      |Yes      |Yes
MAC/IP Based QoS |MAC       |IP      | No      |No      |No
Port Based VLAN   |Yes      |Yes   | Yes   |Yes      |Yes
802.1Q VLAN      |Yes      |Yes   | No      |Yes      |No

为了在一颗switch能够提供多个独立的interface(eth0,eth1...)出来,Marvell 88E6060 和 KS8995M 还提供了这样的功能:
应该是结合了port based VLAN和802.1Q VLAN两种做法,先是把ports划分到不同的interface上,然后在接收的时候在802.1Q标签上加入表示从哪个port上来的信息,在发送的时候根据802.1Q标签中的值决定发送到哪个port或哪几个ports上去。

黑橘子 发表于 2008-8-21 14:17:44

能编辑进去PPPoE Server就爽了;P
rp-pppoe               ppp-2.4.4.tar.gz

yehaku 发表于 2008-8-21 16:26:15

Neuf Box 4 这款DIY的猫就是上面的开发包编译的。具有以上90%的功能和模块。
而且和国内的6358猫的结构差不多的。可以根据其FW利用BCM6358的开发工具在LINUX下面重新开发和分解

redcom 发表于 2008-8-26 10:48:22

对bt和电驴感兴趣。呵呵
页: [1] 2 3 4 5 6
查看完整版本: bcm6358 系列猫的开发包。有LINUX的朋友可以研究下