找回密码
 注册

QQ登录

只需一步,快速开始

查看: 35424|回复: 26

[原创]BroadCom 6338 芯片 固件的初步研究

  [复制链接]
发表于 2006-12-14 14:31:29 | 显示全部楼层 |阅读模式
[watermark]昨天用了3年的ZXDSL831终于不行了,没办法买了一个上海贝尔的Home ++500 S6307MPx
核心是BCM6338. 有4个网口,支持路由功能。PCB照片见下图
 楼主| 发表于 2006-12-14 14:56:04 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

整块板子最热的是左边的那个ADSL接口芯片,最好加个散热片。
不知道是软件的原因还是6338本身能力不行,开路由的使用效果还不如经过优化后的VIK I。
昨天试了一下午,确定目前6338开路由也没有调整好,最后只能用D-link 624+A无线路由拨号。没想到升级到2.06固件以后非常稳定。温度也不高。
贝尔的猫花了230,早知到这样还不如买个VIK2的。
Log文件贴出来大家看看

Password:
Login incorrect. Try again.
Login: root
Password:
Login incorrect. Try again.
Login: admin
Password:
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> sh

BusyBox v1.00 (2005.05.25-02:36+0000) Built-in shell (msh)
Enter ';help'; for a list of built-in commands.
# dir
dir: not found
# ls
ls: not found
# echo *
bin dev etc lib linuxrc mnt proc sbin usr var webs
# cd mnt
# echo *
*
# cd ..
# pwd
/
# cd bin
# echo *
adsl adslctl atm atmctl bftpd brctl busybox cat cfm ddnsd df dhcpc dhcpd dhcpr dmesg dnsprobe dumpmem ebtables echo epi_ttcp ethctl false igmp iptables kill macaddr mkdir mount msh netctl ping pppd ps pvc2684ctl pvc2684d pwd reaim rm sendarp setmem sh sntp sysinfo tftpd true udhcpd upnp
# cd ..
# dltltp   ftp
dltftp: not found
# echo *
bin dev etc lib linuxrc mnt proc sbin usr var webs
# cd sbin
# echo *
ethctl ifconfig init insmod klogd logread reboot rmmod route syslogd vconfig
# ic fconfig
br0             Link encap:Ethernet  HWaddr 00:74:04:E4:11:11  
                inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:2505 errors:0 dropped:0 overruns:0 frame:0
                TX packets:1389 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:161252 (157.4 KiB)  TX bytes:267059 (260.7 KiB)
br1             Link encap:Ethernet  HWaddr 00:74:04:E4:11:11  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
eth0            Link encap:Ethernet  HWaddr 00:74:04:E4:11:11  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:2539 errors:0 dropped:0 overruns:0 frame:0
                TX packets:1740 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1000
                RX bytes:218766 (213.6 KiB)  TX bytes:336921 (329.0 KiB)
                Interrupt:23 Base address:0x2800
eth0.2          Link encap:Ethernet  HWaddr 00:74:04:E4:11:11  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
eth0.3          Link encap:Ethernet  HWaddr 00:74:04:E4:1:11  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:1225 errors:0 dropped:0 overruns:0 frame:0
                TX packets:645 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:81332 (79.4 KiB)  TX bytes:65145 (63.6 KiB)
eth0.4          Link encap:Ethernet  HWaddr 00:74:04:E4:11:11  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:0 (0.0 B)  TX bytes:28203 (27.5 KiB)
eth0.5          Link encap:Ethernet  HWaddr 00:74:04:E4:11:11  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:1310 errors:0 dropped:0 overruns:0 frame:0
                TX packets:912 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:91527 (89.3 KiB)  TX bytes:235138 (229.6 KiB)
lo              Link encap:Local Loopback  
                inet addr:127.0.0.1  Mask:255.0.0.0
                UP LOOPBACK RUNNING  MTU:16436  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0
                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
nas_0_35        Link encap:Ethernet  HWaddr 00:74:04:E4:11:1E  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:0 errors:0 dropped:189 overruns:0 carrier:0
                collisions:0 txqueuelen:1000
                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
