Quick Start with iMX6 Ultralite EVK and Mass Market Modules
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
1) Download L3.14.52_1.1.0-ga_images_MX6UL.tar.gz from Freescale website using the link below.
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
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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)
=>
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Here would be the demo image which uses the 4.1.15 kernel.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Sir,
Do you have any patch file for L4.1.15_2.0.0 BSP version ?
-
This widget could not be displayed.Anonymous