일상생활/뚱땅뚱땅

GAPD-7000 Uart 접속 방법 및 결과




GAPD-7000의 UART에 접속하기 위해서는 일단 가공이 필요하다. UART 포트의 흔적이 기판에만 존재할 뿐 점퍼 케이블을 꼽을 수 있는 핀은 존재하지 않기 때문에, (J3라고 적힌) UART 포트 주변에 플럭스를 칠하고, 핀을 납땜 하자.


통신 속도는 115200이며, PuTTY 사용시 Parity와 Flow control 모두 None으로 잡도록 한다. 맨 좌측 부터 Vcc, Tx, Rx, GND 순이며, Vcc, Tx, Rx에 Vcc, Rx, Tx (시리얼 통신이다!) 순으로 연결만 해주면 공유기와 통신이 가능하다. 출력되는 로그를 보면 알 수 있는 것들이 많은데 이것에 대한 설명은 생략하도록 하겠다. Broadcom의 CFE를 개조하여 펌웨어를 만들었다는 것을 보고 알 수 있다.

Decompressing...done
Decompressing...done


CFE version 6.37.14.202 (r411974) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Thu Sep 26 17:16:48 KST 2013 (youngho@youngho-desktop)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 389 MHz
Info: DDR frequency set from clkfreq=800,*389*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.202 (r411974)
et2: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.202 (r411974)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x0106C518 (1492248)
Data:       0x00F44B5C - 0x00F450B4 (1368)
BSS:        0x00F450C0 - 0x00F6A518 (152664)
Heap:       0x00F6A518 - 0x0106A518 (1048576)
Stack:      0x0106A518 - 0x0106C518 (8192)
Text:       0x00F00000 - 0x00F3C4EC (247020)

spiflash_info(), d_id:0xC218 v_id:0xC2 sz 0x1000000 (65536 * 256) c_id:53010 c_r                                   ev:1 f3br:2
NVRAM was mapped to the Primary
Device eth0:  hwaddr 94-FB-B2-2B-10-30, ipaddr 192.168.123.1, mask 255.255.255.0
        gateway not set, nameserver not set
Booting(1): boot -raw -z -addr=0x8000 -max=0xef8000 flash0.os2:
Loader:raw Filesys:raw Dev:flash0.os2 File: Options:(null)
Loading: .... 4024832 bytes read
Entry at 0x00008000
Closing network.
Starting program at 0x00008000
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0x18000400 (irq = 117) is a 16550
brd: module loaded
loop: module loaded
pflash: found no supported devices
init_mtd_partitions(), device_id:0xC218 vendor_id:0xC2 sz 0x1000000 (65536 * 256)
The first offset=40000, 2nd offset=800000
bcmsflash: squash filesystem found at block 28
bcmsflash: squash filesystem found at block 152
Creating 11 MTD partitions on "bcmsflash":
0x000000000000-0x000000040000 : "boot"
0x000000040000-0x000000800000 : "linux"
0x0000001c8fe4-0x000000800000 : "rootfs"
0x000000800000-0x000000f40000 : "linux2"
0x000000988fb0-0x000000f40000 : "rootfs2"
0x000000f40000-0x000000f70000 : "dwlog"
0x000000f70000-0x000000f90000 : "DLG"
0x000000f90000-0x000000fa0000 : "dvrom"
0x000000fa0000-0x000000fc0000 : "dlog"
0x000000fc0000-0x000000fe0000 : "b_nvram"
0x000000fe0000-0x000001000000 : "nvram"
PPP generic driver version 2.4.2
NET: Registered protocol family 24
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:0b.1: EHCI Host Controller
ehci_hcd 0000:00:0b.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0b.1: irq 111, io mem 0x18021000
ehci_hcd 0000:00:0b.1: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd 0000:00:0b.0: OHCI Host Controller
ohci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0b.0: irq 111, io mem 0x18022000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
xhci_hcd 0000:00:0c.0: xHCI Host Controller
xhci_hcd 0000:00:0c.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:00:0c.0: irq 112, io mem 0x18023000
xhci_hcd 0000:00:0c.0: Failed to enable MSI-X
xhci_hcd 0000:00:0c.0: failed to allocate MSI entry
usb usb3: No SuperSpeed endpoint companion for config 1  interface 0 altsetting 0 ep 129: using minimum values
xHCI xhci_add_endpoint called for root hub
xHCI xhci_check_bandwidth called for root hub
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
u32 classifier
    Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1951 buckets, 7804 max)
