約 3,583,802 件
https://w.atwiki.jp/anthony/pages/42.html
NAND領域をマウントできない NANDブート時にルートに割当たっているところからゴッソリとコピーしてこようとしたときの問題。 mount /dev/mtd2 /mnt/mtd mount /dev/mtd2 is not a block device ん?etchの時は問題なくできたはずなのに... KUROBOX-PRO ~# cat /proc/mtd dev size erasesize name mtd0 00040000 00001000 "physmap-flash.0" mtd1 00400000 00020000 "uImage" mtd2 04000000 00020000 "rootfs" mtd3 0bc00000 00020000 "extra" KUROBOX-PRO ~# ls -l /dev/ | grep mtd* crw------- 1 root root 90, 0 Mar 11 14 54 mtd0 crw------- 1 root root 90, 1 Mar 11 14 54 mtd0ro crw------- 1 root root 90, 2 Mar 11 14 54 mtd1 crw------- 1 root root 90, 3 Mar 11 14 54 mtd1ro crw------- 1 root root 90, 4 Mar 11 14 54 mtd2 crw------- 1 root root 90, 5 Mar 11 14 54 mtd2ro crw------- 1 root root 90, 6 Mar 11 14 54 mtd3 crw------- 1 root root 90, 7 Mar 11 14 54 mtd3ro brw-rw---T 1 root disk 31, 0 Mar 11 14 54 mtdblock0 brw-rw---T 1 root disk 31, 1 Mar 11 14 54 mtdblock1 brw-rw---T 1 root disk 31, 2 Mar 11 14 54 mtdblock2 brw-rw---T 1 root disk 31, 3 Mar 11 14 54 mtdblock3 mtdblock2のほうか mount /dev/mtdblock2 /mnt/mtd mount you must specify the filesystem type ファイルシステムを指定しないとだめになった? 調べてみるとjffs2を指定すべきらしい。 mount -t jffs2 /dev/mtdblock2 /mnt/mtd 指定してみるが…ハング。応答が返ってきません。 syslogには以下のログが大量に出ている Mar 16 17 02 08 localhost kernel [259459.519943] JFFS2 version 2.2. (NAND) (SUMMARY) c 2001-2006 Red Hat, Inc. Mar 16 17 05 34 localhost kernel [259665.270902] uncorrectable error Mar 16 17 05 34 localhost kernel [259665.298841] mtd- read(0x800 bytes from 0x1f800) returned ECC error Mar 16 17 05 34 localhost kernel [259665.399566] jffs2_scan_eraseblock() Magic bitmask 0x1985 not found at 0x00000024 0x2b2b instead Mar 16 17 05 36 localhost kernel [259665.408602] Further such events for this erase block will not be printed Mar 16 20 07 58 localhost kernel [270609.004576] mtd- read(0x1ac bytes from 0x36dfe54) returned ECC error Mar 16 20 07 58 localhost kernel [270609.011194] Empty flash at 0x036dfe50 ends at 0x036dfe54 Mar 16 20 07 58 localhost kernel [270609.022359] Empty flash at 0x036dff48 ends at 0x036dff4c Mar 16 20 07 58 localhost kernel [270609.084315] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes Mar 16 20 07 58 localhost kernel [270609.092236] empty_blocks 0, bad_blocks 0, c- nr_blocks 512 3時間かかってmountされずに終了。 kernelの問題?よくわからないので後ほど調査することにする。 回避策 NANDから取れないならNAND更新用のinitrd.buffaloからいただくことにする。 玄箱PRO用Firmware V1.02 kbpfw102.zip を使う。 KUROBOX-PRO ~# apt-get install unzip KUROBOX-PRO ~# unzip kbpfw102.zip KUROBOX-PRO ~# dd if=initrd.buffalo of=initrd.gz bs=64 skip=1 301354+1 records in 301354+1 records out 19286692 bytes (19 MB) copied, 20.6181 s, 935 kB/s KUROBOX-PRO ~# gunzip initrd.gz KUROBOX-PRO ~# mkdir /tmp/root KUROBOX-PRO ~# mount -o loop initrd /tmp/root KUROBOX-PRO ~# ls -l /tmp/root/boot total 18021 -rw-r--r-- 1 root root 1714088 Mar 1 2007 initrd.buffalo -rw-r--r-- 1 root root 14680064 Apr 10 2007 nandrootfs.jffs2 -rwxrwxrwx 1 root root 245776 Apr 10 2007 u-boot.bin -rwxrwxrwx 1 root root 1736612 Apr 10 2007 uImage.buffalo このnandrootfs.jffs2の中に入っている一式が欲しかったもの このイメージから中身を取り出すためには以下の手順でできるはずだが、mtdramがない mknod /tmp/mtdblock0 b 31 5 modprobe mtdblock modprobe mtdram total_size=4000000 erase_size=20000 modprobe jffs2 dd if=/tmp/root/boot/nandrootfs.jffs2 of=/tmp/mtdblock5 mkdir /mnt/mtd mount -t jffs2 /tmp/mtdblock0 /mnt/mtd 回避策でも行き詰まった。
https://w.atwiki.jp/aerocats/pages/56.html
/proc /proc/mounts rootfs / rootfs rw 0 0 /dev/root / jffs2 rw,noatime 0 0 proc /proc proc rw,nodiratime 0 0 sysfs /sys sysfs rw 0 0 usbfs /proc/bus/usb usbfs rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/ram1 /mnt/ram tmpfs rw 0 0 /dev/sda1 /mnt/disk1 xfs rw 0 0 /dev/mtd3 /mnt/mtd jffs2 rw,noatime 0 0 /proc/cpuinfo Processor ARM926EJ-Sid(wb) rev 0 (v5l) BogoMIPS 266.24 Features swp half thumb fastmult CPU implementer 0x41 CPU architecture 5TEJ CPU variant 0x0 CPU part 0x926 CPU revision 0 Cache type write-back Cache clean cp15 c7 ops Cache lockdown format C Cache format Harvard I size 32768 I assoc 1 I line length 32 I sets 1024 D size 32768 D assoc 1 D line length 32 D sets 1024 Hardware MV-88fxx81 Revision 0000 Serial 0000000000000000 /proc/devices Character devices 1 mem 2 pty 3 ttyp 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input 21 sg 90 mtd 128 ptm 136 pts 180 usb Block devices 1 ramdisk 7 loop 8 sd 9 md 31 mtdblock 65 sd 66 sd 67 sd 68 sd 69 sd 70 sd 71 sd 128 sd 129 sd 130 sd 131 sd 132 sd 133 sd 134 sd 135 sd 254 mdp /proc/mtd dev size erasesize name mtd0 00040000 00001000 "phys_mapped_flash" mtd1 00400000 00020000 "uImage" mtd2 04000000 00020000 "rootfs" mtd3 0bc00000 00020000 "extra" /proc/interrupts CPU0 0 103019 Mv Timer Tick 3 438 serial 12 0 ehci_hcd usb2 17 0 ehci_hcd usb1 21 426 eth0 29 110 mvSata 30 20704 xor_chan0 31 0 xor_chan1 34 0 MiCon Err 0 /proc/ioports 00000000-000fffff PCI IO Primary 00100000-001fffff PCI IO Primary /proc/meminfo MemTotal 126328 kB MemFree 107748 kB Buffers 0 kB Cached 9640 kB SwapCached 0 kB Active 6332 kB Inactive 6100 kB HighTotal 0 kB HighFree 0 kB LowTotal 126328 kB LowFree 107748 kB SwapTotal 0 kB SwapFree 0 kB Dirty 0 kB Writeback 0 kB Mapped 5644 kB Slab 4616 kB CommitLimit 63164 kB Committed_AS 25104 kB PageTables 244 kB VmallocTotal 385024 kB VmallocUsed 4428 kB VmallocChunk 380412 kB
https://w.atwiki.jp/godsize/
GODSIZE (ゴッドサイズ) は、日本のシルバー・アクセサリーブランド。 GODSIZE (ゴッドサイズ) は、1994年、デザイナーのHIROSHI氏によって設立されたブランド。 HIROSHI氏の躍動感のあるデザインやロック魂の溢れるモチーフと繊細な彫金技術が融合する作品は多くのアーティストをはじめ、タレント達の熱い注目を浴び、ブランドを設立するきっかけとなり今に至る。 【概要】 受注生産を基本とし、デザイナーHIROSHI氏の1点1点に魂を込めて制作する作品へのこだわりや愛情、真摯な姿勢がうかがえる。 完全オーダーメイドの場合、数か月待ちとなることもある。 代表作とも言える『ウルフ』モチーフは毛並の一本一本を忠実に再現し、しっかりと前を見据えたその瞳は見るものを魅了し、それまであった指輪の概念を覆す作品として人気を誇っている。 幸運を呼ぶモチーフとしてアクセサリーの中でも人気の高いホースシュー(馬蹄)は、GODSIZEならではの豊富なラインナップにより男女ともに根強い人気を誇る。 日本のシルバーブランドの中でも「最強ドメスティックブランド」として君臨している。 扱う作品はシルバーのみとどまらず、18Kやプラチナなどがある。 【現在】 LUNA SEAのSUGIZOや清春が愛用することでも有名。 国内にとどまらず、愛用者は大物ミュージシャン、芸能人、海外のセレブにも熱狂的なファンを持つ。 【歴史】 1994年7月1日GODSIZE誕生 【外部リンク】 [http //www.godsize.co.jp/ GODSIZE Official Site] - 公式サイト Category 日本のファッションブランド Category 日本の服飾関連企業 Category 1994年設立の企業 Category 装身具 Category Fashion accessories
https://w.atwiki.jp/aerocats/pages/15.html
起動メッセージ メッセージを読む電源ON 周辺装置の初期化 メインメモリ上にカーネルを読み込む カーネルの起動SATAデバイスドライバの読み込み NORフラッシュ NANDフラッシュ USB ネットワーク rootfsのマウント ルートファイルシステムによる初期化MountSystemFolders関数 checkroot.sh Kevent.sh mount_share.sh sethostname.sh networking.sh httpd.sh telnet.sh inetd.sh smb.sh clientUtil_servd.sh bootcomplete.sh FanController.sh boss.sh 起動メッセージ Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy Found boot image hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux................................................................................................................. done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Seagate Model ST380815AS Rev 3.AA Type Direct-Access ANSI SCSI revision 03 SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back sda unknown partition table Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] HDD未フォーマットの場合 ===== Starting mount_share.sh ===== Mounting /dev/sda on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] HDDをフォーマットしている場合 ===== Starting mount_share.sh ===== Mounting /dev/sda1 on /mnt/disk1 as a xfs file system. XFS mounting filesystem sda1 Starting XFS recovery on filesystem sda1 (dev sda1) Ending XFS recovery on filesystem sda1 (dev sda1) Success. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] LANに未接続の場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] ** dhcp fail ** setting default ip route SIOC[ADD|DEL]RT No such process /etc/dhcpc/dhcpcd.exe down dhcpcd.exe interface eth0 has been brought down add default if hostname is setted to KUROBOX-PRO [Success] LANに接続されている場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.1.9 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== (サングラス男AA) [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login メッセージを読む 電源ON 玄箱PROの電源を入れると、まずCPUのプログラムカウンタにU-Bootのメモリアドレスが設定されU-Bootが実行される。 Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY 周辺装置の初期化 U-Bootによる低レベルでの初期化を行い、カーネルイメージを見つける。 PCで言うBIOSのような働きをする。 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy Found boot image hit any key to switch tftp boot. Hit any key to stop autoboot 2 1 0 system_bootend Hit any key to stop autoboot 3 2 1 0 メインメモリ上にカーネルを読み込む 見つけたカーネルイメージをメインメモリへ読み込む。 PCで言うブートローダーの働きをする。 NANDフラッシュの0x20000番地(mtd1の128k以降)からロードする。 Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound カーネルイメージをメインメモリの0x00100000番地へロード。 ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK カーネルの起動 読み込んだカーネルを実行する。 この時点でU-Bootからカーネルに制御が移される。 Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- カーネルが圧縮された自身の展開。 Uncompressing Linux................................................................................................................. done, booting the kernel. カーネルの起動。 Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.09 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 SATAデバイスドライバの読み込み Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Seagate Model ST380815AS Rev 3.AA Type Direct-Access ANSI SCSI revision 03 SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back SCSI device sda 156301488 512-byte hdwr sectors (80026 MB) SCSI device sda drive cache write back sda unknown partition table Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 NORフラッシュ physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available NANDフラッシュ Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 erasesizeとはNANDフラッシュの内容を消去する単位の大きさであり、それが0x00020000、つまり128KBだとなっている。 消去はブロック単位で行われるため、1ブロック128KBだということになる。 Debug nand_scan mtd- oobblock=0x00000800 OOBとはOut Of Bandの略で、ECCと呼ばれるエラー訂正コードを格納する領域を意味する。 16進数で00000800は10進数で2048を意味し、これはOOBのブロック数を指している。 Debug nand_scan mtd- oobsize=0x00000040 OOBのサイズが00000040だと意味する。 10進数で64となり、OOBのサイズは64バイトだとわかる。 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" USB usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. ネットワーク NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 rootfsのマウント ルートファイルシステムのマウント。 bootargs_rootで設定されたデバイスがマウントされている。 VFS Mounted root (jffs2 filesystem). initで使用したメモリの解放。 Freeing init memory 112K ルートファイルシステムによる初期化 /etc/init.d/rcSの実行。 ここからは実際にマウントされたルートファイルシステムによるシステムの初期化。 --- rcStart (NANDroot) --- MountSystemFolders関数 /etc/init.d/rcS内のMountSystemFolders関数の実行。 ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] checkroot.sh /etc/init.d/checkroot.shの実行。 ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] Kevent.sh /etc/init.d/Kevent.shの実行。 ===== Starting Kevent.sh ===== [Success] mount_share.sh /etc/init.d/mount_share.shの実行。 HDDが未フォーマットの場合 ===== Starting mount_share.sh ===== Mounting /dev/sda on /mnt/disk1 as a xfs file system. XFS bad magic number XFS SB validate failed mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/sda on /mnt/disk1 as a ext3 file system. mount Mounting /dev/sda on /mnt/disk1 failed Invalid argument Failed. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] HDDがフォーマット済みの場合 ===== Starting mount_share.sh ===== Mounting /dev/sda1 on /mnt/disk1 as a xfs file system. XFS mounting filesystem sda1 Starting XFS recovery on filesystem sda1 (dev sda1) Ending XFS recovery on filesystem sda1 (dev sda1) Success. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] sethostname.sh /etc/init.d/sethostname.sh?の実行。 ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] networking.sh /etc/init.d/networking.shの実行。 LANに未接続の場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] ** dhcp fail ** setting default ip route SIOC[ADD|DEL]RT No such process /etc/dhcpc/dhcpcd.exe down dhcpcd.exe interface eth0 has been brought down add default if hostname is setted to KUROBOX-PRO [Success] LANに接続済みの場合 ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.1.9 hostname is setted to KUROBOX-PRO [Success] httpd.sh /etc/init.d/httpd.sh?の実行。 ===== Starting httpd.sh ===== [Success] telnet.sh /etc/init.d/telnet.sh?の実行。 ===== Starting telnet.sh ===== [Success] inetd.sh /etc/init.d/inetd.sh?の実行。 ===== Starting inetd.sh ===== [Success] smb.sh /etc/init.d/smb.sh?の実行。 ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] clientUtil_servd.sh /etc/init.d/clientUtil_servd.sh?の実行。 ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] bootcomplete.sh /etc/init.d/bootcomplete.sh?の実行。 ===== Starting bootcomplete.sh ===== [Success] FanController.sh /etc/init.d/FanController.sh?の実行。 ===== Starting FanController.sh ===== [Success] boss.sh /etc/init.d/boss.sh?の実行。 ===== Starting boss.sh ===== (サングラス男AA) [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login
https://w.atwiki.jp/hyosida/pages/71.html
セキュリティが覚束ないIPカメラ アマゾンでは数多の中華製監視カメラが5,000円程度の安値で売られている。最近入手した監視カメラはtelnetのポートが開いており、ftpはパスワードなしで入れる。 $ nmap 192.168.11.4 Starting Nmap 7.70 ( https //nmap.org ) at 2020-07-10 13 22 JST Nmap scan report for 192.168.11.4 Host is up (0.019s latency). Not shown 997 closed ports PORT STATE SERVICE 21/tcp open ftp 23/tcp open telnet 6789/tcp open ibm-db2-admin Nmap done 1 IP address (1 host up) scanned in 2.24 seconds これはRaspberry Piからnmapというコマンドでどのポートが開いているか調べた結果であるが、21番のftp、23番のtelnetが開いていることがわかる。6789のibm-db2-adminというのはわからない。で、 $ ftp 192.168.11.4 Connected to 192.168.11.4. 220 Operation successful Name (192.168.11.4 pi) 230 Operation successful Remote system type is UNIX. Using binary mode to transfer files. ユーザネームなしであっさり入れてしまう。 ftp ls 200 Operation successful 150 Directory listing total 16 drwxr-xr-x 2 1000 1000 1029 Jan 7 2017 bin drwxr-xr-x 4 root root 0 Jan 1 1970 dev drwxr-xr-x 5 1000 1000 300 Nov 4 2018 etc lrwxrwxrwx 1 root root 11 Nov 4 2015 init - bin/busybox drwxr-xr-x 3 1000 1000 998 Mar 28 2017 lib drwxrwxrwx 5 root root 16384 Jan 1 2010 mnt dr-xr-xr-x 59 root root 0 Jan 1 1970 proc drwxr-xr-x 2 1000 1000 752 Jan 7 2017 sbin dr-xr-xr-x 13 root root 0 Jan 1 1970 sys drwxr-xr-x 4 root root 0 Jul 10 13 26 tmp drwxr-xr-x 8 1000 1000 102 Jan 7 2017 usr drwxr-xr-x 6 root root 0 Jan 1 1970 var 226 Operation successful lsコマンドでファイル名が見える。ちなみにtelnetはloginできない。ユーザIDとパスワードの組み合わせをいくつか試したがさすがに駄目だった。 $ telnet 192.168.11.4 Trying 192.168.11.4... Connected to 192.168.11.4. Escape character is ^] . anyka login root Password Login incorrect Hostnameはanykaらしい。 ところで、/etc/passwd、/etc/shadowを見れば大体わかる。パスワードはshadow化されているが、いずれのファイルもftpでgetできる。こんなんでええんか。 ftp cd /etc 250 Operation successful ftp ls 200 Operation successful 150 Directory listing total 12 -rwxr--r-- 1 1000 1000 14 Sep 19 2018 dnsd.conf -rwxr--r-- 1 root root 823 Dec 17 2013 fstab -rw-r--r-- 1 root root 46 Oct 19 2010 group -rw-r--r-- 1 root root 84 Oct 19 2010 host.conf -rw-r--r-- 1 root root 46 Oct 19 2010 hosts drwxr-xr-x 2 1000 1000 42 Nov 30 2018 init.d -rw-r--r-- 1 root root 657 Mar 6 2013 inittab drwxr-xr-x 3 root root 0 Jan 1 1970 jffs2 -rw-r--r-- 1 root root 14 Oct 19 2010 ld.so.conf -rw-r--r-- 1 root root 1022 Dec 17 2010 mdev.conf -rw-r--r-- 1 root root 349 Oct 19 2010 nsswitch.conf lrwxrwxrwx 1 root root 12 May 28 2019 passwd - jffs2/passwd -rw-r--r-- 1 root root 816 May 8 2013 profile lrwxrwxrwx 1 1000 1000 17 Oct 29 2018 resolv.conf - jffs2/resolv.conf -rw-r--r-- 1 1000 1000 325 Nov 20 2014 services lrwxrwxrwx 1 root root 12 May 28 2019 shadow - jffs2/shadow drwxr-xr-x 2 root root 31 May 24 2011 sysconfig -rw-r--r-- 1 1000 1000 4157 Nov 4 2018 udhcpd.conf 226 Operation successful で/etc/passwdは/etc/iffs2/passwdへシンボリックリンクが張られている。このjffs2というフォルダがミソらしい。passwdの中身は、 root x 0 0 root / /bin/sh daemon x 1 1 daemon /usr/sbin /bin/sh bin x 2 2 bin /bin /bin/sh nobody x 99 99 nobody /home /bin/sh パスワードはshadow化されている。root、daemon、bin、nobodyというユーザが設定されている。shadowの中身は、 root $1$u117/Nhy$imD3examsTQtg3S.QUsmO. 18040 0 99999 7 bin * 10933 0 99999 7 daemon * 10933 0 99999 7 nobody * 10933 0 99999 7 となっており、root以外はloginできない。rootのパスワードが知りたかったが最終的にはあきらめた。ジョンを使ってみたが、駄目だった。 $ john shadow --show 0 password hashes cracked, 1 left インターネット上の情報ではこれであっさりパスワードがわかる場合もあるらしいが駄目だった。) どうも組み込みOSはArmadilloというものらしい。 で、ここまでで/etc/shadowを編集してrootのパスワードを外してしまえばtelnetで入れるんじゃないか、と思ったが、これは組み込みOSで、jffs2のフォルダは恐らく不揮発メモリに書かれているので書き換えできない気がする。 ftp rename shadow shadow.org 350 Operation successful 550 Error shadowというファイル名を変更しようとしたがエラーとなってできない。やっぱりだめか。
https://w.atwiki.jp/arduino/pages/40.html
ArduinoとLa Fonera(FON2201)をつなぐ。 ふたを開ける。 星形ドライバ。macbookのHDD交換の時につかったやつ(T8)でOK。 本体裏側のゴムの後ろに隠れているのを2個外せば簡単に開く。 電源 FON2201に付属のACアダプタは7.5V 1A。ルータ本体の表示も7.5V 1A。 シリアルコンソール (直接digital0,digital1につなぐ方法のほうがよいかもしれない→このページの下の方参照) http //www.churadesign.com/2008/05/19/arduino%E3%81%A7fon%E3%81%A8%E3%82%B7%E3%83%AA%E3%82%A2%E3%83%AB%E9%80%9A%E4%BF%A1dd-wrt%E5%8C%96/ http //blog.gcd.org/archives/51109295.html FON2201の4ピンはLANコネクタ側から順番に「NC,Tx,Rx,GND」だそうで、 Txとdigital2、Rxとdigital3、GNDとGNDをつなぐ。 availableが使えるSoftwareSerialを使って、 http //arduiniana.org/libraries/NewSoftSerial/ /* FON */ #include NewSoftSerial.h #define rxPin 2 #define txPin 3 #define ledPin 13 NewSoftSerial mySerial(rxPin, txPin); void setup() { pinMode(ledPin, OUTPUT); pinMode(rxPin, INPUT); pinMode(txPin, OUTPUT); Serial.begin(9600); mySerial.begin(9600); } void loop() { if(mySerial.available()){ Serial.print((char)mySerial.read()); } if(Serial.available()){ mySerial.print((char)Serial.read()); } } このスケッチを動かして、 screen /dev/tty.usbserial* で、FON2201の電源を入れると、 +Ethernet eth0 MAC address 00 18 84 a4 36 d0 IP 192.168.1.1/255.255.255.0, Gateway 0.0.0.0 Default server 192.168.1.254 RedBoot(tm) bootstrap and debug environment [ROMRAM] OpenWrt certified release, version 1.1 - built 22 32 28, May 7 2007 Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. Board FON 2201 RAM 0x80000000-0x81000000, [0x80040290-0x80e1000]availble LASH 0xa800000 0xa8f0000,128 bocks o 0x0010000bytes ach. == Eecutig boo scrip in 2000 seonds ente ^C toabot RedBoot fis load -b 0x80100000 loader RedBoot go 0x80100000 Failsafe loader v0.2 Looking for board config data... found at offset 0xa87f0000 Reset button GPIO 6 Reading flash from 0xa8040000 to 0xa825c4e9... done. Verifying CRC... OK - 0x7fd5bb48 Uncompressing Linux... Ok, booting the kernel. [sighandler] No more events to be processed, quitting. [cleanup] Waiting for children. [cleanup] All children terminated. Unlocking rootfs ... Could not open mtd device rootfs switching to jffs2 init started BusyBox v1.4.1 (2007-09-26 18 40 28 CEST) multi-call binary ifconfig SIOCSIFADDR No such device ifconfig SIOCSIFADDR No such device udhcpc (v1.4.1) started route fscanf Sending discover... Sending discover... なんかブートしてる。 OpenWRTかDD-WRTか なにが違うのかよくわからないが、DD-WRTのほうが情報が多そうなのでDD-WRT。 macでFON2201にdd-wrtをインストール FONまとめwikiのDD-WRTのページ( http //fon-wiki.maniado.com/index.php?DD-WRT )を参考に進める。 http //www.dd-wrt.com/ http //www.dd-wrt.com/wiki/index.php/LaFoneraPlus_Software_Flashing 2009/5/3の時点でFON用の最新は「v24 SP1」。 http //www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fstable%2Fdd-wrt.v24+SP1%2FConsumer%2FFon%2FFonera/ インストール作業時は、 FON2201のWANポートとmacをLANケーブルで直接接続し、 macの有線LANを固定で192.168.1.11/255.255.255.0、FON2201を192.168.1.22/255.255.255.0に設定している。 (mac) cd ~/tmp mkdir ddwrt cd ddwrt wget http //www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v24%20SP1/Consumer/Fon/Fonera/fonera-firmware.bin wget http //www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v24%20SP1/Consumer/Fon/Fonera/fonera_flashing.txt wget http //www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v24%20SP1/Consumer/Fon/Fonera/linux.bin sudo /sbin/service tftp start sudo cp linux.bin /private/tftpboot/ (シリアルコンソールでRedBoot起動直後にCtrl-C) ip_address -l 192.168.1.22/24 -h 192.168.1.11 fis init load -r -v -b 0x80041000 linux.bin (mac) sudo /sbin/service tftp stop sudo rm /private/tftpboot/linux.bin (シリアルコンソール) RedBoot fis create linux ←30分かかる RedBoot fconfig Run script at boot true Boot script .. fis load -b 0x80100000 loader .. go 0x80100000 Enter script, terminate with empty line fis load -l linux (←ここ入力) exec (←ここ入力) (←ここ入力) Boot script timeout (1000ms resolution) 2 Use BOOTP for network configuration false Gateway IP address Local IP address 192.168.1.1 Local IP address mask 255.255.255.0 Default server IP address 192.168.1.254 Console baud rate 9600 GDB connection port 9000 Force console for special debug messages false Network debug at boot time false Update RedBoot non-volatile configuration - continue (y/n)? y (←ここ入力) ... Erase from 0xa87e0000-0xa87f0000 . ... Program from 0x80ff0000-0x81000000 at 0xa87e0000 . RedBoot reset FON2201がリブートした後、http //192.168.1.1/を開けば管理画面が出る。 9600bps http //echodittolabs.org/hacking-la-fonera-2 stty -F /dev/tts/0 9600 「管理→コマンド実行」からコマンド入力すればコンソールが9600bpsになってなんとか使えるようになる。 が、ちょっと文字化けする。 DuemilanoveのUSBシリアルで直接通信する DD-WRT本体のコンソールの通信速度が115200なので上のスケッチ経由だと文字化けする。 なにもしないスケッチを動作させておいて、 Txとdigital1、Rxとdigital0、GNDとGNDをつないで screen /dev/tty.usbserial* 115200 とすればOK. FON2201を無線クライアントにする FON2201には普通の無線LANクライアントになってもらいたい。 もともとある家のルータ(親ルータ)を経由して家庭内LAN、インターネットに接続する。 基本→基本 インターネット接続 手動 or DHCP ... LAN側接続→IPアドレス 他とかぶらないように (固定にするなり、親ルータ側で固定なDHCPで振るなり・・・) 無線LAN→基本 Regulatory Domain JAPAN 無線LAN MAC動作モード Client ネットワーク名 (SSID) 親ルータのSSID 無線LAN→無線LANセキュリティ 自分の設定に。 セキュリティ→Firewall保護 SPI Firewall 無効 ArduinoとFON2201でシリアル通信 DDWRTがログインプロンプトを出すし、動作状態のログ的なものが出てくる。 これらをOFFにしてArduinoとのやりとり専用にしたい。 http //www.geocities.jp/arduino_diecimila/wifi/index.html ログインプロンプトからDDWRTにログインし、telnetしている。 管理画面でボタンをおしたりしない限り余計な出力は無いのかも? http //blog.xole.net/article.php?id=689 ruby入れられるかなあ。 http //www.dd-wrt.com/wiki/index.php/Ipkg 以外に簡単に入るかもしれない。 ipkg jffs http //www.dd-wrt.com/wiki/index.php/Jffs flash領域にデータを保存するファイルシステム。 flashなのであまりたくさん書き換えると壊れちゃう? (SDカード増設する方法もあるみたい。 http //www.dd-wrt.com/wiki/index.php/LaFonera_Hardware_SD-Card ) とりあえず、内蔵flashで試す。 管理→管理の「JFFS2 の設定」で、 1. 「JFFS2」を「有効」(「JFFS2の保存領域を初期化」は無効のまま) 2. 設定(保存のみ) を押す。 3. 設定 を押す。 4. 「JFFS2の保存領域を初期化」を「有効」 5. 設定 を押す。領域がフォーマットされる。設定(保存のみ)は押さない! 6. 「JFFS2の保存領域を初期化」を「無効」 7. 設定(保存のみ) を押す。 8. 再起動 を押す。 (前) root@DD-WRT ~# df -h Filesystem Size Used Available Use% Mounted on rootfs 5.4M 5.4M 0 100% / /dev/root 5.4M 5.4M 0 100% / (後) root@DD-WRT ~# df -h Filesystem Size Used Available Use% Mounted on rootfs 5.4M 5.4M 0 100% / /dev/root 5.4M 5.4M 0 100% / /dev/mtdblock/3 1.4M 196.0k 1.2M 13% /jffs これで/jffs以下に書き込み可能になった。 rubyのパッケージ http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/ にあった。 まずは練習でram(/tmp)にインストールしてみる。 cd /tmp wget http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/ruby_1.8.6-p36-1_mips.ipk ipkg -d ram install ruby_1.8.6-p36-1_mips.ipk rm ruby_1.8.6-p36-1_mips.ipk wget http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/ruby-core_1.8.6-p36-1_mips.ipk ipkg -d ram install ruby-core_1.8.6-p36-1_mips.ipk rm ruby-core_1.8.6-p36-1_mips.ipk wget http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/libruby_1.8.6-p36-1_mips.ipk ipkg -d ram install libruby_1.8.6-p36-1_mips.ipk rm libruby_1.8.6-p36-1_mips.ipk LD_LIBRARY_PATH=/tmp/usr/lib /tmp/usr/bin/ruby -v LD_LIBRARY_PATH=/tmp/usr/lib /tmp/usr/bin/ruby -e "p hello from FON2201. " 成功。動きますな。 http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/ruby-cgi_1.8.6-p36-1_mips.ipk http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/ruby-erb_1.8.6-p36-1_mips.ipk http //downloads.openwrt.org/kamikaze/8.09/atheros/packages/ruby-webrick_1.8.6-p36-1_mips.ipk しかし、 (before) root@DD-WRT /tmp# du -h -s 116.0k . (after) root@DD-WRT /tmp# du -h -s 3.4M . root@DD-WRT /tmp# df -h Filesystem Size Used Available Use% Mounted on rootfs 5.4M 5.4M 0 100% / /dev/root 5.4M 5.4M 0 100% / /dev/mtdblock/3 1.4M 196.0k 1.2M 13% /jffs 入らなさそう。 FONにSDカードを増設 結構大変そうなのでやりたくない。特にFON2201の情報がない。GPIOの場所すらわからない。 2100/2200 http //www2omshiva.dyndns.org 8080/openwrt-fonera-sd 画像 http //home.earthlink.net/~fone/f/fourneras.jpg その他 La FoneraのGPIOでAVRに書き込む http //d.hatena.ne.jp/ts1/20090409/1239287090 LaFonera改造大全集 http //www.dd-wrt.com/wiki/index.php/Category LaFonera_Hardware_(en) すげー
https://w.atwiki.jp/submarine/pages/11.html
ソフトウェアレビュー Resynthesizer (Texture Synthesis) Texture Synthesis / GIMP Plugin 作者 Paul Harrison 配布サイト http //www.logarithmic.net/pfh/resynthesizer テクスチャの生成 左の入力画像を元に右の大きな画像を生成します。 不要物の消去 背景を補間しながらノイズや傷などを除去します。 適当に選択領域作ったので地面など変な跡ができています。 テクスチャの置換 入力テクスチャ、入力マップ(濃度参照用) 出力用マップ、適用結果 Resynthesizerが出力マップのカラー濃度に近いテクスチャを 入力マップを参照、入力テクスチャから拾って置換。(ややこしい?) 鉛筆画調に変換したり木版や銅版調にできる筈ですが、 そこまで使いこなしてないです。 その他のテクスチャ合成(Texture Synthesis)に関するリンク 山梨大学 メディアと相互作用研究室 テクスチャ合成 Automatic Image Restoration Microsoft Reserch "Real-Time Texture Synthesis By Patch-Based Sampling" (PDF) Texture Analysis and Synthesis Rupert Paget Texture Synthesis and Analysis Interactive Synthesis of Natural Textures new york university mrl image analogies texture transfer Image Inpainting and Texture Synthesis Texture Synthesis Comparison of Pixel-Based to Patch-Based Texture Synthesis Algorithms ここにも別のプログラムあります。 画像修復(Image Inpainting)
https://w.atwiki.jp/chugoku/pages/70.html
#include stdio.h #include cv.h #include highgui.h int main(int argc, char* argv[]){ IplImage* frame; cvNamedWindow("loadImage"); //loadImageタイトル名のウィンドウを作成して表示 cvNamedWindow("change"); //cvNamedWindow("loadImage", CV_WINDOW_AUTOSIZE); frame= cvLoadImage("c /windows/フィッシング.bmp", 1);//0にするとグレイスケール/濃淡画像 fprintf(stderr, "width %d\n", frame- width); fprintf(stderr, "height %d\n", frame- height); fprintf(stderr, "nChannels %d\n", frame- nChannels);//nChannelsが1ならグレイスケール。3ならRGB fprintf(stderr, "depth %dbit\n", frame- depth);//各画素の最大レベル。8ビットだと0~255まで。ほぼ8ビット cvShowImage("loadImage", frame);//画像をウィンドウに表示 CvSize size; size.width=(int)frame- width*2.5; size.height=(int)frame- height*5; IplImage *img = cvCreateImage(size,IPL_DEPTH_8U,3); cvResize(frame,img,CV_INTER_CUBIC); cvShowImage("change", img);//画像をウィンドウに表示 cvWaitKey(0);//0ミリ秒まつ。0は特別で永遠に待つという意味になる。 cvDestroyWindow("loadImage"); // ウィンドウを破棄する。 return 0; }
https://w.atwiki.jp/sizerz/pages/1.html
@wikiへようこそ ウィキはみんなで気軽にホームページ編集できるツールです。 このページは自由に編集することができます。 メールで送られてきたパスワードを用いてログインすることで、各種変更(サイト名、トップページ、メンバー管理、サイドページ、デザイン、ページ管理、等)することができます まずはこちらをご覧ください。 @wikiの基本操作 用途別のオススメ機能紹介 @wikiの設定/管理 おすすめ機能 気になるニュースをチェック 関連するブログ一覧を表示 その他にもいろいろな機能満載!! @wikiプラグイン @wiki便利ツール @wiki構文 バグ・不具合を見つけたら? お手数ですが、こちらからご連絡宜しくお願いいたします。 ⇒http //atwiki.jp/guide/contact.html 分からないことは? @wiki ご利用ガイド よくある質問 @wikiへお問い合わせ 等をご活用ください
https://w.atwiki.jp/vocaloidenglishlyric/pages/122.html
【Tags E Gumi Hoka-P HokaP corneria ep0d tE】 Original Music Title Eraser Music written, Voice edited by ep0d / 他P(Hoka-P) Japanese Lyrics written by corneria Music arranged by ep0d / 他P(Hoka-P) Singer Gumi(Megpoid) Click here for the Japanese Lyrics English Lyrics (by CHEB) I want to delete for the all I wish I could laugh but I can t I want to delete for the world So I cry while walking La, la, la... I was fallen, feeling lost and lonesome, and I woke up I swallowed pieces of air for the first time I was falling All I want was my last hope I just wanted to have it Sleeping, like a deadly Dawn I pretened like I was tough but I couldn t any more I was shaking this feeling Erase it Right away I want to delete for the all I wish I could laugh I want to delete for the world And I run with a gust of whirlwind In a black page I depicted a feeling of marco I spoiled the yesterday s blank fantasy Eraser With my eyes closed I cheated and blamed them No life without a little bit of righteousness? Open your eyes And overcome the rough road Do you see something, don t you? Freezing, like a deadly dawn Your days were passing If you don t realize you didn t even have time to regret, it s time to break off Erase your days with a rainbow Right away I want to delete for the all Bye bye blue I want to delete for the world Don t feel ashamed to run away I m feeling the strong impulse to pierce a bright blu sky Creat out pieces of the Jigsaw The Jigsaw of tomorrow Oh, it s waiting Eraser! so straight and true I pierce through the clear blue sky Yes, tomorrow is a jigsaw that is waiting for me Create it for me, eraser! Dawn, so long, work days The light of the lighthouse is far away The color of the light washes away our past and all Don t erase the color, the color of our light Right away I want to delete for the all My friend, you cry but want to laugh I want to delete for the world You have the guts to praise them In the midnight beat your fears Go our way There are no obstacles Our way is so straight and snow-white color Eraser! I want to delete for the all I want to delete for livin People I want to delete for the world Romaji lyrics (transliterated by bluepenguin / Penguin): I want to delete for the all waraenai kono jibun nara I want to delete for the world nakinagara arukeba ii La, la, la... otosareta kyomu to kodoku no naka mezame suinarenai kuuki no tsubu o nomikomu ochite yuku saigo no kibou ni sugaritsuita tada mukuwaretakute Sleeping, like a deadly Dawn tsuyogari sae mo ate ni naranai naraba kakikiru you ni furiharatte ke - su - yo ima sugu I want to delete for the all waraenai kono jibun to I want to delete for the world osou tsumuji kaze nuke makkuro na NOOTO ni egaita MAKURO na kanjou de sou masshiro na kinou no gensou kowase Eraser la, la, la... La, la, la... me o tojite dareka o damasu kotoba o haku chippoke na seigi dake ga ikiru imi na no? me o akete togaru ibara no michi arukeba nanika ga mieru desho? Freezing, like a deadly Dawn If I open my eyes And walk the path of sharp thorns What will I see? Freezing, like a deadly Dawn koukai sae dekinai hibi sugosu nara saegiru you ni niji hanatte ke - su - yo ima sugu I want to delete for the all kanashimi ni nagasarete bye bye I want to delete for the world nigeru koto o hajinaide massao na sora o tsukisasu massugu na shoudou de sou matte iru ashita no Jigsaw tsukure Eraser Dawn, So long, Work Days mieta toudai no hi wa haruka tooku sono iro wa kako mo nani mo arainagasu kara Dawn, So long, Hard Days mabayuku tsuyoku mayou tamashii o michibiite kureru tomoshibi wa ke - sa - na - i - de sou sa ima sugu I want to delete for the all waraitakute naku KIMI to I want to delete for the world homeru yuuki o nigitte mayonaka fuan o nirami massugu de shougai mo nai masshiro na bokura no michi o kakero Eraser I want to delete for the all I want to delete for livin People I want to delete for the world La, la, la...