良くわかっていないですが、動くものがあるという記事が流れているので、見てみるだけのメモ。
一番新しいそうなのを入手。結構通信は速い。IMGファイルをSDにDD for Windowsで突っ込んで、起動。
これだけで終わり。
最初どうするのだろうと、思ったけど。そういうことだった。
# dmesg KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #0 r286947: Wed Aug 19 18:04:27 MDT 2015 brd@hive.den.so14k.com:/usr/local/raspbsd/obj/RPI2/obj/arm.armv6/usr/local/raspbsd/src/RPI2/sys/RPI2 arm FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 VT: init without driver. sema_sysinit CPU: Cortex A7 rev 5 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:3 LoUIS:2 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory = 989851648 (943 MB) avail memory = 958476288 (914 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0:simplebus0: mem 0x3f000000-0x3fffffff on ofwbus0 bcm28360: generic_timer0: irq 72,73,75,74 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 intc0: mem 0xb200-0xb3ff on simplebus0 bcmwd0: mem 0x10001c-0x100027 on simplebus0 gpio0: mem 0x200000-0x2000af irq 57,59,58,60 on simplebus0 gpio0: read-only pins: 46,48-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin 35 on gpiobus0 gpioled1: at pin 47 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f irq 61 on simplebus0 iicbus0: on iichb0 iic0: on iicbus0 iichb1: mem 0x804000-0x80401f irq 61 on simplebus0 iicbus1: on iichb1 iic1: on iicbus1 spi0: mem 0x204000-0x20401f irq 62 on simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 sdhci_bcm0: mem 0x300000-0x3000ff irq 70 on simplebus0 mmc0: on sdhci_bcm0 uart0: mem 0x201000-0x201fff irq 65 on simplebus0 uart0: console (115200,n,8,1) vchiq0: mem 0xb800-0xb84f irq 2 on simplebus0 vchiq0: [GIANT-LOCKED] vchiq: local ver 6 (min 3), remote ver 6. pcm0: on vchiq0 bcm283x_dwcotg0: mem 0x980000-0x99ffff irq 17 on simplebus0 usbus0 on bcm283x_dwcotg0 cpulist0: on ofwbus0 cpu0: on cpulist0 bcm2835_cpufreq0: on cpu0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 fb0: on ofwbus0 fbd0 on fb0 VT: initialize with new VT driver "fb". fb0: 1920x1080(1920x1080@0,0) 24bpp fb0: fbswap: 1, pitch 5760, base 0x3d203000, screen_size 6266880 cryptosoft0: Timecounters tick every 10.000 msec IPsec: Initialized Security Association Processing. usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 mmcsd0: 4GB at mmc0 41.6MHz/4bit/65535-block bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF Release APs Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered ugen0.2: at usbus0 uhub1: on usbus0 uhub1: MTT enabled Root mount waiting for: usbus0 uhub1: 5 ports with 4 removable, self powered Root mount waiting for: usbus0 ugen0.3: at usbus0 smsc0: on usbus0 Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... warning: no time-of-day clock registered, system time will not be set accurately smsc0: chip 0xec00, rev. 0002 miibus0: on smsc0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on smsc0 ue0: Ethernet address: b8:27:eb:*** GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` to revert them. random: unblocking device. smsc0: chip 0xec00, rev. 0002 ue0: link state changed to DOWN ue0: link state changed to UP ugen0.4: at usbus0 ukbd0: on usbus0 kbd1 at ukbd0 ums0: on usbus0 ums0: 16 buttons and [XYZT] coordinates ID=2 uhid0: on usbus0
SDカードは、4GBのものを使ったのですが、初回の起動時にリサイズしてくれた。なかなか便利。
rootのパスワードが付いていなかったので付けたのと、ユーザを1つ作成して、ssh接続で利用できるようにしました。
既にDHCPによりIPアドレスは取得できていたので、ログインすることができました。
触ってみて、さぐる感じで良いよね。
# uname -a FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r286947: Wed Aug 19 18:04:27 MDT 2015 brd@hive.den.so14k.com:/usr/local/raspbsd/obj/RPI2/obj/arm.armv6/usr/local/raspbsd/src/RPI2/sys/RPI2 arm
# pkg info The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:armv6/latest, pleas Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done Installing pkg-1.5.6... Extracting pkg-1.5.6: 100% Message for pkg-1.5.6: If you are upgrading from the old package format, first run: # pkg2ng pkg-1.5.6 Package manager
パッケージが入るんだね。ちょっと感動。
FreeBSD の11というのは来年にリリースがされるものだったよな。
# pkg install perl5 Updating FreeBSD repository catalogue... Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 4 MiB 457.7kB/s 00:09 Processing entries: 100% FreeBSD repository update completed. 19419 packages processed. Updating database digests format: 100% The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: perl5: 5.20.2_5 The process will require 43 MiB more space. 13 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching perl5-5.20.2_5.txz: 100% 13 MiB 774.7kB/s 00:17 Checking integrity... done (0 conflicting) [1/1] Installing perl5-5.20.2_5... [1/1] Extracting perl5-5.20.2_5: 100%
普通にPerl5入れることができるようになりましたよ…。ちょっと前までこんなことすら大変だった(ARM版はコンパイルするしかなかった)のに。
Apacheとかリバプロ、DNS、メールなんかはすぐに動かせそうな感じだ。
# cat /etc/rc.conf hostname="rpi2" ifconfig_ue0="DHCP" sshd_enable="YES" powerd_enable="YES" # Nice if you have a network, else annoying. #ntpd_enable="YES" ntpd_sync_on_start="YES" # Uncomment to disable common services (more memory) #cron_enable="NO" #syslogd_enable="NO" sendmail_enable="NONE" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # On first boot, enlarge the root filesystem to fill the SD card growfs_enable="YES"
うむ、ちょっと楽しくなってきたかも。
さっき、VMPlayerにFreeBSD 10.2-RELEASEを入れてみていたんだけど、ページにするほど楽しそうじゃなかった…。
Raspberry PIはやっぱり楽しいな…。