没有合适的资源?快使用搜索试试~ 我知道了~
PXA270的linux移植过程 Porting Linux 2.6.9 to the PXA270 based develop...
3星 · 超过75%的资源 需积分: 9 97 下载量 197 浏览量
2009-05-14
23:12:51
上传
评论 1
收藏 271KB PDF 举报
温馨提示
试读
34页
PXA270的linux移植过程,Porting Linux 2.6.9 to the PXA270 based development platform Intel .pdf
资源推荐
资源详情
资源评论
Porting Linux to Intel's Glencoe Platform
Porting Linux 2.6.9
to the PXA270 based
development platform
Intel Glencoe Beyond3G
Final Technical Report
as part of a
research collaboration between
Intel
and
Carnegie Mellon University
Author: Matthias Ihmig, m.ihmig@mytum.de
Last Change: 05/11/2005
Matthias Ihmig, m.ihmig@mytum.de page 1
Porting Linux to Intel's Glencoe Platform
Table of Contents
Porting Linux 2.6.9..................................................................................................................... 1
1. Introduction.......................................................................................................................... 4
2. The Linux Boot Loader BLOB................................................................................................ 5
2.1. Defaults and configuration values................................................................................. 5
2.1.1. Clock settings......................................................................................................... 5
2.1.2. Flash partition table............................................................................................... 6
2.1.3. Other default settings............................................................................................ 7
2.2. How to build BLOB......................................................................................................... 7
2.3. How to flash BLOB to the Glencoe board....................................................................... 8
2.3.1. Using jflashmm...................................................................................................... 8
2.3.2. How to flash BLOB, kernel and rootfs to Glencoe board using usbdnet................. 8
2.4. How to debug blob with the Intel XDB debugger.......................................................... 9
3. A Linux Kernel for the Glencoe board................................................................................. 10
3.1. PXA27x specific adaptions and patches...................................................................... 10
3.1.1. AC97 audio and touchscreen............................................................................... 11
3.1.2. Flash drivers (MTD&JFFS2)................................................................................... 11
3.1.3. MultiMediaCard, SecureDigital card..................................................................... 11
3.1.4. Compactflash interface........................................................................................ 12
3.1.5. Serial ports (FFUART, BTUART, STUART).............................................................. 12
3.1.6. USB host and gadget support.............................................................................. 12
3.1.7. Wireless updates.................................................................................................. 12
3.2. Downloading and patching the Glencoe kernel........................................................... 13
3.3. Compiling, uploading and running the kernel............................................................. 13
3.4. Debugging the kernel.................................................................................................. 14
3.4.1. Using the kgdb patches...................................................................................... 14
3.4.2. Using the Intel JTAG cable.................................................................................... 14
3.4.2.1. Modifications to the Glencoe developer board.................................................. 14
3.4.2.2. Using the XDB debugger (SDTool Suite 2.0 Beta22.0_beta)............................. 15
4. Glencoe specific peripherals............................................................................................... 16
4.1. SyChip Wireless LAN CompactFlash adapter............................................................... 16
4.2. WM9712 sound codec................................................................................................. 16
4.3. Sahara USB Bluetooth module.................................................................................... 17
4.4. Fastap keyboard.......................................................................................................... 17
4.4.1. Default mapping for FastAp keypad..................................................................... 17
4.4.2. Remapping scancodes with setkeycodes............................................................. 18
4.4.3. Using the keyboard driver.................................................................................... 18
4.5. Xircom/Intel GEM GSM/GPRS module.......................................................................... 19
4.5.1. Controlling the GEM module through GPIO lines.................................................. 19
4.5.2. Using the GEM module as serial modem.............................................................. 19
4.6. Access to Glencoe's peripherals (LEDs, backlight)...................................................... 20
5. The root filesystem............................................................................................................. 21
Matthias Ihmig, m.ihmig@mytum.de page 2
Porting Linux to Intel's Glencoe Platform
5.1. /etc/............................................................................................................................. 21
5.2. /dev/............................................................................................................................ 22
5.3. /proc/........................................................................................................................... 22
5.4. /tmp/............................................................................................................................ 23
5.5. Software overview and capabilities walkthrough........................................................ 23
5.5.1. Overview over installed software......................................................................... 23
5.5.2. A few system utilities........................................................................................... 24
5.5.3. CF/PCMCIA hardware............................................................................................ 25
5.5.4. USB Host.............................................................................................................. 25
5.5.5. USB gagdet support............................................................................................. 25
5.5.6. Serial port............................................................................................................ 26
5.5.7. Bluetooth.............................................................................................................. 26
5.5.8. Networking........................................................................................................... 28
5.5.9. Console, file system and multimedia utilities....................................................... 28
A.1. Installing the arm toolchain for cross compiling.......................................................... 30
A.2. Creating an environment for remote debugging......................................................... 30
A.3. HowTo setup USBDNET............................................................................................... 31
A.4.1. Installing USB Ethernet on host........................................................................... 31
A.4.2. Configuring USB Ethernet.................................................................................... 31
A.4.3. Using Kernel 2.6 on host side with usbnet........................................................... 32
A.5. Mounting MTD & JFFS2 images on a PC system.......................................................... 32
B. Links of Interest.................................................................................................................. 33
Revision History
Date Author Changes
22 Dec 05 Matthias Ihmig Intermediate report (BLOB & linux-2.4.21
11 May 05 Matthias Ihmig Release to Intel
Matthias Ihmig, m.ihmig@mytum.de page 3
Porting Linux to Intel's Glencoe Platform
1. Introduction
The “Glencoe” board uses – like Mainstone – the Intel Xscale CPU PXA270. An existing Linux kernel
with patches available for the “Mainstone” board has been used as the base system.
In the beginning of the porting process, the functionality of the 2.6 kernel based patches for the
PXA270 was very limited, so the first goal was to get the 2.4.21 kernel running on Glencoe.
As it turned out in the end of 2004, this kernel version 2.4.21-rmk1-pxa1-intc3 had no PCMCIA
drivers for the PXA27x, the MMC/SD modules were still buggy and due to the outdated kernel
version, there is no longer active support on the arm-linux mailing list (see [2]).
In the meantime, a PXA270 patchset appeared for the 2.6.9 kernel on which future work could be
based, so the switch to the 2.6.9 kernel was made for the Glencoe board. In the end of January,
which was pretty late in our porting process, the Mainstone group also released a number of
patches based on the 2.6.9 kernel. As these patches mostly concerned general PXA support and
were not Mainstone specific, this code was also integrated and partly adapted.
Following is a more detailed overview over the porting status, hints and examples for the
bootloader, the kernel and the root filesystem.
Matthias Ihmig, m.ihmig@mytum.de page 4
Porting Linux to Intel's Glencoe Platform
2. The Linux Boot Loader BLOB
As Linux boot loader, the “Boot Loader Object” from the LART project originally available from [3]
has been used. The Mainstone enabled version is also available from [1].
For the Glencoe board, the Mainstone enabled version 2.0.5-pre3 has been used. It is available
from here: ftp://ftp.arm.linux.org.uk/pub/armlinux/people/xscale/mainstone/
01-27-2005/src/blob/blob-xlli-snapshot-123004.tgz
A new board name “glencoe” has been added to BLOB, which activates and includes all parts and
changes necessary to work with the Glencoe board.
A new architecture GLENCOE has been defined with ARCH_NUMBER(4061) in
include/blob/linux.h.
Some bug fixes, like the reboot functionality, has been added and can be also integrated into the
Mainstone tree.
To add Glencoe support to the Mainstone sources, apply blob-xscale-mih1-glencoe.patch:
$ tar xfvz blob-xlli-snapshot-123004.tgz
$ cd blob-xscale
$ patch -p1 < ../blob-xscale-mih1-glencoe.patch
2.1. Defaults and configuration values
The assembler code in src/blob/xlli/glencoe/ takes care of basic initialization that needs to be
done before the part of BLOB written in C can start, like register settings for correct memory and
cpu clock.
2.1.1. Clock settings
The hardware switches used on the Mainstone board are not available for Glencoe. They were used
to determine clock speed and multiplier settings for the PXA27x CPU. These settings can
now be made by changing the .equ values of xlli_CLOCK_SWITCH_* at the end of
src/blob/xlli/glencoe/xlli_Glencoe_defs.inc. In order to tune the clock settings to the
requested speed, edit the corresponding variables in that file.
Be aware that wrong settings may damage the CPU permanently due to overclocking (see
Mainstone documents for more details on switch settings).
Other hardware initialization (e.g. switching on LCD and background light) is done in
src/blob/xlli/glencoe/start.s and in src/blob/main.c.
Matthias Ihmig, m.ihmig@mytum.de page 5
剩余33页未读,继续阅读
资源评论
- sivaaeik2013-02-10这文档拿来做个参考还是可以的
- qibeichaz2014-09-23刚好做项目,拿来作为参考。
- eeblacksmith2012-06-15太老的文档了, 全英文的
zhenwenxian
- 粉丝: 797
- 资源: 773
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功