諸行無常

by

CAPL-6000 UART 정보

SW 이야기

친절하게도 보드 우상단에 "UART"라고 써 있으며 포트 번호도 붙어 있습니다.







Portmap

3 - TX

9 - RX

11,12 - GND


Baud rate

115200


Bootlog

AP99 (ar7241 - Virian) U-boot
DRAM:
sri
ar7240_ddr_initial_config(0x5300): virian ddr1 init
#### TAP VALUE 1 = 0x2, 2 = 0x2 [0x400a00: 0x0]
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 267k for U-Boot at: 83fbc000
Reserving 192k for malloc() at: 83f8c000
Reserving 44 Bytes for Board Info at: 83f8bfd4
Reserving 36 Bytes for Global Data at: 83f8bfb0
Reserving 128k for boot params() at: 83f6bfb0
Stack Pointer at: 83f6bf98
Now running in RAM - U-Boot at: 83fbc000
Device ID 0xc22018
Detected flash is not SST : 0x18
id read 0x100000ff
sector count = 256
Flash: 16 MB
In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
Fetching MAC Address from 0x83fea8f0
Fetching MAC Address from 0x83fea8f0
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:14:06:84
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:14:06:85
eth0, eth1
Hit any key to stop autoboot:  0
Check Booting Partition : #### 1 ####
OK
## Booting image at 9f050100 ...
   Image Name:   Linux Kernel Image
   Created:      2013-07-27   8:13:40 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    774716 Bytes = 756.6 kB
   Load Address: 80002000
   Entry Point:  8020f000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8020f000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

