::log.2011
[ TOP | Recently ]
NetBSD/FON2405E #2 / CTIO / NetBSD/FON2405E / NetBSD/netwalker #4 / FON2405E で u-boot / FON2405E / NetBSD config(9) checker
2011-10-12 NetBSD/FON2405E #2
というわけで、いつのまにやらNetBSD本家にRT3050対応のコードが入っていたので、bootさせてみる…が、何も考えてないのでダメだった。
もう一台FON2405Eをゲットしたので、秋月のFT232RLをハンダ付けして、シリアル出した状態にして沖さんに投棄。
並行して、以前沖さんが作ってくれたRT3052対応のpatchあてて、options CONSPEED=57600 を追加したら、見事bootしたー。
ohci0のattachで固まったけど、ここまで動いてしまえばすぐに追えるだろう。マズマズだな。
NetBSD使いのみんなも
U-Boot 1.1.3 (Jan 6 2010 - 07:10:30) RT3052 # tftp 80010000 netbsd.bin netboot_common, argc= 3 NetTxPacket = 0x81FE4DC0 Trying Eth0 (10/100-M) ETH_STATE_ACTIVE!! Using Eth0 (10/100-M) device TFTP from server 10.10.10.3; our IP address is 10.10.10.200 Filename 'netbsd.bin'. TIMEOUT_COUNT=10,Load address: 0x80010000 Loading: Got ARP REPLY, set server/gtwy eth addr (00:02:2a:dd:58:24) Got it T # first block received ################################################################ ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############# done Bytes transferred = 3059056 (2ead70 hex) NetBootFileXferSize= 002ead70 RT3052 # go 80010000 ## Starting application at 0x80010000 ... Enabled early console pmap_steal_memory: seg 0: 0x3 0x3 0x10 0x10 pmap_steal_memory: seg 0: too small for 142 pages pmap_steal_memory: seg 1: 0x339 0x339 0x1fff 0x1fff Loaded initial symtab at 0x80288610, strtab at 0x802b11cc, # entries 9799 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 5.99.56 (RT3050) #0: Wed Oct 12 21:01:51 JST 2011 ryo@moveq:/src/cvs/NetBSD/sys/arch/evbmips/compile/RT3050 total memory = 32768 KB avail memory = 28856 KB mainbus0 (root): Ralink System Bus cpu0 at mainbus0: 320.00MHz (hz cycles = 1600000, delay divisor = 160) cpu0: MIPS 24KE (0x1964c) Rev. 76 with software emulated floating point cpu0: 32 TLB entries, 256MB max page size cpu0: 32KB/32B 4-way set-associative L1 instruction cache cpu0: 16KB/32B 4-way set-associative write-back L1 data cache rwdog0 at mainbus0: Ralink watchdog controller rwdog0: max period 40 sec. rwdog0: KTICKLE mode, period -30 sec. rgpio0 at mainbus0: Ralink GPIO controller gpio0 at rgpio0: 98 pins ri2c0 at mainbus0: Ralink I2C controller iic0 at ri2c0: I2C bus com0 at mainbus0: Au1X00 UART, working fifo com0: console ohci0 at mainbus0: OHCI USB controller ohci0:
2011-09-29 CTIO
クティオのスペルはctioと書くようだ。

