[[FrontPage]]
* セットアップ [#e5f0634b]
** アップデート [#b08fcc20]
$ sudo apt-get update
real 0m42.281s
user 0m29.716s
sys 0m2.873s
$ sudo apt-get upgrade
real 3m36.915s
user 1m48.054s
sys 1m12.597s
** タイムゾーン [#g7db83c3]
$ sudo timedatectl set-timezone Asia/Tokyo
** パスワード [#mcbe1ac8]
-初期パスワードは temppwd
-debian0 に変える(debianは弱すぎて駄目と言われてしまった)
$ passwd
Changing password for debian.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Bad: new password is too simple
Enter new UNIX password:
Retype new UNIX password:
Bad: new password is too simple
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
** その他ハードウェア情報 [#v82f8902]
$ uname -a
Linux beaglebone 4.14.108-ti-r113 #1 SMP PREEMPT Wed Jul 31 00:01:10 UTC 2019 armv7l GNU/Linux
$ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Model: 2
Model name: ARMv7 Processor rev 2 (v7l)
CPU max MHz: 1500.0000
CPU min MHz: 1000.0000
BogoMIPS: 12.29
Flags: half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
$ cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 12.29
Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc0f
CPU revision : 2
processor : 1
model name : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 12.29
Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc0f
CPU revision : 2
Hardware : Generic DRA74X (Flattened Device Tree)
Revision : 0000
Serial : 0901700a7b180b22
$ cat /proc/self/auxv | hexdump
0000000 0021 0000 b000 bee9 0010 0000 b8d6 003f
0000010 0006 0000 1000 0000 0011 0000 0064 0000
0000020 0003 0000 9034 004d 0004 0000 0020 0000
0000030 0005 0000 0009 0000 0007 0000 2000 b6fc
0000040 0008 0000 0000 0000 0009 0000 aa69 004d
0000050 000b 0000 03e8 0000 000c 0000 03e8 0000
0000060 000d 0000 03e8 0000 000e 0000 03e8 0000
0000070 0017 0000 0000 0000 0019 0000 fccb bed4
0000080 001a 0000 0000 0000 001f 0000 fff3 bed4
0000090 000f 0000 fcdb bed4 0000 0000 0000 0000
00000a0
$ git config --global user.name "Tomoaki Teshima"
$ git config --global user.email tomoaki.teshima@gmail.com
$ gcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ time sudo apt install cmake ccache clinfo
real 0m23.866s
user 0m8.338s
sys 0m4.864s
$ ccache -M 10GB
Set cache size limit to 10.0 GB
$ mv .ccache /media/debian/9016-4EF8/
$ ln -s /media/debian/9016-4EF8/.ccache ./
$ time git clone git@github.com:tomoaki0705/opencv.git opencv-fork && time git clone git@github.com:tomoaki0705/opencv_contrib.git && time git clone git@github.com:tomoaki0705/opencv_extra.git && \
pushd opencv-fork && git remote add upstream https://github.com/opencv/opencv.git && time git fetch --tags upstream && popd && \
pushd opencv_contrib && git remote add upstream https://github.com/opencv/opencv_contrib.git && time git fetch --tags upstream && popd && \
pushd opencv_extra && git remote add upstream https://github.com/opencv/opencv_extra.git && time git fetch --tags upstream && popd