1*4882a593SmuzhiyunBuild 2*4882a593Smuzhiyun===== 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunFirst, configure Buildroot for your WarpBoard. 5*4882a593Smuzhiyun make warpboard_defconfig 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunBuild all components: 8*4882a593Smuzhiyun make 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunYou will find in ./output/images/ the following files: 11*4882a593Smuzhiyun - imx6sl-warp.dtb 12*4882a593Smuzhiyun - rootfs.ext4 13*4882a593Smuzhiyun - rootfs.tar 14*4882a593Smuzhiyun - sdcard.img 15*4882a593Smuzhiyun - u-boot.imx 16*4882a593Smuzhiyun - zImage 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunUpdate uboot 19*4882a593Smuzhiyun============ 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun- Put warpboard in USB download mode by closing the j2 jumper on the 22*4882a593Smuzhiyun daugther board 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun- Load u-boot.imx in the WarpBoard by using the imx-usb-loader host utility: 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun $ ./output/host/bin/imx_usb -c output/host/etc/imx-loader.d/ output/images/u-boot.imx 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun- U-Boot will appear in minicom 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun- Reset the U-Boot environment to its default: 31*4882a593Smuzhiyun => env default -f -a 32*4882a593Smuzhiyun => saveenv 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun- Run the DFU command in U-Boot: 35*4882a593Smuzhiyun => dfu 0 mmc 0 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun- Transfer U-Boot into flash by running this command in host side: 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun $ sudo ./output/host/bin/dfu-util -D output/images/u-boot.imx -a boot 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun- remove power and put the WarpBoard back into normal boot mode by 42*4882a593Smuzhiyun opening the j2 jumper. 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunUpdate linux & rootfs 45*4882a593Smuzhiyun===================== 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunRun the 'ums' command from the U-Boot prompt to mount the eMMC as USB mass 48*4882a593Smuzhiyunstorage: 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun=> ums 0 mmc 0 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunAnd then flash the sdcard.img into the eMMC: 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun dd if=output/images/sdcard.img of=/dev/<your-sd-device> 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun*** WARNING! This will destroy all the eMMC content. Use it with care! *** 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunUsing bluetooth 59*4882a593Smuzhiyun================ 60*4882a593Smuzhiyun 61*4882a593SmuzhiyunEnable the bluez_utils or bluez5_utils package, and then run: 62*4882a593Smuzhiyun 63*4882a593Smuzhiyun$ hciattach /dev/ttymxc4 any 64*4882a593Smuzhiyun$ hciconfig hci0 up 65*4882a593Smuzhiyun 66*4882a593SmuzhiyunUsing Wifi 67*4882a593Smuzhiyun========== 68*4882a593Smuzhiyun 69*4882a593Smuzhiyun# modprobe brcmfmac 70*4882a593Smuzhiyun# iwconfig wlan0 essid ACCESSPOINTNAME 71*4882a593Smuzhiyun# wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf 72*4882a593Smuzhiyun(enter the wifi password and press enter) 73*4882a593Smuzhiyun# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf & 74*4882a593Smuzhiyun# udhcpc -i wlan0 75*4882a593Smuzhiyun# ping buildroot.org 76*4882a593Smuzhiyun 77*4882a593SmuzhiyunEnjoy! 78