编译uClinux-dist-20070130 的部分心得(没有添加实时补丁)

1) uClinux-dist-20070130 on At91 platform (Linux Host)

You can follow below instructions to run linux-2.6.x / At91 on Skyeye.
  1. get your toolchain From: http://ftp.snapgear.org/pub/snapgear/tools/arm-linux/arm-linux-tools-20061213.tar.gz and uClinux-dist-20070130.tar.gz from uClinux.org
  2. Instll toolchian and untar uClinux package.
  3. Enter vendor/product menu by run "make menuconfig", select GDB/Armulator option. Then exit the whole menu. Run "make" command to build your uClinux.After finish the build , you can get linux image under linux-2.6.x directory.     
  4. buld: make menuconfig make ARCH=arm
  5. the skyeye.conf like this:
    #skyeye config file sample
    
    cpu: arm7tdmi
    
     
    
    mach: at91
    
     
    
    mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
    
    mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
    
    mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=./boot.rom
    
    mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
    
    mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
    
    mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
    
    mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
    
    net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
    
    #net: type=rtl8019_16, ethmod=tuntap, hostip=10.0.0.1
    
    #dbct: state=on
  6. run" skyeye -e linux" and we can see the linux version is 2.6.19-uc0 The following is build the 2.4.x
  1. before build this version we must intall the Cross compile tools "arm-elf-tools-20030314.sh"
  2. run" make clean" clean the file.
  3. run"make menuconfig" . Enter vendor/product menu by run "make menuconfig", select GDB/Armulator option. Enter kernel seting select the kernel 2.4.x
  4. exit and run "make ARCH=armnommu CORSS_COMPILE=arm-elf- dep"
  5. run "make ARCH=armnommu CORSS_COMPILE=arm-elf-"
  6. modify the skyeye.conf
    #skyeye config file sample
    
    
    
    cpu: arm7tdmi
    
    
    
     
    
    
    
    mach: at91
    
    
    
     
    
    
    
    mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
    
    
    
    mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
    
    
    
    mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=./romfs.img
    
    
    
    mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
    
    
    
    mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
    
    
    
    mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
    
    
    
    mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
    
    
    
    net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
    
    
    
    #net: type=rtl8019_16, ethmod=tuntap, hostip=10.0.0.1
    
    
    
    #dbct: state=on
  7. then we will found the images folder in the uClinux-dist folder. We copy the skyeye.conf into it. And run "skyeye -e linux"
  8. and we can see the linux version is 2.4.32-uc0
remenber to modify the "~/.profile" add the following text at the end of the file: PATH="/usr/local/bin:$PATH" export PATH
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值