About this document This file contains the command from "IntelŪ IoT Gateways Development Kit DK200 Series - Getting Started Guide. The purpose of this file is to provide a text file from which you can use to copy and paste commands during your DK200 Series installation. This file is organized by Getting Started Guide Sections. ----------------------------------------------------- Section 3: Connect the Target Device to a Host System ls /dev/tty* sudo chmod 666 /dev/ttyUSB0 grep ssid /etc/config/wireless ifconfig br-lan ifconfig br-lan ifconfig service sshd start update-rc.d sshd defaults ssh root@ ----------------------------------------------------- Section 4: Prepare to Build Your Runtime Image sudo apt-get update cd $HOME mkdir WindRiver mkdir Installer mkdir Project mkdir Project/build-cache ----------- Section 6: Install Linux Packages and Wind River Linux Packages on Host System cd $HOME/Installer unzip DVD*.zip ./setup_linux sudo apt-get install libstdc++6:i386 libgtk2.0-0:i386 libxtst6:i386 cd $HOME/WindRiver/wrlinux-5/scripts ./host_package_install.sh sudo apt-get install [package #1] [package #2] [etc] ----------- Section 7: Build Intelligent Device Platform XT Runtime Software cd $HOME/Project ../WindRiver/wrlinux-5/wrlinux/configure \ --enable-board=intel-quark \ --enable-kernel=standard \ --enable-rootfs=glibc-idp \ --enable-addons=wr-idp \ --enable-bootimage=ext3,hdd \ --enable-jobs=6 \ --enable-parallel-pkgbuilds=4 \ --enable-patchresolve=noop \ --enable-rm-work=yes \ --enable-checkout-all-layers=yes \ --with-layer=wr-prosyst-mbs-smarthome-sdk-ia,wr-exegin-zigbee-ia,\ wr-digi-idigiconnector,wr-wks-oneagent-oma-dm-ia,\ wr-wks-oneagent-tr069,wr-ieee11073,wr-intel-support \ --with-template=feature/vlan,feature/opc,feature/recovery,\ feature/opc_demo,feature/ipsec_vpn,feature/l2tp,\ feature/openjdk-bin,feature/online_updates,feature/bluetooth,\ feature/boot_delay_network,feature/pptp_vpn,\ feature/intel-wilkinpeak2,feature/webif make fs ----------- Section 8: Put Intelligent Device Platform XT Runtime Image onto USB Flash Drive df sudo ./deploy.sh \ -u -f export/intel-quark-glibc-idp-standard-dist-srm.tar.bz2 \ -d /dev/sd? -y -b clanton-hill sudo cp export/intel-quark-glibc-idp-standard-dist-srm.tar.bz2 \ /media//wr_usb_boot/opt/rootfs-dist.tar.bz2 ls /media//wr_usb_boot/opt umount /dev/sd?1 /dev/sd?2 ----------- Section 9: Install Intelligent Device Platform XT Runtime on Target Device tgt=/dev/mmcblk0 /sbin/reset_media poweroff ----------- Section 10: Update SPI Firmware on Target Device mkdir -p /lib/firmware modprobe efi_capsule_update cp /media/sda1/CapsuleUpdate/Flash-clantonhill-8M-secured.cap /lib/firmware echo -n Flash-clantonhill-8M-secured.cap > /sys/firmware/efi_capsule/capsule_path echo 1 > /sys/firmware/efi_capsule/capsule_update reboot poweroff ----------- Appendix C: Building an Intelligent Device Platform Project Using Wind RiverŪ Workbench cd $HOME/WindRiver ./ startWorkbench.sh ----------- Appendix D: Intalling and Configuring CAN stty -F /dev/ttyS0 921600 -parity -cstopb modprobe slcan modprobe can slcan_attach -w -o -s6 /dev/ttyS0 ifconfig slcan0 up cansniffer slcan0 ifconfig slcan0 up cangen slcan0 -g 100 ----------- Appendix E: Using Bluetooth Functionality modprobe btusb hciconfig up hciconfig noscan hciconfig hcitool scan --flush hciconfig piscan sdptool browse hcitool dc hcitool cc hcitool con hcitool dc l2ping -c 5 ----------- Appendix F: Enabling Audio Components modprobe intel_qrk_audio_ctrl modprobe snd-usb-audio modprobe snd-usbmidi-lib aplay -l echo gsm > /sys/bus/i2c/devices/0-0018/audio_switch_mode echo spkr > /sys/bus/i2c/devices/0-0018/audio_switch_mode echo spkr_mic > /sys/bus/i2c/devices/0-0018/audio_switch_mode echo gsm_spkr_mic > /sys/bus/i2c/devices/0-0018/audio_switch_mode aplay arecord recording.wav ----------- Appendix G: Using the Accelerometer modprobe intel_qrk_gip modprobe gpio_sch modprobe lis331dlh_intel_qrk ----------- Appendix H: Triage Tool $HOME/Project$ sudo sh ./triage_tool_host.sh -i -b root@WR-IntelligentDevice:~/examples# ./triage_tool_target.sh ----------- Appendix I: Installing and Configuring PuTTY sudo apt-get install putty putty