QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1848|回复: 9

skyeye运行s3c4510B+linux-2.6.9

[复制链接]
发表于 2005-3-12 09:19:13 | 显示全部楼层 |阅读模式
1.建立build-arm-tools
  我使用的是binutils-2.15,gcc-3.4.1.
   从http://www.develer.com/uclinux下载最新的build-uclinux-tools.sh.和相关的软件.
   修改build-uclinux-tools.sh
      TARGET=arm-uclinux-elf
      PREFIX=$HOME/local3.4
   及GCCVERS,BINUTILSVERS等.

2.build uClinux-dist
  我用uClinux-dist-20041215.tzr.bz2或uClinux-dist-20040408.tar.gz,解压后进入uclinux-dist.
  解压linux-2.6.9.tar.bz2.从http://opensrc.sec.samsung.com/下载最新的补丁linux-2.6.9-uc0-hsc0.patch.gz.
  rm -fr linux-2.6.x
  mv linux-2.6.9 linux-2.6.x
  cp linux-2.6.x/arch/armnommu/configs/espd_4510b_defconfig vendors/Samsung/4510B/config.linux-2.6.x
   cp vendors/Samsung/4510B/config.linux-2.4.x   vendors/Samsung/4510B/config.linux-2.6.x
   make menuconfig
  
  在 "Select the Vendor you wish to target"选"Samsung"
  而 "Select the Product you wish to target"选"4510B"

  接下的菜单如下:
    (linux-2.6.x) Kernel Version
    (uClibc) Libc Version
   
  • Default all settings (lose changes) (NEW)
       
  • Customize Kernel Settings (NEW)
       
  • Customize Vendor/User Settings (NEW)
       
  • Update Default Vendor Settings (NEW)

    3.  Kernel的configuration
        在"General setup"菜单的"Default kernel command string"
               root=/dev/ram0 initrd=0x00200000,800K keepinitrd
    4.  make
    5.  skyeye.conf
         #skyeye config file sample
         cpu: arm7tdmi
         mach: s3c4510b
         mem_bank: map=M, type=RW, addr=0x00000000, size=0x00700000
         mem_bank: map=M, type=RW, addr=0x00700000, size=0x00100000, file=./images/romfs\.img
         mem_bank: map=M, type=R,  addr=0x01000000, size=0x00200000
         #mem_bank: map=M, type=R,  addr=0x01000000, size=0x00200000
         mem_bank: map=I, type=RW, addr=0x03ff0000, size=0x00100000
         #uart:type=s3c4510b,name=uart0
         #uart:type=s3c4510b,name=uart1
         #timer:type=s3c4510b,name=timer0
         #timer:type=s3c4510b,name=timer1

         #net: state=off, hostip=10.0.0.2, ethmod=tuntap, mac=b0:c4:20:00:00:00
  • 发表于 2005-3-16 11:12:16 | 显示全部楼层
    在"General setup"菜单的中没有找到"Default kernel command string"
    回复

    使用道具 举报

    发表于 2005-3-16 14:09:03 | 显示全部楼层
    good。
    回复

    使用道具 举报

    发表于 2005-3-18 18:17:22 | 显示全部楼层
    为什么会这样呢?

    [root@ivan linux-2.6.9]# patch -p1 < linux-2.6.9-uc0-hsc0.patch
    patching file arch/arm/kernel/vmlinux.lds.S
    Reversed (or previously applied) patch detected!  Assume -R? [n] y
    can't find file to patch at input line 16
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -Naur linux-2.6.9-uc0/arch/armnommu/boot/Makefile linux-2.6.9-hsc0/arch/armnommu/boot/Makefile
    |--- linux-2.6.9-uc0/arch/armnommu/boot/Makefile        2004-11-19 15:00:52.000000000 +0900
    |+++ linux-2.6.9-hsc0/arch/armnommu/boot/Makefile       2004-11-23 12:14:56.000000000 +0900
    --------------------------
    File to patch:


    请问一下怎么解决啊?
    回复

    使用道具 举报

     楼主| 发表于 2005-3-19 15:28:18 | 显示全部楼层
    patch -p1 -i  ../linux-2.6.9-uc0-hsc0.patch
    回复

    使用道具 举报

    发表于 2005-3-21 13:42:31 | 显示全部楼层
    好像不太行
    [root@ivan linux-2.6.9]# patch -p1 -i ../linux-2.6.9-uc0-hsc0.patch
    patching file arch/arm/kernel/vmlinux.lds.S
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file arch/arm/kernel/vmlinux.lds.S.rej
    can't find file to patch at input line 16
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -Naur linux-2.6.9-uc0/arch/armnommu/boot/Makefile linux-2.6.9-hsc0/arch/armnommu/boot/Makefile
    |--- linux-2.6.9-uc0/arch/armnommu/boot/Makefile        2004-11-19 15:00:52.000000000 +0900
    |+++ linux-2.6.9-hsc0/arch/armnommu/boot/Makefile       2004-11-23 12:14:56.000000000 +0900
    --------------------------
    File to patch:


    [root@ivan linux-2.6.9]# patch -p1 -i ../linux-2.6.9-uc0-hsc0.patch
    patching file arch/arm/kernel/vmlinux.lds.S
    Reversed (or previously applied) patch detected!  Assume -R? [n] y
    can't find file to patch at input line 16
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -Naur linux-2.6.9-uc0/arch/armnommu/boot/Makefile linux-2.6.9-hsc0/arch/armnommu/boot/Makefile
    |--- linux-2.6.9-uc0/arch/armnommu/boot/Makefile        2004-11-19 15:00:52.000000000 +0900
    |+++ linux-2.6.9-hsc0/arch/armnommu/boot/Makefile       2004-11-23 12:14:56.000000000 +0900
    --------------------------
    File to patch:
    回复

    使用道具 举报

     楼主| 发表于 2005-3-23 10:21:17 | 显示全部楼层
    参考http://opensrc.sec.samsung.com/,

    如我没记错:
    http://opensrc.sec.samsung.com/download/linux-2.6.9-hsc0.patch.gz是对linux-2.6.9.tar.bz2的patch

    http://opensrc.sec.samsung.com/download/linux-2.6.9-uc0-hsc0.patch.gz是对uclinux的patch的patch

    多试试即可
    回复

    使用道具 举报

     楼主| 发表于 2005-3-23 10:26:51 | 显示全部楼层
    文章中的:

    "解压linux-2.6.9.tar.bz2.从http://opensrc.sec.samsung.com/下载最新的补丁linux-2.6.9-uc0-hsc0.patch.gz"搞错了,应为:

    解压linux-2.6.9.tar.bz2.从http://opensrc.sec.samsung.com/下载最新的补丁linux-2.6.9-hsc0.patch.gz


    对不起!
    回复

    使用道具 举报

    发表于 2005-3-23 11:32:46 | 显示全部楼层
    你的意思是打linux-2.6.9-hsc0.patch.gz这个补丁,那还需要打linux-2.6.9-uc0-hsc0.patch.gz这个补丁吗?
    回复

    使用道具 举报

     楼主| 发表于 2005-3-24 11:02:54 | 显示全部楼层
    我记得不用,你试试便知
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    GMT+8, 2024-11-29 10:08 , Processed in 0.059083 second(s), 16 queries .

    © 2021 Powered by Discuz! X3.5.

    快速回复 返回顶部 返回列表