nas_8_35        Link encap:Ethernet  HWaddr 00:74:04:E4:11:1D  
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:189 errors:0 dropped:189 overruns:0 carrier:0
                collisions:0 txqueuelen:1000
                RX bytes:0 (0.0 B)  TX bytes:30159 (29.4 KiB)
ppp_0_35_1      Link encap:Point-Point Protocol  
                inet addr:10.64.65.159  P-t-P:10.112.113.207  Mask:255.255.255.255
                UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:3
                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
# echo *
ethctl ifconfig init insmod klogd logread reboot rmmod route syslogd vconfig
# vconfig
BusyBox v1.00 (2005.05.25-02:36+0000) multi-call binary
Usage: vconfig COMMAND [OPTIONS] ...
vconfig lets you create and remove virtual ethernet devices.
Options:
        add             [interface-name] [vlan_id]
        rem             [vlan-name]
        set_flag        [interface-name] [flag-num]       [0 | 1]
        set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
        set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
        set_name_type   [name-type]
# cd ..
# echo *
bin dev etc lib linuxrc mnt proc sbin usr var webs
# cd    htlp     elp
Built-in commands:
-------------------
        . : break cd continue eval exec exit export help login newgrp
        read readonly set shift times trap umask wait [ busybox cat df
        dmesg echo expr false ifconfig init insmod kill klogd linuxrc
        logger logread mkdir mount msh ping ps pwd reboot rm rmmod route
        sendarp sh sysinfo syslogd test tftp tftpd true tty vconfig
# help all
Built-in commands:
-------------------
        . : break cd continue eval exec exit export help login newgrp
        read readonly set shift times trap umask wait [ busybox cat df
        dmesg echo expr false ifconfig init insmod kill klogd linuxrc
        logger logread mkdir mount msh ping ps pwd reboot rm rmmod route
        sendarp sh sysinfo syslogd test tftp tftpd true tty vconfig
# cat /proc/cpuinfo
system type             : 96338E
processor               : 0
cpu model               : BCM6338 V1.0
BogoMIPS                : 235.52
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : no
VCED exceptions         : not available
VCEI exceptions         : not available
# cat . /proc/meminfo
MemTotal:         6156 kB
MemFree:           416 kB
Buffers:           108 kB
Cached:           1164 kB
SwapCached:          0 kB
Active:           2108 kB
Inactive:          144 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:         6156 kB
LowFree:           416 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           1972 kB
Slab:             2052 kB
Committed_AS:     2792 kB
PageTables:        272 kB
VmallocTotal:  1048560 kB
VmallocUsed:       660 kB
VmallocChunk:  1047880 kB
# cat /proc /version
cat: Read error: Is a directory
cat: /version: No such file or directory
# cat /proc/version
Linux version 2.6.8.1 (root@litaolinux) (gcc version 3.4.2) #1 Wed May 25 10:31:40 CST 2005
# ps
  PID  Uid     VmSize Stat Command
    1 admin       260 S   init               
    2 admin           SWN [ksoftirqd/0]
    3 admin           SW< [events/0]
    4 admin           SW< [khelper]
    5 admin           SW< [kblockd/0]
    6 admin           SW  [pdflush]
    7 admin           SW  [pdflush]
    8 admin           SW  [kswapd0]
    9 admin           SW< [aio/0]
   10 admin           SW  [mtdblockd]
   17 admin       288 S   -sh
   35 admin       680 S   cfm
  123 admin       196 S   pvc2684d
  222 admin       216 S   dhcpd
  323 admin       172 S   sntp -s time.nist.gov -s clock.via.net -t Beijing, Ch
  326 admin       216 S   klogd
  328 admin       260 S   syslogd -C -l 7
  330 admin       648 S   telnetd
  334 admin       152 S   bftpd
  337 admin       184 S   tftpd
  338 admin       844 S   httpd
  344 admin       296 S   pppd -c 0.35.1 -r xxx -i nas_0_35 -u xxxxxxxx -p
  417 admin       708 S   telnetd
  430 admin       264 S   sh -c sh
  431 admin       316 S   sh
  533 admin       236 R   ps
&#35; ftp
ftp: not found
&#35; cat /proc/version       modules
ipt_state 544 0 - Live 0xc00a2000
ipt_mark 416 0 - Live 0xc00a0000
ipt_limit 896 0 - Live 0xc009e000
ipt_TCPMSS 2240 0 - Live 0xc0098000
ipt_REDIRECT 768 0 - Live 0xc009a000
ipt_MASQUERADE 1504 0 - Live 0xc0094000
ipt_MARK 704 0 - Live 0xc0096000
ipt_LOG 4064 0 - Live 0xc0039000
ip_nat_tftp 1888 0 - Live 0xc0092000
ip_nat_pptp 1824 0 - Live 0xc0090000
ip_nat_irc 2304 0 - Live 0xc008e000
ip_nat_h323 2112 0 - Live 0xc008c000
ip_nat_gre 1408 0 - Live 0xc008a000
ip_nat_ftp 2944 0 - Live 0xc0088000
ip_conntrack_tftp 1824 0 - Live 0xc0086000
ip_conntrack_pptp 2416 0 - Live 0xc0084000
ip_conntrack_irc 68864 1 ip_nat_irc, Live 0xc0072000
ip_conntrack_h323 2256 0 - Live 0xc0070000
ip_conntrack_gre 1968 2 ip_nat_pptp,ip_conntrack_pptp, Live 0xc0051000
ip_conntrack_ftp 20576 1 ip_nat_ftp, Live 0xc003c000
iptable_mangle 960 0 - Live 0xc0006000
iptable_nat 15184 8 ipt_REDIRECT,ipt_MASQUERADE,ip_nat_tftp,ip_nat_pptp,ip_nat_irc,ip_nat_h323,ip_nat_gre,ip_nat_ftp, Live 0xc004c000
ip_conntrack 24656 15 ipt_state,ipt_REDIRECT,ipt_MASQUERADE,ip_nat_tftp,ip_nat_pptp,ip_nat_irc,ip_nat_h323,ip_nat_ftp,ip_conntrack_tftp,ip_conntrack_pptp,ip_conntrack_irc,ip_conntrack_h323,ip_conntrack_gre,ip_conntrack_ftp,iptable_nat, Live 0xc0044000
iptable_filter 928 0 - Live 0xc000f000
ip_tables 13984 11 ipt_state,ipt_mark,ipt_limit,ipt_TCPMSS,ipt_REDIRECT,ipt_MASQUERADE,ipt_MARK,ipt_LOG,iptable_mangle,iptable_nat,iptable_filter, Live 0xc0032000
bcm_usb 15696 0 - Live 0xc0017000
bcm_enet 18640 0 - Live 0xc002c000
bcmprocfs 12256 0 - Live 0xc000b000
adsldd 112704 0 - Live 0xc0053000
blaadd 5808 0 - Live 0xc0008000
atmapi 54096 2 adsldd,blaadd, Live 0xc001d000
&#35; cat   route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.112.113.207  *               255.255.255.255 UH    0      0        0 ppp_0_35_1
192.168.1.0     *               255.255.255.0   U     0      0        0 br0
&#35; iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
&#35; exit
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> help all
help all: not found
Hit <enter> to continue
9
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> 9
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management -> 4
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software -> 1
        Update Software
Press <enter> to use current valuePress <esc> and <enter> to cancelTftp Server IP address (): 192.168.1.5
Update Software File Name (bcm963xx_fs_kernel):
tftp: timeout
tftp: timeout
tftp: timeout
tftp: timeout
tftp: timeout
tftp: last timeout
Total image size: 0
Tftp Image failed: tftp server OR file name not found.
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software/Update Software -> 1
        Update Software
Press <enter> to use current valuePress <esc> and <enter> to cancelTftp Server IP address (): 192.168.1.5
Update Software File Name (bcm963xx_fs_kernel):
tftp: timeout
tftp: timeout
tftp: timeout
tftp: timeout
tftp: timeout
tftp: last timeout
Total image size: 0
Tftp Image failed: tftp server OR file name not found.
Hit <enter> to continue
1 
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software/Update Software/Update Software -> 2
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management/Update Software/Update Software -> 1
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Settings Menu
1. Backup
2. Update
3. Dump
4. Exit
/ Management/Update Software/Update Software/Settings -> 4
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management/Update Software/Update Software -> 5
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
->
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
->
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> ping 192.168.1.5
No response from 192.168.1.5
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> p sh

BusyBox v1.00 (2005.05.25-02:36+0000) Built-in shell (msh)
Enter ';help'; for a list of built-in commands.
&#35; ping 192.168.1.1
192.168.1.1 is alive!
&#35; exit
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> ping 192.168.1.1
192.168.1.1 is alive!
Hit <enter> to continue
sh
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> sh

BusyBox v1.00 (2005.05.25-02:36+0000) Built-in shell (msh)
Enter ';help'; for a list of built-in commands.
&#35; echo *
bin dev etc lib linuxrc mnt proc sbin usr var webs
&#35; cd bin
&#35; cat
cat /bin
cat /bin
echo *
echo *
pwd
pwd

BCM96338 ADSL Router
Login: Password:
Login incorrect. Try again.
Login: admin
Password:
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> sh

BusyBox v1.00 (2005.05.25-02:36+0000) Built-in shell (msh)
Enter ';help'; for a list of built-in commands.
&#35; eco ho *
bin dev etc lib linuxrc mnt proc sbin usr var webs
&#35; cd bin
&#35; echo *
adsl adslctl atm atmctl bftpd brctl busybox cat cfm ddnsd df dhcpc dhcpd dhcpr dmesg dnsprobe dumpmem ebtables echo epi_ttcp ethctl false igmp iptables kill macaddr mkdir mount msh netctl ping pppd ps pvc2684ctl pvc2684d pwd reaim rm sendarp setmem sh sntp sysinfo tftpd true udhcpd upnp
&#35; tftpd
daemon bind failed
&#35; tftpd /?
&#35; daemon bind failed
bftpd
Bind failed: Address already in use
&#35; dumpmem
usage: dumpmem <address_in_hex> <length_in_decimal>
&#35; macaddr
xxxxxxxxxxxxxx
&#35; tftpd /?
daemon bind failed
&#35; tftpd     cd ..
&#35; cd li  dev
&#35; echo *
bcm bcmaal20 bcmadsl0 bcmatm0 bcmendpoint0 bcmles0 bcmvdsl0 brcmboard console initctl kmem log mem mtdblock0 mtdblock1 mtdblock2 mtdblock3 mtdblock4 mtdblock5 mtdblock6 mtdblock7 null port ppp printer0 ptmx ptyp0 ptyp1 ram ram0 ram1 ram2 ram3 tty tty0 tty1 ttyS0 ttyp0 ttyp1 zero
&#35; c 
&#35; cd ..
&#35; echo *
bin dev etc lib linuxrc mnt proc sbin usr var webs
&#35; cd proc
&#35; echo *
1 10 123 17 2 222 3 323 326 328 330 334 337 338 344 35 4 5 6 7 8 883 890 891 9 buddyinfo bus cmdline cpuinfo devices diskstats driver execdomains filesystems fs interrupts iomem ioports irq kcore kmsg loadavg locks meminfo misc modules mounts mtd net partitions self slabinfo stat sys sysvipc tty uptime var version vmstat
&#35; par   cd ..
&#35; cat   t /proc/partitions
major minor  &#35;blocks  name
  31     0       1132 mtdblock0
&#35; cat /proc/fs
cat: Read error: Is a directory
&#35; exit
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> 9
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management -> 4
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software -> 2
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management -> 5
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> ping 192.168.1.2
No response from 192.168.1.2
Hit <enter> to continue
s 
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> sh

BusyBox v1.00 (2005.05.25-02:36+0000) Built-in shell (msh)
Enter ';help'; for a list of built-in commands.
&#35; ping 192.168.1.5
No response from 192.168.1.5
&#35; ping 192.168.1.2
No response from 192.168.1.2
&#35;
&#35; ping 192.168.1.2[J
192.168.1.2 is alive!
&#35; exit
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> ping 192.168.1.2
192.168.1.2 is alive!
Hit <enter> to continue
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> 9
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management -> 4
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software -> 1
        Update Software
Press <enter> to use current valuePress <esc> and <enter> to cancelTftp Server IP address (): 192.168.1.2
Update Software File Name (bcm963xx_fs_kernel):
kill process [pid: 334] [name: bftpd]...
kill process [pid: 337] [name: tftpd]...
kill process [pid: 323] [name: sntp]...
kill process [pid: 326] [name: klogd]...
kill process [pid: 328] [name: syslogd]...
kill process [pid: 344] [name: pppd]...
Remaining modules:
bcm_usb 15696 0 - Live 0xc0017000
bcm_enet 18640 0 - Live 0xc002c000
bcmprocfs 12256 0 - Live 0xc000b000
adsldd 112704 0 - Live 0xc0053000
blaadd 5808 0 - Live 0xc0008000
atmapi 54096 2 adsldd,blaadd, Live 0xc001d000
Memory info:
Number of processes: 21
12:43am  up 43 min,
load average: 1 min:0.00, 5 min:0.01, 15 min:0.00
              total         used         free       shared      buffers
  Mem:         6156         5160          996            0          188
Swap:            0            0            0
Total:         6156         5160          996
Done removing processes
BCM96338 ADSL Router
Login: BCM96338 ADSL Router
Login: admin
Password:
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> 9
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management -> 4
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software -> 1
        Update Software
Press <enter> to use current valuePress <esc> and <enter> to cancelTftp Server IP address (): 192.168.1.2
Update Software File Name (bcm963xx_fs_kernel):
kill process [pid: 334] [name: bftpd]...
kill process [pid: 337] [name: tftpd]...
kill process [pid: 323] [name: sntp]...
kill process [pid: 326] [name: klogd]...
kill process [pid: 328] [name: syslogd]...
kill process [pid: 344] [name: pppd]...
Remaining modules:
bcm_usb 15696 0 - Live 0xc0017000
bcm_enet 18640 0 - Live 0xc002c000
bcmprocfs 12256 0 - Live 0xc000b000
adsldd 112704 0 - Live 0xc0053000
blaadd 5808 0 - Live 0xc0008000
atmapi 54096 2 adsldd,blaadd, Live 0xc001d000
Memory info:
Number of processes: 21
12:03am  up 3 min,
load average: 1 min:0.16, 5 min:0.10, 15 min:0.03
              total         used         free       shared      buffers
  Mem:         6156         5048         1108            0          116
Swap:            0            0            0
Total:         6156         5048         1108
BCM96338 ADSL Router
Login:
Password:
Login incorrect. Try again.
Login: admin
Password:
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Main Menu
1.  ADSL Link State
2.  LAN
3.  WAN
4.  DNS Server
5.  Route Setup
6.  NAT
7.  Firewall
8.  Quality Of Service
9.  Management
10. Passwords
11. Reset to Default
12. Save and Reboot
13. Exit
-> 9
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Management Menu
1. Settings
2. System Log
3. Access Control
4. Update Software
5. Exit
/ Management -> 4
[2J[HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File-Properties-Setting-Back Space key sends.

   Update Software Menu
1. Update Software
2. Exit
/ Management/Update Software -> 1
        Update Software
Press <enter> to use current valuePress <esc> and <enter> to cancelTftp Server IP address (): 192.168.1.2
Update Software File Name (bcm963xx_fs_kernel):
kill process [pid: 334] [name: bftpd]...
kill process [pid: 337] [name: tftpd]...
kill process [pid: 325] [name: sntp]...
kill process [pid: 324] [name: klogd]...
kill process [pid: 329] [name: syslogd]...
kill process [pid: 344] [name: pppd]...
Remaining modules:
bcm_usb 15696 0 - Live 0xc0017000
bcm_enet 18640 0 - Live 0xc002c000
bcmprocfs 12256 0 - Live 0xc000b000
adsldd 112704 0 - Live 0xc0053000
blaadd 5808 0 - Live 0xc0008000
atmapi 54096 2 adsldd,blaadd, Live 0xc001d000
Memory info:
Number of processes: 21
12:01am  up 1 min,
load average: 1 min:0.53, 5 min:0.14, 15 min:0.04
              total         used         free       shared      buffers
  Mem:         6156         5280          876            0          120
Swap:            0            0            0
Total:         6156         5280          876
Done removing processes
BCM96338 ADSL Router
Login: BCM96338 ADSL Router
Login:
Password:
Login incorrect. Try again.
Login:
Password:
发表于 2006-12-14 21:16:49 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

LZ的猫显然是深圳同维代工,刷Dynalink(亚旭代工)的固件当然不行,Dynalink的固件都有验证码的
发表于 2006-12-14 21:28:10 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

最左边的芯片最热?是指BCM5325吗?那是以太网交换芯片,负责4口交换机功能。按理说最热的应该是BCM6338才对。BCM6338运行于256MHz,BogoMIPS达到230MIPS,性能和Viking是没有可比性的,以我自己的使用经验似乎也没有遇到过你的问题。我怀疑还是个别问题,因为上海贝尔的固件挺烂的,当年的511E使用BCM6345也是有BT/Emule断线的现象,而同一条生产线下来的DSL831却很好用。
 楼主| 发表于 2006-12-14 21:46:58 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

就是那个5325最热,烫手。 6338是温的。固件升级不了,暂时也不管了,以后看看有没有其它办法直接通过其它办法直接烧flash。
 楼主| 发表于 2006-12-25 10:52:05 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

这两天自己做了条并口的JTAG线,改了WRT54G的工具,经过多次测试,终于成功备份和回复了BCM6338芯片的固件。
现在发现几个问题,还没有最后确认。
1。WRT54G Jtag工具在写入的时候DMA无法打开,烧录速度非常慢,2M wholeflash恢复需要15个小时。准备做个Wiggler线尝试一下。
2。RS232 Console需要电平转换,否则无法使用CFE加快固件写入。
3。WRT54G Jtag工具需要配合数据转换工具redim对固件的字节顺序进行调整才能正确写入。
因为没有untagged的固件可用,无法尝试其他品牌的固件。尝试下载了Dynalink RTA1335和中兴固件的CFE,都无法启动。控制台似乎也无法工作。
固件备份速度很快,大约10分钟即可全部备份2M的flash
发表于 2006-12-30 14:54:48 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

可以刷DYNALINK的固件。
我用的是中兴831,原固件记得应该是3.X版本的,
CPUINFO里面带有RTA1320字样。
BT也是很不稳定,经常断流。
后来找到新版本的DYNA固件,但是直接刷刷不进去。
最后用TFTP来升级就可以了。
但是BT下载还是几乎没有什么改善,
后来发现把UPNP关掉后会好一点。
看来不仅是由哪里代工的问题,而是生产线批次的问题。
发表于 2006-12-30 19:21:02 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

昏死哦 看不懂 太深奥哟
发表于 2007-1-3 23:55:28 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

关闭BT的允许加入DHT网络试试吧
 楼主| 发表于 2007-1-5 12:32:16 | 显示全部楼层

[原创]BroadCom 6338 芯片 固件的初步研究

从以前用Viking芯片的经验,EMUle对处理器的要求要超过BT,一般我BT最多只开3个任务同时下载,出现断流非常怪异。
从现有的固件看,上海贝尔的这个固件是broadcom公板的,而且版本还比较新。因为一直没时间搞定RS232控制台接口板,还没有进一步研究刷其它固件是否可行。
但可以确定的是通过控制台+JTAG利用CFE loader + tftp可以任意刷不同厂家的固件
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-5-11 18:03 , Processed in 0.029560 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表