Wednesday, December 26, 2012

Using wpa_supplicate with buildroot

Using wpa_supplicant with buidlroot 
  • Buildroot does not provide scripts ifup/ifdown integrated with wpa_supplicant
    • Ubuntu/OpenWrt and others have scripts that parse interfaces file to start tools 
    • So doing this by hand
      • wpa_supplicant start -iwlan0 -c/etc/wpa_supplicant.conf &
        • Configures wifi and makes a connection then the connection is made need to start a ifup.
      • ifup wlan0 (This kicks off the dhcp client)
  • Will publish more on this issue again.. Might just use openwrt for this..

Monday, December 24, 2012

Working with Micro and buildroot

Have made progress on several projects
  1. imx28-evk (http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MCIMX28EVKJ)  HW updated the board to have a SPI 8MB chip.
    1. Have a working u-boot boot from SPI flash
      • Customized u-boot imx28-evk 
      • Customized mxsboot to format the image to be loaded by SPI
    2. Have a working linux 3.7 kernel image boot from SPI flash
      • Using squashfs for ROM file system
      • Using mtdparts to segment flash 
      • Using JFFS2 for write flash area
    • Currently testing a method to program production boards from JTAG or USB.  HAve tried using JTAG Here is the issue https://community.freescale.com/thread/302010
    • So, now u-boot is loading but SPI flash access is not correct.  So, looking at the issues why  boot cannot access SPI flash
  2. Micro board (https://www.olimex.com/Products/OLinuXino/iMX233/iMX233-OLinuXino-MICRO/)
    1. Have buildroot creating a linux 3.7.1 image able to
      1. Connect wifi dongle connect to internet
        1. There is a kernel issue in the driver that dumps time out .  This is due to i2c DMA not timing out.  Have a custom driver to add DMA clear to fix time outs.
      2. Connect to Wii numchuck via i2c 
        1. Will change to use a classic controller
        2. Next need to add a case and power supply.  This will serve as controller to quad copter.
        3. Here is the power supply: https://www.sparkfun.com/products/11496
  3. Teensy3 (http://www.pjrc.com/store/teensy3.html) and Android 
    1. This little board is an ARM Cortex M4 (floating point) with USB (host/device)
    2. I've modified the USB descriptors  to support a bulk endpoint In/OUT
    3. Created an Android App to talk to the board via USB client.  Most cell phones support USB OTG, so all what is need is a simple converter cable:
      1. http://www.amazon.com/eForCity-Micro-USB-OTG-Adapter/dp/B005QX7KYU
      2. Connected the cable to my Samsung III loaded the Teensy USB Android app. now they are connected.
      3. My goal is to port some of IOIO and connect a WII classic or WII numchuck and use it the same was the above Micro board.  The phone has an internal wifi antenna the range is not good, but for close range good enough.  The micro has an external Wifi board using a Alfa which supports one watt of power.  So, should get about 1km of range. Also, now can use a better radio ie http://www.rctimer.com/index.php?gOo=goods_details.dwt&goodsid=817&productname=  One rado connected to teensy 3.0 the other on the beaglebone
      4. The android app uses simple USBHost mode and bulk API to communicate. 

  4. BeagleBone
    1. Restarted this project using Buildroot
      1. Fast boot time, 10 seconds or less
      2. Common startup ie Micro and imx28-evk
    2. Using buildroot to make:
      1. MLO
      2. u-boot
      3. Linux