The Development Board is the mini2440 friendly. The wifi module is a friendly SDWIFI-YS09 module for tiny6410, which uses the Marvell 8686 chip. Drivers are available on 6410 CDs and can be easily downloaded online. The first step is to modify the source file of the original driver so that the driver can be compiled. The second step is to modify the BSP configuration file and package the driver into the kernel.
1. Modify the driver source file
Copy the driver folder to the \ SRC \ drivers folder of BSP. Modify the sources. CEN file and change wifi_hosttype to S3C2440.
Modify the source file in \ If \ if_sdio and modify the header file in file_view_includes_folder according to the header file in the folder.
Note that "setsd4bit" under [HKEY_LOCAL_MACHINE \ comm \ sdio86861 \ parms] In sdio8686.reg is set to 1, and "sdgpiointenable" is set to 1 (for the parameter meanings of these two items, refer to the annotations ).
Ii. Modify the BSP configuration file
Add the. BAT file in the BSP root directory:
Set bsp_sdiowifi = 1
Add the platform. bib file:
If bsp_sdiowifi
Sdio8686.dll $ (_ flatreleasedir) \ sdio8686.dll NK Shk
Endif bsp_sdiowifi
Add the platform. reg file:
If bsp_sdiowifi
# Include "$ (_ targetplatroot) \ SRC \ drivers \ wifi_sdio \ sdio8686.reg"
Endif bsp_sdiowifi
Then compile...