10.0 Alpha2 を Atom D510 マシンへインストールして
1.クロスコンパイル環境
# cd /usr/src
# make xdev XDEV=arm XDEV_ARCH=armv6
2.crochet-freebsd.gitの読み込みとコンパイル
$ git clone git://github.com/kientzle/crochet-freebsd.git
Cloning into 'crochet-freebsd'...
remote: Counting objects: 2219, done.
remote: Compressing objects: 100% (1131/1131), done.
remote: Total 2219 (delta 983), reused 2203 (delta 970)
Receiving objects: 100% (2219/2219), 4.15 MiB | 847.00 KiB/s, done.
Resolving deltas: 100% (983/983), done.
Checking connectivity... done
$ cd crochet-freebsd
$ ls
README.md config.sh.sample lib
board crochet.sh option
(ここでconfig.sh.sampleを修正したものでconfig.shを作成)
$ sudo sh crochet.sh -b BeagleBone -c config.sh
Password:xxxx
Starting at Mon Sep 30 11:27:14 JST 2013
Board: BeagleBone
Loading configuration from config.sh
Board: BeagleBone
Option: ImageSize 15900mb
Option: AutoSize
Option: SwapFile 768mb
Option: UsrSrc
Found suitable FreeBSD source tree in:
/usr/src
Please consider installing sysutils/u-boot-beaglebone-eabi port.
That will avoid the need for Crochet to build U-Boot.
Found FreeBSD xdev tools for armv6
U-Boot build requires 'gsed'
Please install textproc/gsed and re-run this script.
# cd /usr/ports/textproc/gsed
# make install clean
$ sudo sh crochet.sh -b BeagleBone -c config.sh
Starting at Mon Sep 30 11:31:00 JST 2013
Board: BeagleBone
Loading configuration from config.sh
Board: BeagleBone
Option: ImageSize 15900mb
Option: AutoSize
Option: SwapFile 768mb
Option: UsrSrc
Found suitable FreeBSD source tree in:
/usr/src
Please consider installing sysutils/u-boot-beaglebone-eabi port.
That will avoid the need for Crochet to build U-Boot.
Found FreeBSD xdev tools for armv6
Expected to see U-Boot sources in
/usr/home/brahmint/crochet-freebsd/u-boot-2013.04
Use the following command to get the U-Boot sources
$ ftp ftp://ftp.denx.de/pub/u-boot/u-boot-2013.04.tar.bz2
$ tar xf u-boot-2013.04.tar.bz2
Edit $BEAGLEBONE_UBOOT_SRC in config.sh if you want the sources in a different directory.
Run this script again after you have the U-Boot sources installed.
$ ftp ftp://ftp.denx.de/pub/u-boot/u-boot-2013.04.tar.bz2
Connected to themis.denx.de.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 11 of 50 allowed.
220-Local time is now 04:32. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
230 Anonymous user logged in
Remote system type is UNIX.
Using binary mode to transfer files.
200 TYPE is now 8-bit binary
250 OK. Current directory is /pub
250 OK. Current directory is /pub/u-boot
local: u-boot-2013.04.tar.bz2 remote: u-boot-2013.04.tar.bz2
229 Extended Passive mode OK (|||64656|)
150-Accepted data connection
150 9606.8 kbytes to download
100% |************************************************************************************| 9606 KiB 47.45 Ki
226-File successfully transferred
226 199.630 seconds (measured here), 48.12 Kbytes per second
9837387 bytes received in 03:22 (47.45 KiB/s)
221-Goodbye. You uploaded 0 and downloaded 9607 kbytes.
221 Logout.
$ tar xf u-boot-2013.04.tar.bz2
$ ls -l total 9720 -rw-r--r-- 1 brahmint brahmint 4188 Sep 30 10:39 README.md drwxr-xr-x 10 brahmint brahmint 512 Sep 30 10:39 board -rw-r--r-- 1 brahmint brahmint 8790 Sep 30 11:44 config.sh -rw-r--r-- 1 brahmint brahmint 8717 Sep 30 10:39 config.sh.sample -rwxr-xr-x 1 brahmint brahmint 1615 Sep 30 10:39 crochet.sh drwxr-xr-x 2 brahmint brahmint 512 Sep 30 10:39 lib drwxr-xr-x 10 brahmint brahmint 512 Sep 30 10:39 option drwxr-xr-x 20 brahmint brahmint 1024 Apr 19 23:25 u-boot-2013.04 -rw-r--r-- 1 brahmint brahmint 9837387 Apr 20 04:53 u-boot-2013.04.tar.bz2 drwxr-xr-x 2 root brahmint 512 Sep 30 11:27 work
$ sudo sh crochet.sh -b BeagleBone -c config.sh Password:xxxx Starting at Mon Sep 30 15:11:04 JST 2013 Board: BeagleBone Loading configuration from config.sh Board: BeagleBone Option: ImageSize 15900mb Option: AutoSize Option: SwapFile 768mb Option: UsrSrc Found suitable FreeBSD source tree in: /usr/src Please consider installing sysutils/u-boot-beaglebone-eabi port. That will avoid the need for Crochet to build U-Boot. Found FreeBSD xdev tools for armv6 Found U-Boot sources in: /usr/home/brahmint/crochet-freebsd/u-boot-2013.04 Please consider installing sysutils/u-boot-beaglebone-eabi port. That will avoid the need for Crochet to build U-Boot. Found FreeBSD xdev tools for armv6 Found U-Boot sources in: /usr/home/brahmint/crochet-freebsd/u-boot-2013.04 Building FreeBSD armv6 world at Mon Sep 30 15:11:05 JST 2013 (Logging to /usr/home/brahmint/crochet-freebsd/work/_.buildworld.armv6.log)Failed to build FreeBSD armv6 world. Log in /usr/home/brahmint/crochet-freebsd/work/_.buildworld.armv6.log make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildworld] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src
$ date
Mon Sep 30 22:56:46 JST 2013
------------------
ひえー、7時間45分後にエラーでたーw
(dateコマンドは長く掛かりそうなんで途中でキーボードから先打ちしてたw)
ログ調べてみよう。
------------------
…前のほうは略…
c++ -O -pipe -I/usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/lib/Transforms/Utils -I. -I/usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"armv6-gnueabi-freebsd10.0\" -DLLVM_HOST_TRIPLE=\"armv6-unknown-freebsd10.0\" -DDEFAULT_SYSROOT=\"\" -Qunused-arguments -Wno-c++11-extensions -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp -o SimplifyInstructions.o
In file included from /usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/lib/Transforms/Utils/SimplifyInstructions.cpp:29:
In file included from /usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include/llvm/Transforms/Utils/Local.h:19:
In file included from /usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include/llvm/IR/IRBuilder.h:23:
In file included from /usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include/llvm/IR/Instructions.h:26:
In file included from /usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include/llvm/Support/IntegersSubset.h:24:
/usr/home/umainjana/crochet-freebsd/work/obj/arm.armv6/usr/src/tmp/usr/include/c++/v1/list:1498:57: error: no member named 'allocate' in 'std::__1::allocator_traits<std::__1::allocator<std::__1::__list_node<llvm::IntRange<llvm::IntItem>, void *> > >'
unique_ptr<__node, _Dp> __hold(__node_alloc_traits::allocate(__na, 1), _Dp(__na, 1));
^
/usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include/llvm/Support/IntegersSubsetMapping.h:544:14: note: in instantiation of member function 'std::__1::list<llvm::IntRange<llvm::IntItem>, std::__1::allocator<llvm::IntRange<llvm::IntItem> > >::push_back' requested here
Ranges.push_back(i->first);
^
/usr/src/lib/clang/libllvmtransformutils/../../../contrib/llvm/include/llvm/IR/Instructions.h:2809:27: note: in instantiation of member function 'llvm::IntegersSubsetMapping<llvm::BasicBlock, llvm::IntegersSubset, llvm::IntItem>::getCase' requested here
*SubsetIt = Mapping.getCase();
^
1 error generated.
*** [SimplifyInstructions.o] Error code 1
make[6]: stopped in /usr/src/lib/clang/libllvmtransformutils
1 error
make[6]: stopped in /usr/src/lib/clang/libllvmtransformutils
*** [all] Error code 2
make[5]: stopped in /usr/src/lib/clang
1 error
make[5]: stopped in /usr/src/lib/clang
*** [all] Error code 2
make[4]: stopped in /usr/src/lib
1 error
make[4]: stopped in /usr/src/lib
A failure has been detected in another branch of the parallel make
make[3]: stopped in /usr/src
*** [libraries] Error code 2
make[2]: stopped in /usr/src
1 error
make[2]: stopped in /usr/src
*** [_libraries] Error code 2
make[1]: stopped in /usr/src
1 error
make[1]: stopped in /usr/src
*** [buildworld] Error code 2
make: stopped in /usr/src
1 error
make: stopped in /usr/src
0 件のコメント:
コメントを投稿