Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ea_lpc2478 [2011/09/27 19:51] – admin | ea_lpc2478 [2011/09/27 21:26] (current) – [Building uClinux] admin | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Embedded Artists provides patches for u-boot 1.1.6. This is a very old U-boot but we have to use it as our board is not supported on the main u-boot development line. The version of U-boot that we are using, 1.1.6, does not seem to be compilable under Codesourcery g++. A non-EABI tool is needed, like bare metal, therefore crosstool-ng is needed. | Embedded Artists provides patches for u-boot 1.1.6. This is a very old U-boot but we have to use it as our board is not supported on the main u-boot development line. The version of U-boot that we are using, 1.1.6, does not seem to be compilable under Codesourcery g++. A non-EABI tool is needed, like bare metal, therefore crosstool-ng is needed. | ||
| - | build a u-boot.hex | + | # build a u-boot.hex |
| cd u-boot | cd u-boot | ||
| make distclean | make distclean | ||
| Line 44: | Line 44: | ||
| We can connect to the serial port terminal with minicom, using these settings: 115200 8N1 no flow control. | We can connect to the serial port terminal with minicom, using these settings: 115200 8N1 no flow control. | ||
| + | ===== Building uClinux ===== | ||
| + | |||
| + | tar -xzvf / | ||
| + | cd uClinux-dist/ | ||
| + | rm -r linux-2.* | ||
| + | tar -xzvf / | ||
| + | mv linux-2.6.21/ | ||
| + | patch -p1 < / | ||
| + | patch -p1 < / | ||
| + | | ||
| + | | ||
| + | | ||
| + | make menuconfig | ||
| + | make CROSS_COMPILE=arm-elf- | ||
| + | |||
| + | | ||
| + | |||
| + | make CROSS_COMPILE=arm-elf- clean | ||
| + | make CROSS_COMPILE=arm-elf- | ||
| + | |||
| + | make ARCH=arm CROSS_COMPILE=arm-uclinuxeabi- menuconfig | ||
| + | make ARCH=arm CROSS_COMPILE=arm-uclinuxeabi- all | ||
| + | |||
| + | | ||
| + | |||
| + | make ARCH=arm CROSS_COMPILE=arm-uclinuxeabi- CC=/ | ||
| + | |||
| + | why isn't CROSS_COMPILE variable recognized within linux/ | ||
| + | |||
| ====== Some links ====== | ====== Some links ====== | ||
| our development kit:\\ | our development kit:\\ | ||