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

2009年4月14日 星期二

Load "Linux" and "BIOS" into the flash of Z-NAS Board

(1) Load "BIOS" into Z-NAS Board

A. Connect the JTAG Cable from the printer port of Windows host to the Z-NAS Module board

B. you can find images about redboot.bin(BIOS) and Linux image in the /images directory Of CD

C. Install the software "RDCLoader" to the Windows Host PC, and then

1. Select from program folder "RDC Loader" or double click on the desktop.
2. Select from menu "File/Open" or toolbar "Open" to start loading.
3. Select BIN file type and filename to load. Click Open to continue.
4. Click "Start Loading" to start loading to flash






(2). Load "Linux" into the flash of Z-NAS Module Board

A. Start the TFTP Server and place the "Linux" image file inthe "\tftpboot" directory
( if you use tftpd32 for windows, place the "Linux" file in the same
directory as tftpd32 program)

tftpd32 download from http://tftpd32.jounin.net/

B. Connect Ethernet Cable to LAN and the RS232 Cable to Z-NAS board .

C. Run Hyper terminal.

D. Power on the Z-NAS Module Board and then press "CTRL-C" two key in the Hyper terminal program. Now you can go into the Redboot Console.



E. Before load "Linux" into Z-NAS Board, you must setup the correct IP address for Z-NAS board and tftpd Server in RedBoot

Example as: the Z-NAS default IP is 192.168.123.254 and if your Tftpd Server
IP is 192.168.123.1 , Now you should RUN following command under Redboot Console for setting IP
RedBoot>ip_address –l 192.168.123.254 –h 192.168.123.1

E. Load the "Linux" into the ram of Z-NAS board through network

RedBoot>load -r -v -m tftp -h 192.168.123.1 -b 0x400000 image.bin

F. Load from ram into flash

RedBoot> flash -s 0x400000 -d 0xffc00000 -l 0x3e0000


G. Restart the Z-NAS Board, You can see


2009年4月2日 星期四