免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1404 | 回复: 0
打印 上一主题 下一主题

项目一 iMX21整体方案(3): BSP Guide [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-02 12:12 |只看该作者 |倒序浏览


  Normal
  0
  
   
  
  

ARM Linux (iMX21)
BSP Guide



A. Introduction

     This developer guide
provides the information for developers, who need to use the IMX21 Linux BSP to
modify the sound driver. This development may proceed with a specific model.
And this document is created mainly to facilitate the usage of this BSP and
Machine for engineers to quickly startup the development work of some device
drivers. The host operating system we preferred is Redhat Linux 9.0, or VMWare
plus Redhat Linux 9.0 under Windows XP.

B. BSP Installation and Compilation

1.   Setup the tool chains
= = = = = = = = = = = = = = = = =
>Login as root
>mount /dev/cdrom /mnt/cdrom
>cd /usr/local
>tar zxvf /mnt/cdrom/arm-linux.tar.gz

In order to cross-compile on Imx21, please add “export
PATH=$PATH:/usr/local/arm/bin” in /etc/profile or /etc/bashrc.

2.
Kernel Configurations and Compilation

Kernel source preparation
= = = = = = = = = = = = = =
>cd /usr/src/
>tar zxvf /mnt/cdrom/linux-2.4.20-iMX21.tar.gz

Configure the linux kernel
= = = = = = = = = = = = = =      
>cd /usr/src/linux-2.4.20-iMX21
>make config
>make dep

Build the new linux kernel
= = = = = = = = = = = = = =
>make zImage
>the kernel image will be located at
linux-2.4.20-iMX21/arch/arm/boot/zImage


Device Drivers Specific

There are multiple drivers
presented in Imx21 BSP. Only audio driver is shown as an example.

Audio Driver
            The audio codec used on IMX21 is WM8731. The driver for WM8731 is based
on three modules of MX21, DAM (Digital Audio Multiplexer) module, SSI
(Synchronous Serial Interface) module and I2C module. The SSI module is used to
manage a full-duplex data path between MX21 and WM8731. And the I2C module is
used to set and read the register values of WM8731.
            The audio driver source
files are placed in /usr/src/linux-2.4.20-iMX21/drivers/sound.

6. Test on IMX21

The files associated with sound are listed as follows:
Sound drivers:                soundcore.o
                                    sound.o
                                    dbmx-wm8721-audio.o
Application of wavplayer:            wavplay


7. References
1. MCIMX21 and MCIMX21L Applications Processors Reference Manual;
2. i.MX31 Linux Board Support Package Reference Manual, Rev.3.2;
3. i.MX31ADS Linux BSP Targeting the Freescale i.MX31 ADS User’s Guide,
Rev.3.2.
4. IMX21 CPU BD Schematics.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7273/showart_1916148.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP