2013年9月28日土曜日

BeagleBone Black に FreeBSDをインストール 7

 いろいろ調べていたら、FreeBSDには、最初からクロスコンパイラ環境のソースも納められている事が判明w
 
# cd /usr/src
# make xdev XDEV=arm XDEV_ARCH=armv6
 
 これで、/usr/armv6-freebsd 配下に arm用ツールチェインが作成されるらしい。
 実行して確認してみたところ。

# cd /usr/armv6-freebsd
# ls -ltotal 60
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 bin
drwxr-xr-x   7 root  wheel   512 Sep 12 19:07 boot
dr-xr-xr-x   2 root  wheel   512 Sep 12 19:07 dev
drwxr-xr-x  21 root  wheel   512 Sep 12 19:07 etc
drwxr-xr-x   3 root  wheel  1536 Sep 12 20:11 lib
drwxr-xr-x   3 root  wheel   512 Sep 12 19:07 libexec
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 media
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 mnt
dr-xr-xr-x   2 root  wheel   512 Sep 12 19:07 proc
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 rescue
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 root
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 sbin
drwxrwxrwt   2 root  wheel   512 Sep 12 19:07 tmp
drwxr-xr-x  15 root  wheel   512 Sep 12 19:07 usr
drwxr-xr-x   2 root  wheel   512 Sep 12 19:07 var
 とまあ、こんな感じ。
  http://blog.khubla.com/freebsd/building-a-beaglebone-freebsd-kernel
 ここを参考にして、続ける。

# git clone git://github.com/kientzle/crochet-freebsd.git
Cloning into 'crochet-freebsd'...
remote: Counting objects: 2200, done.
remote: Compressing objects: 100% (1114/1114), done.
remote: Total 2200 (delta 988), reused 2179 (delta 970)
Receiving objects: 100% (2200/2200), 4.14 MiB | 776.00 KiB/s, done.
Resolving deltas: 100% (988/988), done.
Checking connectivity... done
# cd crochet-freebsd
# ls -l
total 44
drwxr-xr-x   8 root  wheel   512 Sep 12 21:35 .git
-rw-r--r--   1 root  wheel    29 Sep 12 21:35 .gitignore
-rw-r--r--   1 root  wheel  4188 Sep 12 21:35 README.md
drwxr-xr-x  10 root  wheel   512 Sep 12 21:35 board
-rw-r--r--   1 root  wheel  8717 Sep 12 21:35 config.sh.sample
-rwxr-xr-x   1 root  wheel  1615 Sep 12 21:35 crochet.sh
drwxr-xr-x   2 root  wheel   512 Sep 12 21:35 lib
drwxr-xr-x  10 root  wheel   512 Sep 12 21:35 option
 
 とまあ、いろいろ試行錯誤していたのだが、
UART用のケーブル、http://akizukidenshi.com/catalog/g/gM-05840/ 
これを買いに秋葉に2週連続で足を運んだんだが、品切れ中orz
コンパイルしたkernelが一発で動いて、LANからsshでログインできれば不要なんだが、うまくいきそうじゃない予感(笑)
FreeBSD も 9.2 のリリース間近で、 10.0のAlpha2が出たりで、どれにするか思案中。
 秋葉に行ったときにMicroSD 16G(Class 10)が699円とか、安かったので2枚買ってきた。
とりあえず、Ubuntuでもインストールして、BeagleBone Black の性能とかを試してみようと思う。
 


0 件のコメント:

コメントを投稿