星期五, 7月 04, 2014

Savageboard Dual/Solo with BCM43241 in Yocto

Yocto image for Savageboard Dual/Solo with BCM43241

This image includes:
1.   opencv library (for more information: this link is helpful: http://imxcv.blogspot.tw/2014/02/building-opencv-24x-for-freescales-imx6.html )
2.   gstermer for fsl
3.   opengles demo with 3D acceleration

To test WiFi & BT:
1.   WIFI (modify /etc/wpa_supplicant.conf for your WiFi environment. Using wpa_passphrase ssid key to generate the key)
modprobe bcmdhd (insert wifi driver)
ifup wlan0 (bring up wifi & wpa_supplicant, then udhcpc will try to get IP address from WiFi AP)
PS: Please unpluging ethernet cable beforce wifi testing, due to udhcpc may not get DNS setting at ethernet cable plugged.
2.   BT
rfkill unblock wimax
brcm_patchram_plus --no2bytes --baudrate 3000000 --use_baudrate_for_download --patchram /etc/wifi/bcm4324.hcd /dev/ttymxc2
hciattach -s 3000000 /dev/ttymxc2 any 3000000 flow
rfkill unblock bluetooth
hciconfig hci0 up

hcitool scan (will show BT devices nearby)

To test OpenCV:
Ex: DISPLAY=:0 ./camera_test

To test Gstermer:
  gst-launch filesrc location=1080p.mp4 typefind=true ! aiurdemux ! queue ! vpudec ! mfw_v4lsink

  PS: If getting “gst-launch-0.10: page allocation failure: order:11, mode:0xd1”, please free more system memory by “echo 3 > /proc/sys/vm/drop_caches”