TWiki
>
Linux2 Web
>
GettingStarted
>
HDG200B
>
GettingStartedHDG200B
>
BuildHDG200B
(2016-02-23,
AndersGrahn
)
(raw view)
E
dit
A
ttach
---++ Build HDG200B Linux Driver for different platforms This page provide short information on how to build and install the HDG200B wifi driver on different linux platforms. ---+++ *Linux Root File System* Checkout and configure buildroot 1 <span style="background-color: transparent;">git clone https://github.com/linux4sam/buildroot-at91.git</span> 1 <span style="background-color: transparent;">cd buildroot-at91</span> 1 <span style="background-color: transparent;">git checkout origin/buildroot-2014.05-at91 -b my_branch</span> 1 <span style="background-color: transparent;">make sama5d4_defconfig</span> 1 <span style="background-color: transparent;">make menuconfig</span> Apply the default configuration 1 <span style="background-color: transparent;">cp /path/to/sam5d4_wilc1000.config .config</span> OR select the following options manually 1 <span style="background-color: transparent;">System configuration --> /dev management (Dynamic using eudev)</span> 1 <span style="background-color: transparent;">Kernel --> Linux Kernel --> Kernel version --> Custom Git repository</span> 1 <span style="background-color: transparent;">URL of custom repository --> Enter "https://github.com/linux4sam/linux-at91.git"</span> 1 <span style="background-color: transparent;">Custom repository version --> Enter "9e27b1517a0d9c83b410c9f1361f06eacbac77b9"</span> 1 <span style="background-color: transparent;">Defconfig name --> Enter "sama5d4"</span> 1 <span style="background-color: transparent;">Device tree support --> Device Tree Source file names --> Enter</span> 1 <span style="background-color: transparent;">"at91-sama5d4_xplained at91-sama5d4_xplained_hdmi at91-sama5d4_xplained_pda4"</span> 1 <span style="background-color: transparent;">Target packages --> Libraries --> Networking --> libnl</span> 1 <span style="background-color: transparent;">Target packages --> Libraries --> Crypto --> openssl (enable all)</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> dhcp (ISC) (enable all)</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> dhcpd</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> hostapd (enable all)</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> iperf</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> iw</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> wpa_supplicant</span> 1 <span style="background-color: transparent;">Target packages --> Networking applications -> wireless tools</span> Build 1 <span style="background-color: transparent;">make -j1</span> ---+++ *Linux Kernel with HDG200B Support* 1 <span style="background-color: transparent;">git clone https://github.com/linux4sam/linux-at91.git</span> 1 <span style="background-color: transparent;">cd linux-at91</span> 1 <span style="background-color: transparent;">git checkout origin/linux-3.10-at91 -b linux-3.10-at91</span> 1 <span style="background-color: transparent;">git clone https://github.com/linux4sc/wireless-driver.git ./drivers/net/wireless/atmel</span> Include HDG200B support in the kernel configuration. In linux-at91/drivers/net/wireless/Kconfig add the following line 1 <span style="background-color: transparent;">source "drivers/net/wireless/atmel/Kconfig"</span> In linux-at91/drivers/net/wireless/Makefile add the following line 1 <span style="background-color: transparent;">obj-$(CONFIG_ATMEL_SMARTCONNECT) += atmel/</span> Configure the Kernel 1 <span style="background-color: transparent;">make ARCH=arm sama5d4_defconfig</span> 1 <span style="background-color: transparent;">make ARCH=arm menuconfig</span> Apply the following configuration 1 <span style="background-color: transparent;">Networking support -> Wireless -> cfg80211</span> 1 <span style="background-color: transparent;">Device Driver -> Network device support -> Wireless LAN -></span> 1 <span style="background-color: transparent;">Atmel SmartConnect Wireless cards Driver -> WILC1000 Support</span> Build the Kernel 1 <span style="background-color: transparent;">make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-</span> 1 <span style="background-color: transparent;">make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage</span> 1 <span style="background-color: transparent;">make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs</span> 1 <span style="background-color: transparent;">make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules</span> ---+++ *Flash the Root File System and Linux Kernel* Use the following binary release as a template. 1 <span style="background-color: transparent;">wget ftp://www.at91.com/pub/demo/linux4sam_4.7/linux4sam-poky-sama5d4_xplained-4.7.zip</span> 1 <span style="background-color: transparent;">unzip linux4sam-poky-sama5d4_xplained-4.7.zip</span> Copy output files to the linux4sam-poky-sama5d4_xplained-4.7 directory. Edit the file demo_linux_nandflash.tcl if any file name was changed. 1 <span style="background-color: transparent;">cp linux-at91/arch/arm/boot/zImage linux4sam-poky-sama5d4_xplained-4.7</span> 1 <span style="background-color: transparent;">cp linux-at91/arch/arm/boot/dts/at91-sama5d4_xplained.dtb linux4sam-poky-sama5d4_xplained-4.7</span> 1 <span style="background-color: transparent;">cp buildroot-at91/output/images/rootfs.ubi linux4sam-poky-sama5d4_xplained-4.7</span> Close JP7 and reset the board. Only "RomBoot" should be printed on the console. Then open JP7 again. 1 <span style="background-color: transparent;">./demo_linux_nandflash.sh (Linux).</span> Activity is logged on the J23 serial port (115200 8N1) ---+++ *Copy kernel modules and WILC1000 firmware* Copy the following files /lib/firmware/atmel of the root file system. 1 <span style="background-color: transparent;">git clone https://github.com/linux4sc/wireless-firmware</span> 1 <span style="background-color: transparent;">scp wireless-firmware/*.bin root@192.168.2.124:/lib/firmware/atmel</span>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2016-02-23 - 15:14:27 -
AndersGrahn
Linux2
Log In
(Admin Only)
Welcome
HDG200
Getting Started
Download and Build
Platforms
Demo Images
Documents
icon:pdf.gif
1453-_HDG200_Hardware_Design_Guide_pa2.pdf
HDG200B
Getting Started
Download and Build
Platforms
Demo Images
Documents
HDG204
Getting Started
Download
Build
Platforms
Atmel SAM9
Demo Images
Atmel SAM9
Documents
SPB209A
Getting Started
Test
Download
Documents
icon:pdf.gif
1543-SPB209A_RevF_EVB_Quick_Start_Guide.pdf
icon:pdf.gif
1543-SPB209A_RevA_User_Guide_Installation_driver_patches.pdf
icon:pdf.gif
1543-SPB209A_RevA_User_Guide_Using_PCM_interface_in_Bluetooth.pdf
icon:pdf.gif
1543-SPB209A_Demo_RevA_Quick_Start_Guide.pdf
icon:pdf.gif
1453-SPB209A_Hardware_Design_Guide_RevD.pdf
icon:pdf.gif
1453-SPB209A_Software_Developer_Guide_RevA.pdf
icon:pdf.gif
1543-Driver_Install_User_Guide_RevC.pdf
HDG229
Getting Started
Test
Download
Documents
icon:pdf.gif
1453-_HDG229_Hardware_Design_Guide_rev_B.pdf
icon:pdf.gif
1543-HDG229_EVB_Quick_Start_Guide_pa1.pdf
icon:pdf.gif
1543-SPB229_Driver_Install_User_Guide_Rev_C.pdf
Use Cases and tools
Wireless Tools
WPA Supplicant
Throughput Test
Roaming
Ifup and ifdown
Documents
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback