Chinaunix首页 | 论坛 | 博客
  • 博客访问: 810774
  • 博文数量: 118
  • 博客积分: 2067
  • 博客等级: 大尉
  • 技术积分: 1751
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-17 14:27
文章存档

2016年(1)

2013年(1)

2012年(3)

2011年(26)

2010年(47)

2009年(40)

分类:

2009-08-18 13:13:07

uClinux 2.6.21 on LPC22XX / LPC2468

Download and Install the snapgear tool chain (gcc 3.4.4)

In the Embedded Artists wmware image, download the following tool chain:

In terminal do the following:

  • $su
  • Password: root
  • $cd /
  • $tar zxvf /arm-linux-tools-20061213.tar.gz
  • $exit

Download the sources

  • Download the uClinux snapshot:
  • Download the 2.6.20.x kernel:
  • Download the uClinux patch for 2.6.21:
  • Download the LPC2468 patch for 2.6.21-uc0:
    • linux-2.6.21-uc0-lpc2468.diff in
  • Download the BSP for LPC2468:
    • uClinux-dist-20070130-nxp-lpc2468.tgz in

Setup the sources

  • 1) Untar the uClinux snapshop and remove the kernels

tar -zxvf /uClinux-dist-20070130.tar.gz rm -r uClinux-dist/linux-2.0.x rm -r uClinux-dist/linux-2.4.x rm -r uClinux-dist/linux-2.6.x

  • 2) Make a new linux-2.6.x kernel from scratch

tar -jxvf /linux2.6.21.tar.bz2 gzip -dc /linux-2.6.21-uc0-big.patch.gz | patch -p0 cat /linux-2.6.21-uc0-lpc2468.diff|patch -p0 mv linux-2.6.21 uClinux-dist/linux-2.6.x

  • 3) Install the BSP for LPC2468

tar -zxvf /uClinux-bsp-lpc2468.tar.gz

Compile the kernel using the default setup

NOTE: For Embedded Artists LPC2468 OEM Board users: - The image is located uClinux-dist/linux2.6.x/arch/arm/boot/Image - The romfs is located uClinux-dist/images/romfs.img

- image has to be loaded @a0008000 - romfs has to be loaded @a1800000

阅读(2574) | 评论(0) | 转发(0) |
0

上一篇:uclinux启动过程

下一篇:USB CDC

给主人留下些什么吧!~~