BBR-4MGを弄る(Linux)(第2回)BBR-4MGをLinux化してみる

昨日、シリアル接続できるようにしたBBR-4MGですが、
びんずめ堂さん(http://www.binzume.net/)のLinux化ファームを使ってLinux化してみようと思います。

 

========関連記事========

Linux化するまでの、シリアル接続のログを載せときます。
まずは、電源ONします
===========================================================
BUFFALO BBR-4MG Loader v1.80 build Dec 12 2003 10:13:58
Broad Net Technology, INC.
===========================================================
manu_id=6000 chip_id=401A
INTEL TE28F160C3-B bottom boot 16-bit mode found
Copying boot params…..DONE
Press any key to enter command mode …
Press Reset button to enter Tiny_ETCPIP_KERNEL …
Flash Checking Passed.
Unzipping program from bank 2…done
Try to find image for running…
Unzipping program from bank 3…doneABCDEFGHIJDRAM
STCK
MAIN
[FLOW] Main() Begin ….
[GPIO FLOW] SetGpio() Begin ..
[GPIO FLOW] SetGpio() End.
[FLOW] Main() before call initialize_data_area() ..
##### _ftext = 0x80001000
##### _fdata = 0x80141080
##### __bss_start = 0x80156034
##### end = 0x806D9754
##### Backup Data from 0x80141080 to 0x80709754
[FLOW] Main() afeter call initialize_data_area()
install_exception
sys_irq_init
memlib_init
hw5120cfg_init
ADMtek_GPIO_Init()
set GPIO 3 to output mode and enable with output value HI.
System startup…
soho initialize COLOR1 : 450000
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
Set flash memory layout to Boot Parameters found !!!
Bootcode version: v1.80
Serial number: S647002257
Hardware version: u疆
v1.80
sizeof(struct III_Config_t) is 75980
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
default route: 0.0.0.0
BufferInit:
BUF_HDR_SZ=32 BUF_ALIGN_SZ=0 BUFFER_OFFSET=96
BUF_BUFSZ0=384 BUF_BUFSZ1=1632
NUM_OF_B0=200 NUM_OF_B1=1100
BUF_POOL0_SZ=83200 BUF_POOL1_SZ=1830400
*BUF0=0x804d79a8 *BUF1=0x80318b98
Altgn *BUF0=0xa04d79b0 *BUF1=0xa0318ba0
End at BUF0:0xa04ebeb0, BUF1:0xa04d79a0
buffer0 pointer init OK!
buffer1 pointer init OK!
time = 01/01/2003, 00:00:00
Interface 0 ip = 127.0.0.1
ssmac_init begin ..
+Pafter my_if5120_init ..
if_adm51201: Ethernet address : 00 16 01 1c ed 26
time = 01/01/2003, 00:00:00
Interface 1 ip = 192.168.11.1
if_adm51202: Ethernet address : 00 16 01 1c ed 27
time = 01/01/2003, 00:00:00
Re-Init NAT data structure
Init NAT data structure
Interface 2 ip = 0.0.0.0
ruleCheck()> Group: 0, Error: Useless rule index will be truncated
ruleCheck()> Group: 1, Error: Useless rule index will be truncated
ruleCheck()> Group: 2, Error: Useless rule index will be truncated
ruleCheck()> Group: 3, Error: Useless rule index will be truncated
ruleCheck()> Classify Rule: 1, Error: Protocol Field
ruleCheck()> Classify Rule: 2, Error: Protocol Field
ruleCheck()> Classify Rule: 3, Error: Protocol Field
ruleCheck()> Classify Rule: 4, Error: Protocol Field
ruleCheck()> Classify Rule: 5, Error: Protocol Field
ruleCheck()> Classify Rule: 6, Error: Protocol Field
ruleCheck()> Classify Rule: 7, Error: Protocol Field
ruleCheck()> Classify Rule: 8, Error: Protocol Field
ruleCheck()> Classify Rule: 9, Error: Protocol Field
ruleCheck()> Classify Rule: 10, Error: Protocol Field
ruleCheck()> Classify Rule: 11, Error: Protocol Field
ruleCheck()> Classify Rule: 12, Error: Protocol Field
ruleCheck()> Classify Rule: 13, Error: Protocol Field
ruleCheck()> Classify Rule: 14, Error: Protocol Field
ruleCheck()> Classify Rule: 15, Error: Protocol Field
ruleCheck()> Classify Rule: 16, Error: Protocol Field
ruleCheck()> Classify Rule: 17, Error: Protocol Field
ruleCheck()> Classify Rule: 18, Error: Protocol Field
ruleCheck()> Classify Rule: 19, Error: Protocol Field
ruleCheck()> Classify Rule: 20, Error: Protocol Field
ruleCheck()> Classify Rule: 21, Error: Protocol Field
ruleCheck()> Classify Rule: 22, Error: Protocol Field
ruleCheck()> Classify Rule: 23, Error: Protocol Field
ruleCheck()> Classify Rule: 24, Error: Protocol Field
ruleCheck()> Classify Rule: 25, Error: Protocol Field
ruleCheck()> Classify Rule: 26, Error: Protocol Field
ruleCheck()> Classify Rule: 27, Error: Protocol Field
ruleCheck()> Classify Rule: 28, Error: Protocol Field
ruleCheck()> Classify Rule: 29, Error: Protocol Field
ruleCheck()> Classify Rule: 30, Error: Protocol Field
ruleCheck()> Classify Rule: 31, Error: Protocol Field
ruleCheck()> Classify Rule: 32, Error: Protocol Field
reqCBACBuf()> init match pool, Have: 1000
Memory Address: 0x8067b158 ~ 0x80681ed4
reqCBACBuf()> init timeGap pool, Have: 10000
Memory Address: 0x80681ed4 ~ 0x806b2c28
reqCBACBuf()> init sameHost pool, Have: 2000
Memory Address: 0x806b2c28 ~ 0x806c2648
[setClsfyEnable] clsfy_func=0
CBAC rule pool initialized !!
Init NAT data structure
RUNTASK id=1 if_task if0…
RUNTASK id=2 if_task if1…
RUNTASK id=3 if_task if2…
RUNTASK id=4 timer_task…
RUNTASK id=5 conn_mgr…
year=103,mon=0,day=1RUNTASK id=6 period_task…
RUNTASK id=7 dhcp_daemon…
RUNTASK id=8 dhcp_clt…on interface 2
RUNTASK httpd…
RUNTASK id=11 dnsproxy…
RUNTASK id=12 rip…
RUNTASK id=13 ripout…
RUNTASK id=14 pptp_callmgr…
RUNTASK id=15 dhcpd_mgmt_task…
UPnP is enabled
UPNP Device initialize success! slot=16
RUNTASK id=17 interrupt_read_task…
RUNTASK id=18 Receive_Server_Thread…
RUNTASK id=19 Alarm_Server_Task…
Starting Multitask…
MTstart2() begin …
RUNTASK id=0 period_task…
httpd: listen at 192.168.11.1:80
dnsproxy running…
IP_ADD_MEMBERSHIP: e0000009
[ripCreateSocket] join 224.0.0.9 on 127.0.0.1 ok!! [ifno=0] IP_ADD_MEMBERSHIP: e0000009
[ripCreateSocket] join 224.0.0.9 on 192.168.11.1 ok!! [ifno=1] dhcpd_mgmt_task started…
Receive_Server_Thread
1st seed=0x65d48818
httpd: listen at 192.168.11.1:62857
HTTPD: add a listen port 62857 for UPNP
**** httpd_ready=1
+P2u[dhcp_clt] could not find DHCP daemon to get information
period_task running 60
Buf0: 198, Buf1: 845
[dhcp_clt] could not find DHCP daemon to get information
IP_ADD_MEMBERSHIP: effffffa
[dhcp_clt] could not find DHCP daemon to get information
period_task running 120
Buf0: 197, Buf1: 846
[dhcp_clt] could not find DHCP daemon to get information
period_task running 180
Buf0: 197, Buf1: 846
[dhcp_clt] could not find DHCP daemon to get information
IGMPv3 Membership Report
IGMPv3 Membership Report
IGMPv3 Membership Report
IGMPv3 Membership Report
IGMPv3 Membership Report
[dhcp_clt] could not find DHCP daemon to get information
period_task running 240
Buf0: 135, Buf1: 908
[dhcp_clt] could not find DHCP daemon to get information
[25]FILE: c:/project/ttf2003/source/firmware/ap/upnp/http_client.c, LINE: 1767 TIMEOUT ON READ[25]FILE: c:/project/ttf2003/source/firmware/ap/upnp/http_client.c, LINE: 1658 ERROR READING SOCKETgenaNotify : return_code = -202
period_task running 300
Buf0: 140, Buf1: 903
[dhcp_clt] could not find DHCP daemon to get information
[dhcp_clt] could not find DHCP daemon to get information
period_task running 360
Buf0: 158, Buf1: 885
[dhcp_clt] could not find DHCP daemon to get information
period_task running 420
Buf0: 136, Buf1: 907
[dhcp_clt] could not find DHCP daemon to get information
period_task running 480
Buf0: 142, Buf1: 901
[dhcp_clt] could not find DHCP daemon to get information
[dhcp_clt] could not find DHCP daemon to get information
period_task running 540
Buf0: 148, Buf1: 895
[dhcp_clt] could not find DHCP daemon to get information
period_task running 600
Buf0: 162, Buf1: 881
[dhcp_clt] could not find DHCP daemon to get information
[dhcp_clt] could not find DHCP daemon to get information
period_task running 660
Buf0: 164, Buf1: 879
[dhcp_clt] could not find DHCP daemon to get information
period_task running 720
Buf0: 176, Buf1: 867
[dhcp_clt] could not find DHCP daemon to get information
[dhcp_clt] could not find DHCP daemon to get information
period_task running 780
Buf0: 190, Buf1: 853
[dhcp_clt] could not find DHCP daemon to get information
period_task running 840
Buf0: 197, Buf1: 846
[dhcp_clt] could not find DHCP daemon to get information
period_task running 900
Buf0: 198, Buf1: 845
[dhcp_clt] could not find DHCP daemon to get information
[dhcp_clt] could not find DHCP daemon to get information
↓WEB設定画面から設定を初期化
referer header for /www/cgi-bin/return_default.exe is http://192.168.11.1/ad-admin-init.stm
tranlated path: /www/doc/ad-admin-init.stm
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
erase from location bfc20000 done
erase from location bfc30000 done
write length 128cc
01234
Verify OK
period_task running 960
Buf0: 125, Buf1: 918
Warm_Reboot(), rebooting …
ADM5120 : Disable CPU Port
ADMtek_RESET() by Watch Dog
↓初期化終了後に自動で再起動
===========================================================
BUFFALO BBR-4MG Loader v1.80 build Dec 12 2003 10:13:58
Broad Net Technology, INC.
===========================================================
manu_id=6000 chip_id=401A
INTEL TE28F160C3-B bottom boot 16-bit mode found
Copying boot params…..DONE
Press any key to enter command mode …
Press Reset button to enter Tiny_ETCPIP_KERNEL …
Flash Checking Passed.
Unzipping program from bank 2…done
Try to find image for running…
Unzipping program from bank 3…doneABCDEFGHIJDRAM
STCK
MAIN
[FLOW] Main() Begin ….
[GPIO FLOW] SetGpio() Begin ..
[GPIO FLOW] SetGpio() End.
[FLOW] Main() before call initialize_data_area() ..
##### _ftext = 0x80001000
##### _fdata = 0x80141080
##### __bss_start = 0x80156034
##### end = 0x806D9754
##### Backup Data from 0x80141080 to 0x80709754
[FLOW] Main() afeter call initialize_data_area()
install_exception
sys_irq_init
memlib_init
hw5120cfg_init
ADMtek_GPIO_Init()
set GPIO 3 to output mode and enable with output value HI.
System startup…
soho initialize COLOR1 : 450000
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
Set flash memory layout to Boot Parameters found !!!
Bootcode version: v1.80
Serial number: S647002257
Hardware version: u疆
v1.80
sizeof(struct III_Config_t) is 75980
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
default route: 0.0.0.0
BufferInit:
BUF_HDR_SZ=32 BUF_ALIGN_SZ=0 BUFFER_OFFSET=96
BUF_BUFSZ0=384 BUF_BUFSZ1=1632
NUM_OF_B0=200 NUM_OF_B1=1100
BUF_POOL0_SZ=83200 BUF_POOL1_SZ=1830400
*BUF0=0x804d79a8 *BUF1=0x80318b98
Altgn *BUF0=0xa04d79b0 *BUF1=0xa0318ba0
End at BUF0:0xa04ebeb0, BUF1:0xa04d79a0
buffer0 pointer init OK!
buffer1 pointer init OK!
time = 01/01/2003, 00:00:00
Interface 0 ip = 127.0.0.1
ssmac_init begin ..
+Pafter my_if5120_init ..
if_adm51201: Ethernet address : 00 16 01 1c ed 26
time = 01/01/2003, 00:00:00
Interface 1 ip = 192.168.11.1
if_adm51202: Ethernet address : 00 16 01 1c ed 27
time = 01/01/2003, 00:00:00
Re-Init NAT data structure
Init NAT data structure
Interface 2 ip = 0.0.0.0
ruleCheck()> Group: 0, Error: Useless rule index will be truncated
ruleCheck()> Group: 1, Error: Useless rule index will be truncated
ruleCheck()> Group: 2, Error: Useless rule index will be truncated
ruleCheck()> Group: 3, Error: Useless rule index will be truncated
ruleCheck()> Classify Rule: 1, Error: Protocol Field
ruleCheck()> Classify Rule: 2, Error: Protocol Field
ruleCheck()> Classify Rule: 3, Error: Protocol Field
ruleCheck()> Classify Rule: 4, Error: Protocol Field
ruleCheck()> Classify Rule: 5, Error: Protocol Field
ruleCheck()> Classify Rule: 6, Error: Protocol Field
ruleCheck()> Classify Rule: 7, Error: Protocol Field
ruleCheck()> Classify Rule: 8, Error: Protocol Field
ruleCheck()> Classify Rule: 9, Error: Protocol Field
ruleCheck()> Classify Rule: 10, Error: Protocol Field
ruleCheck()> Classify Rule: 11, Error: Protocol Field
ruleCheck()> Classify Rule: 12, Error: Protocol Field
ruleCheck()> Classify Rule: 13, Error: Protocol Field
ruleCheck()> Classify Rule: 14, Error: Protocol Field
ruleCheck()> Classify Rule: 15, Error: Protocol Field
ruleCheck()> Classify Rule: 16, Error: Protocol Field
ruleCheck()> Classify Rule: 17, Error: Protocol Field
ruleCheck()> Classify Rule: 18, Error: Protocol Field
ruleCheck()> Classify Rule: 19, Error: Protocol Field
ruleCheck()> Classify Rule: 20, Error: Protocol Field
ruleCheck()> Classify Rule: 21, Error: Protocol Field
ruleCheck()> Classify Rule: 22, Error: Protocol Field
ruleCheck()> Classify Rule: 23, Error: Protocol Field
ruleCheck()> Classify Rule: 24, Error: Protocol Field
ruleCheck()> Classify Rule: 25, Error: Protocol Field
ruleCheck()> Classify Rule: 26, Error: Protocol Field
ruleCheck()> Classify Rule: 27, Error: Protocol Field
ruleCheck()> Classify Rule: 28, Error: Protocol Field
ruleCheck()> Classify Rule: 29, Error: Protocol Field
ruleCheck()> Classify Rule: 30, Error: Protocol Field
ruleCheck()> Classify Rule: 31, Error: Protocol Field
ruleCheck()> Classify Rule: 32, Error: Protocol Field
reqCBACBuf()> init match pool, Have: 1000
Memory Address: 0x8067b158 ~ 0x80681ed4
reqCBACBuf()> init timeGap pool, Have: 10000
Memory Address: 0x80681ed4 ~ 0x806b2c28
reqCBACBuf()> init sameHost pool, Have: 2000
Memory Address: 0x806b2c28 ~ 0x806c2648
[setClsfyEnable] clsfy_func=0
CBAC rule pool initialized !!
Init NAT data structure
RUNTASK id=1 if_task if0…
RUNTASK id=2 if_task if1…
RUNTASK id=3 if_task if2…
RUNTASK id=4 timer_task…
RUNTASK id=5 conn_mgr…
year=103,mon=0,day=1RUNTASK id=6 period_task…
RUNTASK id=7 dhcp_daemon…
RUNTASK id=8 dhcp_clt…on interface 2
RUNTASK httpd…
RUNTASK id=11 dnsproxy…
RUNTASK id=12 rip…
RUNTASK id=13 ripout…
RUNTASK id=14 pptp_callmgr…
RUNTASK id=15 dhcpd_mgmt_task…
UPnP is enabled
UPNP Device initialize success! slot=16
RUNTASK id=17 interrupt_read_task…
RUNTASK id=18 Receive_Server_Thread…
RUNTASK id=19 Alarm_Server_Task…
Starting Multitask…
MTstart2() begin …
RUNTASK id=0 period_task…
httpd: listen at 192.168.11.1:80
dnsproxy running…
IP_ADD_MEMBERSHIP: e0000009
[ripCreateSocket] join 224.0.0.9 on 127.0.0.1 ok!! [ifno=0] IP_ADD_MEMBERSHIP: e0000009
[ripCreateSocket] join 224.0.0.9 on 192.168.11.1 ok!! [ifno=1] dhcpd_mgmt_task started…
Receive_Server_Thread
1st seed=0xe2d4acae
httpd: listen at 192.168.11.1:62251
HTTPD: add a listen port 62251 for UPNP
**** httpd_ready=1
+P2u[dhcp_clt] could not find DHCP daemon to get information
tcp_rst> ip_output fail
period_task running 60
Buf0: 143, Buf1: 900
[dhcp_clt] could not find DHCP daemon to get information
IP_ADD_MEMBERSHIP: effffffa
[dhcp_clt] could not find DHCP daemon to get information
period_task running 120
Buf0: 131, Buf1: 912
↓びんずめ堂さんのIntelフラッシュ用のLinux化ファームをWEB設定画面から導入
referer header for /www/cgi-bin/upgrade.exe is http://192.168.11.1/ad-admin-firm.stm
tranlated path: /www/doc/ad-admin-firm.stm
lens_up=0, call recv(), recv() returned, lens_up=512…
[CGI] value: bbrlinux_i.bin
[upgrade_CGI] FwUI , Firmware + UI
signature=BRN4MG
[Flash] : manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
[upgrade_CGI] Old platform
write to flash task…
[WriteToFlash_task] update UI, length=251298…
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
erase from location bfc40000 done
erase from location bfc50000 done
erase from location bfc60000 done
erase from location bfc7fff4 done
write length 3d5a2
0123456789abcdef
[WriteToFlash_task] update FW, length=514976…
manu_id=0089 chip_id=88C3
INTEL TE28F160C3-B bottom boot 16-bit mode found
erase from location bfc80000 done
erase from location bfc90000 done
erase from location bfca0000 done
erase from location bfcb0000 done
erase from location bfcc0000 done
erase from location bfcd0000 done
erase from location bfce0000 done
erase from location bfcf0000 done
write length 7dba0
0123456789abcdefghijklmnopqrstuv
Warm_Reboot(), rebooting …
ADM5120 : Disable CPU Port
ADMtek_RESET() by Watch Dog
Linux化終了後の再起動
===========================================================
BUFFALO BBR-4MG Loader v1.80 build Dec 12 2003 10:13:58
Broad Net Technology, INC.
===========================================================
manu_id=6000 chip_id=401A
INTEL TE28F160C3-B bottom boot 16-bit mode found
Copying boot params…..DONE
Press any key to enter command mode …
Press Reset button to enter Tiny_ETCPIP_KERNEL …
Flash Checking Passed.
Unzipping program from bank 2…done
Try to find image for running…
Unzipping program from bank 3…done
LINUX started…
ADM5120 Demo board
CPU revision is: 0001800b
Primary instruction cache 8kb, linesize 16 bytes (2 ways)
Primary data cache 8kb, linesize 16 bytes (2 ways)
Linux version 2.4.18-MIPS-01.00 (ksk@vaio) #1116 土 10月 8 17:20:55 JST 2005
am5120_setup() starts.
System no PCI BIOS
Determined physical RAM map:
memory: 006a1000 @ 0015f000 (usable)
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram0 console=ttyS0
CPU clock: 175MHz
Calibrating delay loop… 174.48 BogoMIPS
Memory: 6648k/6788k available (1123k kernel code, 140k reserved, 72k data, 52k init, 0k highmem)
Dentry-cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
Checking for ‘wait’ instruction… available.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096
N_HDLC line discipline registered.
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 3072K size 1024 blocksize
loop: loaded (max 8 devices)
ADM5120 Switch Module Init
initrd image at bfc400c0
ADM5120 flash mapping: 200000 at bfc00000
ADM5120 Flash: Found 1 x16 devices at 0x0 in 16-bit mode
Intel/Sharp Extended Query Table at 0x0035
cfi_cmdset_0001: Erase suspend on write enabled
Creating 6 MTD partitions on “ADM5120 Flash”:
0x00000000-0x00020000 : “Boot”
0x00020000-0x00040000 : “Configuration”
0x00040000-0x00080000 : “Web”
0x00080000-0x00100000 : “Code”
0x00010000-0x00110000 : “Bootprm”
0x00110000-0x00200000 : “User”
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (established 512 bind 512)
ip_conntrack version 2.1 (64 buckets, 512 max) – 360 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
LED & GPIO Driver v1.0
RAMDISK: bzip2 compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing prom memory: 0kb freed
Freeing unused kernel memory: 52k freed
init started: BusyBox v1.01 (2005.09.26-08:49+0000) multi-call binary
Starting pid 10, console /dev/ttyS0: ‘/etc/init.d/rcS’
info, udhcpc (v0.9.9-pre) started
info, udhcpd (v0.9.9-pre) started
Starting pid 22, console /dev/ttyS0: ‘/bin/sh’
BusyBox v1.01 (2005.09.26-08:49+0000) Built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
# Linux化成功!! ここからは、Tera Tremでシリアル接続にて操作する
# help ←コマンド確認
Built-in commands:
——————-
. : alias bg break cd chdir continue eval exec exit export false
fg hash help jobs kill let local pwd read readonly return set
shift times trap true type ulimit umask unalias unset wait
以上で、Linux化は終了です。

雑談スレ

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)