cancel
Showing results for 
Search instead for 
Did you mean: 

Resource Library

Quick Start with iMX6 Ultralite EVK and Mass Market Modules

Anonymous
Not applicable

Quick Start with iMX6 Ultralite EVK and Mass Market Modules

1) Download  L3.14.52_1.1.0-ga_images_MX6UL.tar.gz  from Freescale website using the link below.

https://www.nxp.com/webapp/Download?colCode=L3.14.52_1.1.0_iMX6UL&appType=license&location=null&fsrc...

2) L3.14.52_1.1.0-ga_images_MX6UL.tar.gz contains the file fsl-image-gui-x11-imx6ul.rootfs.sdcard.bz2

    Unzip this file using:   bzip2 -d fsl-image-gui-x11-imx6ul.rootfs.sdcard.bz2

    Write this to an SD card using

     sudo dd if=<fsl image name>.sdcard of=/dev/mmcblkX bs=1M && sync

3) Copy bcm_imx_<date>.tar.gz  to /home/root/ on the root partition of SD card. ( Note that this is attached to this post, scroll down  below to see the attachments)

4) Plugin in the SD card and power up  iMX.

5) Once iMX boots to the shell.

  # extract the archive

  cd /home/root && tar -zxvf bcm_imx_<date>.tar.gz

  #copy firmware, tools, etc

  cd /home/root/bcm_imx && ./install.sh  <CHIP>

6) Reboot iMX and stop it at u-boot prompt and set the fdt_file environment variable

  => setenv fdt_file imx6ul-14x14-evk-btwifi.dtb

  => saveenv

  => reset (causes platform to boot kernel)

7) Once the  iMX reboots and gets to the Linux shell, insert the bcmdhd kernel modules by

  executing the insmod script

    /home/root/bcm_imx/scripts/insmod_dhd.sh

   To use AP mode firmware use : /home/root/bcm_imx/scripts/insmod_dhd.sh -ap

😎 At this point you should be able to execute wl ver which shows the dhd and firmware version

9) Refer to the logs.txt in bcm_imx_<date>.tar.gz for the console outputs from insmod and wl ver

Attachments
Comments
Anonymous
Not applicable

Using DHD in SoftAP mode

==================

Load driver using : /home/root/bcm_imx/scripts/insmod_dhd.sh -ap

Use wl commands like below to configure in AP mode.

wl down

wl up

ifconfig wlan0 up

wl bss -C 1 up

wl -i wl0.1 bss down

wl -i wl0.1 wsec 4

wl -i wl0.1 wpa_auth 128

wl -i wl0.1 set_pmk 12345678

wl -i wl0.1 ssid vs-imx

Anonymous
Not applicable

You can list the contents of the root partition from u-boot using:

=> fatls mmcdev 1

  6037200   zimage

    34368   imx6ul-14x14-evk.dtb

    34364   imx6ul-14x14-evk-csi.dtb

    34807   imx6ul-14x14-evk-btwifi.dtb

4 file(s), 0 dir(s)

=>

Anonymous
Not applicable

Here would be the demo image which uses the 4.1.15 kernel.

L4.1.15_1.0.0_iMX6UL

Anonymous
Not applicable

The image from Step 2) Contains firmware images too. So you can skip the rest of the steps and load using the firmware that is already in image. Below is an example of doing it for 4343W.

FW=/lib/firmware/bcm/1DX_BCM4343W/fw_bcmdhd.bin

NVRAM=/lib/firmware/bcm/1DX_BCM4343W/bcmdhd.1DX.SDIO.cal

DHD=/lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko

insmod $DHD firmware_path=$FW nvram_path=$NVRAM dhd_msg_level=0x1

After loading the module if you like to try out the WPA supplicant to connect to an AP you could use.

1) Overwrite the supplicant configuration with your AP settings. An example is

root@imx6ulevk:~# cat /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

update_config=1

driver_param=/var/run/wlan0

network={

        ssid="Vnexus"

        psk="1234567890"

}

2) Restart supplicant

killall wpa_supplicant

sleep 1

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211

Anonymous
Not applicable

Hi Sir,

Do you have any patch file for L4.1.15_2.0.0 BSP version ?

Version history
Revision #:
1 of 1
Last update:
‎Dec 10, 2015 03:52 PM
Updated by:
Anonymous
 
Contributors