Fonera 2202のときに作成したシリアルケーブル(Vcc pull up)にてCQW-MRBへのシリアルコンソールの接続はできたようです。
ただし、コンソールログインが有効となっていないらしく、linuxの起動後は、Enterキーに対して、echo backの改行となるだけです。
コンソールからのログインプロンプトを出すには、CQW-MRBのファームウェアを展開して、手を入れなければならないのでしょうか。
分解の手順は、以下の通りです。
- バッテリー収納部の蓋をスライドさせて外す。バッテリを外す。
- バッテリー収納部の周辺の小ねじx4を外す。
- 筐体の裏カバーを外します。
あるピン配置に対して、9600, 19200, 34800, 57600, 115200と試して行く途中で、JP2のプリントパターンをいれて検索してみることを思いつき、「CQW-MRB JP2」 で検索したところ、twitterにすでに発見されている方の記録がありました。
http://twitter.com/lapis_moon/status/22545742065
確認の手間が大分省けました。感謝です。
JP2横のpinは 3.3V出ています。Vccではないかと思われます。
Pin配置については、下図を参照してください。
Fonera 2202とは違い Vcc は接続しなくともシリアルケーブルによるコンソール接続は機能するようです。
CQW-MRBの電源ONの直後にコンソールから何かキー入力があると、Ubootのプロンプトが表示されます。
U-Boot 1.1.4 (Dec 7 2009 - 14:15:23) U-Boot code: 00000000 -> 0001A204 BSS: -> 0001F15C CPU Clock: 200 MHz 1.8V Vdd Output: 1.793 2.5V Vdd Output: 2.531 RAM Configuration: Bank #0: 00000000 32 MB Flash Manufacturer: MXIC Flash Device: MXLV320CB(4MB) Flash: 4 MB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 ※ここでcountが1のときにキー入力 |
初期状態ではキー入力の待ち時間を示す環境変数bootdelayが 1 となっています。これを 3 に変更します。
Star Vela # printenv bootcmd=go 0x10040000 bootdelay=1 baudrate=38400 ethaddr=00:0a:0b:0c:0d:10 ipaddr=192.168.2.1 serverip=192.168.2.185 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial Environment size: 180/65532 bytes |
環境変数 bootdelayの値を 3 (秒)として、保存・再起動します。
Star Vela # setenv bootdelay 3 Star Vela # saveenv Saving Environment to Flash... Un-Protected 1 sectors Writing to Flash... Erasing sector 9 @ 10020000... OK Erased 1 sectors 0x00010000 done Protected 1 sectors tar Vela # reset |
Appendix 1. CQW-MRBの起動ログ
Warning - bad CRC, using default environment In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 ## Starting application at 0x10040000 ... Uncompressing Linux................................................................................... done, booting the kernel. Linux version 2.6.16-star (root@vance.localdomain) (gcc version 3.4.6) #1414 Tue Jun 15 10:42:15 CST 2010 CPU: FA526id(wb) [66015261] revision 1 (ARMv4) Machine: STAR STR9100 Memory policy: ECC disabled, Data cache writeback CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 2, 16 byte lines, 512 sets CPU0: D cache: 16384 bytes, associativity 2, 16 byte lines, 512 sets CPU clock at 200MHz AHB clock at 100MHz APB clock at 50MHz Built 1 zonelists Kernel command line: root=/dev/mtdblock3 PID hash table entries: 256 (order: 8, 4096 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 32MB = 32MB total Memory: 29788KB available (2252K code, 251K data, 100K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 PCI clock at 33M PCI: bus0: Fast back to back transfers disabled PCI Bridge found PCI map irq: 00:00.00 slot 0, pin 1, irq: 0 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub Bluetooth: Core ver 2.8 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized squashfs: version 3.4 (2008/08/26) Phillip Lougher Initializing Cryptographic API io scheduler noop registered io scheduler deadline registered (default) ***********Init LED Driver***************** Init GPIO Interrupt ***********Init LED Driver Finishing***************** LED & GPIO & LAN Status Driver LED_VERSION GPIO interrupt handler install ok. Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled serial8250: ttyS0 at MMIO 0x78000000 (irq = 10) is a 16550A VLAN0_VLAN_TAG: 0 PPP generic driver version 2.4.2 PPP BSD Compression module registered PPP MPPE Compression module registered NET: Registered protocol family 24 rdm_major = 254 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx STR9100 NOR Flash: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Creating 5 MTD partitions on "STR9100 NOR Flash": 0x00000000-0x00040000 : "ARMBOOT" 0x00040000-0x001a0000 : "Linux Kernel1" 0x001a0000-0x003e0000 : "ROOT FS1" 0x003e0000-0x00400000 : "Configs" 0x00040000-0x003e0000 : "Upgrade" block2mtd: version $Revision: 1.30 $ usbmon: debugfs is not available str9100-ehci str9100-ehci: str9100-ehci str9100-ehci str9100-ehci: new USB bus registered, assigned bus number 1 str9100-ehci str9100-ehci: irq 24, io mem 0xcc000000 str9100-ehci str9100-ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: Product: str9100-ehci usb usb1: Manufacturer: Linux 2.6.16-star ehci_hcd usb usb1: SerialNumber: str9100-ehci usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (STR9100) str9100-ohci str9100-ohci: str9100-ohci str9100-ohci str9100-ohci: new USB bus registered, assigned bus number 2 str9100-ohci str9100-ohci: irq 23, io mem 0xc4000000 usb usb2: Product: str9100-ohci usb usb2: Manufacturer: Linux 2.6.16-star ohci_hcd usb usb2: SerialNumber: str9100-ohci usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected usb 1-1: new high speed USB device using str9100-ehci and address 2 Bluetooth: HCI USB driver ver 2.9 usb 1-1: Product: 802.11 n WLAN usb 1-1: Manufacturer: Ralink usb 1-1: SerialNumber: 1.0 usb 1-1: configuration #1 chosen from 1 choice usbcore: registered new driver hci_usb u32 classifier Perfomance counters on Netfilter messages via NETLINK v0.30. NET: Registered protocol family 2 IP route cache hash table entries: 512 (order: -1, 2048 bytes) TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered ip_conntrack version 2.4 (256 buckets, 2048 max) - 240 bytes per conntrack ctnetlink v0.90: registering with nfnetlink. ip_tables: (C) 2000-2006 Netfilter Core Team ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/ ClusterIP Version 0.8 loaded successfully arp_tables: (C) 2002 David S. Miller TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Bluetooth: L2CAP ver 2.8 Bluetooth: L2CAP socket layer initialized Bluetooth: BNEP (Ethernet Emulation) ver 1.2 Bluetooth: BNEP filters: protocol multicast VFS: Mounted root (squashfs filesystem) readonly. Freeing init memory: 100K init started: BusyBox v1.11.1 (2010-06-15 10:42:52 CST) starting pid 615, tty '': '/etc/rc.sh' Cannot run '/etc/rc.sh': No such file or directory starting pid 616, tty '': '-/bin/sh'console. BusyBox v1.11.1 (2010-06-15 10:42:52 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. Sat Jan 1 00:00:00 UTC 2000 star_gpio:ioctl GPIO REG star_gpio:ioctl GPIO REG star_gpio:ioctl GPIO REG star_gpio:ioctl GPIO REG killall: pptp.sh: no process killed killall: pppoe.sh: no process killed killall: comgt: no process killed killall: failover.sh: no process killed killall: ppp3gloop.sh: no process killed Close Wan Interface!! No dnrd daemon found. Exiting. No dnrd daemon found. Exiting. cat: can't open '/etc/resolv.conf': No such file or directory open mac port 0 close mac port 0 open mac port 0 Initialize WLAN interface ****************Use External RADIUS****************** insmod: cannot insert '/bin/rt_timer.ko': Cannot allocate memory rt3070ap: module license 'unspecified' taints kernel. rtusb init ---> === pAd = c309a000, size = 482984 === <-- RTMPAllocAdapterBlock, Status=0 usbcore: registered new driver rt2870 <-- RTMPAllocTxRxRingMemory, Status=0 -->RTUSBVenderReset <--RTUSBVenderReset 1. Phy Mode = 9 2. Phy Mode = 9 # 3. Phy Mode = 9 RTMPSetPhyMode: channel is out of range, use first channel=0 MCS Set = ff 00 00 00 00 SYNC - BBP R4 to 20MHz.l Main bssid = 00:22:cf:30:2a:88 <==== rt28xx_init, Status=0 0x1300 = 00064300 Setup BRIDGE interface close mac port 0 ifconfig: ioctl 0x8913 failed: No such device bridge br0 doesn't exist; can't delete it Setup bridge... device eth0 entered promiscuous mode open mac port 0 device ra0 entered promiscuous mode br0: port 2(ra0) entering learning state br0: port 1(eth0) entering learning state br0: topology change detected, propagating br0: port 2(ra0) entering forwarding state br0: topology change detected, propagating br0: port 1(eth0) entering forwarding state ------> 802.1x--------->Enter ------> 802.1x------>Exit Static DHCP Leases disable! device eth0 left promiscuous mode br0: port 1(eth0) entering disabled state device eth0 entered promiscuous mode br0: port 1(eth0) entering learning state br0: topology change detected, propagating br0: port 1(eth0) entering forwarding state ********************************************************************** * Running Diagd * ********************************************************************** ********************************************************************** * Enable WSC_UPnP * ********************************************************************** route: ioctl 0x890c failed: No such process ********************************************************************** * Enable LLTD * ********************************************************************** /bin/init.sh: line 539: /bin/lld2d: not found ********************************************************************** * Enable GPIO Interrupt * ********************************************************************** killall: snmpd: no process killed killall: watchdog.sh: no process killed killall: radiusd: no process killed RADIUS server disable !! interface ra-1 does not exist! interface ra-1 does not exist! interface ra-1 does not exist! interface ra-1 does not exist! interface ra-1 does not exist! interface ra-1 does not exist! ReInit APMIB ********************************************************************** * FREE Page,Dentries and Inodes Cache * ********************************************************************** MemFree: 22176 kB Cached: 1224 kB #############only 3G WAN############## device eth0 left promiscuous mode br0: port 1(eth0) entering disabled state device eth0 entered promiscuous mode br0: port 1(eth0) entering learning state br0: topology change detected, propagating br0: port 1(eth0) entering forwarding state WEBS Restarting ! |
Appendix 2. Uboot info
Star Vela # base Base Address: 0x00000000 Star Vela # bdinfo arch_number = 0x0000038E env_t = 0x00000000 boot_params = 0x00000100 DRAM bank = 0x00000000 -> start = 0x00000000 -> size = 0x02000000 ethaddr = 00:0A:0B:XX:XX:XX ip_addr = 192.168.2.1 baudrate = 38400 bps Star Vela # coninfo List of available devices: serial 80000003 SIO stdin stdout stderr Star Vela # flinfo Bank # 1: MXIC Unknown Chip Type Size: 4 MB in 71 Sectors Sector Start Addresses: 10000000 (RO) 10002000 (RO) 10004000 (RO) 10006000 (RO) 10008000 (RO) 1000A000 (RO) 1000C000 (RO) 1000E000 (RO) 10010000 (RO) 10020000 (RO) 10030000 10040000 10050000 10060000 10070000 10080000 10090000 100A0000 100B0000 100C0000 100D0000 100E0000 100F0000 10100000 10110000 10120000 10130000 10140000 10150000 10160000 10170000 10180000 10190000 101A0000 101B0000 101C0000 101D0000 101E0000 101F0000 10200000 10210000 10220000 10230000 10240000 10250000 10260000 10270000 10280000 10290000 102A0000 102B0000 102C0000 102D0000 102E0000 102F0000 10300000 10310000 10320000 10330000 10340000 10350000 10360000 10370000 10380000 10390000 103A0000 103B0000 103C0000 103D0000 103E0000 103F0000 Star Vela # Star Vela # iminfo ## Checking Image at 00100000 ... Bad Magic Number Star Vela # imls Star Vela # pci Scanning PCI devices on bus 0 BusDevFun VendorId DeviceId Device Class Sub-Class _____________________________________________________________ 00.00.00 0xeeee 0x0000 Does not fit any class 0x00 Star Vela # |