> m kdir build > c make .. > c cmake .. // PYTHON_API : OFF --> ON に変更します. // gとcを押下してmakefileを生成します. // qを押下してccmakeを抜けます. > make
3. 実行
pythonのインタプリタを起動します. ipythonだと関数や定数はタブ補完してくれます.
1 2 3 4 5 6 7 8 9 10 11 12
> cd python > ipython Python 2.7.6 (default, Mar 22 2014, 22:59:56) Type "copyright", "credits" or "license"for more information.
IPython 1.2.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??'for extra details.
// 各関節の角度を取得します. IN[*]: ang = list() IN[*]: for id in ids : IN[*]: ang.append(rsx.lpkt_mem_read_int16(id, rsxpy.RSX_RS30X_MEM_ADDR.RSX_RAM_PRESENT_POS_L, 1)[0]) IN[*]:
> bitbake edison-image > ls edison-src/out/linux64/build/tmp/deploy/images/edison ... bzImage--3.10.17-r0-edison-YYYYMMDDHHMMSS.bin edison-image-edison-YYYYMMDDHHMMSS.hddimg ...
4.8 インストール
vmlinuz と必要あれば/lib/modulesなどをコピーします.
1 2 3 4 5 6 7 8 9 10
> mkdir ext4 > sudo mount -o loop edison-image-edison-YYYYMMDDHHMMSS.rootfs.ext4 ext4 > ls ext4 bin boot dev etc home lib lost+found media mnt opt proc run sbin sketch sys tmp usr var > scp -rf ext4/lib/modules/3.10.17-yocto-standard root@${edison_ip}:/lib/modules/
> wpa_passphrase koya ${your_wpa_passwd} > koya-wlan.conf > cp ./koya-wlan.conf /etc/wpa_supplicant/ > vi /etc/network/interfaces auto wlan0 iface wlan0 inet dhcp # For WPA + wpa-conf /etc/wpa_supplicant/koya-wlan.conf - wpa-ssid test - wpa-psk pass + #wpa-ssid test + #wpa-psk pass # For WEP #wireless-essid Emutex #wireless-mode Managed #wireless-key s:passwordk
> ifdown wlan0 nternet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/78:4b:87:a8:f0:e9 Sending on LPF/wlan0/78:4b:87:a8:f0:e9 Sending on Socket/fallback DHCPRELEASE on wlan0 to192.168.11.1 port 67
> ifup wlan0 Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/78:4b:87:a8:f0:e9 Sending on LPF/wlan0/78:4b:87:a8:f0:e9 Sending on Socket/fallback DHCPDISCOVER on wlan0 to255.255.255.255 port 67 interval 8 DHCPDISCOVER on wlan0 to255.255.255.255 port 67 interval 13 DHCPREQUEST on wlan0 to255.255.255.255 port 67 DHCPOFFER from 192.168.11.1 DHCPACK from 192.168.11.1 bound to192.168.11.11 -- renewal in 76747 seconds.
> iwconfig wlan0 wlan0 IEEE 802.11abgn ESSID:"koya" Mode:Managed Frequency:2.412 GHz Access Point:4C:E6:76:3E:BE:A1 Bit Rate=54 Mb/s Tx-Power=31 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on Link Quality=56/70 Signal level=-54 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:14 Invalid misc:1 Missed beacon:0