Newer
Older
Alex Belits
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Intel IXDP425
-------------
1. Compiler Tool Chain
Before you can compile the Linux kernel, libraries and applications to
generate an IXP425 image you must install an appropriate compiler tool
chain. I suggest you use the arm-linux tool chain that accompanies this
source distribution (the arm-linux-tools-XXXXXXXX.tar.gz package). To
install this toolchain do:
1. login as root
2. cd /
3. tar xvzf arm-linux-tools-XXXXXXXX.tar.gz
This package contains binaries of the following tools:
binutils-2.14
gcc-3.3.2
glibc-2.2.5
2. Building the Source
Follow these simple steps to compile binary images ready to run on the
Intel IXDP425 board:
1. tar xvzf uClinux-dist-XXXXXXXX.tar.gz
2. cd uClinux-dist
3. make xconfig
. Choose the "Target Platform Selection" menu item
. Select the "Vendor/Product" tab and choose "Intel/IXP425"
. Select the "Libc version" tab and choose "Glibc"
. "Save and Exit" this configuration
4. make dep
5. make
That is it! The final make step will run through and compile the Linux
kernel, glibc library and a sample application set. It will also package
the result into two files ready to load onto the IXDP425 board, zImage
and ramdisk.gz.
Most often linux-2.4.x and glibc are used on this target, but uClibc
and linux-2.6.x are also supported on this board.
3. Loading and Running
You will need an Intel IXDP425 board fitted with the RedBoot loader in
flash. You should firstly setup RedBoot configuration with a client
and server IP address (alternatively you can use the builtin DHCP
support).
Copy the binary files from uClinux-dist, images/zImage and
images/ramdisk.gz to the TFTP area of the download server.
To load and run Linux with RedBoot v1.92, issue the following commands:
load -r -v -b 0x01600000 zImage
load -r -v -b 0x00800000 ramdisk.gz
go -n 0x01600000
To load and run Linux with RedBoot v2.0, issue the following commands:
load -r -v -b 0x11600000 zImage
load -r -v -b 0x10800000 ramdisk.gz
go 0x11600000
You should see the Linux boot banner, and then be presented with a
bash shell prompt. A reasonable utility set is in place, mostly using
the busybox tool set. By default the rc script will run a dhcp client,
and so with a local dhcp server in place Linux will acquire an IP
address.
4. Saving to Flash with RedBoot
You can setup the flash memory from within RedBoot to directly load
and run linux.
The following procedure describes howto setup and load Linux into
the flash:
fis init
load -r -v -b 0x01600000 zImage
fis create -b 0x01600000 -l 0xb0000 zImage
load -r -v -b 0x00800000 ramdisk.gz
fis create -b 0x00800000 -l 0x1d0000 ramdisk
Then create a boot script to automatically load and run:
fconfig
>> fis load -b 0x00800000 ramdisk
>> fis load -b 0x01600000 zImage
>> go -n 0x01600000
Note: the go "-n" argument is used to halt the NPE's BEFORE control is
passed to kernel loaded as the NPE's can be in use by RedBoot.
5. Customizing the Build
Using "make xconfig" in uClinux-dist you can customize the kernel and
application configurations. There is a large selection of packages in
the application configuration.
Consult the README file at the top level of uClinux-dist for some more
information about configuration and building.
Note also that uClinux-dist does not contain the Intel Access Library or
Drivers patch. So only the external PCI EEPRO 10/100 ethernet board can
be used by default, neither of the builtin ethernet ports are active.
To build with the Intel AccessLibrary to get the ethernet support goto
Rob Ranslam's sourceforge project site:
http://ixp4xx-osdg.sourceforge.net
The "uClinux on the IXDP425 and IXP400 Access Library v1.2.2 Integration
HOWTO" provides instructions and a script to integrate the Access Library
with uClinux. There is also general information un using the IXDP425 and
uClinux.