ctnetlink v0.93: registering with nfnetlink.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear 
All bugs added by David S. Miller 
VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
devtmpfs: mounted
Freeing init memory: 252K
/sbin/hotplug2: No such file or directory
insmod: ctf.ko: no module by that name found
insmod: bcm57xx.ko: no module by that name found
insmod: dpsta.ko: no module by that name found
insmod: cp210x.ko: no module by that name found
wan link 0
ETHER_PORT_PWR_DOWN_UP
Hit enter to continue...voice ssid already moved
mirror: no dport
WARNING: console log level set to 1
NET: Setting vlan1 hw addr to 94:FB:B2:2B:10:31
vlan1: WLC_GET_VAR(cap): Operation not supported
eth1: cmd=231: Invalid argument
eth1: WLC_SET_VAR(ack_extra_timeout): Operation not supported
eth1: WLC_SET_VAR(sifsdur): Operation not supported
eth1: WLC_SET_VAR(slotdur): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth1: WLC_SET_VAR(chanspec): Invalid argument
eth1: WLC_SET_VAR(bg_rate): Operation not supported
eth1: WLC_SET_VAR(a_rate): Operation not supported
eth1: WLC_SET_VAR(bg_rate): Operation not supported
eth1: WLC_SET_VAR(a_rate): Operation not supported
eth1: WLC_SET_VAR(bg_mrate): Operation not supported
eth1: WLC_SET_VAR(a_mrate): Operation not supported
eth1: WLC_SET_VAR(bg_mrate): Operation not supported
eth1: WLC_SET_VAR(a_mrate): Operation not supported
eth1: WLC_SET_VAR(avg_dma_xfer_rate): Operation not supported
eth1: WLC_SET_VAR(rx_sense_11b): Operation not supported
eth1: WLC_SET_VAR(rx_sense_ofdm): Operation not supported
eth1: WLC_SET_VAR(obss_coex): Operation not supported
eth2: cmd=231: Invalid argument
eth2: WLC_SET_VAR(ack_extra_timeout): Operation not supported
eth2: WLC_SET_VAR(sifsdur): Operation not supported
eth2: WLC_SET_VAR(slotdur): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(bsscfg:dv_fpage_en): Operation not supported
eth2: WLC_SET_VAR(chanspec): Invalid argument
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(ampdu_rr_retry_limit_tid): Operation not supported
eth2: WLC_SET_VAR(bg_rate): Operation not supported
eth2: WLC_SET_VAR(a_rate): Operation not supported
eth2: WLC_SET_VAR(bg_rate): Operation not supported
eth2: WLC_SET_VAR(a_rate): Operation not supported
eth2: WLC_SET_VAR(bg_mrate): Operation not supported
eth2: WLC_SET_VAR(a_mrate): Operation not supported
eth2: WLC_SET_VAR(bg_mrate): Operation not supported
eth2: WLC_SET_VAR(a_mrate): Operation not supported
eth2: WLC_SET_VAR(avg_dma_xfer_rate): Operation not supported
eth2: WLC_SET_VAR(rx_sense_11b): Operation not supported
eth2: WLC_SET_VAR(rx_sense_ofdm): Operation not supported
eth2: cmd=64: Operation not supported
NET: Setting wl0.1 hw addr to 96:FB:B2:2B:10:31
NET: Error setting hw for wl0.1; returned -1
NET: Setting wl1.1 hw addr to 9A:FB:B2:2B:10:31
NET: Error setting hw for wl1.1; returned -1
fblock_init():208 testing /dev/mtd6
fblock_init():215 /dev/mtd6 sz 131072 / 65536
total 2 blk, 1 valid, 1 free
total 2 blk, 1 valid, 1 free
total rec 45, free_bytes: 127958(cur62430)
blk_id:  0
mem   stat: cnt2 mx2 bytes192 mx192
cache stat: cnt1 mx1 bytes65536 mx65536
fblock_init():208 testing /dev/mtd5
fblock_init():215 /dev/mtd5 sz 196608 / 65536
total 3 blk, 1 valid, 2 free
total 3 blk, 1 valid, 2 free
total rec 288, free_bytes: 172000(cur40944)
blk_id:  0
mem   stat: cnt3 mx3 bytes288 mx288
cache stat: cnt1 mx1 bytes65536 mx65536
/usr/sbin/phymons: No such file or directory
SNMP 192.168.123.1:161 succesfully opened.
igmp: qintv:60 timeout:150
vlan2: WLC_GET_VAR(cap): Operation not supported
dlog: do nv_integrity_check(1) OK
vlan2 dhcp
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
killall: udhcpd: no process killed
killall: udhcpd: no process killed
wlconf: wl0.1_ disabled at wlconf start
wlconf: wl1.1_ disabled at wlconf start
apmon: No such file or directory
Hit enter to continue...00:00:07.226 acsd: scan in progress ...
00:00:10.350 acsd: selected channel spec: 0x1001
wlconf: wl0.1_ enabled at wlconf start-bss
00:00:10.866 acsd: scan in progress ...
00:00:15.553 acsd: selected channel spec: 0xe03a
wlconf: wl1.1_ enabled at wlconf start-bss