Booting AR7240(Python)...
Linux version 2.6.15--LSDK-7.3.1.52 (joseph.chung@localhost.localdomain) (gcc ve                                                                                                                                                             rsion 3.4.4) #1 Sat Jul 27 17:13:22 KST 2013
flash_size passed from bootloader = 16
linux_env[0]:memsize=67108864
linux_env[1]:initrd_start=0xA0000000
linux_env[2]:initrd_size=0x0
linux_env[3]:flash_start=0x9F000000
linux_env[4]:flash_size=0x1000000
linux_env passed from bootloader = (0xa3f6c490)
arg 1: console=ttyS0,115200
arg 2: root=31:03
arg 3: rootfstype=jffs2
arg 4: init=/sbin/init
arg 5: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),768k(uImage),3712k(root                                                                                                                                                             fs),3136k(dummy),7616k(upgrade),640k(sysconf),128k(NVRAM),64k(ART)
arg 6: mem=64M
CPU revision is: 00019374
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin                                                                                                                                                             /init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),768k(uImage),3712k(rootf                                                                                                                                                             s),3136k(dummy),7616k(upgrade),640k(sysconf),128k(NVRAM),64k(ART) mem=64M
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 512 (order: 9, 8192 bytes)
Using 200.000 MHz high precision timer.
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 61896k/65536k available (1728k kernel code, 3584k reserved, 367k data, 1                                                                                                                                                             40k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  available.
NET: Registered protocol family 16
PCI init:ar7240_pcibios_init
SCSI subsystem initialized
Returning IRQ 48
TC classifier action (bugs to netdev@vger.kernel.org cc hadi@cyberus.ca)
AR7240 GPIOC major 0
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
Serial: 8250/16550 driver $Revision: #2 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
9 cmdlinepart partitions found on MTD device ar7240-nor0
Creating 9 MTD partitions on "ar7240-nor0":
0x00000000-0x00040000 : "u-boot"
0x00040000-0x00050000 : "u-boot-env"
0x00050000-0x00110000 : "uImage"
0x00110000-0x004b0000 : "rootfs"
0x004b0000-0x007c0000 : "dummy"
0x007c0000-0x00f30000 : "upgrade"
0x00f30000-0x00fd0000 : "sysconf"
0x00fd0000-0x00ff0000 : "NVRAM"
0x00ff0000-0x01000000 : "ART"
GACT probability on
u32 classifier
    Perfomance counters on
    input device check on
    Actions configured
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
FNAT Initialize ...
    Hash Size: 32768
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear 
All bugs added by David S. Miller 
arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 11
ar7240wdt_init(Jul 27 2013): Registering WDT (Minor:130)success
ar7240wdt_init(YWHWANG_PATCH): last is 1,ar7240_ahb_freq is 200000000Hz,SETTIME_                                                                                                                                                             MAX_VAL is 21474836 us
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 140k freed
init started:  BusyBox v1.01 (2013.07.27-08:13+0000) multi-call binary
init started:  BusyBox v1.01 (2013.07.27-08:13+0000) multi-call binary
AG7240: Length per segment 1536
AG7240: Max segments per packet 1
AG7240: Max tx descriptor count    40
AG7240: Max rx descriptor count    252
AG7240: fifo cfg 3 01f00140
AG7240CHH: Mac address for unit 1
AG7240CHH: 00:08:5b:76:43:7b
igmp netlink socket create sucess
lnxnvram: module license 'unspecified' taints kernel.
NVRAM-driver Rev : 1.0.1, LG Electorinics.
ath_hal: 0.9.17.1 (AR5416, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
wlan: 0.8.4.2 (Atheros/multi-bss)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_pci: 0.9.4.5 (Atheros/multi-bss)
wifi0: Atheros 9287: mem=0x10000000, irq=48 hw_base=0xb0000000
wlan: mac acl policy registered
wlan_me: Version 0.1
Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Port Status c000004
ar7240-ehci ar7240-ehci.0: ATH EHCI
ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1
ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000
hcc_params addr 0xbb000108 val 0x6 hcs_params addr 0xbb000104 val 0x10011
ar7240-ehci ar7240-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (ar7240_ohci)block sizes: ed 64 td 64
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
ifconfig eth0 up
SIOCGIFFLAGS: No such device
ifconfig eth1 up
SIOCGIFFLAGS: No such device
ifconfig lo inet 127.0.0.1 netmask 255.0.0.0

 (none) mips #1 Sat Jul 27 17:13:22 KST 2013 (none)
(none) login: ### Soft rest!!!! mac:peth0 unit:1 (980)ag7240_hw_setup
enabling the header of S26
AG7240:LAN dev:peth0 port_status:00000 phy:3 link down
--### MAC dev:peth0 is down, flags:1(mac up), 1(running), 0(carrier)
AG7240:LAN dev:peth0 port_status:00000 phy:2 link down
--### MAC dev:peth0 is down, flags:1(mac up), 1(running), 0(carrier)
AG7240:LAN dev:peth0 port_status:00000 phy:1 link down
--### MAC dev:peth0 is down, flags:1(mac up), 1(running), 0(carrier)
AG7240:LAN dev:peth0 port_status:00000 phy:0 link down
--### MAC dev:peth0 is down, flags:1(mac up), 1(running), 0(carrier)
device ath0 entered promiscuous mode
device ath1 entered promiscuous mode
eth1: Setting MAC address to  00 08 5b 76 43 78.
device peth0 entered promiscuous mode
VLAN (eth1):  Setting underlying device (peth0) to promiscious mode.
eth1: dev_set_promiscuity(master, 1)
device eth1 entered promiscuous mode
######## [2] ioctl fail cmd:8946 ret:-22  (3815)ag7240_do_ioctl
######## [1] ioctl fail cmd:8946 ret:-22  (3815)ag7240_do_ioctl
######## [0] ioctl fail cmd:8946 ret:-22  (3815)ag7240_do_ioctl
br0: port 2(ath1) entering learning state
br0: port 1(ath0) entering learning state
syslog: WAN Link Down
                     syslog: arpspoof disable
                                             br0: topology change detected, propagating
br0: port 2(ath1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(ath0) entering forwarding state