yzhua424 发表于 2005-3-12 09:19:13

skyeye运行s3c4510B+linux-2.6.9

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

kunasen 发表于 2005-3-16 11:12:16

在"General setup"菜单的中没有找到"Default kernel command string"

walimis 发表于 2005-3-16 14:09:03

good。

kunasen 发表于 2005-3-18 18:17:22

为什么会这样呢?

# 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? 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:


请问一下怎么解决啊?

yzhua424 发表于 2005-3-19 15:28:18

patch -p1 -i../linux-2.6.9-uc0-hsc0.patch

kunasen 发表于 2005-3-21 13:42:31

好像不太行
# 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?
Apply anyway?
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:


# 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? 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:

yzhua424 发表于 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

多试试即可

yzhua424 发表于 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


对不起!

kunasen 发表于 2005-3-23 11:32:46

你的意思是打linux-2.6.9-hsc0.patch.gz这个补丁,那还需要打linux-2.6.9-uc0-hsc0.patch.gz这个补丁吗?

yzhua424 发表于 2005-3-24 11:02:54

我记得不用,你试试便知
页: [1]
查看完整版本: skyeye运行s3c4510B+linux-2.6.9