2009年4月16日 星期四

Linux Build and Development Steps

System Requirements

2-3Ghz Linux PC (used for builds of embedded Linux images)
512MB Ram or more
10 GB of HDD space
Fedora 10 Linux (install ALL packages)

(1) Make Linux and Root File system

Tools and Source Installation

Extract source files on your hard disk (uncompress the sources on your hard disk).

login as user

cd ~
cp linux-znas001.tar.gz ~
tar -xzf ./linux-znas100.tar.gz

cd ./kamikaze

make V=99

After all you can find the Linux Image "openwrt-rdc-jffs2-64k-znas.img" in ( kernel + root file system)

~/kamikaze/bin


Place the Linux Image file in /tftpboot directory


(2) Make Redboot(BIOS)

Ecos 2.0 is our BIOS , all of the source code be packaged as a file-"redboot-znas001.tar.gz" in CD

login as root

cd ~
cp redboot-znas001.tar.gz ~
tar -xzf ./redboot-znas100.tar.gz

cd ~/tmp/ecos/redboot

# set PATH for find the cross compile tools (i386-elf)
PATH=~/tmp/ecos/ecos-2.0/tools/bin:$PATH ; export PATH
PATH=~/tmp/gnutools/bin:$PATH ; export PATH

make clean ; make

After all you can get the "BIOS" redboot.bin in
~/tmp/ecos/redboot/install/bin/redboot.bin

Place the redboot.bin file in /tftpboot directory

沒有留言: