la fonera 2.0 で遊ぶ~導入編~ 2009年9月のオフな集まり(第87 回)

Download La Fonera 2.0 で遊ぶ~導入編~ 2009年9月のオフな集まり(第87 回)

If you can't read please download the document

Upload: kenichiro-matohara

Post on 15-Apr-2017

2.751 views

Category:

Documents


2 download

TRANSCRIPT

La Fonera 2.0 ~~
20099(87 )

KenichiroMATOHARA

Linux

SeevaPlug($99)http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp

BeagleBoard($150)http://search.digikey.com/scripts/DkSearch/dksus.dll?Cat=2621773&keywords=Beagle%20Board

Leopard Board($99 )http://www.leopardboard.org/

Covia SmartQ5($120 \19800- MID)http://www.covia.net/main/product-smartq5.html

La Fonera?

Fon AP

3La Fonera

La Fonera+

La Fonera 2.0

La Fonera(FON2100E/FON2200E)

La Fonera+(FON2201)LanPort 2

La Fonera 2.0(FON2202)USB Port

+

()

La Fonera > FON2200E

FW

OpenWrt / DD-WrtLAN AP FWFW FW Fon

FreeWLANFon FW

La Fonera 2.0 DEVELOPERFon La Fonera 2.0 FWssh Fon

OS

FW

La Fonera 2.0 DEVELOPER Serial >

La Fonera 2.0 DEVELOPERWeb

Arduino

La Fonera 2.0 DEVELOPER

Firmware Update Instructions - FON Wiki Betahttp://wiki.fon.com/wiki/Firmware_Update_Instructions

FW (http://download.fonosfera.org/LATEST/) > >

30

ie

La Fonera 2.0 DEVELOPER

SSH

slogin [email protected] login

SSID : MyPlacePASS : koedokoedo

uname / cpuinfo

# uname -a Linux Fonera 2.6.26.2 #11 Tue Apr 21 14:36:55 CEST 2009 mips unknown

# cat /proc/cpuinfo system type : Atheros AR2315 processor : 0 cpu model : MIPS 4KEc V6.4 BogoMIPS : 183.50 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : no ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available

df / free

root@Fonera:~# df -kFilesystem 1k-blocks Used Available Use% Mounted onrootfs 3712 3712 0 100% //dev/root 3712 3712 0 100% /romtmpfs 14956 212 14744 1% /tmptmpfs 512 0 512 0% /dev/dev/mtdblock4 1792 228 1564 13% /jffsmini_fo:/jffs 3712 3712 0 100% /root@Fonera:# free total used free shared buffers Mem: 29912 21440 8472 0 2532 Swap: 0 0 0Total: 29912 21440 8472

root@Fonera:~# free total used free shared buffers Mem: 29912 21696 8216 0 2264 Swap: 0 0 0Total: 29912 21696 8216

opkg

Debian apt



/etc/opkg.conf

Update

# opkg update Downloading http://downloads.openwrt.org/snapshots/fonera2/packages/Packages Connecting to downloads.openwrt.org (78.24.191.177:80) wget: server returned error: HTTP/1.1 404 Not Found Signiture check for snapshots skipped because GPG support was not enabled in this build Collected errors: * opkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -P /tmp/opkg-b7N5CM http://downloads.openwrt.org/snapshots/fonera2/packages/Packages'

src snapshots http://ipkg.nslu2-linux.org/feeds/openwrt/fon-ng/mips/

root@Fonera:~# opkg updateDownloading http://ipkg.nslu2-linux.org/feeds/openwrt/fon-ng/mips//PackagesConnecting to ipkg.nslu2-linux.org (140.211.169.169:80)Packages 100% |************************************************************************************| 568k 00:00:00 ETAUpdated list of available packages in /var/opkg-lists/snapshotsSigniture check for snapshots skipped because GPG support was not enabled in this build

USB

mini USB-HUBOK

USB Disk(Baffalo microUSB ReadWriter)sda: sda1

emobile D02HWttyUSB0 / ttyUSB1

swap

root@Fonera:/# opkg install swap-utils libblkidroot@Fonera:/# mount /dev/sda1 /mntroot@Fonera:/# dd if=/dev/zero of=/mnt/swap bs=1k count=6553665536+0 records in65536+0 records outroot@Fonera:/# ls -l /mnt/swap -rwxr-xr-x 1 root root 67108864 Sep 4 21:56 /mnt/swaproot@Fonera:/# mkswap /mnt/swapSetting up swapspace version 1, size = 67104 kBno label, UUID=c90609f7-930e-42e6-92a7-0cba167a40bfroot@Fonera:/# swapon /mnt/swap root@Fonera:/# free total used free shared buffers Mem: 29912 23920 5992 0 800 Swap: 65452 0 65452Total: 95364 23920 71444

USB swap swap swap swap mount

UTC# dateFri Sep 4 21:44:51 UTC 2009

JST /etc/system/config UTC JST-9

# date
Sat Sep 5 06:45:42 JST 2009

emobile AP3G AP

USB PC ? > OpenWRT http://sven.killig.de/openwrt/slugterm_dl.html

GPIOGPIO >
LED

http://bit.ly/koedolug