|
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 |
|