收藏:Getting started with the uClinux source code

First, download an unmodified 2.0.38 Linux kernel, "linux-2.0.38.tar.gz", and unpack it into /opt/uClinux, or wherever you prefer to keep your source.

Download the latest uClinux patch (uClinux-2.0.38.1pre7.diff.gz at the time of this writing) from
http://www.uclinux.org/pub/uClinux/ and unpack it to /opt/uClinux/linux.

Then patch it by typing 'patch -p1 < uClinux-2.0.38.1pre7.diff'.

Download and unpack uClinuxgcc-kit-160899.tar.gz into /opt/uClinux/ (Note: this file contains patches to build
m68k compilers only.):

Download (but do not unpack) binutils-2.9.1.tar.gz and gcc-2.7.2.3.tar.gz into /opt/uClinux. 'cd' into
/opt/uClinux/uclinuxgcc-kit-160899 and edit Makefile to set the install directory (INSTALLDIR). This is where the
uClinux compilers will be installed. Now type 'make' to install the toolchain. (Note: you must have flex or lex
installed)

To build a uClinux kernel for the uCsimm, cd into /opt/uClinux/linux and type 'make menuconfig'. Select the desired
options, save, and exit. Then type 'make dep', followed by 'make linux.bin'

Download and unpack uC-libc-160899.tar.gz and uC-libm-060199.tar.bz2 into /opt/uClinux/. 'cd' into uC-libc and
type 'make'. Do the same with uC-libm. This will create the files libc.a and libmf.a.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值