ピン配置は写真左から、VCC,RX,GND,TX。38400bps。
とりあえずシリアルは取れたが、Ether生えてないんだよなぁ。どうしよう。kermitやらs-recordでserial経由で送れるっぽいのでなんとかなるか。
U-Boot 1.1.4 (Jan 23 2009 - 12:09:13) U-Boot code: 00000000 -> 0001A50C BSS: -> 0001F45C 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: EON Flash Device: MXLV640BB(8MB) Flash: 8 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 Star Dorado2 # ? ? - alias for 'help' autoscr - run script from memory base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation echo - echo args to console erase - erase FLASH memory flinfo - print FLASH memory information go - start application at address 'addr' help - print online help iminfo - print header information for application image imls - list all images found in flash itest - return true/false on integer compare loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) mtest - simple RAM test mw - memory write (fill) nfs - boot image via network using NFS protocol nm - memory modify (constant address) pci - list and access PCI Configuration Space ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables protect - enable or disable FLASH write protection rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables sleep - delay execution for some time tftpboot- boot image via network using TFTP protocol version - print monitor version Star Dorado2 # version U-Boot 1.1.4 (Jan 23 2009 - 12:09:13) Star Dorado2 # bdinfo arch_number = 0x0000038E env_t = 0x00000000 boot_params = 0x00000100 DRAM bank = 0x00000000 -> start = 0x00000000 -> size = 0x02000000 ethaddr = 00:0A:0B:0C:0D:10 ip_addr = 192.168.0.1 baudrate = 38400 bps Star Dorado2 # printenv bootargs=/dev/mtdblock3 ro cpufreq=200M rootfstype=squashfs console=ttyS0,38400 bootcmd=go 0x10040000 bootdelay=3 baudrate=38400 ethaddr=00:0a:0b:0c:0d:10 ipaddr=192.168.0.1 serverip=192.168.0.100 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial Environment size: 261/65532 bytes Star Dorado2 # 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 Dorado2 # iminfo ## Checking Image at 00100000 ... Bad Magic Number Star Dorado2 # flinfo Bank # 1: EON MX29LV640BB (64Mbit) Size: 8 MB in 135 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 10400000 10410000 10420000 10430000 10440000 10450000 10460000 10470000 10480000 10490000 104A0000 104B0000 104C0000 104D0000 104E0000 104F0000 10500000 10510000 10520000 10530000 10540000 10550000 10560000 10570000 10580000 10590000 105A0000 105B0000 105C0000 105D0000 105E0000 105F0000 10600000 10610000 10620000 10630000 10640000 10650000 10660000 10670000 10680000 10690000 106A0000 106B0000 106C0000 106D0000 106E0000 106F0000 10700000 10710000 10720000 10730000 10740000 10750000 10760000 10770000 10780000 10790000 107A0000 107B0000 107C0000 107D0000 107E0000 107F0000 Star Dorado2 # coninfo List of available devices: serial 80000003 SIO stdin stdout stderr Star Dorado2 #
2011-05-23 NetBSD/FON2405E
RT3050のpdfはRT3050/52 datasheetでググると出てくるのでゲットする。
とりあえずUARTのアドレスを調べる。10000500。
u-bootのプロンプトからテスト。
RT3052 # mm.l 10000504 10000504: 00000000 ? 40 10000508: 00000000 ? . RT3052 #
何も起こらない。UARTLITE(10000c00)というものがあるので、こっちか? と思い、再度トライ。
RT3052 # mm.l 10000c04 10000c04: 0000003a ? 40 @10000c08: 00000000 ? . RT3052 #
ビンゴー(@)。というわけで、シリアルコンソールはUARTLITEを使っているようだ。
- やる気をチャージ←イマココ
- buildできるようにするためのkernel config/md関連のファイルを書く
- UARTLITEに文字を出すプログラムでbootテスト
- RT3050関連のincludeファイルを書く
- UARTドライバを書く。16550互換なのでcomのwrapperで済む(はず)
- mips core部分はちゃんと動くのかチェック
- copyrightまで動かす
- mountrootまで動かす
- 割り込みを動かす
- etherのデバドラを書く
- nfsbootさせる
- multiuserで上げる
- その他のデバドラを書く
- wifiのデバドラを書く
- 終わり
2011-01-21 NetBSD/netwalker #4
というわけで @h_kenken 氏から指摘があって実はシリアルの結線が間違っていたことがわかり、
ちゃんと配線するとシリアル入出力ともにちゃんと動きました。
そしてboot時に ^C を押すとあっさり RedBoot に落ちれました。あぁ…
以下、デフォルト状態のboot script
というわけで、fcofnig で Boot script を false にしたり、中身を sdstart にしたりすると、
デフォで RedBoot が上がってきたりSDカードからBootしたりできます。これでちょっとは楽になる?
ちゃんと配線するとシリアル入出力ともにちゃんと動きました。
そしてboot時に ^C を押すとあっさり RedBoot に落ちれました。あぁ…
++Initializing SPI-NOR flash... JEDEC ID: 0xbf:0x25:0x41 SPI NOR: block_size=0x10000, blocks=0x20, start=0x00000000, end=0x00200000 ... Read from 0x1fef0000-0x1ff00000 at 0x00080000: . ... Read from 0x1fee3000-0x1fee4000 at 0x0008f000: . PMIC ID: 0x000045d0 [Rev: 2.0a] [Warning] FEC not connect right PHY: ID=ffffffff No network interfaces found Reset reason: Power-on reset fis/fconfig from SPI-NOR Boot switch: INTERNAL EXPANSION: SPI-NOR: eCSPI1 RedBoot(tm) bootstrap and debug environment [ROMRAM] Non-certified release, version FSL 200929 - built 21:29:52, Sep 9 2009 Platform: MX51 SHARP PC-Z1 [1.000] (Freescale i.MX51 based) PASS 2.0 [x32 DDR] Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited RAM: 0x00000000-0x1ff00000, [0x000a7bc8-0x1fee1000] available FLASH: 0x00000000 - 0x200000, 32 blocks of 0x00010000 bytes each. == Executing boot first script abort == == Executing boot script in 0.000 seconds - enter ^C to abort RedBoot> ^C RedBoot> ^C RedBoot> ^C RedBoot> ^C RedBoot> help Setup/Display clock Syntax: clock [<core clock in MHz> :<DDR clock in MHz>] Examples: [clock] -> Show various clocks [clock 665] -> Core=665 [clock 800:133] -> Core=800 DDR=133 [clock :166] -> Core=no change DDR=166 console ON/OFF console <ON/OFF> EXT2 debug mode dbg_e2fs <mode> EXT2 sector read dbg_e2fs_read sector SDRAM calib ddr2calib L2 cache L2 [ON | OFF] AD input adin <channel> {-l low-limit} {-u up-limit} Manage aliases kept in FLASH memory alias name [value] Set/Query the system console baud rate baudrate [-b <rate>] Manage machine caches cache [ON | OFF] Display/switch console channel channel [-1|<channel number>] Compute a 32bit checksum [POSIX algorithm] for a range of memory cksum -b <location> -l <length> Display disks/partitions. disks Display (hex dump) a range of memory dump -b <location> [-l <length>] [-s] [-1|-2|-4] Execute an image - with MMU off exec [-w timeout] [-b <load addr> [-l <length>]] [-r <ramdisk addr> [-s <ramdisk length>]] [-c "kernel command line"] [-t <target> ] [<entry_point>] Manage FLASH images fis {cmds} Manage configuration kept in FLASH memory fconfig [-i] [-l] [-n] [-f] [-d] | [-d] nickname [value] blow some fuses fuse_blow <bank> <row> <value> read some fuses fuse_read <bank> <row> Execute code at a location go [-w <timeout>] [-c] [-n] [entry] Help about help? help [<topic>] Display command history history Set/change IP addresses ip_address [-b] [-l <local_ip_address>[/<mask_len>]] [-h <server_address>] Load a file load [-r] [-v] [-z to swap endianness on 16 bit] [-d] [-h <host>] [-p <TCP port>][-m <varies>] [-c <channel_number>] [-b <base_address>] <file_name> Compare two blocks of memory mcmp -s <location> -d <location> -l <length> [-1|-2|-4] {-f} Copy memory from one address to another mcopy -s <location> -d <location> -l <length> [-1|-2|-4] Fill a block of memory with a pattern mfill -b <location> -l <length> -p <pattern> [-1|-2|-4] Read/Write MMC/SD card sdhc <ram-addr> <flash-addr> <len-bytes> <r/w> Utility function to NAND flash using raw address nand {cmds} Network connectivity test ping [-v] [-n <count>] [-l <length>] [-t <timeout>] [-r <rate>] [-i <IP_addr>] -h <IP_addr> Read/Write internal PMIC register pmic <reg num> [value to be written] Power OFF poweroff Reset the system reset start from SD sdstart <-c "kernel command line"> <-f conf> <-s slot1/2> Read/Write/Erase SPI NOR flash spiflash <ram-addr> <flash-addr> <len-bytes> <r/w/e> Display RedBoot version information version Display (hex dump) a range of memory x -b <location> [-l <length>] [-s] [-1|-2|-4] Enable one flash media for Redboot factive [MMC|SPI] GPIO read gpio <group> GPIO write gpiow <group> <offset> <data> read info from Serial-Flash inforead -o <offset> {-l <length> [-1|-2|-3|-4]} {-b <ram-address>} wtite info to Serial-Flash infowrite -o <offset> <value> {-l <length> [-1|-2|-3|-4]} {-b <ram-address>} IOMUX read iomux <offset> [<length>] IOMUX write iomuxw <offset> <data> Update Redboot with currently running image romupdate Run an image at a location with MMU off run [<virtual addr>] SDRAM test sdramtest <start-address> <length> SD/MMC read image from specify address sdread -f <sd address>/-o <sd sector> -b <ram address> -l <length> [-s <slot 1/2>] SD/MMC register DISK sdregister <slot 1/2> SD/MMC update Redboot by specify address sdupdate <address> [-p <forcepart>] [-c <slot 1/2>] SD/MMC write image by specify address sdwrite -f <sd address>/-o <sd sector> -b <ram address> -l <length> [-s <slot 1/2>] Set FEC MAC address in Fuse registers set_fecmac [0x##:0x##:0x##:0x##:0x##:0x##] Serial-Flash update Redboot by specify address sromupdate <address> RedBoot> clock PLL1 PLL2 PLL3 ======================================== 800000000 665000000 216000000 CPU AHB IPG EMI_CLK ======================================================== 800000000 133000000 66500000 200000000 NFC USB IPG_PER_CLK ======================================== 26600000 54000000 24000000 UART1-3 SSI1 SSI2 SPI ======================================================== 66500000 54000000 54000000 54000000
以下、デフォルト状態のboot script
Boot first script: .. adin 5 -l 6800
Boot script: .. nand init .. nand read -f 0x00000000 -b 0x00800000 -l 0x00500000 .. exec -b 0x00800000 -l 0x00500000 -c "noinitrd console=ttymxc0,115200 ubi.mtd=4 root=ubi0:rootfs rw rootfstype=ubifs"
というわけで、fcofnig で Boot script を false にしたり、中身を sdstart にしたりすると、
デフォで RedBoot が上がってきたりSDカードからBootしたりできます。これでちょっとは楽になる?
2011-01-12 FON2405E で u-boot
いじってたらu-boot プロンプトに来れた。
- タクトスイッチを押しながら電源ON
- スイッチを押し続けている間は、Please choose ... 1:〜 2:〜 3:〜 の所で止まるので、押し続けたまま、コンソールから 「3」を押す
- タクトスイッチを離す
- u-bootのプロンプトに入れた
U-Boot 1.1.3 (Jan 6 2010 - 07:10:30) Board: Fonera DRAM: 32 MB relocate_code Pointer at: 81fac000 spi_wait_nsec: 3e spi deice id: c2 20 15 c2 20 (2015c220) find flash: mx25l1605d raspi_read: from:41030000 len:1000 Using default environment ##### The CPU freq = 320 MHZ #### SDRAM bus set to 16 bit SDRAM size =32 Mbytes Please choose the operation: 1: Boot system code via Flash (default). 2: Load system code then write to Flash via TFTP. 3: Entr boot command line interface. reset pressed for 2 seconds You selected 3 0 3: System Enter Boot Command Line Interface. U-Boot 1.1.3 (Jan 6 2010 - 07:10:30) RT3052 # RT3052 # RT3052 # ? erase - erase SPI FLASH memory ? - alias for 'help' bootm - boot application image from memory cp - memory copy go - start application at address 'addr' help - print online help httpd - start webserver md - memory display mm - memory modify (auto-incrementing) mw - memory write (fill) nm - memory modify (constant address) printenv- print environment variables reset - Perform RESET of the CPU setenv - set environment variables tftpboot- boot image via network using TFTP protocol version - print monitor version RT3052 # help set setenv name value ... - set environment variable 'name' to 'value ...' setenv name - delete environment variable 'name' RT3052 # printenv bootcmd=httpd bootdelay=2 baudrate=57600 ethaddr="00:AA:BB:CC:DD:10" ipaddr=10.10.10.200 serverip=10.10.10.3 ramargs=setenv bootargs root=/dev/ram rw addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) ethaddr=$(ethaddr) panic=1 flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr) kernel_addr=BFC20000 bootfile=fonita.img u-boot=u-boot.bin load=tftp 8A100000 $(u-boot) u_b=protect off 1:0-1;era 1:0-1;cp.b 8A100000 BC400000 $(filesize) loadfs=tftp 8A100000 root.cramfs u_fs=era bc540000 bc83ffff;cp.b 8A100000 BC540000 $(filesize) test_tftp=tftp 8A100000 root.cramfs;run test_tftp stdin=serial stdout=serial stderr=serial ethact=Eth0 (10/100-M) Environment size: 786/4092 bytes RT3052 # version U-Boot 1.1.3 (Jan 6 2010 - 07:10:30)
2011-01-11 FON2405E
記憶に無いがなぜか家にころがってたのでとりあえず分解。


シリアルは、コネクタ脇にある4つのランド。コネクタ側から、GND,TX,RX,VCC。57600bps で接続。

U-Boot 1.1.3 (Jan 6 2010 - 07:10:30) Board: Fonera DRAM: 32 MB relocate_code Pointer at: 81fac000 spi_wait_nsec: 3e spi deice id: c2 20 15 c2 20 (2015c220) find flash: mx25l1605d raspi_read: from:41030000 len:1000 Using default environment ##### The CPU freq = 320 MHZ #### SDRAM bus set to 16 bit SDRAM size =32 Mbytes Please choose the operation: 1: Boot system code via Flash (default). 2: Load system code then write to Flash via TFTP. 3: Entr boot command line interface. booting from flash ## Booting image at bf020000 ... raspi_read: from:20000 len:40 Image Name: MIPS OpenWrt Linux-2.6.21 Created: 2010-08-18 11:54:31 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 613782 Bytes = 599.4 kB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:20040 len:95d96 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80000000) ... ## Giving linux memsize in MB, 32 Starting kernel ... LINUX started... THIS IS ASIC Linux version 2.6.21 (eduardo@veriton) (gcc version 4.1.2) #1 Wed Aug 18 13:54:20 CEST 2010 The CPU feqenuce set to 320 MHz CPU revision is: 0001964c Determined physical RAM map: memory: 02000000 @ 00000000 (usable) Built 1 zonelists. Total pages: 8128 Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 init=/sbin/preinit Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB, 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 cause = 80800060, status = 1100ff00 PID hash table entries: 128 (order: 7, 512 bytes) calculating r4koff... 0030d400(3200000) CPU frequency 320.00 MHz Using 160.000 MHz high precision timer. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 30416k/32768k available (1689k kernel code, 2352k reserved, 186k data, 100k init, 0k highmem) Mount-cache hash table entries: 512 NET: Registered protocol family 16 Generic PHY: Registered new driver NET: Registered protocol family 2 Time: MIPS clocksource has been installed. IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered was not able to assign mahjor 200 to button chardev ramips_gpio: done squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher squashfs: LZMA suppport for slax.org by jro io scheduler noop registered io scheduler deadline registered (default) ramips_wdt: loaded Serial: 8250/16550 driver $Revision: 1.61 $ 2 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A PPP generic driver version 2.4.2 NET: Registered protocol family 24 tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> deice id : c2 20 15 c2 20 (2015c220) mx25l3205d(c2 20160000) (4096 Kbytes) mtd .name = raspi, .size = 0x00400000 (4M) .erasesize = 0x00010000 (64K) .numeraseregions = 0 ramips_mtd: kernel size is 613846 padded kernel is 00096000 Creating 6 MTD partitions on "raspi": 0x00000000-0x00010000 : "uboot" 0x00010000-0x00020000 : "boardconfig" 0x00020000-0x00200000 : "image" 0x00020000-0x000b6000 : "linux" mtd: partition "linux" doesn't end on an erase block -- force read-only 0x000b6000-0x001f0000 : "rootfs" mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only mtd: partition "rootfs" set to be root filesystem 0x001f0000-0x00200000 : "uci_overlay" Registered led device: power Registered led device: wps Registered led device: wlan nf_conntrack version 0.5.0 (256 buckets, 2048 max) IPv4 over IPv4 tunneling driver ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> ramips: ethernet loaded ramips_eth: loaded VFS: Mounted root (squashfs filesystem) readonly. Freeing unused kernel memory: 100k freed Warning: unable to open an initial console. Preinit complete, spawning microd found uci_overlay -> /dev/mtd5 i found OPENWRT_UCI_OVERLAY inside /dev/mtd5 loading file zepttho 275 loading file wireless 696 loading file user 70 loadingAlgorithmics/MIPS FPU Emulator v1.5 file system 72 loading file reg 16 loading file network 473 loading file led 342 loading file lang 33 loading file form 4768 loading file fonsmcd 290 loading file fon 406 loading file firewall 907 loading file passwd 149 loading file chilli.conf 566 loading fon config Spawning syslogd registering led wps -> /sys/class/leds/wps/ registering led wlan -> /sys/class/leds/wlan/ registering led power -> /sys/class/leds/power/ loading base firewall ...iptables: Chain already exists done adding zone wannet adding zone lan adding zone wan adding zone hotspotwifi adding zone hotspot adding forwarding lan->wan adding forwarding hotspot->wan interface loopback proto = static ipaddr = 127.0.0.1 netmask = 255.0.0.0 ifname = lo interface lan proto = static ipaddr = 192.168.10.1 netmask = 255.255.255.0 ifname = eth0.1 type = bridge interface wan proto = dhcp ifname = eth0.2 interface hotspot ifname = tun0 interface hotspotwifi proto = none ifname = ra1 net event up loopback ...bringing up lo done net event up lan ...bringing ueth0.1: dev_set_promiscuity(master, 1) p eth0.1 device eth0 entered promiscuous mode device eth0.1 entered promiscuous mode br-lan: port 1(eth0.1) entering learning state adding br-lan to zone lan done net event up wan ...bringing up eth0.2 Spawning udhcpc for eth0.2 udhcpc (v0.9.9-pre) started Trying to connect... sending -> "udhcpc|deconfig|eth0.2|" adding eth0.2 to zone wan Sending discover... done wifi device rt305x type = rt305x channel = 11 mode = 9 wifi interface public ifname = ra1 ssid = FON_FREE_INTERNET encryption = none network = hotspotwifi device = rt305x isolate = 1 auto = 1 wifi interface private ifname = ra0 ssid = MyPlace encryption = wpa-wpa2 key = 4141414141 password = uraehaithe wpa_crypto = mixed network = lan device = rt305x channel = 0 mode = bgn txpower = 100 br-lan: topology change detected, propagating br-lan: port 1(eth0.1) entering forwarding state rt2860v2_ap: module license 'unspecified' taints kernel. Sending discover... WSending discover... 0x1300 = 00064380 bringing up rt30device ra0 entered promiscuous mode 5x ...done br-lan: port 2(ra0) entering learning state Terminate the task(RtmpCmdQTask) with pid(202)! Terminate the task(RtmpWscTask) with pid(203)! br-lan: port 2(ra0) entering disabled state WTrying to connect... sending -> "udhcpc|leasefail|eth0.2|" 0x1300 = 00064380 br-lan: port 2(ra0) entering learning state br-lan: topology change detected, propagating br-lan: port 2(ra0) entering forwarding state bringing up private ...done configured coova for mac 00:18:84:**:**:** Spawning dnsmasq DHCP server is enabled Spawning fonsmcd Spawning zepttho Spawning Onlined _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M KAMIKAZE (bleeding edge, r3989) ------------------- * 10 oz Vodka Shake well with ice and strain * 10 oz Triple sec mixture into 10 shot glasses. * 10 oz lime juice Salute! --------------------------------------------------- I booted userland in 13 seconds System bring up complete syslogd: Jan 1 00:00:03 udhcpc[183]: udhcpc (v0.9.9-pre) started deconfigure eth0.2 syslogd: Jan 1 00:00:03 udhcpc[183]: Sending discover... syslogd: Jan 1 00:00:05 udhcpc[183]: Sending discover... syslogd: Jan 1 00:00:07 udhcpc[183]: Sending discover... syslogd: Nov 5 20:07:16 syslog: starting onlined Now serving files from /www on :80 syslogd: Nov 5 20:07:16 dnsmasq[208]: started, version 2.45 cachesize 150 syslogd: Nov 5 20:07:16 dnsmasq[208]: compile time options: IPv6 GNU-getopt ISC-leasefile no-DBus no-I18N no-TFTP syslogd: Nov 5 20:07:16 dnsmasq[208]: DHCP, IP range 192.168.10.50 -- 192.168.10.250, lease time 12h syslogd: Nov 5 20:07:16 syslog: ERROR: unable access whitelist file: /etc/fon/whitelist.dnsmasq syslogd: Nov 5 20:07:16 dnsmasq[208]: using local addresses only for domain lan syslogd: Nov 5 20:07:16 dnsmasq[208]: reading /tmp/resolv.conf syslogd: Nov 5 20:07:16 dnsmasq[208]: using nameserver 192.168.1.1#53 syslogd: Nov 5 20:07:16 dnsmasq[208]: using local addresses only for domain lan syslogd: Nov 5 20:07:16 dnsmasq[208]: read /etc/hosts - 2 addresses syslogd: Nov 5 20:07:16 dnsmasq[208]: failed to read /etc/ethers:No such file or directory fonsmcd[209]: (Main) WARNING: SMC_find_boarddata: found board config /dev/mtd1ro SMC_init(): called fonsmcd[209]: (Main) MESSAGE: SMC_reload() .W.....W.....fonsmcd[209]: (Main) WARNING: SMC_add_host: Error resolving host [cthulhu.fon.com], will try later fonsmcd[209]: (Main) MESSAGE: SMC_retrieve_query_data() fonsmcd[209]: (Main) WARNING: SMC_find_boarddata: found board config /dev/mtd1ro wlanmac [00-18-84-e8-b8-85] key_number [20965f2290dd6caae07f8f5e23d7911d34f49449470c6d6abc684d9d416a1521] fonsmcd[209]: (Main) WARNING: SMC_find_boarddata: found board config /dev/mtd1ro W.....W.....W..fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] ...W.....W.....W...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] ..W.. ------- load 7968 2752 800 ram 24068096/31248384 uptime 0 - 00:00:59 ...W.....W....fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] .WSending discover... syslogd: Nov 5 20:08:12 udhcpc[183]: Sending discover... ..Sending discover... syslogd: Nov 5 20:08:14 udhcpc[183]: Sending discover... ..Sending discover... syslogd: Nov 5 20:08:17 udhcpc[183]: Sending discover... W....Trying to connect... sending -> "udhcpc|leasefail|eth0.2|" .W.....fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] W.....W.....W.....W.fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] fonsmcd[209]: (Main) MESSAGE: TRIGGER [offline] Trying to connect... sending -> "hotspot|stop|" hotspot event stop hotspot_stop_count -> 1 ....W.....W... ------- load 3072 2048 448 ram 24068096/31248384 uptime 0 - 00:01:55 ..W..fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] fonsmcd[209]: (Main) MESSAGE: TRIGGER [offline] ...W.....W.....W...fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] fonsmcd[209]: (Main) MESSAGE: TRIGGER [offline] ..W...Sending discover... syslogd: Nov 5 20:09:21 udhcpc[183]: Sending discover... .W.Sending discover... syslogd: Nov 5 20:09:23 udhcpc[183]: Sending discover... ..Sending discover... syslogd: Nov 5 20:09:25 udhcpc[183]: Sending discover... ..W..Trying to connect... sending -> "udhcpc|leasefail|eth0.2|" ..fonsmcd[209]: (Main) CRITICAL: SMC_send_buffer: Error resolving host [cthulhu.fon.com] fonsmcd[209]: (Main) MESSAGE: TRIGGER [offline]
とりあえずシリアル繋げてbootさせただけ。いじって遊べるかどうかは後日。
2011-01-04 NetBSD config(9) checker
NetBSDのconfig(9)のスタイルチェック用のscriptを書いた。
だって気になるんですよoptionsの後ろにスペースが無かったり無意味な所にスペースがあったりしてて。
% configstyle /usr/src/sys/arch/i386/conf/GENERIC /usr/src/sys/arch/i386/conf/GENERIC:25: Warning: don't use <space> after "ident" /usr/src/sys/arch/i386/conf/GENERIC:30: Warning: don't use <space> after "no options" /usr/src/sys/arch/i386/conf/GENERIC:30: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:31: Warning: don't use <space> after "no options" /usr/src/sys/arch/i386/conf/GENERIC:31: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:32: Warning: don't use <space> after "no options" /usr/src/sys/arch/i386/conf/GENERIC:32: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:33: Warning: don't use <space> after "no options" /usr/src/sys/arch/i386/conf/GENERIC:101: Warning: don't use <space> after "no options" /usr/src/sys/arch/i386/conf/GENERIC:102: Warning: don't use <space> after "no options" /usr/src/sys/arch/i386/conf/GENERIC:133: Warning: don't use <space> after "makeoptions" /usr/src/sys/arch/i386/conf/GENERIC:217: Warning: use <space> instead of <tab> after "options" /usr/src/sys/arch/i386/conf/GENERIC:347: Warning: don't use <space> after "acpi0" /usr/src/sys/arch/i386/conf/GENERIC:386: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:395: Warning: use <space> instead of <tab> after "wmimsi*" /usr/src/sys/arch/i386/conf/GENERIC:458: Warning: don't use <space> after "gpio*" /usr/src/sys/arch/i386/conf/GENERIC:465: Warning: don't use <space> after "hpet*" /usr/src/sys/arch/i386/conf/GENERIC:469: Warning: don't use <space> after "hpet*" /usr/src/sys/arch/i386/conf/GENERIC:471: Warning: don't use <space> after "gpio*" /usr/src/sys/arch/i386/conf/GENERIC:484: Warning: don't use <space> after "agp*" /usr/src/sys/arch/i386/conf/GENERIC:492: Warning: don't use <space> after "isa0" /usr/src/sys/arch/i386/conf/GENERIC:493: Warning: don't use <space> after "isa0" /usr/src/sys/arch/i386/conf/GENERIC:560: Warning: don't use <space> after "unichromefb*" /usr/src/sys/arch/i386/conf/GENERIC:561: Warning: don't use <space> after "wsdisplay*" /usr/src/sys/arch/i386/conf/GENERIC:570: Warning: use <space> instead of <tab> after "mgadrm*" /usr/src/sys/arch/i386/conf/GENERIC:574: Warning: use <space> instead of <tab> after "sisdrm*" /usr/src/sys/arch/i386/conf/GENERIC:576: Warning: use <space> instead of <tab> after "viadrm*" /usr/src/sys/arch/i386/conf/GENERIC:669: Warning: don't use <space> after "aps0" /usr/src/sys/arch/i386/conf/GENERIC:698: Warning: use <tab> after "ug0" /usr/src/sys/arch/i386/conf/GENERIC:765: Warning: don't use <space> after "spc*" /usr/src/sys/arch/i386/conf/GENERIC:768: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:840: Warning: don't use <space> after "aceride*" /usr/src/sys/arch/i386/conf/GENERIC:841: Warning: don't use <space> after "ahcisata*" /usr/src/sys/arch/i386/conf/GENERIC:842: Warning: don't use <space> after "artsata*" /usr/src/sys/arch/i386/conf/GENERIC:845: Warning: don't use <space> after "gcscide*" /usr/src/sys/arch/i386/conf/GENERIC:845: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:846: Warning: don't use <space> after "geodeide*" /usr/src/sys/arch/i386/conf/GENERIC:851: Warning: don't use <space> after "ahcisata*" /usr/src/sys/arch/i386/conf/GENERIC:853: Warning: don't use <space> after "optiide*" /usr/src/sys/arch/i386/conf/GENERIC:854: Warning: don't use <space> after "piixide*" /usr/src/sys/arch/i386/conf/GENERIC:863: Warning: don't use <space> after "svwsata*" /usr/src/sys/arch/i386/conf/GENERIC:876: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:948: Warning: don't use <space> after "bce*" /usr/src/sys/arch/i386/conf/GENERIC:950: Warning: don't use <space> after "bnx*" /usr/src/sys/arch/i386/conf/GENERIC:972: Warning: don't use <space> after "ndis*" /usr/src/sys/arch/i386/conf/GENERIC:1103: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1230: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1242: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1248: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1425: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1513: Warning: use <tab> after "geodegcb*" /usr/src/sys/arch/i386/conf/GENERIC:1514: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1515: Warning: use <tab> before "#" /usr/src/sys/arch/i386/conf/GENERIC:1567: Warning: use <space> instead of <tab> after "options"
EOF